The information for
t:collapsiblePanel is missing information for the 'collapsed'
attribute.
In this simple
example:
<h:form
id="tbForm">
<t:collapsiblePanel id="parentPanel" collapsed="false">
<f:facet name="header">
<t:div style="width:500px;background-color:#CCCCCC;">
<h:outputText value="Person"/>
</t:div>
</f:facet>
<f:facet name="closedContent">
<h:outputText value="closed"/>
</f:facet>
<h:panelGrid>
<h:inputText id="search" size="30" maxlength="30"/>
</h:panelGrid>
</t:collapsiblePanel>
</h:form>
<t:collapsiblePanel id="parentPanel" collapsed="false">
<f:facet name="header">
<t:div style="width:500px;background-color:#CCCCCC;">
<h:outputText value="Person"/>
</t:div>
</f:facet>
<f:facet name="closedContent">
<h:outputText value="closed"/>
</f:facet>
<h:panelGrid>
<h:inputText id="search" size="30" maxlength="30"/>
</h:panelGrid>
</t:collapsiblePanel>
</h:form>
Generates the
following HTML:
<form
id="tbForm" method="post"
action=""
enctype="application/x-www-form-urlencoded">
<div><a id="tbForm:parentPanelToggleCollapsed" href="" >ν</a>
<div><table>
<tbody>
<tr>
<td><input id="tbForm:search" type="text" name="tbForm:search" value="" maxlength="30" size="30" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="..." />
<input type="hidden" name="tbForm" value="tbForm" />
<input type="hidden" name="tbForm:_idcl" />
<script type="text/_javascript_">
<!--
function clearFormHiddenParams_tbForm(curFormName) {
var curForm = document.forms[curFormName];
curForm.elements['tbForm:_idcl'].value = null;
}
//-->
</script>
</form>
<div><a id="tbForm:parentPanelToggleCollapsed" href="" >ν</a>
<div><table>
<tbody>
<tr>
<td><input id="tbForm:search" type="text" name="tbForm:search" value="" maxlength="30" size="30" /></td>
</tr>
</tbody>
</table>
</div>
</div>
<input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="..." />
<input type="hidden" name="tbForm" value="tbForm" />
<input type="hidden" name="tbForm:_idcl" />
<script type="text/_javascript_">
<!--
function clearFormHiddenParams_tbForm(curFormName) {
var curForm = document.forms[curFormName];
curForm.elements['tbForm:_idcl'].value = null;
}
//-->
</script>
</form>
1.) Why does the
link always displayed with 'ν'?
2.) Click on this
link submits the page, but does not collapse the div or displays the
h:outputText in the closedContent h:facet?
Any suggestions
would be greatly appreciated.
I am using the SUN
JSF 1.1 api and impl jars with the tomahawk.jar.
Thanks,
--Todd

