我在其中一个选项卡中使用accordionPanel时遇到问题,无法展开accordionItem以显示其内容。在选项卡面板外工作良好。有人能帮忙吗?我想它可能是带有嵌套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>
提前感谢
我已经测试了您的代码,它可以工作。以上代码是否在内
<tr:form>
标签?
我在jsf1.2和trinidad 1.2.14 上