Skip to content

Commit

Permalink
Test Fix for Accordion in a Form (#873).
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCoder4eu committed Oct 2, 2017
1 parent 3edf34d commit 665fb64
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
if (_child instanceof Panel && ((Panel) _child).isCollapsible()) {
Panel _childPane = (Panel) _child;
_childPane.setAccordionParent(accordionClientId);
String childPaneClientId = _childPane.getClientId();
if (_childPane.getClientId().contains(":")) {
String[] parts = _childPane.getClientId().split(":");
if (parts.length == 2)
childPaneClientId = parts[1];
}
if (null != expandedIds && expandedIds.contains(_childPane.getClientId()))
_childPane.setCollapsed(false);
else
Expand Down

0 comments on commit 665fb64

Please sign in to comment.