Hi Johan,
At some point in time, Johan Compagner wrote:
> > to combine the 2 as one value (because the can't et the min and max
> > inside the IntegerRange object?) You could wrap the 2 text fields in a
> > formcomponent and use only a MarkupContainer for those textfields (so
> > not really textfields)
> >
> > So that from the form point of view there is only one formcomponent
> > touching the IntegerRange object and that one can do convertValue() to
> > convert it to a IntegerRange object and test it then and if that all
> > is ok the converted input will be pushed to the model.
On Wed, 2006-05-17 at 09:02 +0300, Pekka Enberg wrote:
> Sounds good. So now that I have use FormComponent, I suppose I can't use
> a HTML template but have to do the rendering in
> Component.onComponentTag() myself?
Hmm, actually, I don't think I quite understood what you're suggesting.
I can't do getInput() for WebMarkupContainer, so I think I really need
to use the TextField component for minimum and maximum value. Or can I
somehow do getInputAsArray() for the IntegerRange FormComponent you're
suggesting to retrieve input for _two_ fields? I don't see how that
would work as getInputName() works for just one form component AFAICT.
So how do I get the input from the two text fields?
Thanks,
Pekka
-------------------------------------------------------
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