我在其中一个标签中使用accordionPanel时遇到问题,我无法展开手风琴项目以显示其内容。在tabbedPanel之外很好地工作。有人可以帮忙吗?我想它可能是嵌套的showDetailItems,但即使每个组件都有自己的Id,它仍然无效。
以下是我遇到问题的代码:
<tr:panelTabbed id="pt1">
<tr:showDetailItem text="Tab 1" id="sdiT1">
<tr:panelHeader text="Header 1" />
<tr:panelAccordion discloseNone="true" id="pa1">
<tr:showDetailItem text="Accordion 1" id="sdiA1">
<tr:panelHeader text="Header 1" />
</tr:showDetailItem>
<tr:showDetailItem text="Accordion 2" id="sdiA2">
<tr:panelHeader text="Header 2" />
</tr:showDetailItem>
<tr:showDetailItem text="Accordion 3" id="sdiA3">
<tr:panelHeader text="Header 3" />
</tr:showDetailItem>
</tr:panelAccordion>
</tr:showDetailItem>
<tr:showDetailItem text="Tab 2" id="sdiT2">
<tr:panelHeader text="Header 2" />
</tr:showDetailItem>
<tr:showDetailItem text="Tab 3" id="sdiT3">
<tr:panelHeader text="Header 3" />
</tr:showDetailItem>
<tr:showDetailItem text="Tab 4" id="sdiT4">
<tr:panelHeader text="Header 4" />
</tr:showDetailItem>
<tr:showDetailItem text="Tab 5" id="sdiT5">
<tr:panelHeader text="Header 5" />
</tr:showDetailItem>
</tr:panelTabbed>
提前致谢
答案 0 :(得分:1)
我已经测试了你的代码并且它有效。上面的代码是否在
中<tr:form>
标签?
我在jsf1.2和trinidad 1.2.14