I need to open a new page, when the action is performed in formmodel.
How can I realise it?

<fd:action id="draw_graphic">
                <fd:label>Open new window</fd:label>
                <fd:on-action>
                <fd:javascript>
                        java.lang.System.out.println("was here");
                </fd:javascript>
                </fd:on-action>
</fd:action>

in flowscript:

        form.getChild("draw_graphic").performAction();

I have 2 ideas:

1. in flowscript to check if this action was happened (but I don't know how)
and
if so, execute cocoon.sendPageAndWait("newpage.xml");

2. in formmodel:
                <fd:javascript>
                        cocoon.sendPage("newpage.xml");
                </fd:javascript>
it doesn't work...
-- 
View this message in context: 
http://www.nabble.com/Open-new-page-on-form%27s-action-----tp23022776p23022776.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
For additional commands, e-mail: users-h...@cocoon.apache.org

Reply via email to