Do you mean that you want to call back to Wicket from client-side JS? If so, see any of the AbstractAjaxBehavior implementations - you'll see how they generate a callback to server-side.
On Thu, Jan 15, 2009 at 11:04 AM, Sniffer <cajic_aleksan...@yahoo.com>wrote: > > Hi, > I'm a beginner about Wicket and the main issue which I have is JavaScript > and Wicket integration. My question is is it possible to pass JavaScript > variable value to Wicket as Wicket link parameter? > > Here are some part of code which I have: > > // Set link on data cell > Link callUpdateWindow = new Link("callUpdateWindow", item.getModel()) { > public void onClick() { > } > }; > String call = String.format("showUpdate('%s');", item.getIndex()); > callUpdateWindow.add(new AttributeModifier("onclick", true, new > Model(call))); > > > HTML: > <td align="center" valign="middle" class="dotCell" > wicket:id="callUpdateWindow"> > img/icon/dot_green.png > </td> > > And this is working fine, Wicket set onclick attribute with desired value > to > JavaScript function, but then from HTML I don't know how to return > JavaScript set value to Wicket. > > Please any kind of help! > > Best regards, > Aleksandar Cajic > -- > View this message in context: > http://www.nabble.com/JavaScript-and-Wicket-tp21481992p21481992.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Jeremy Thomerson http://www.wickettraining.com