You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zsolt Koppany <zk...@intland.com> on 2004/07/02 17:44:23 UTC

Why
Hi,

I would like to use <html:select for a readonly property but cannot find the
readonly property. What can I do?

I use struts-1.1.

Zsolt



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


RE: Why Posted by Zsolt Koppany <zk...@intland.com>.
Yes exactly and this is the reason why I would like to use reanonly and not
disabled.

Zsolt

> Just a note that there are some significant differences between
> disabled and
> read-only controls, even if a browser renders them with the same visual
> appearance. For example, disabled controls are never included in form
> submissions.
>
> Quoting Henrique VIECILI <vi...@softplan.com.br>:
>
> > I think it will work:
> >
> > <select id="xxx" name="xxx" disabled>
> >     <option value="XX" selected> XX </option>
> > </select>
> >
> > or in javascript:
> >
> > document.getElementById("xxx").disabled = 'true';
> >
> > Henrique Viecili
> >   ----- Original Message -----
> >   From: Kris Schneider
> >   To: Struts Users Mailing List
> >   Sent: Friday, July 02, 2004 1:16 PM
> >   Subject: Re: Why <html:select ... doesn support readonly attribute?
> >
> >
> >   If it's not in the HTML 4 spec (which, in this case, it
> isn't), it's not
> >   supported by the Struts taglibs:
> >
> >   http://www.w3.org/TR/html4/interact/forms.html#h-17.6
> >
> >   Quoting Zsolt Koppany <zk...@intland.com>:
> >
> >   > Hi,
> >   >
> >   > I would like to use <html:select for a readonly property
> but cannot find
> > the
> >   > readonly property. What can I do?
> >   >
> >   > I use struts-1.1.
> >   >
> >   > Zsolt
> >
> >   --
> >   Kris Schneider <ma...@dotech.com>
> >   D.O.Tech       <http://www.dotech.com/>
>
> --
> Kris Schneider <ma...@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
>



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


Re: Why Posted by Kris Schneider <kr...@dotech.com>.
Just a note that there are some significant differences between disabled and
read-only controls, even if a browser renders them with the same visual
appearance. For example, disabled controls are never included in form
submissions.

Quoting Henrique VIECILI <vi...@softplan.com.br>:

> I think it will work:
> 
> <select id="xxx" name="xxx" disabled>
>     <option value="XX" selected> XX </option>
> </select>
> 
> or in javascript:
> 
> document.getElementById("xxx").disabled = 'true';
> 
> Henrique Viecili
>   ----- Original Message ----- 
>   From: Kris Schneider 
>   To: Struts Users Mailing List 
>   Sent: Friday, July 02, 2004 1:16 PM
>   Subject: Re: Why <html:select ... doesn support readonly attribute?
> 
> 
>   If it's not in the HTML 4 spec (which, in this case, it isn't), it's not
>   supported by the Struts taglibs:
> 
>   http://www.w3.org/TR/html4/interact/forms.html#h-17.6
> 
>   Quoting Zsolt Koppany <zk...@intland.com>:
> 
>   > Hi,
>   > 
>   > I would like to use <html:select for a readonly property but cannot find
> the
>   > readonly property. What can I do?
>   > 
>   > I use struts-1.1.
>   > 
>   > Zsolt
> 
>   -- 
>   Kris Schneider <ma...@dotech.com>
>   D.O.Tech       <http://www.dotech.com/>

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

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


Re: Why Posted by Henrique VIECILI <vi...@softplan.com.br>.
I think it will work:

<select id="xxx" name="xxx" disabled>
    <option value="XX" selected> XX </option>
</select>

or in javascript:

document.getElementById("xxx").disabled = 'true';

Henrique Viecili
  ----- Original Message ----- 
  From: Kris Schneider 
  To: Struts Users Mailing List 
  Sent: Friday, July 02, 2004 1:16 PM
  Subject: Re: Why <html:select ... doesn support readonly attribute?


  If it's not in the HTML 4 spec (which, in this case, it isn't), it's not
  supported by the Struts taglibs:

  http://www.w3.org/TR/html4/interact/forms.html#h-17.6

  Quoting Zsolt Koppany <zk...@intland.com>:

  > Hi,
  > 
  > I would like to use <html:select for a readonly property but cannot find the
  > readonly property. What can I do?
  > 
  > I use struts-1.1.
  > 
  > Zsolt

  -- 
  Kris Schneider <ma...@dotech.com>
  D.O.Tech       <http://www.dotech.com/>

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

Re: Why Posted by Kris Schneider <kr...@dotech.com>.
If it's not in the HTML 4 spec (which, in this case, it isn't), it's not
supported by the Struts taglibs:

http://www.w3.org/TR/html4/interact/forms.html#h-17.6

Quoting Zsolt Koppany <zk...@intland.com>:

> Hi,
> 
> I would like to use <html:select for a readonly property but cannot find the
> readonly property. What can I do?
> 
> I use struts-1.1.
> 
> Zsolt

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

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