• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Issue with AjaxModalDialog and AjaxSubmitButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Issue with AjaxModalDialog and AjaxSubmitButton


  • Subject: Issue with AjaxModalDialog and AjaxSubmitButton
  • From: Pierre Schambacher <email@hidden>
  • Date: Tue, 27 Oct 2009 15:56:14 +0100

Hi everyone,

I've got a strange behavior and I think it could be a bug.

Here is the situation, I've got a component, that we will name MyComponent, like this:
<WOForm>
    <WOTextField />
    <AjaxSubmitButton action="" />
</WOForm>

In an other component, i've got this
<AjaxModalDialogOpener dialogId="modalDialog"/>
<AjaxModalDialog id="modalDialog">
    <MyComponent />
</AjaxModalDialog>

Until there, no problem but I need to create MyComponent programmatically, so this become:
<AjaxModalDialogOpener dialogId="modalDialog"/>
<AjaxModalDialog id="modalDialog" action="">
and in the java file:
public WOActionResults createModal() {
    MyComponent c = (MyComponent) pageWithName(MyComponent.class.getName());
   
    c.setVariable1(variable1Value);
    c.setVariable2(variable2Value);
    // some initialization of instance variables
   
    return c;
}

The problem is that with this kind of creation, the AjaxSubmitButton does not work...
I've got a breakpoint at the first instruction of it's action on the server side and nothing appends, despite it correctly works when not created programmatically.
Did I forgot something in the creation/initialization or is this an unexpected feature ?

Thank you for your help.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Error with deleting object in WebObjects and Microsoft SQLServer 2005
  • Next by Date: Re: 2009 Survey Results
  • Previous by thread: Re: displaying an integer list
  • Next by thread: Re: 2009 Survey Results
  • Index(es):
    • Date
    • Thread