Ok, in my case, the situation is exactly the same since the property
model refers to a property of the component itself and not to that of
some model provided by the user so I still have encapsulation.

Nevertheless, I will keep updateModel in mind. It is a nice method of
intercepting calls to the model in case the model itself is provided
by a user of the component.

On 11/6/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> 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