Mailing List
Subject: Re: preview form
Isn't the easiest solution to have two separate pages, something along
the lines of
html:form action=reviewOrder
html:textname=orderForm property=custNo
html:select name=orderForm property=productId
select does support readonly , unfortunaely it does not understand
readonly attribute, but only disabled
-Dan
- Original Message -
From: Janice [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 16, 2004 1:03 PM
Subject: preview form
Hi Gang,
I have a form that the
We needed a read only version of a selection list as well, but the need
wasn't apparent until after one of our developers had already finished
writing all the JSP's.
The solution I came up with was to write a subclass of the SelectionTag (and
OptionTag, OptionsTag) to override the functionality
Maybe you can use a read-only text field to display
the selected value of the drop-down on your preview
page. You can get the label of the drop down in your
action class for Preview , and then set the form
bean property for the same. Also, use logic:equal on
your JSP to check for the user action,
Message-
From: Dan Tran [mailto:[EMAIL PROTECTED]
Sent: Monday, February 16, 2004 4:34 PM
To: Struts Users Mailing List
Subject: Re: preview form
select does support readonly , unfortunaely it does not understand
readonly attribute, but only disabled
-Dan
- Original Message -
From
Isn't the easiest solution to have two separate pages, something along the
lines of
html:form action=reviewOrder
html:textname=orderForm property=custNo
html:select name=orderForm property=productId
html:optionsCollection name=productCollection
Hello again,
Thanks for the responses.
What I ended up with was having my original form take the user to the
preview form where all the form elements were disabled, instead of readonly.
It even provides a nice visual clue that the form isn't for input, since all
the fields are slightly greyed
7 matches
Mail list logo