You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Todd Patrick <To...@dtn.com> on 2006/05/03 22:24:18 UTC
t:collapsiblePanel tlddoc is not current and simple example not working?
At: http://myfaces.apache.org/tomahawk/tlddoc/index.html
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>
Generates the following HTML:
<form id="tbForm" method="post"
action="/transactionbrowser/transactionbrowser/tbrowser.jsp;jsessionid=f
be7604c8d74bffffffffb4eedb8c1401b9c"
enctype="application/x-www-form-urlencoded">
<div><a id="tbForm:parentPanelToggleCollapsed" href="#"
onclick="clearFormHiddenParams_tbForm('tbForm');document.forms['tbForm']
['tbForm:_idcl'].value='tbForm:parentPanelToggleCollapsed';
document.forms['tbForm'].submit(); return false;">ν</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