[wise-commits] wise SVN: r571 - in webgui/trunk/src/main/webapp: WEB-INF and 1 other directory.

wise-commits at lists.jboss.org wise-commits at lists.jboss.org
Wed Jul 3 08:34:50 EDT 2013


Author: alessio.soldano at jboss.com
Date: 2013-07-03 08:34:50 -0400 (Wed, 03 Jul 2013)
New Revision: 571

Modified:
   webgui/trunk/src/main/webapp/WEB-INF/web.xml
   webgui/trunk/src/main/webapp/step3.xhtml
   webgui/trunk/src/main/webapp/step4.xhtml
Log:
[WISE-205] Set javax.faces.PROJECT_STAGE = Production, reduce some ajax message payload by tuning a4j regions


Modified: webgui/trunk/src/main/webapp/WEB-INF/web.xml
===================================================================
--- webgui/trunk/src/main/webapp/WEB-INF/web.xml	2013-07-03 08:42:49 UTC (rev 570)
+++ webgui/trunk/src/main/webapp/WEB-INF/web.xml	2013-07-03 12:34:50 UTC (rev 571)
@@ -12,11 +12,19 @@
 <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
 
+  <context-param>
+	<param-name>org.richfaces.queue.enabled</param-name>
+	<param-value>true</param-value>
+  </context-param>
+  <context-param>
+    <param-name>org.richfaces.resourceOptimization.enabled</param-name>
+    <param-value>true</param-value>
+  </context-param>
   <!-- Set the PROJECT_STAGE to 'Development' to receive constructive error messages during development.
   Change the PROJECT_STAGE to 'Production' when putting the application into production -->
   <context-param>
     <param-name>javax.faces.PROJECT_STAGE</param-name>
-    <param-value>Development</param-value>
+    <param-value>Production</param-value>
   </context-param>
 
   <!-- add a welcome-file-list entry to allow JSF pages to be used as welcome files -->

Modified: webgui/trunk/src/main/webapp/step3.xhtml
===================================================================
--- webgui/trunk/src/main/webapp/step3.xhtml	2013-07-03 08:42:49 UTC (rev 570)
+++ webgui/trunk/src/main/webapp/step3.xhtml	2013-07-03 12:34:50 UTC (rev 571)
@@ -9,12 +9,11 @@
       xmlns:rich="http://richfaces.org/rich">
       
         <rich:panel header="Request">
-            <a4j:outputPanel id="parInputPanel" ajaxRendered="true"> <!-- The tree must live within a ajaxRendered outputPanel in order for properly refreshing! -->
-                            <div>
-                                <i>#{clientConversationBean.currentOperationFullName}</i>
-                            </div>
-                            <rich:tree id="richTree" var="node" value="#{clientConversationBean.inputTree}" nodeType="#{node.kind}" 
-		        		        switchType="ajax" binding="#{clientConversationBean.inTree}">
+                <div>
+                    <i>#{clientConversationBean.currentOperationFullName}</i>
+                </div>
+                <a4j:outputPanel id="parInputPanel" ajaxRendered="true"> <!-- The tree must live within a ajaxRendered outputPanel in order for properly refreshing! -->
+                            <rich:tree id="richTree" var="node" value="#{clientConversationBean.inputTree}" nodeType="#{node.kind}" binding="#{clientConversationBean.inTree}">
 				                <rich:treeNode type="simple">
 				                	<h:outputText value="#{node.type} : #{node.name} " />
         					        <h:selectBooleanCheckbox id="foo-chk" value="#{node.notNil}" disabled="#{node.notNillable}" >
@@ -133,32 +132,30 @@
                 					</a4j:commandLink>
 		        		        </rich:treeNode>
         		            </rich:tree>
-        		            <br />
-                            <rich:panel>
-        		                <h:panelGrid columns="2">
-        		                    <h:outputLabel value="Override target address:" for="invUrlInput"/>
-                                    <h:inputText id="invUrlInput" value="#{clientConversationBean.invocationUrl}" />
-                                    <h:outputLabel value="User:" for="invUser"/>
-                                    <h:inputText id="invUser" value="#{clientConversationBean.invocationUser}" />
-                                    <h:outputLabel value="Password:" for="invPwd"/>
-                                    <h:inputSecret id="invPwd" value="#{clientConversationBean.invocationPwd}" redisplay="true" />
-        		                </h:panelGrid>
-        		            </rich:panel>
-        		            
-                    <rich:popupPanel id="popupPreview" modal="true" resizeable="true" onmaskclick="#{rich:component('popupPreview')}.hide()" minWidth="550" minHeight="450">
-                        <f:facet name="header">
-                            <h:outputText value="SOAP request message preview" />
-                        </f:facet>
-                        <f:facet name="controls">
-                            <h:outputLink value="#" onclick="#{rich:component('popupPreview')}.hide(); return false;">X</h:outputLink>
-                        </f:facet>
-                        <p>Below is a preview of the SOAP message that will be generated upon invocation. The actual message going on the wire might be different
-                           depending on the selected service policy (security, addressing, reliable-messaging, etc.), if any.</p>
-                        <div align="center"><h:inputTextarea value="#{clientConversationBean.requestPreview}" cols="80" rows="20" readonly="true" styleClass="preformatted"/></div>
-                    </rich:popupPanel>
+                </a4j:outputPanel>
+        		<br />
+                <rich:panel>
+        		    <h:panelGrid columns="2">
+        		        <h:outputLabel value="Override target address:" for="invUrlInput"/>
+                        <h:inputText id="invUrlInput" value="#{clientConversationBean.invocationUrl}" />
+                        <h:outputLabel value="User:" for="invUser"/>
+                        <h:inputText id="invUser" value="#{clientConversationBean.invocationUser}" />
+                        <h:outputLabel value="Password:" for="invPwd"/>
+                        <h:inputSecret id="invPwd" value="#{clientConversationBean.invocationPwd}" redisplay="true" />
+        		    </h:panelGrid>
+        		</rich:panel>
+                <rich:popupPanel id="popupPreview" modal="true" resizeable="true" onmaskclick="#{rich:component('popupPreview')}.hide()" minWidth="550" minHeight="450">
+                    <f:facet name="header">
+                        <h:outputText value="SOAP request message preview" />
+                    </f:facet>
+                    <f:facet name="controls">
+                        <h:outputLink value="#" onclick="#{rich:component('popupPreview')}.hide(); return false;">X</h:outputLink>
+                    </f:facet>
+                    <p>Below is a preview of the SOAP message that will be generated upon invocation. The actual message going on the wire might be different
+                       depending on the selected service policy (security, addressing, reliable-messaging, etc.), if any.</p>
+                    <div align="center"><h:inputTextarea value="#{clientConversationBean.requestPreview}" cols="80" rows="20" readonly="true" styleClass="preformatted"/></div>
+                </rich:popupPanel>
         
-        </a4j:outputPanel>
-        
         </rich:panel>
         <rich:panel header="Error" rendered="#{not empty clientConversationBean.error}">
             <h:outputText value="#{clientConversationBean.error}" />

Modified: webgui/trunk/src/main/webapp/step4.xhtml
===================================================================
--- webgui/trunk/src/main/webapp/step4.xhtml	2013-07-03 08:42:49 UTC (rev 570)
+++ webgui/trunk/src/main/webapp/step4.xhtml	2013-07-03 12:34:50 UTC (rev 571)
@@ -8,12 +8,11 @@
       xmlns:c="http://java.sun.com/jsp/jstl/core"
       xmlns:rich="http://richfaces.org/rich">
       
-        <rich:panel header="Response" rendered="#{clientConversationBean.responseAvailable}">
-            <a4j:outputPanel id="parOutputPanel" ajaxRendered="true"> <!-- The tree must live within a ajaxRendered outputPanel in order for properly refreshing! -->
-                <div>
-                    <i>#{clientConversationBean.currentOperationFullName}</i>
-                </div>
-                <rich:tree id="richResTree" var="node" value="#{clientConversationBean.outputTree}" nodeType="#{node.kind}" switchType="ajax">
+        <rich:panel header="Response3" rendered="#{clientConversationBean.responseAvailable}">
+            <div>
+                <i>#{clientConversationBean.currentOperationFullName}</i>
+            </div>
+            <rich:tree id="richResTree" var="node" value="#{clientConversationBean.outputTree}" nodeType="#{node.kind}" selectionType="client" toggleType="client">
 				        <rich:treeNode type="simple">
         					<h:outputText value="#{node.type} : #{node.name} = #{node.shortValue}"
         						rendered="#{node.notNil}" />
@@ -53,7 +52,8 @@
         						rendered="#{node.notNil}" />
         					<h:outputText value="#{node.type} : #{node.name} = ***NIL***" rendered="#{node.nil}" />
         				</rich:treeNode>
-		        </rich:tree>
+		    </rich:tree>
+		    <a4j:region>
                 <rich:popupPanel id="popupView" modal="true" resizeable="true" onmaskclick="#{rich:component('popupView')}.hide()" minWidth="550" minHeight="450">
                     <f:facet name="header">
                         <h:outputText value="SOAP response message" />
@@ -64,7 +64,7 @@
                     <p>Below is the captured SOAP response message:</p>
                     <div align="center"><h:inputTextarea value="#{clientConversationBean.responseMessage}" cols="80" rows="20" readonly="true" styleClass="preformatted"/></div>
                 </rich:popupPanel>
-            </a4j:outputPanel>
+            </a4j:region>
         </rich:panel>
         <rich:panel header="Error" rendered="#{not empty clientConversationBean.error}">
             <h:outputText value="#{clientConversationBean.error}" />



More information about the wise-commits mailing list