[richfaces-issues] [JBoss JIRA] (RF-13456) The toggle panel components should allow the user to prevent rendering the active tab when the tab header is clicked.
Brian Leathem (JIRA)
issues at jboss.org
Thu Jan 2 21:31:32 EST 2014
Brian Leathem created RF-13456:
----------------------------------
Summary: The toggle panel components should allow the user to prevent rendering the active tab when the tab header is clicked.
Key: RF-13456
URL: https://issues.jboss.org/browse/RF-13456
Project: RichFaces
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: component-output
Reporter: Brian Leathem
Fix For: 5.0.0.Alpha3
The TogglePanelRenderer currently implicitly adds the tabPanel at active metacomponent to the list of rendered ids when a tab panel is clicked.
See:
https://github.com/richfaces/richfaces/blob/master/framework/src/main/java/org/richfaces/ui/toggle/togglePanel/TogglePanelRenderer.java#L83
{code}
PartialViewContext pvc = context.getPartialViewContext();
pvc.getRenderIds().add(component.getClientId(context) + MetaComponentResolver.META_COMPONENT_SEPARATOR_CHAR + AbstractTogglePanel.ACTIVE_ITEM_META_COMPONENT);
{code}
Rather than adding the meta component id like this, the meta component id should be treated as the default value of the toggle panel's render attribute. specifying a value for the render attribute would override this default value, and require the user to explicitly call for a render of the active item by adding the meta component id to the render attribute.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list