set a TextField Componet to readonly

2011-10-06 Thread Mehmet . Kaplankiran
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))

AW: set a TextField Componet to readonly

2011-10-06 Thread Mehmet . Kaplankiran
here vehicleTypeModel(position): private IModel vehicleTypeModel(final TBPosition position) { return new Model() { private static final long serialVersionUID = 1L; @Override public Object getObject() { return

Re: set a TextField Componet to readonly

2011-10-06 Thread Mehmet . Kaplankiran
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