cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maria Grigorieva <mag-s...@hotmail.com>
Subject Open new page on form's action ???
Date Mon, 13 Apr 2009 14:10:11 GMT

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-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message