You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Stefaan Dutry <st...@gmail.com> on 2022/08/28 09:12:09 UTC

select tag, attributes: cssClass, cssErrorClass, cssStyle, cssErrorStyle

For the select tag, in the documentation, I see that it has the following
attributes:
-) cssClass
-) cssErrorClass
-) cssStyle
-) cssErrorStyle

However, when I look at the templating file (select.ftl) I can't find where
those attributes are used.

I was expecting there to be an include of css.ftl inside the opening tag of
the select to add these attributes.

Is this intentional?

-) https://struts.apache.org/tag-developers/select-tag
-)
https://github.com/apache/struts/blob/master/core/src/main/resources/template/simple/select.ftl

Kind regards,
Stefaan Dutry

Re: select tag, attributes: cssClass, cssErrorClass, cssStyle, cssErrorStyle

Posted by Lukasz Lenart <lu...@apache.org>.
cssClass and cssStyle should be in the basic theme as these are
standard HTML attributes


Cheers
Łukasz

niedz., 28 sie 2022 o 11:16 Stefaan Dutry <st...@gmail.com> napisał(a):
>
> I guess i overlooked the expandTheme include, so ignore this question
>
> Op zo 28 aug. 2022 om 11:12 schreef Stefaan Dutry <st...@gmail.com>:
>
> > For the select tag, in the documentation, I see that it has the following
> > attributes:
> > -) cssClass
> > -) cssErrorClass
> > -) cssStyle
> > -) cssErrorStyle
> >
> > However, when I look at the templating file (select.ftl) I can't find
> > where those attributes are used.
> >
> > I was expecting there to be an include of css.ftl inside the opening tag
> > of the select to add these attributes.
> >
> > Is this intentional?
> >
> > -) https://struts.apache.org/tag-developers/select-tag
> > -)
> > https://github.com/apache/struts/blob/master/core/src/main/resources/template/simple/select.ftl
> >
> > Kind regards,
> > Stefaan Dutry
> >

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


Re: select tag, attributes: cssClass, cssErrorClass, cssStyle, cssErrorStyle

Posted by Stefaan Dutry <st...@gmail.com>.
I guess i overlooked the expandTheme include, so ignore this question

Op zo 28 aug. 2022 om 11:12 schreef Stefaan Dutry <st...@gmail.com>:

> For the select tag, in the documentation, I see that it has the following
> attributes:
> -) cssClass
> -) cssErrorClass
> -) cssStyle
> -) cssErrorStyle
>
> However, when I look at the templating file (select.ftl) I can't find
> where those attributes are used.
>
> I was expecting there to be an include of css.ftl inside the opening tag
> of the select to add these attributes.
>
> Is this intentional?
>
> -) https://struts.apache.org/tag-developers/select-tag
> -)
> https://github.com/apache/struts/blob/master/core/src/main/resources/template/simple/select.ftl
>
> Kind regards,
> Stefaan Dutry
>