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

Re: set a TextField Componet to readonly

2011-10-06 Thread splitshade
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

AW: set a TextField Componet to readonly

2011-10-06 Thread Mehmet . Kaplankiran
] Gesendet: Donnerstag, 6. Oktober 2011 12:54 An: users@wicket.apache.org 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

Re: set a TextField Componet to readonly

2011-10-06 Thread Mehmet . Kaplankiran
: splitshade [mailto:martin.dil...@googlemail.com] Gesendet: Donnerstag, 6. Oktober 2011 12:54 An: users@wicket.apache.org 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

Re: set a TextField Componet to readonly

2011-10-06 Thread Pranav kacholia
input type=text readonly=true wicket:id=whatever / Works in most major browsers ... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/set-a-TextField-Componet-to-readonly-tp3877659p3879930.html Sent from the Users forum mailing list archive at Nabble.com