Hi,

On Mon, May 6, 2013 at 2:48 AM, Bruno Moura <[email protected]> wrote:

> I'm trying to retrieve a value of a TextField as is showed bellow:
>
>     item.add(new TextField("description", new Model[String]() {
>         override def getObject(): String = {
>             customer.description = ??? // I don't know how I can get the
> value here
>             return ...
>         }
>     }))
>
> I have this TextField inserted in a ListView and I need to use the
> TextField value to set it in a property model.
>


item.add(new TextFeild[String]("description", new
PropertyModel(objectWithDescription, "description"))

This way you can read the description with:
objectWithDescription.getDescription()


>
> Thanks
>
> Bera
>



-- 
Martin Grigorov
Wicket Training & Consulting
http://jWeekend.com <http://jweekend.com/>

Reply via email to