better encapsulation - it is the component's job to do the conversion in that case imho

-igor


On 11/6/06, Erik Brakkee < [EMAIL PROTECTED]> wrote:
On 11/3/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
look into how the Palette is built, it does just that. or if you want you can use ajax.

It is working now. I am using a slightly different approach though. Instead of overriding updateModel(), I use a property model on the hidden form field. When the setter is called, I can simply access the value set by the client-side _javascript_ in the hidden form field. 

What is the reason you chose to override updateModel() for the Palette? Does this approach have any specific advantages?

Cheers
  Erik



-igor


On 11/3/06, Erik Brakkee < [EMAIL PROTECTED]> wrote:
Hi,


I have made custom component which uses some _javascript_. Now my question is how to pass on information from _javascript_ to the wicket component on the server side. I can imagine things like adding a hidden form field with a specific id based on the wicket id of the custom component in question, which then retrieves this information on the serverside by examining the request.

Any ideas or pointers on how to do something like this?

Cheers
  Erik


-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user




-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to