Re: Mutually dependent component and how to update a textfield when a link is clicked

2009-04-22 Thread Liam Clarke-Hutchinson
Thanks John, that page was very useful. :) On Wed, Apr 22, 2009 at 2:57 AM, John Krasnay wrote: > Hi Liam, > > Check out this page: > > http://cwiki.apache.org/WICKET/conditional-validation.html > > It has a bunch of recipes for interactions between components, e.g. > requiring a text field only

Re: Mutually dependent component and how to update a textfield when a link is clicked

2009-04-21 Thread John Krasnay
Hi Liam, Check out this page: http://cwiki.apache.org/WICKET/conditional-validation.html It has a bunch of recipes for interactions between components, e.g. requiring a text field only if a checkbox is checked or a certain submit button was used. Sounds similar to what you need to do. jk On Tu

Re: Mutually dependent component and how to update a textfield when a link is clicked

2009-04-21 Thread Jeremy Thomerson
As far as sharing models - just make sure both components' model reads from the same backing object - be it the component itself or a domain object. As far as submitting the value - basically there are two ways - just like if you had a plain HTML page - form submission or javascript that appends t

Mutually dependent component and how to update a textfield when a link is clicked

2009-04-21 Thread Liam Clarke-Hutchinson
Hi, Come across a few situations where there are two components are reliant on each other, say a checkbox's model value that a textfield uses in its isDisabled method, and the textfield needs the abstractCheckboxModel to re-evaluate a particular value on a given response. For the first bit, we te