myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 2melo <amo...@gmail.com>
Subject Dynamic collapsiblePanel
Date Tue, 12 Aug 2008 10:15:24 GMT

Hi,

I need to create a dynamic collapsiblePanel for a list returned, I got the
collapsible to display on my page but the problem is that it doesn't expand.

This is the code I used, I used the tomahawk dataList and collapsiblePanel:

<t:dataList id="dtLst" var="vars" value="#{bean.xxLst}"
rowIndexVar="lstCnt">
	<t:collapsiblePanel id="collapsId" var="collapse" title="Collapsible
#{lstCnt + 1}">
		<f:facet name="header">
			<t:div>
				<t:headerLink immediate="true">
					<h:graphicImage alt="minusImage" url="../../img/minus.jpg"
rendered="#{!collapse}" />
					<h:graphicImage alt="plusImage" url="../../img/plus.jpg"
rendered="#{collapse}" />
					<h:outputText value="Collapsible #{lstCnt + 1}" />
				</t:headerLink>							
			</t:div>
		</f:facet>
		<h:panelGrid width="100%" frame="border" border="0" columns="4" 
				 cellpadding="2" cellspacing="2" align="left">		
				<h:outputText value="Some Data 1:"
						     style="font-weight: bold"></h:outputText>
					<h:outputText value="#{vars.poperty1}"/>									
					<h:outputText value="Some Data 2:" style="font-weight:
bold"></h:outputText>
					<h:outputText value="#{vars.property2}"/>
		</h:panelGrid>
	</t:collapsiblePanel>
	<t:htmlTag value="br" />
</t:dataList>

How can I get the collapsiblePanel to expand/collapse?

Thanks
-- 
View this message in context: http://www.nabble.com/Dynamic-collapsiblePanel-tp18941379p18941379.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message