Details
-
Type: Improvement
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.2
-
Fix Version/s: EE-4.2.0.GA
-
Component/s: ACE-Components
-
Labels:None
-
Environment:jsf2 ace accordion icecore
-
Assignee Priority:P2
-
ICEsoft Forum Reference:
Description
The current ace:accordion component does not allow for any other children other than ace:accordionPane. In order to use the icecore:repeat component (new), the renderer code would need to be modified to allow this type of markup:-
{code}
<ace:accordion id="accordion">
<icecore:repeat id="repeat" value="#{mainMenuBean.subMenuList}" var="SubMenu" >
<ace:accordionPane >
#{SubMenu.name}
</ace:accordionPane>
</icecore:repeat>
</ace:accordion>
{code}
{code}
<ace:accordion id="accordion">
<icecore:repeat id="repeat" value="#{mainMenuBean.subMenuList}" var="SubMenu" >
<ace:accordionPane >
#{SubMenu.name}
</ace:accordionPane>
</icecore:repeat>
</ace:accordion>
{code}
Factored out accordion pane renderer to allow the accordion component to render any type of child. Also modified the AccordionRenderer to render its children at the right location in the markup.