Author: ppitonak(a)redhat.com
Date: 2010-11-08 10:33:26 -0500 (Mon, 08 Nov 2010)
New Revision: 19993
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
Log:
https://jira.jboss.org/browse/RFPL-675
* sample fixed (removed hidden attributes)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java 2010-11-08
14:22:25 UTC (rev 19992)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichTogglePanelBean.java 2010-11-08
15:33:26 UTC (rev 19993)
@@ -54,14 +54,13 @@
logger = LoggerFactory.getLogger(getClass());
logger.debug("initializing bean " + getClass().getName());
- attributes = Attributes.getUIComponentAttributes(HtmlTogglePanel.class,
getClass());
+ attributes = Attributes.getUIComponentAttributes(HtmlTogglePanel.class,
getClass(), false);
attributes.setAttribute("activeItem", "item1");
attributes.setAttribute("rendered", true);
// TODO has to be tested in another way
attributes.remove("itemChangeListener");
- attributes.remove("itemChangeListeners");
}
public Attributes getAttributes() {
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-11-08
14:22:25 UTC (rev 19992)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richTogglePanel/simple.xhtml 2010-11-08
15:33:26 UTC (rev 19993)
@@ -58,43 +58,29 @@
<rich:togglePanel id="richTogglePanel"
activeItem="#{richTogglePanelBean.attributes['activeItem'].value}"
bypassUpdates="#{richTogglePanelBean.attributes['bypassUpdates'].value}"
-
converter="#{richTogglePanelBean.attributes['converter'].value}"
+
cycledSwitching="#{richTogglePanelBean.attributes['cycledSwitching'].value}"
data="#{richTogglePanelBean.attributes['data'].value}"
dir="#{richTogglePanelBean.attributes['dir'].value}"
execute="#{richTogglePanelBean.attributes['execute'].value}"
-
firstItem="#{richTogglePanelBean.attributes['firstItem'].value}"
immediate="#{richTogglePanelBean.attributes['immediate'].value}"
-
itemByIndex="#{richTogglePanelBean.attributes['itemByIndex'].value}"
lang="#{richTogglePanelBean.attributes['lang'].value}"
-
lastItem="#{richTogglePanelBean.attributes['lastItem'].value}"
limitToList="#{richTogglePanelBean.attributes['limitToList'].value}"
-
localValue="#{richTogglePanelBean.attributes['localValue'].value}"
-
localValueSet="#{richTogglePanelBean.attributes['localValueSet'].value}"
-
nextItem="#{richTogglePanelBean.attributes['nextItem'].value}"
-
onbeforedomupdate="#{richTogglePanelBean.attributes['onbeforedomupdate'].value}"
+
onbeforeitemchange="#{richTogglePanelBean.attributes['onbeforeitemchange'].value}"
onclick="#{richTogglePanelBean.attributes['onclick'].value}"
-
oncomplete="#{richTogglePanelBean.attributes['oncomplete'].value}"
ondblclick="#{richTogglePanelBean.attributes['ondblclick'].value}"
onitemchange="#{richTogglePanelBean.attributes['onitemchange'].value}"
-
onitemchanged="#{richTogglePanelBean.attributes['onitemchanged'].value}"
onmousedown="#{richTogglePanelBean.attributes['onmousedown'].value}"
onmousemove="#{richTogglePanelBean.attributes['onmousemove'].value}"
onmouseout="#{richTogglePanelBean.attributes['onmouseout'].value}"
onmouseover="#{richTogglePanelBean.attributes['onmouseover'].value}"
onmouseup="#{richTogglePanelBean.attributes['onmouseup'].value}"
-
prevItem="#{richTogglePanelBean.attributes['prevItem'].value}"
render="#{richTogglePanelBean.attributes['render'].value}"
rendered="#{richTogglePanelBean.attributes['rendered'].value}"
-
required="#{richTogglePanelBean.attributes['required'].value}"
status="#{richTogglePanelBean.attributes['status'].value}"
style="#{richTogglePanelBean.attributes['style'].value}"
styleClass="#{richTogglePanelBean.attributes['styleClass'].value}"
-
submittedActiveItem="#{richTogglePanelBean.attributes['submittedActiveItem'].value}"
-
submittedValue="#{richTogglePanelBean.attributes['submittedValue'].value}"
switchType="#{richTogglePanelBean.attributes['switchType'].value}"
title="#{richTogglePanelBean.attributes['title'].value}"
-
valid="#{richTogglePanelBean.attributes['valid'].value}"
-
value="#{richTogglePanelBean.attributes['value'].value}"
<rich:togglePanelItem id="item1"
name="item1">
<p>content of panel 1</p>