You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by mulmer <ma...@hotmail.com> on 2006/12/28 20:29:53 UTC
t:message and inputText CSS style
Is there a way to control the style of associated h:inputText when the input
component has messages associated with it?
Current code looks like such:
<h:outputLabel for="criteriaOfferNumber" value="Ofr Nbr: "/>
<h:inputText id="criteriaOfferNumber" value="#{ui.data.offerNumber}"
styleClass="formTextBox">
<f:converter converterId="javax.faces.Integer"/>
<t:message for="criteriaOfferNumber" tooltip="true" detailFormat="*"
summaryFormat="{1} Number Required." showSummary="false" showDetail="true"
styleClass="formError"/>
<a4j:support event="onblur"
reRender="requestApprovalCriteriaPanelGroup" />
</h:inputText>
I would like to control the h:inputText with ID="criteriaOfferNumber"
syleClass based on whether or not the t:message for this same component has
errors.
TIA
Mark
--
View this message in context: http://www.nabble.com/t%3Amessage-and-inputText-CSS-style-tf2891826.html#a8079084
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: t:message and inputText CSS style
Posted by mulmer <ma...@hotmail.com>.
Thanks...thats what I was looking for...figured it was out there but could
not find it.
--
View this message in context: http://www.nabble.com/t%3Amessage-and-inputText-CSS-style-tf2891826.html#a8080149
Sent from the MyFaces - Users mailing list archive at Nabble.com.
Re: t:message and inputText CSS style
Posted by Jeff Bischoff <jb...@klkurz.com>.
Mulmer,
This sounds a lot like the TOMAHAWK-826 request. Maybe have a look at
that JIRA issue and add your own comments.
[1] http://issues.apache.org/jira/browse/TOMAHAWK-826
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
mulmer wrote:
> Is there a way to control the style of associated h:inputText when the input
> component has messages associated with it?
>
> Current code looks like such:
>
> <h:outputLabel for="criteriaOfferNumber" value="Ofr Nbr: "/>
> <h:inputText id="criteriaOfferNumber" value="#{ui.data.offerNumber}"
> styleClass="formTextBox">
> <f:converter converterId="javax.faces.Integer"/>
> <t:message for="criteriaOfferNumber" tooltip="true" detailFormat="*"
> summaryFormat="{1} Number Required." showSummary="false" showDetail="true"
> styleClass="formError"/>
> <a4j:support event="onblur"
> reRender="requestApprovalCriteriaPanelGroup" />
> </h:inputText>
>
>
> I would like to control the h:inputText with ID="criteriaOfferNumber"
> syleClass based on whether or not the t:message for this same component has
> errors.
>
>
> TIA
> Mark