myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald Holl <ger...@holl.co.at>
Subject t:collapsible panel not working properly in 1.1.5
Date Thu, 01 Mar 2007 10:10:36 GMT
Hello,

there seems to be a bug with the t:collapsiblePanel and tomahawk 1.1.5
Consider the following example:

<t:collapsiblePanel var="collapsed" value="#{handler.collapsed}">
   <f:facet name="header">
     <t:headerLink immediate="true">
       <h:outputText value=" bla"/>
     </t:headerLink>
   </f:facet>
   <h:panelGroup>
     <h:inputText id="input1" value="#{handler.input1}" required="true"/>
   </h:panelGroup>
</t:collapsiblePanel>


<t:collapsiblePanel var="collapsed" value="#{handler.collapsed}">
   <f:facet name="header">
     <t:headerLink immediate="true">
       <h:outputText value=" bla2"/>
     </t:headerLink>
   </f:facet>
   <h:panelGroup>
     <h:inputText id="input2" value="#{handler.input2}" required="true"/>
   </h:panelGroup>
</t:collapsiblePanel>


In the first panel the inputText component has the required attribute 
set to true. No value is entered.
Then I expand the second panel and a error occurs because the inputText 
component from the first panel has no value.
This should not happen because the t:headerLink has its immediate 
attribute set to true, thus validation phase has to be omitted.

cheers,
Gerald

Mime
View raw message