beaneditform set parameter to null if the field is set readonly

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

beaneditform set parameter to null if the field is set readonly

vzhou

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: [hidden email]
For additional commands, e-mail: [hidden email]