Author: mvitenkov
Date: 2008-11-28 08:56:14 -0500 (Fri, 28 Nov 2008)
New Revision: 11434
Modified:
trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml
trunk/test-applications/seamApp/web/src/main/webapp/Queue/Queue.xhtml
trunk/test-applications/seamApp/web/src/main/webapp/Queue/QueueProperty.xhtml
trunk/test-applications/seamApp/web/src/main/webapp/WEB-INF/web.xml
Log:
Queue correction
Modified:
trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml
===================================================================
---
trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml 2008-11-28
13:48:57 UTC (rev 11433)
+++
trunk/test-applications/seamApp/web/src/main/webapp/CustomizePage/CustomizePage.xhtml 2008-11-28
13:56:14 UTC (rev 11434)
@@ -1,37 +1,25 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<ui:composition
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:a4j="http://richfaces.org/a4j"
+
xmlns:a="http://richfaces.org/a4j"
+
xmlns:c="http://java.sun.com/jstl/core"
xmlns:rich="http://richfaces.org/rich">
- <body>
- <f:view>
- <rich:separator lineType="solid" height="1" />
- <table width="400">
- <tbody>
- <tr>
- <td onmouseover="updateName('Alex')"
- onmouseout="updateName('')">Alex</td>
- <td onmouseover="updateName('Jonh')"
- onmouseout="updateName('')">Jonh</td>
- <td onmouseover="updateName('Roger')"
- onmouseout="updateName('')">Roger</td>
- </tr>
- <tr>
- <td colspan="3"><h:outputText id="showname"
- value="Name: #{userBean.name}" /></td>
- </tr>
- </tbody>
- </table>
- <a4j:form>
- <a4j:jsFunction id="updateName" name="updateName"
reRender="showname">
- <a4j:actionparam name="param1" assignTo="#{userBean.name}"
/>
- </a4j:jsFunction>
- </a4j:form>
+<body>
+<f:view>
+ <h:form id="form">
+ <rich:extendedDataTable value="#{testBean.rows}" var="row">
+ <rich:columns value="#{testBean.columns}" var="column"
index="ind">
+ <f:facet name="header">
+ <h:outputText value="#{column.name}" />
+ </f:facet>
+ <h:outputText value="#{row[ind]}" />
+ </rich:columns>
+ </rich:extendedDataTable>
+ <a:commandButton value="Add column"
action="#{testBean.addAColumn}" reRender="form" />
+ </h:form>
+</f:view>
+</body>
- <rich:separator height="1" style="padding-top:10px" />
- </f:view>
- </body>
-</ui:composition>
\ No newline at end of file
+</html>
Modified: trunk/test-applications/seamApp/web/src/main/webapp/Queue/Queue.xhtml
===================================================================
--- trunk/test-applications/seamApp/web/src/main/webapp/Queue/Queue.xhtml 2008-11-28
13:48:57 UTC (rev 11433)
+++ trunk/test-applications/seamApp/web/src/main/webapp/Queue/Queue.xhtml 2008-11-28
13:56:14 UTC (rev 11434)
@@ -9,7 +9,7 @@
onbeforedomupdate="#{event.onbeforedomupdate}"
oncomplete="#{event.oncomplete}" onerror="#{event.onerror}"
onsizeexceeded="#{event.onsizeexceeded}"
onsubmit="#{event.onsubmit}"
- rendered="#{queue.rendered}" requestDelay="#{queue.requestDelay}"
+ requestDelay="#{queue.requestDelay}"
size="#{queue.size}"
sizeExceededBehavior="#{queue.sizeExceededBehavior}"
timeout="#{queue.timeout}" />
Modified: trunk/test-applications/seamApp/web/src/main/webapp/Queue/QueueProperty.xhtml
===================================================================
---
trunk/test-applications/seamApp/web/src/main/webapp/Queue/QueueProperty.xhtml 2008-11-28
13:48:57 UTC (rev 11433)
+++
trunk/test-applications/seamApp/web/src/main/webapp/Queue/QueueProperty.xhtml 2008-11-28
13:56:14 UTC (rev 11434)
@@ -3,20 +3,16 @@
xmlns:a4j="http://richfaces.org/a4j"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
id="queuePropertySubviewID">
-
- <h:commandButton value="add test"
- action="#{queue.addQueue}"></h:commandButton>
+
+ <h:commandButton value="add test"
action="#{queue.addQueue}"></h:commandButton>
<h:panelGrid columns="2">
<h:outputText value="disabled" />
<h:selectBooleanCheckbox value="#{queue.disabled}"
onclick="submit()" />
<h:outputText value="ignoreDupResponses" />
<h:selectBooleanCheckbox value="#{queue.ignoreDupResponses}"
- onclick="submit()" />
+ onclick="submit()" />
- <h:outputText value="rendered" />
- <h:selectBooleanCheckbox value="#{queue.rendered}"
onclick="submit()" />
-
<h:outputText value="requestDelay" />
<h:inputText value="#{queue.requestDelay}">
<a4j:support event="onchange"
reRender="queueID"></a4j:support>
@@ -27,14 +23,19 @@
<a4j:support event="onchange"
reRender="queueID"></a4j:support>
</h:inputText>
- <h:outputText value="sizeExceededBehavior" />
- <h:panelGroup>
- <h:inputText value="#{queue.sizeExceededBehavior}"
- id="sizeExceededBehaviorID">
- <a4j:support event="onchange"
reRender="queueID"></a4j:support>
- </h:inputText>
- <h:outputLabel value="dropNext, dropNew, fireNext, fireNew"
for="sizeExceededBehaviorID" />
- </h:panelGroup>
+ <h:outputText value="sizeExceededBehavior" />
+ <h:selectOneRadio value="#{queue.sizeExceededBehavior}"
+ onchange="submit();">
+ <f:selectItem itemLabel="dropNext" itemValue="dropNext" />
+ <f:selectItem itemLabel="dropNew" itemValue="dropNew" />
+ <f:selectItem itemLabel="fireNext" itemValue="fireNext" />
+ <f:selectItem itemLabel="fireNew" itemValue="fireNew" />
+ </h:selectOneRadio>
+
+ <h:outputText value="timeout" />
+ <h:inputText value="#{queue.timeout}">
+ <a4j:support event="onchange"
reRender="queueID"></a4j:support>
+ </h:inputText>
</h:panelGrid>
</f:subview>
\ No newline at end of file
Modified: trunk/test-applications/seamApp/web/src/main/webapp/WEB-INF/web.xml
===================================================================
--- trunk/test-applications/seamApp/web/src/main/webapp/WEB-INF/web.xml 2008-11-28
13:48:57 UTC (rev 11433)
+++ trunk/test-applications/seamApp/web/src/main/webapp/WEB-INF/web.xml 2008-11-28
13:56:14 UTC (rev 11434)
@@ -54,7 +54,7 @@
<param-value>true</param-value>
</context-param>
- <!-- JSF -->
+ <!-- JSF -->
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>