Re: Using one component's value as input for the other

2011-04-14 Thread Martin Grigorov
If you use Wicket 1.5 then yet another approach is to use the events: http://wicketstuff.org/wicket/events/ On Thu, Apr 14, 2011 at 3:49 AM, Michael O'Cleirigh michael.ocleir...@rivulet.ca wrote: Another way is to pass down a common IModelString into both panels from a shared parent. Or to

Using one component's value as input for the other

2011-04-13 Thread Reinout van Schouwen
Hello all, This would seem like a simple question but I've been tearing my hair out all evening about it. I have one form component, a wiquery autocomplete textfield.Once the user has entered a value in it I want the value to appear in a label in a different panel. My approach was to use an

Re: Using one component's value as input for the other

2011-04-13 Thread James Carman
You just use a normal reference if you can. Or, use a more listenery approach. On Wed, Apr 13, 2011 at 7:19 PM, Reinout van Schouwen rein...@gmail.com wrote: Hello all, This would seem like a simple question but I've been tearing my hair out all evening about it. I have one form component,

Re: Using one component's value as input for the other

2011-04-13 Thread Michael O'Cleirigh
Another way is to pass down a common IModelString into both panels from a shared parent. Or to create an abstract readonly model on the label that will get the model object from the text field. e.g. Shared model from above. In Parent Component: IModelStringfieldModel = new ModelString();