Probably the simplest way to go is to create a panel with a hidden field, or a textfield with style='display:none', and a label. the rest is left your javascript guru-ness.
<wicket:panel> <span wicket:id="text" onclick="document.getElementById('foo').value=prompt('foo', 'bar');">text comes here</span> <input wicket:id="value" type="hidden" id="foo" /> </wicket:panel> Martijn On 8/20/06, Hugo Visser <[EMAIL PROTECTED]> wrote: > Hi, > > I'm toying around with wicket some more and I'm working on a kind of editor > application for my led-sign which I have at home. Basically it allows you to > select a font, color, effect and set some text. For the set text part of it > I'd like it to be as simple as clicking on the text, popping up a javascript > "prompt" dialog and then updating the text in the model. Problem is that I > cannot seem to find how I should handle the return value from the prompt so > that the model/page is updated. Any hints how to create my "prompt" > component for this? > > Thanks, > > Hugo > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > -- Download Wicket 1.2.1 now! Embed Wicket components in your portals! -- http://wicketframework.org ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user