You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ted Steen <te...@gmail.com> on 2005/12/17 12:16:22 UTC
disable an element in a propertyselection.
I can't find a way to disable a single element in a propertyselection.
I was hoping to find an isEnabled() method on the
PropertySelectionModel
am I missing something here?
--
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: disable an element in a propertyselection.
Posted by Ted Steen <te...@gmail.com>.
Oh, you are right.
I just thought that I have seen a disabled option in an optiongroup somewhere..
maybe that was some javascript magic.
On 12/17/05, Patrick Casey <pa...@adelphia.net> wrote:
>
> Does the html spec even allow you to selectively disable one option
> in an optiongroup? My copy of the spec seems to imply that its supposed to
> inherit the disabled property from its containing <Select> rather than each
> <option> havning its own private disabled flag.
>
> <!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
> <!ATTLIST OPTION
> %attrs; -- %coreattrs, %i18n, %events --
> selected (selected) #IMPLIED
> disabled (disabled) #IMPLIED -- unavailable in this context --
> label %Text; #IMPLIED -- for use in hierarchical menus --
> value CDATA #IMPLIED -- defaults to element content --
> >
>
> Note the "unavailable in this context" description of disabled.
>
> --- Pat
>
> > -----Original Message-----
> > From: Ted Steen [mailto:ted.steen@gmail.com]
> > Sent: Saturday, December 17, 2005 3:16 AM
> > To: Tapestry users
> > Subject: disable an element in a propertyselection.
> >
> > I can't find a way to disable a single element in a propertyselection.
> > I was hoping to find an isEnabled() method on the
> > PropertySelectionModel
> > am I missing something here?
> > --
> > /ted
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>
--
/ted
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
RE: disable an element in a propertyselection.
Posted by Patrick Casey <pa...@adelphia.net>.
Does the html spec even allow you to selectively disable one option
in an optiongroup? My copy of the spec seems to imply that its supposed to
inherit the disabled property from its containing <Select> rather than each
<option> havning its own private disabled flag.
<!ELEMENT OPTION - O (#PCDATA) -- selectable choice -->
<!ATTLIST OPTION
%attrs; -- %coreattrs, %i18n, %events --
selected (selected) #IMPLIED
disabled (disabled) #IMPLIED -- unavailable in this context --
label %Text; #IMPLIED -- for use in hierarchical menus --
value CDATA #IMPLIED -- defaults to element content --
>
Note the "unavailable in this context" description of disabled.
--- Pat
> -----Original Message-----
> From: Ted Steen [mailto:ted.steen@gmail.com]
> Sent: Saturday, December 17, 2005 3:16 AM
> To: Tapestry users
> Subject: disable an element in a propertyselection.
>
> I can't find a way to disable a single element in a propertyselection.
> I was hoping to find an isEnabled() method on the
> PropertySelectionModel
> am I missing something here?
> --
> /ted
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org