You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sills, David" <Da...@commerceone.com> on 2001/09/25 14:27:19 UTC
RE: How do you show a html:select's default selection only unti
Just initialize a form before page display with default values and let the
page use it thereafter. It will be updated with the user's entries
automatically (well, more or less). Then use the properties of that form as
the values of the widgets on the page. Great examples in the example app
that comes with Struts.
Best of luck.
David Sills
-----Original Message-----
From: listener@eunum.com [mailto:listener@eunum.com]
Sent: Sunday, September 23, 2001 10:33 AM
Subject: How do you show a html:select's default selection only unti
Hi,
Is it possible to use the "value" property of the html:select tag to display
a default selection but *only until* the
user makes their own choice? The user's selection should be selected
thereafter.
In my form, if I specify html:select's "value" property with a default
selection, this value is always displayed
when the page is loaded, even if the user has previously made a selection on
that page (I'm using multi-page forms).
The form bean is not being resetted so the user's selection is available in
the bean, yet it is still not displayed as the selection.
Can anyone help me with this?
Thanks in advance
Steve
This message was posted using eunum <http://www.cn.eunum.com/>
To interact with a real-time, threaded interface to this e-mail list,
clickthe link below:
struts-user@jakarta.apache.org <http://www.cn.eunum.com/homestead/62.html>