Coder Social home page Coder Social logo

Comments (20)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
i added some example on the thread. However there is still one part missing -
callback from iframe.

Original comment by [email protected] on 6 Feb 2009 at 8:00

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
An implementation adjusted from GWT-FormPanel

Original comment by [email protected] on 10 Feb 2009 at 10:20

Attachments:

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I tried to use it but it doesn't work in hosted mode and with Internet 
Explorer. the iframe onload function is not called. It works only with 
firefoxe. Can you please 
tell me how can I make it work ?

Original comment by [email protected] on 4 Mar 2009 at 8:40

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
For IE support

In your gwt.xml you need to set:
<replace-with class="at.bestsolution.gwt.util.impl.DynamicCallbackFormImpl">
        <when-type-is class="at.bestsolution.gwt.util.impl.DynamicCallbackFormImpl"/>
    </replace-with>

    <replace-with class="at.bestsolution.gwt.util.impl.DynamicCallbackFormImplIE6">
        <when-type-is class="at.bestsolution.gwt.util.impl.DynamicCallbackFormImpl"/>
        <when-property-is name="user.agent" value="ie6"/>
    </replace-with>

Original comment by [email protected] on 6 Mar 2009 at 5:10

Attachments:

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I had made one which works almost the same as the File Dialog in GWT-Ext-UX. 

Sanjiv: can you let me join to smartgwt-extensions project? So I can upload it 
there.

Original comment by [email protected] on 20 Mar 2009 at 6:44

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Great! I've added you as a project member.

Original comment by [email protected] on 20 Mar 2009 at 7:12

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Closing issue. 

PS: anthony : looking forward to check out your work when its in 
smartgwt-extensions.

Original comment by [email protected] on 31 Mar 2009 at 10:43

  • Changed state: Done
  • Added labels: SmartGWT-1.0b3

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I'm looking forward to this as well.  Has there been any progress since the 
last 
comments on this issue?  I noticed it mentioned on the smartgwt extensions page 
but 
haven't seen a release.  I'd certainly be willing to test this out.

Original comment by [email protected] on 14 Apr 2009 at 7:59

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Any progress on this implementation?

Original comment by [email protected] on 16 Apr 2009 at 9:07

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Need this functionality. Can someone upload it so that all of us dont have to 
reinvent it? This will help out a great bit.

Original comment by [email protected] on 5 May 2009 at 4:06

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
praseedt, 
Pete also posted the required code here :
http://forums.smartclient.com/showthread.php?t=5477

Users have used it successfully.

This will be incorporated into the smartgwt-extensions project but until then it
should be fairly straightforward to incorporate the code into your project.

Original comment by [email protected] on 5 May 2009 at 4:12

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Hi all,

When following these links I find there are at least three suggested 
approaches/code 
samples (see list below) with differing degrees of complexity.

Is there a best of breed solution for file upload that works across browsers?

Examples of advice/example code offerred ...
http://code.google.com/p/smartgwt/issues/detail?id=17
http://forums.smartclient.com/showthread.php?t=5477
http://forums.smartclient.com/showthread.php?t=3102

It seems plain GWT has FormPanel and FormHandler, the latter containing support 
for 
intercepting the submit complete event and providing access to the response 
content.

http://google-web-
toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/FormHandler
.html

I haven't tried this stuff, but is there any plan/merit introducing something 
similar on DynamicForm - would this avoid provide the solution we're all 
looking for?

Original comment by [email protected] on 5 May 2009 at 11:59

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024

Original comment by [email protected] on 20 May 2009 at 1:26

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
@tomsontom

I have a question concerning the IE6 implementation. In the unhookevents 
function you
set form.onsubmit = null. But when I destroy the window I get javascript errors 
that
"form" doesn't exist. Can I safely delete that line? Or did I mess something up 
that
the form can't be found?

Original comment by [email protected] on 17 Nov 2009 at 1:32

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Can someone provide an example on how to use the DynamicCallbackForm? Thanks!

Original comment by [email protected] on 29 Jun 2010 at 2:09

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I tried the following but the onSubmitComplete doesn't seem to get called:

display.getUploadForm().addFormHandler(new DynamicFormHandler() {
      public void onSubmitComplete(DynamicFormSubmitCompleteEvent event) {
        System.out.println("submit complete");
        String responseString = event.getResults();
        System.out.println("Response String is " + responseString);
      }
    });

// Handler for import button
    display.getImportButton().addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        if (display.getUploadForm().validate()
            && display.getImportForm().validate()) {

        // set value for the hidden field
        display.getUploadForm().setValue(
              ModelConstants.FILE_DS_FILE_ID,
              (String) display.getImportForm().getValue(
                  ModelConstants.FILE_DS_FILE_ID));

          display.getImportForm().saveData();

          display.getUploadForm().submitForm();

        }
      }
    });

Original comment by [email protected] on 29 Jun 2010 at 6:54

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
Even for me the onSubmitComplete is not trigerred is there a work around, or is 
this functionality part of smartGWT already ?

Original comment by [email protected] on 2 Aug 2010 at 9:26

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
The onSubmitComplete is not called when using IE.
You have to look back on this page to comment 4 how to enable IE support;
http://code.google.com/p/smartgwt/issues/detail?id=17#c4

Original comment by [email protected] on 4 Aug 2010 at 9:59

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
[deleted comment]

from smartgwt.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 29, 2024
I have the same problem with chrome (the onSubmitComplete is not called). Any 
ideas?

Original comment by [email protected] on 30 Apr 2013 at 7:43

from smartgwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.