-
1. Re: Any way to apply same attribute/value to several tags?
lawrieg Feb 25, 2007 2:21 PM (in response to lawrieg)I've browsed through all the HTML spec and had a good Google and have drawn a blank so, unless anyone can inform me otherwise, I'm guessing my options are either to manually add disabled="#{...}" to every component, or else pull that Javascript book of the bookshelf....
-
2. Re: Any way to apply same attribute/value to several tags?
pmuir Feb 25, 2007 5:14 PM (in response to lawrieg)You could easily do this using a container tag (take a look at UIValidateAll)
-
3. Re: Any way to apply same attribute/value to several tags?
kukeltje Feb 26, 2007 5:09 AM (in response to lawrieg)exactely.... myfaces (don't know if it was basic, tomahawk, or sandbox) has this option as well. Look at their example
-
4. Re: Any way to apply same attribute/value to several tags?
atzbert Feb 26, 2007 12:59 PM (in response to lawrieg)If you find the perfect solution for this, i'd be gladly reading about it here... :)
-
5. Re: Any way to apply same attribute/value to several tags?
pmuir Feb 26, 2007 8:33 PM (in response to lawrieg)The perfect solution is as Ronald and I suggested - a container JSF component.
-
6. Re: Any way to apply same attribute/value to several tags?
tony.herstell1 Feb 26, 2007 9:31 PM (in response to lawrieg)example of this?
on the wiki?
I wanted Seam to pick up "required=true" based on whether the annotation for my entity was @NotNull so quite interested in this too as I seem to be writing this markup quite often. -
7. Re: Any way to apply same attribute/value to several tags?
pmuir Feb 26, 2007 9:40 PM (in response to lawrieg)I wanted Seam to pick up "required=true" based on whether the annotation for my entity was @NotNull so quite interested in this too as I seem to be writing this markup quite often.
That's an altogether harder problem (as it involves inspecting the target of the JSF components's value attribute).
But for an example of what Lawrie is after look at UIValidateAll