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="someAction" />
</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="createModal"/>

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to