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.

Reply via email to