:11
An: users@myfaces.apache.org
Betreff: Re: (Validation) required=true should change my css style of
inputbox e.g. background:red
Yep, that's the simplest solution. If you don't want to emit the
style/styleClass value from a backing bean you can also use a variant such as
h:inputText
Hello,
i was wondering how
to change the background of an inputbox by simply changing the css style to e.g.
background:red. when a required="true" - validation was set.
I was trying several
possibilties but no one seems to fit my needs and i am just right nowsome
kind of frustrated
Hi,
why don't you simply define two inputfields and render only one like this:
...
t:inputText rendered=#{the EL-expression you used in your
required-attribute or simply true or false} required=true
styleClass=red /
t:inputText rendered=#{! the EL-expression you used in your
Nachricht-
Von: Christian Bohn [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 15. März 2006 15:50
An: MyFaces Discussion
Betreff: Re: (Validation) required=true should change my css style of
inputbox e.g. background:red
ooops, sorry, I think, I read your question too fast and misunderstood
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 8:46 AM
To: MyFaces Discussion
Subject: Re: (Validation) required=true should change my css style of
inputbox e.g. background:red
Hi,
why don't you simply define two inputfields and render only one like
this:
...
t:inputText rendered
: Mittwoch, 15. März 2006 15:50
An: MyFaces Discussion
Betreff: Re: (Validation) required=true should change my css style of
inputbox e.g. background:red
ooops, sorry, I think, I read your question too fast and misunderstood it.
...
so long
--
Gerald Muellan
Schelleingasse 2/11
1040 Vienna
-
From: Christian Bohn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 8:46 AM
To: MyFaces Discussion
Subject: Re: (Validation) required=true should change my css style of
inputbox e.g. background:red
Hi,
why don't you simply define two inputfields and render only one like
=#{myBean.myStyle}/
or
h:inputText ... style=#{myBean.myStyle}/
- Brendan
-Original Message-
From: Christian Bohn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 15, 2006 8:46 AM
To: MyFaces Discussion
Subject: Re: (Validation) required=true should change my css style of
inputbox e.g
8 matches
Mail list logo