i spent hours and hours trying to figure out why TextField didn't simply have a 'readonly' parameter, which would fix this issue. the answer was pretty simple, and caused me to utter a heartfelt "UGH!" you CAN use readonly. it just gets passed from the TextField thing to the <input> tag.
<t:beaneditform t:id="thingEdit" object="thing" submitLabel="message:button.save" > <t:parameter name="id"> <t:label for="id"/> <t:textfield t:id="id" value="thing.id" readonly="true"/> </t:parameter> </t:beaneditform> It will show up looking editable just like the other fields, but indeed will not be. aash aldana wrote: > > Hi, > > I am using the BeanEditor Form for editing users. For that I would like > to have a "partial" editing form, i.e. I want to protect certain columns > from being edited. > > Example is the id of the object: Once it is created I want to have it > visible but not editable. Using the @NonVisual flag or exlude parameter > of BeanEdit-Form component wouldn't do this, it would just remove the > column from the frontend completely. I had a look at <t:parameter> > overrides but it does not seem to support a read-only flag. > > Generally I would need something more flexible how to tell whether a > parameter is read-only or editable inside the form. For my current > problem the read-only vs. editable depends on roles (i.e. different > roles have different access rights to edit certain fields). > > thanks. > > -- > manuel aldana > ald...@gmx.de > software-engineering blog: http://www.aldana-online.de > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > ----- > manuel aldana > aldana((at))gmx.de > software-engineering blog: http://www.aldana-online.de > -- View this message in context: http://old.nabble.com/-bean-edit-form--make-a-sub-set-of-parameters-visible-but-not-editable-tp23111464p28075272.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org