Why do you have to specify object as component model to be able to use
it in onSubmit?
-Matej
cowwoc wrote:
> Hi,
>
> I'd like to pass in a non-String model into a Button so I can use it
> for onSubmit() but then the Button text ends up being crap (hashcode of
> the model object). I can workaround this issue using an
> AttributeModifier("value") but this seems like a hack to me that might
> break in future versions. Shouldn't there be a formal hook for doing
> this in Button? I mean, I could always override getModelAsObjectString()
> but there is no guarantee that the code won't use getModel().toString()
> in the future.
>
> Gili
>
>
>
> ------------------------------------------------------------------------
>
> 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