Issue with AjaxModalDialog and AjaxSubmitButton
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