[wise-commits] wise SVN: r451 - in webgui/branches/cdi-jsf/src/main: webapp and 1 other directory.

wise-commits at lists.jboss.org wise-commits at lists.jboss.org
Fri Jan 18 18:45:58 EST 2013


Author: alessio.soldano at jboss.com
Date: 2013-01-18 18:45:58 -0500 (Fri, 18 Jan 2013)
New Revision: 451

Removed:
   webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/WiseGuiBean.java
Modified:
   webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java
   webgui/branches/cdi-jsf/src/main/webapp/index.xhtml
Log:
Adding response tree


Modified: webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java
===================================================================
--- webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java	2013-01-18 17:28:10 UTC (rev 450)
+++ webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/ClientConversationBean.java	2013-01-18 23:45:58 UTC (rev 451)
@@ -63,7 +63,6 @@
     private TreeNodeImpl inputTree;
     private TreeNodeImpl outputTree;
     private UITree inTree;
-    private UITree outTree;
     
     public void init() throws ConnectException {
 	client = getClientBuilder().tmpDir("/tmp/wise").verbose(true).keepSource(true).wsdlURL(getWsdlUrl()).build();
@@ -208,14 +207,6 @@
         this.inTree = inTree;
     }
 
-    public UITree getOutTree() {
-        return outTree;
-    }
-
-    public void setOutTree(UITree outTree) {
-        this.outTree = outTree;
-    }
-
     public TreeNodeImpl getInputTree() {
         return inputTree;
     }

Deleted: webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/WiseGuiBean.java
===================================================================
--- webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/WiseGuiBean.java	2013-01-18 17:28:10 UTC (rev 450)
+++ webgui/branches/cdi-jsf/src/main/java/org/jboss/wise/gui/WiseGuiBean.java	2013-01-18 23:45:58 UTC (rev 451)
@@ -1,45 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2012, Red Hat, Inc. and/or its affiliates, and individual
- * contributors by the @authors tag. See the copyright.txt in the 
- * distribution for a full listing of individual contributors.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- * http://www.apache.org/licenses/LICENSE-2.0
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,  
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jboss.wise.gui;
-
-import java.io.Serializable;
-
-import javax.annotation.PostConstruct;
-import javax.enterprise.context.SessionScoped;
-import javax.inject.Inject;
-import javax.inject.Named;
-
-/**
- * <p>
- * {@link WiseGuiBean} is the JSF backing bean for the application, holding the input data to be
- * re-displayed.
- * </p>
- * 
- */
- at Named
- at SessionScoped
-public class WiseGuiBean implements Serializable {
-
-    private static final long serialVersionUID = 1L;
-
-    @Inject
-    private ClientConversationBean client;
-
-    
-    
-    
-}

Modified: webgui/branches/cdi-jsf/src/main/webapp/index.xhtml
===================================================================
--- webgui/branches/cdi-jsf/src/main/webapp/index.xhtml	2013-01-18 17:28:10 UTC (rev 450)
+++ webgui/branches/cdi-jsf/src/main/webapp/index.xhtml	2013-01-18 23:45:58 UTC (rev 451)
@@ -16,13 +16,6 @@
     <ui:define name="body">
         <fieldset style="width:600px">
             <legend>Wise GUI</legend>
-            <p>
-                Please start by providing the WSDL URL you want to consume
-            </p>
-
-            <p>
-                The provided url will be used to retrieve a wsdl which will then be parsed to present you the available endpoints.
-            </p>
             <rich:panel header="WSDL selection">
                 <h:form id="wsdlSelection">
                     <h:outputLabel value="URL:" for="wsdlUrlInput"/>
@@ -50,20 +43,12 @@
                             </rich:panelMenuGroup>
                         </c:forEach>
                     </rich:panelMenu>
-                    <a4j:outputPanel ajaxRendered="true">
-                        <rich:panel rendered="#{not empty clientConversationBean.currentOperation}">
-                            <h:outputText value="#{clientConversationBean.currentOperation} selected" id="current" />
-                        </rich:panel>
-                    </a4j:outputPanel>
                 </h:form>
             </rich:panel>
             <br />
             <a4j:outputPanel id="parInputPanel" ajaxRendered="true">
             
-            <rich:accordion switchType="client">
-            <rich:accordionItem header="Request:">
-            
-            <rich:panel header="Parameters input" rendered="#{not empty clientConversationBean.inputTree}">
+            <rich:panel header="Request" rendered="#{not empty clientConversationBean.inputTree}">
                 <h:form id="parInput">
                     <rich:tree id="richTree" var="node" value="#{clientConversationBean.inputTree}" nodeType="#{node.kind}" 
 				switchType="ajax" binding="#{clientConversationBean.inTree}">
@@ -159,12 +144,60 @@
                 </h:form>
             </rich:panel>
             
-            </rich:accordionItem>
-            <rich:accordionItem header="Response:">
-            <rich:panel header="Parameters output" rendered="#{not empty clientConversationBean.outputTree}">
+            <br />
+            <a4j:outputPanel id="resultPanel" ajaxRendered="true">
+            
+            <rich:panel header="Response" rendered="#{not empty clientConversationBean.outputTree}">
+                <h:form id="resForm">
+                    <rich:tree id="richResTree" var="node" value="#{clientConversationBean.outputTree}" nodeType="#{node.kind}" switchType="ajax">
+				        <rich:treeNode type="simple">
+        					<h:outputText value="#{node.type} : #{node.name} = #{node.shortValue}"
+        						rendered="#{node.notNil}" />
+        					<h:outputText value="#{node.type} : #{node.name} = ***NIL***" rendered="#{node.nil}" />
+<!--		        			<h:graphicImage styleClass="plus" value="images/small/ZoomIn.png" rendered="#{node.notNil}"
+				        		onclick="pippo = '#{node.longValue}'; document.getElementById('detailForm:detailArea').value = decode64(unescape(pippo)); showObj('detailDiv');" /> -->
+        				</rich:treeNode>
+		        		<rich:treeNode type="qname">
+				        	<h:outputText value="#{node.type} : #{node.name} = #{node.shortValue}"
+						        rendered="#{node.notNil}" />
+        					<h:outputText value="#{node.type} : #{node.name} = ***NIL***" rendered="#{node.nil}" />
+<!--		        			<h:graphicImage styleClass="plus" value="images/small/ZoomIn.png" rendered="#{node.notNil}"
+				        		onclick="pippo = '#{node.longValue}'; document.getElementById('detailForm:detailArea').value = decode64(unescape(pippo)); showObj('detailDiv');" /> -->
+        				</rich:treeNode>
+		        		<rich:treeNode type="Duration">
+				        	<h:outputText value="#{node.type} : #{node.name} = #{node.shortValue}"
+						        rendered="#{node.notNil}" />
+        					<h:outputText value="#{node.type} : #{node.name} = ***NIL***" rendered="#{node.nil}" />
+<!--		        			<h:graphicImage styleClass="plus" value="images/small/ZoomIn.png" rendered="#{node.notNil}"
+				        		onclick="pippo = '#{node.longValue}'; document.getElementById('detailForm:detailArea').value = decode64(unescape(pippo)); showObj('detailDiv');" /> -->
+        				</rich:treeNode>
+		        		<rich:treeNode type="XMLGregorianCalendar">
+				        	<h:outputText value="#{node.type} : #{node.name} = #{node.shortValue}"
+						        rendered="#{node.notNil}" />
+        					<h:outputText value="#{node.type} : #{node.name} = ***NIL***" rendered="#{node.nil}" />
+<!--		        			<h:graphicImage styleClass="plus" value="images/small/ZoomIn.png" rendered="#{node.notNil}"
+				        		onclick="pippo = '#{node.longValue}'; document.getElementById('detailForm:detailArea').value = decode64(unescape(pippo)); showObj('detailDiv');" /> -->
+        				</rich:treeNode>
+		        		<rich:treeNode type="Enumeration">
+				        	<h:outputText value="#{node.type} : #{node.name} = #{node.shortValue}"
+						        rendered="#{node.notNil}" />
+        					<h:outputText value="#{node.type} : #{node.name} = ***NIL***" rendered="#{node.nil}" />
+<!--		        			<h:graphicImage styleClass="plus" value="images/small/ZoomIn.png" rendered="#{node.notNil}"
+				        		onclick="pippo = '#{node.longValue}'; document.getElementById('detailForm:detailArea').value = decode64(unescape(pippo)); showObj('detailDiv');" /> -->
+        				</rich:treeNode>
+		        		<rich:treeNode type="Parameterized">
+				        	<h:outputText value="{#{node.namespace}}" />
+        				</rich:treeNode>
+		        		<rich:treeNode type="group">
+				        	<h:outputText value="#{node.prototype.type}[#{node.size}]" />
+        				</rich:treeNode>
+		        		<rich:treeNode type="complex">
+				        	<h:outputText value="#{node.type} : #{node.name}" />
+        				</rich:treeNode>
+		        	</rich:tree>
+                </h:form>
             </rich:panel>
-            </rich:accordionItem>
-            </rich:accordion>
+            </a4j:outputPanel>
             
             </a4j:outputPanel>
             



More information about the wise-commits mailing list