Author: ppitonak(a)redhat.com
Date: 2010-12-08 07:24:06 -0500 (Wed, 08 Dec 2010)
New Revision: 20455
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richToolbar/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml
Log:
* added IDs to toolbar sample
* added ID to panel in attributes composite component
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richToolbar/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richToolbar/simple.xhtml 2010-12-08
12:19:29 UTC (rev 20454)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richToolbar/simple.xhtml 2010-12-08
12:24:06 UTC (rev 20455)
@@ -85,8 +85,8 @@
</rich:toolbarGroup>
<rich:toolbarGroup location="right">
- <h:inputText styleClass="barsearch" />
- <h:commandButton onclick="return false;"
value="Search" />
+ <h:inputText id="input" styleClass="barsearch"
/>
+ <h:commandButton id="button" onclick="return
false;" value="Search" />
</rich:toolbarGroup>
</rich:toolbar>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml 2010-12-08
12:19:29 UTC (rev 20454)
+++
modules/tests/metamer/trunk/application/src/main/webapp/resources/metamer/attributes.xhtml 2010-12-08
12:24:06 UTC (rev 20455)
@@ -16,44 +16,44 @@
<composite:implementation>
<h:outputStylesheet library="metamer/css"
name="attributes.ecss" target="head" />
-
+
<a4j:jsFunction id="submitAjaxFunction"
name="submitAjax" execute="#{cc.attrs.execute}"
render="#{cc.attrs.render}" />
- <a4j:outputPanel ajaxRendered="true">
- <h:panelGrid id="#{cc.attrs.id}"
columns="#{cc.attrs.columns * 2}" styleClass="attributes"
- columnClasses="attributes-first-column,
attributes-second-column, attributes-first-column, attributes-second-column">
- <c:forEach items="#{cc.attrs.value}"
var="entry">
- <h:panelGroup layout="block">
- <h:outputLabel id="#{entry.key}Label"
value="#{entry.key}" style="margin-right: 5px;"
for="#{entry.key}Input"/>
- <h:graphicImage value="/resources/images/help.png"
title="#{entry.value.help}"
- rendered="#{entry.value.help != null}"
height="18px;"
- style="vertical-align: middle;"
styleClass="attribute-help" >
- </h:graphicImage>
- </h:panelGroup>
-
- <c:choose>
- <c:when test="#{entry.value.bool}">
- <h:selectOneRadio id="#{entry.key}Input"
value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server'
? 'submit()' : 'submitAjax()'}">
- <f:selectItem itemValue="null"
itemLabel="null"/>
- <f:selectItem itemValue="true"
itemLabel="true"/>
- <f:selectItem itemValue="false"
itemLabel="false"/>
- </h:selectOneRadio>
- </c:when>
-
- <c:when test="#{entry.value.selectOptions !=
null}">
- <h:selectOneRadio id="#{entry.key}Input"
value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server'
? 'submit()' : 'submitAjax()'}"
- layout="pageDirection">
- <f:selectItems
value="#{entry.value.selectOptions}" />
- </h:selectOneRadio>
- </c:when>
-
- <c:otherwise>
- <h:inputText id="#{entry.key}Input"
value="#{entry.value.value}" style="width: 200px;"
onchange="#{cc.attrs.type == 'server' ? 'submit()' :
'submitAjax()'}" />
- </c:otherwise>
- </c:choose>
-
- </c:forEach>
- </h:panelGrid>
+ <a4j:outputPanel id="panel" ajaxRendered="true">
+ <h:panelGrid id="#{cc.attrs.id}"
columns="#{cc.attrs.columns * 2}" styleClass="attributes"
+ columnClasses="attributes-first-column,
attributes-second-column, attributes-first-column, attributes-second-column">
+ <c:forEach items="#{cc.attrs.value}"
var="entry">
+ <h:panelGroup layout="block">
+ <h:outputLabel id="#{entry.key}Label"
value="#{entry.key}" style="margin-right: 5px;"
for="#{entry.key}Input"/>
+ <h:graphicImage
value="/resources/images/help.png" title="#{entry.value.help}"
+ rendered="#{entry.value.help !=
null}" height="18px;"
+ style="vertical-align: middle;"
styleClass="attribute-help" >
+ </h:graphicImage>
+ </h:panelGroup>
+
+ <c:choose>
+ <c:when test="#{entry.value.bool}">
+ <h:selectOneRadio id="#{entry.key}Input"
value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server'
? 'submit()' : 'submitAjax()'}">
+ <f:selectItem itemValue="null"
itemLabel="null"/>
+ <f:selectItem itemValue="true"
itemLabel="true"/>
+ <f:selectItem itemValue="false"
itemLabel="false"/>
+ </h:selectOneRadio>
+ </c:when>
+
+ <c:when test="#{entry.value.selectOptions !=
null}">
+ <h:selectOneRadio id="#{entry.key}Input"
value="#{entry.value.value}" onchange="#{cc.attrs.type == 'server'
? 'submit()' : 'submitAjax()'}"
+ layout="pageDirection">
+ <f:selectItems
value="#{entry.value.selectOptions}" />
+ </h:selectOneRadio>
+ </c:when>
+
+ <c:otherwise>
+ <h:inputText id="#{entry.key}Input"
value="#{entry.value.value}" style="width: 200px;"
onchange="#{cc.attrs.type == 'server' ? 'submit()' :
'submitAjax()'}" />
+ </c:otherwise>
+ </c:choose>
+
+ </c:forEach>
+ </h:panelGrid>
</a4j:outputPanel>
</composite:implementation>
</h:body>
Show replies by date