Hello,
I would like to create a single page markup that I share for editing
and read-only views.
For example, when in read-only mode I might display a label and in
edit mode a TextField.
I know I can use a textfield and set the enabled behavior to false,
but the visual display isn't very appealing in that case and don't
want to decorate it using css. Typically the value I display in read-
only mode for the field is a bit different than the edited value in
edit mode.
I was hoping I could define a SPAN tag in my markup and then either
render a label or textfield depending upon the mode I was in, either
read-only or edit. Unfortunately this doesn't work because a
TextField has to be rendered using an INPUT tag.
One thing I thought about was defining two fields, one for the edit
field and one for the read-only field and then control their
visibility depending upon the mode I was in, but that isn't very
elegant.
My main goal is to avoid having to create separate markup for the
editor and read-only view.
Any suggestions?
J.D.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]