here vehicleTypeModel(position):
private IModel vehicleTypeModel(final TBPosition position)
{
return new Model()
{
private static final long serialVersionUID = 1L;
@Override
public Object getObject()
{
return position.getVehicleType();
}
@Override
public void setObject(final Object object)
{
position.setVehicleType((String) object);
}
};
}
-----Ursprüngliche Nachricht-----
Von: splitshade [mailto:[email protected]]
Gesendet: Donnerstag, 6. Oktober 2011 12:54
An: [email protected]
Betreff: Re: set a TextField Componet to readonly
The interesting part is not visible in your source, the Method:
vehicleTypeModel(position)
You could use some kind of readOnlyModel here -> Please check
ReadOnlyPropertyModel for example.
regards
Martin
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/set-a-TextField-Componet-to-readonly-tp3877659p3877723.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]