You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by vzhou <vz...@gmail.com> on 2008/07/06 21:10:51 UTC

beaneditform set parameter to null if the field is set readonly

Hi, All,

I'm using a beaneditform with some parameters for display only (not
update-able):

<t:beaneditform t:id="alarmEdit" model="alarmEditModel"> 
				<t:parameter name="severityEnum">
					<t:label for="severityEnum"></t:label>
					<t:textfield t:id="severityEnum" t:value="alarmEdit.severityEnum"
readonly="true"/>
				</t:parameter>

However when I tried to read back the parameter in method:
	public Object onSubmitFromAlarmEdit()

All the readonly parameters were set to null or 0 (for integer).  Also all
the hidden parameters (marked by t:beaneditform remove) were not carried
over either.  That causes problem I want to add some rules depending on
those read-only parameters when user submit the bean edit form.

Any answers are greatly appreciated.
-victor
-- 
View this message in context: http://www.nabble.com/beaneditform-set-parameter-to-null-if-the-field-is-set-readonly-tp18304695p18304695.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