struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nitin M. Mandolkar" <nitinmandol...@gmail.com>
Subject Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.
Date Thu, 02 Nov 2006 12:58:28 GMT
Is any on know other logic apart from this, then please share with us.

ni3

On 11/2/06, Nitin M. Mandolkar <nitinmandolkar@gmail.com> wrote:
> i used same logic, i.e. Hidden form field.
>
> ntin
>
> On 11/2/06, Puneet Lakhina <puneet.lakhina@gmail.com> wrote:
> > On 11/2/06, Gareth Evans <gareth.evans@msoft.co.uk> wrote:
> > >
> > > You could add an onchange function that sets the selected item back to the
> > > orginal item.
> >
> >
> > I wouldnt do that..imagine yourself as the user with this kind of
> > javascript.
> >
> > Gareth
> > >
> > > Rafael Nami wrote:
> > > > You can choose to maintain the value from this select in a hidden field,
> > > > that will be submitted with your page. I was used to use another
> > > approach,
> > > > making the select enabled in the submit, but it was a great meal to
> > > > hackers.
> > > >
> > > > 2006/11/1, Mississippi John Hurt <johnhurt@gmail.com>:
> > > >>
> > > >> Help, I can make <html:text> readonly by setting readonly="true"
which
> > > >> works.
> > > >> <html:select> has no readonly attribute, only a disabled. If
I use
> > > >> disabled
> > > >> attribute, then the value of the select is no longer recognized and
my
> > > >> form
> > > >> validation says its required.  How can I make the <html:select>
> > > disabled
> > > >> or
> > > >> readonly while keeping the values it has passing back to the action
> > > when
> > > >> form is submitted. Thanks.
> > > >>
> > > >>
> > > >
> > >
> > > --
> > > Gareth Evans
> > >
> > > Senior Developer
> > >
> > > MSoft eSolutions Limited
> > > Technology Centre
> > > Inward Way
> > > Rossmore Business Park
> > > Ellesmere Port
> > > Cheshire
> > > CH65 3EN
> > >
> > > --
> > > Tel:    +44 (0)870 0100 704
> > > Fax:    +44 (0)870 9010 705
> > > E-Mail: gareth@msoft.co.uk
> > > Web:    www.msoft.co.uk
> > >
> > > ----------------------------------------------
> > > Terms:
> > > Please note that any prices quoted within this e-mail are subject to VAT.
> > > All program details and code described in this e-mail are subject to
> > > copyright (c) of MSoft eSolutions Limited and remain the intellectual
> > > property of MSoft eSolutions Limited.
> > > Any proposal or pricing information contained within this e-mail are
> > > subject to MSoft eSolutions' Terms and Conditions
> > > ----------------------------------------------
> > > Disclaimer:
> > > This message is intended only for use of the addressee. If this message
> > > was sent to you in error, please notify the sender and delete this
> > > message. MSoft eSolutions Limited cannot accept responsibility for
> > > viruses,
> > > so please scan attachments. Views expressed in this message do not
> > > necessarily reflect those of MSoft eSolutions Limited who will not
> > > necessarily be bound by its contents.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> >
> > --
> > Puneet
> >
> >
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message