I want to set a TextField Componet to readonly. I have overriden isEnabled and
onDisabled methods. but it did'nt work
private TextField vehicleTypeField(final String id, final TBPosition
position)
{
final TextField field = new TextField(id, vehicleTypeModel(position))
here vehicleTypeModel(position):
private IModel vehicleTypeModel(final TBPosition position)
{
return new Model()
{
private static final long serialVersionUID = 1L;
@Override
public Object getObject()
{
return
Hi,
ReadOnlyPropertyModel will be problematic, because than the TextFiled always
has to be readonly. But I do have the need that the TextFiled only has to be
readonly in the case of vehicleType = E.
Please find again the code:
private TextField vehicleTypeField(final String id, final