Re: [Wicket-user] How to add pageparameters dynamicaly in link from JS

2007-06-20 Thread Igor Vaynberg

first mount your receiving page

then when constructing javascript call urlfor(mountedpageclass)

that will give you the base url, pass that into the javascript

in javascript just append the params before you are ready to call

by default wicket uses /paramname/paramvalue

so in javascript

window.location=baseurl+"/selectednode/"+node;

the mounted page should have a Page(PageParameters params) constructor, in
constructor you can then do params.get("selectednode");

-igor


On 6/20/07, Konstantin <[EMAIL PROTECTED]> wrote:



How can I set up page parameters in link using some javascript. I have
DOJO
tree, and javascript function that gets sting with selected item, and I
have
a link to page with 1 parameter, that string, how to setup dynamic page
link
construction ? Or how can I get JS function result to java ... or maybe
there is other wicket way ?
--
View this message in context:
http://www.nabble.com/How-to-add-pageparameters-dynamicaly-in-link-from-JS-tf3950970.html#a11209274
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] How to add pageparameters dynamicaly in link from JS

2007-06-20 Thread Konstantin

How can I set up page parameters in link using some javascript. I have DOJO
tree, and javascript function that gets sting with selected item, and I have
a link to page with 1 parameter, that string, how to setup dynamic page link
construction ? Or how can I get JS function result to java ... or maybe
there is other wicket way ?
-- 
View this message in context: 
http://www.nabble.com/How-to-add-pageparameters-dynamicaly-in-link-from-JS-tf3950970.html#a11209274
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user