You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by ksrijith <ks...@gmail.com> on 2012/02/20 03:45:44 UTC
Is it possible to disable fields in a BeanEditor
Hi,
I have BeanEditor which I'm using to edit an entity object. I'm aware of the
ability of the BeanEditor to display and hide fields using the t:exclude and
t:include attributes. I wanted to know if there is a way I could display
some fields in a readonly mode, basically disabled. I saw a lot of talk in
the forum about adding attribute which would have a list of fields to be
disabled. But I don't think it was ever added.
If anyone has implemented a solution for this can you please suggest me the
same.
Thanks,
Srijith
-----
--
Don't Forget to Rate
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-disable-fields-in-a-BeanEditor-tp5497993p5497993.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org
Re: Is it possible to disable fields in a BeanEditor
Posted by ksrijith <ks...@gmail.com>.
I was able to get this done by using the following:
<p:itemId>
<t:label for="itemId" />
<input t:type="TextField" t:id="itemId" value="item.itemId"
disabled="true" />
</p:itemId>
Here the itemId is the property in the entity that I wanted to disable.
thanks
-----
--
Don't Forget to Rate
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Is-it-possible-to-disable-fields-in-a-BeanEditor-tp5497993p5498018.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org