Author: chris.laprun(a)jboss.com
Date: 2009-04-20 13:23:04 -0400 (Mon, 20 Apr 2009)
New Revision: 13234
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editCoordination.xhtml
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/consumers/editConsumer.xhtml
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/producer/producer.xhtml
Log:
- JBEPP-65: Use onclick instead of onchange as IE does not register an 'OnChange'
event until the mouse is clicked somewhere else on the page after having changed your
radio/checkbox selection. This resulted in incorrect behavior for some immediate elements
of forms.
Modified:
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editCoordination.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editCoordination.xhtml 2009-04-20
17:19:11 UTC (rev 13233)
+++
branches/JBoss_Portal_Branch_2_7/core-admin/src/resources/portal-admin-war/jsf/editCoordination.xhtml 2009-04-20
17:23:04 UTC (rev 13234)
@@ -1,3 +1,26 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
<ui:composition template="objectTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -8,53 +31,56 @@
xmlns:c="http://java.sun.com/jstl/core">
<ui:param name="portalObjectScreen"
value="#{bundle.COORDINATION_COORDINATION}"/>
<ui:define name="content">
- <script type="text/javascript">
+<script type="text/javascript">
<!--
- function toggle_visibility(id) {
- var e = document.getElementById(id);
- var disc = document.getElementById(id + 'Disc');
- if(e.style.display != 'none')
- {
- e.style.display = 'none';
- disc.setAttribute('src', '/portal-admin/img/plus.gif');
- disc.setAttribute('alt', '+');
- }
- else
- {
- e.style.display = '';
- disc.setAttribute('src','/portal-admin/img/minus.gif');
- disc.setAttribute('alt', '-');
- }
- }
+ function toggle_visibility(id)
+ {
+ var e = document.getElementById(id);
+ var disc = document.getElementById(id + 'Disc');
+ if (e.style.display != 'none')
+ {
+ e.style.display = 'none';
+ disc.setAttribute('src', '/portal-admin/img/plus.gif');
+ disc.setAttribute('alt', '+');
+ }
+ else
+ {
+ e.style.display = '';
+ disc.setAttribute('src', '/portal-admin/img/minus.gif');
+ disc.setAttribute('alt', '-');
+ }
+ }
//-->
- </script>
+</script>
- <br/>
+<br/>
- <!-- Alias bindings -->
- <div class="tenpx-top">
- <h2 class="portlet-area-header"
onclick="toggle_visibility('aliasBindings');" style="cursor:
pointer">
- <img id="aliasBindingsDisc"
src="/portal-admin/img/minus.gif" alt="-"/>
- <a
name="#{bundle.COORDINATION_ALIAS_BINDINGS}"/>#{bundle.COORDINATION_ALIAS_BINDINGS}
- </h2>
+<!-- Alias bindings -->
+<div class="tenpx-top">
+ <h2 class="portlet-area-header"
onclick="toggle_visibility('aliasBindings');" style="cursor:
pointer">
+ <img id="aliasBindingsDisc"
src="/portal-admin/img/minus.gif" alt="-"/>
+ <a
name="#{bundle.COORDINATION_ALIAS_BINDINGS}"/>#{bundle.COORDINATION_ALIAS_BINDINGS}
+ </h2>
- <!-- Create alias binding -->
- <div id="aliasBindings" class="coordination-section">
- <h3 class="sectionTitle tenpx-bottom" style="margin-top:
3px;">#{bundle.COORDINATION_ALIAS_CREATE}</h3>
- <h:outputText value="#{bundle.COORDINATION_ALIAS_CREATE_NO_PARAMS}"
rendered="#{empty aliasManager.availableRenderParameters}"/>
- <h:form rendered="#{!empty aliasManager.availableRenderParameters}"
id="create-alias-form">
- <div class="float-left tenpx-right">
- <h4>#{bundle.COORDINATION_ALIAS_CREATE_STEP1}</h4>
- <h:selectManyListbox id="alias" size="5"
value="#{aliasManager.originalQNames}"
- immediate="true"
onchange="this.form.submit()">
- <f:selectItems
value="#{aliasManager.availableRenderParameters}"/>
- </h:selectManyListbox>
- </div>
- <div class="float-left aliasBinding-step2">
- <h:panelGroup rendered="#{!empty
aliasManager.originalQNames}">
- <h4>#{bundle.COORDINATION_ALIAS_CREATE_STEP2}</h4>
- <div class="full-width">
+ <!-- Create alias binding -->
+ <div id="aliasBindings" class="coordination-section">
+ <h3 class="sectionTitle tenpx-bottom" style="margin-top:
3px;">#{bundle.COORDINATION_ALIAS_CREATE}</h3>
+ <h:outputText value="#{bundle.COORDINATION_ALIAS_CREATE_NO_PARAMS}"
+ rendered="#{empty
aliasManager.availableRenderParameters}"/>
+ <h:form rendered="#{!empty aliasManager.availableRenderParameters}"
id="create-alias-form">
+ <div class="float-left tenpx-right">
+ <h4>#{bundle.COORDINATION_ALIAS_CREATE_STEP1}</h4>
+ <h:selectManyListbox id="alias" size="5"
value="#{aliasManager.originalQNames}"
+ immediate="true"
onchange="this.form.submit()">
+ <f:selectItems
value="#{aliasManager.availableRenderParameters}"/>
+ </h:selectManyListbox>
+ </div>
+ <div class="float-left aliasBinding-step2">
+ <h:panelGroup rendered="#{!empty
aliasManager.originalQNames}">
+ <h4>#{bundle.COORDINATION_ALIAS_CREATE_STEP2}</h4>
+
+ <div class="full-width">
<span>
<h:inputText id="aliasName"
value="#{aliasManager.aliasName}"/>
<h:message for="aliasName"
errorClass="portlet-msg-error"/>
@@ -65,146 +91,155 @@
<h:commandButton value="#{bundle.COMMON_CANCEL}"
action="#{aliasManager.cancel}"
styleClass="portlet-form-button"/>
</span>
- </div>
- <div>
+ </div>
+ <div>
+ <ul class="bindingList">
+ <ui:repeat var="selectedQNames"
value="#{aliasManager.originalQNames}">
+ <li>#{selectedQNames}</li>
+ </ui:repeat>
+ </ul>
+ </div>
+ </h:panelGroup>
+ </div>
+ <br class="clear"/>
+ </h:form>
+
+ <!-- Manage existing alias bindings -->
+ <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_ALIAS_MANAGE_EXISTING}</h3>
+ <h:outputText value="#{bundle.COORDINATION_ALIAS_EXISTING_NONE}"
+ rendered="#{empty aliasManager.displayAliasBindings}"/>
+ <h:form rendered="#{!empty aliasManager.displayAliasBindings}">
+ <div class="float-left full-width">
+ <h:dataTable var="binding"
value="#{aliasManager.displayAliasBindings}"
+ rendered="true" styleClass="objectList datatable
full-width"
+
rowClasses="portlet-section-body,portlet-section-alternate-blue"
+ columnClasses="half-width"
+ headerClass="portlet-section-header">
+ <h:column>
+ <f:facet
name="header">#{bundle.COORDINATION_ALIAS_EXISTING_NAME}</f:facet>
+
+ <div class="bindingListContainer">
+ <div
class="bindingList-header">#{binding.name}</div>
<ul class="bindingList">
- <ui:repeat var="selectedQNames"
value="#{aliasManager.originalQNames}">
- <li>#{selectedQNames}</li>
+ <ui:repeat var="qname"
value="#{binding.names}">
+ <li>#{qname}</li>
</ui:repeat>
</ul>
</div>
- </h:panelGroup>
- </div>
- <br class="clear"/>
- </h:form>
-
- <!-- Manage existing alias bindings -->
- <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_ALIAS_MANAGE_EXISTING}</h3>
- <h:outputText value="#{bundle.COORDINATION_ALIAS_EXISTING_NONE}"
rendered="#{empty aliasManager.displayAliasBindings}"/>
- <h:form rendered="#{!empty aliasManager.displayAliasBindings}">
- <div class="float-left full-width">
- <h:dataTable var="binding"
value="#{aliasManager.displayAliasBindings}"
- rendered="true" styleClass="objectList
datatable full-width"
-
rowClasses="portlet-section-body,portlet-section-alternate-blue"
- columnClasses="half-width"
- headerClass="portlet-section-header">
- <h:column>
- <f:facet
name="header">#{bundle.COORDINATION_ALIAS_EXISTING_NAME}</f:facet>
- <div class="bindingListContainer">
- <div
class="bindingList-header">#{binding.name}</div>
- <ul class="bindingList">
- <ui:repeat var="qname"
value="#{binding.names}">
- <li>#{qname}</li>
- </ui:repeat>
- </ul>
- </div>
- </h:column>
- <h:column>
- <f:facet
name="header">#{bundle.COORDINATION_ALIAS_EXISTING_ACTIONS}</f:facet>
- <h:panelGrid columns="2" cellpadding="0"
cellspacing="0" border="0">
- <h:commandLink action="renameCoordination"
actionListener="#{coordinationManager.select}">
- <h:outputText styleClass="actionRename"
value="#{bundle.RENAME}"/>
- <f:param name="name"
value="#{binding.name}"/>
- <f:param name="type"
value="alias"/>
- </h:commandLink>
- <h:commandLink action="confirmCoordinationDeletion"
actionListener="#{coordinationManager.select}">
- <h:outputText styleClass="actionDelete"
value="#{bundle.COMMON_DELETE}"/>
- <f:param name="name"
value="#{binding.name}"/>
- <f:param name="type"
value="alias"/>
- </h:commandLink>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
- </div>
- <br class="clear"/>
- </h:form>
- </div>
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{bundle.COORDINATION_ALIAS_EXISTING_ACTIONS}</f:facet>
+ <h:panelGrid columns="2" cellpadding="0"
cellspacing="0" border="0">
+ <h:commandLink action="renameCoordination"
actionListener="#{coordinationManager.select}">
+ <h:outputText styleClass="actionRename"
value="#{bundle.RENAME}"/>
+ <f:param name="name"
value="#{binding.name}"/>
+ <f:param name="type" value="alias"/>
+ </h:commandLink>
+ <h:commandLink action="confirmCoordinationDeletion"
actionListener="#{coordinationManager.select}">
+ <h:outputText styleClass="actionDelete"
value="#{bundle.COMMON_DELETE}"/>
+ <f:param name="name"
value="#{binding.name}"/>
+ <f:param name="type" value="alias"/>
+ </h:commandLink>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+ </div>
+ <br class="clear"/>
+ </h:form>
</div>
+</div>
- <br/>
-
- <!-- Parameter bindings -->
- <div class="tenpx-top-bottom">
- <h2 class="portlet-area-header"
onclick="toggle_visibility('parameterBindings');" style="cursor:
pointer">
- <img id="parameterBindingsDisc"
src="/portal-admin/img/minus.gif" alt="-"/>
- <a
name="#{bundle.COORDINATION_PARAMETER_BINDINGS}"/>#{bundle.COORDINATION_PARAMETER_BINDINGS}
- </h2>
- <div id="parameterBindings"
class="coordination-section">
- <h:form>
- <h:selectBooleanCheckbox id="useExplicitBinding"
value="#{coordinationManager.explicitParametersUsed}"
- onchange="this.form.submit()"
immediate="true"/>
- #{bundle.COORDINATION_PARAMETER_EXPLICIT_MODE}
- </h:form>
+<br/>
- <hr/>
+<!-- Parameter bindings -->
+<div class="tenpx-top-bottom">
+ <h2 class="portlet-area-header"
onclick="toggle_visibility('parameterBindings');" style="cursor:
pointer">
+ <img id="parameterBindingsDisc"
src="/portal-admin/img/minus.gif" alt="-"/>
+ <a
name="#{bundle.COORDINATION_PARAMETER_BINDINGS}"/>#{bundle.COORDINATION_PARAMETER_BINDINGS}
+ </h2>
- <!-- Create parameter binding -->
- <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_PARAMETER_CREATE}</h3>
- <h:outputText
value="#{bundle.COORDINATION_PARAMETER_CREATE_NO_PAIRS}" rendered="#{empty
parameterManager.availableParameterWindowPairs}"/>
- <h:form rendered="#{!empty
parameterManager.availableParameterWindowPairs}"
id="create-binding-form">
- <div class="float-left tenpx-right">
- <h4>#{bundle.COORDINATION_PARAMETER_CREATE_STEP1}</h4>
- <h:selectManyListbox id="parameterWindowPair"
size="5" value="#{parameterManager.selectedParameterWindowPairs}"
- immediate="true"
onchange="this.form.submit()">
- <f:selectItems
value="#{parameterManager.availableParameterWindowPairs}"/>
- </h:selectManyListbox>
- </div>
+ <div id="parameterBindings" class="coordination-section">
+ <h:form>
+ <h:selectBooleanCheckbox id="useExplicitBinding"
value="#{coordinationManager.explicitParametersUsed}"
+ onclick="this.form.submit()"
immediate="true"/>
+ #{bundle.COORDINATION_PARAMETER_EXPLICIT_MODE}
+ </h:form>
- <h:panelGroup rendered="#{!empty
parameterManager.selectedParameterWindowPairs}">
- <div class="float-left paramBinding-step2">
- <h4>#{bundle.COORDINATION_PARAMETER_CREATE_STEP2}</h4>
- <div class="full-width">
+ <hr/>
+
+ <!-- Create parameter binding -->
+ <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_PARAMETER_CREATE}</h3>
+ <h:outputText
value="#{bundle.COORDINATION_PARAMETER_CREATE_NO_PAIRS}"
+ rendered="#{empty
parameterManager.availableParameterWindowPairs}"/>
+ <h:form rendered="#{!empty
parameterManager.availableParameterWindowPairs}"
id="create-binding-form">
+ <div class="float-left tenpx-right">
+ <h4>#{bundle.COORDINATION_PARAMETER_CREATE_STEP1}</h4>
+ <h:selectManyListbox id="parameterWindowPair"
size="5"
+
value="#{parameterManager.selectedParameterWindowPairs}"
+ immediate="true"
onchange="this.form.submit()">
+ <f:selectItems
value="#{parameterManager.availableParameterWindowPairs}"/>
+ </h:selectManyListbox>
+ </div>
+
+ <h:panelGroup rendered="#{!empty
parameterManager.selectedParameterWindowPairs}">
+ <div class="float-left paramBinding-step2">
+ <h4>#{bundle.COORDINATION_PARAMETER_CREATE_STEP2}</h4>
+
+ <div class="full-width">
<span>
<h:inputText id="bindingName"
value="#{parameterManager.windowBindingName}"/>
<h:message for="bindingName"
errorClass="portlet-msg-error"/>
</span>
<span>
<h:commandButton
value="#{bundle.COORDINATION_PARAMETER_CREATE_CREATE}"
- action="#{parameterManager.create}"
styleClass="portlet-form-button"/>
+ action="#{parameterManager.create}"
styleClass="portlet-form-button"/>
<h:commandButton value="#{bundle.COMMON_CANCEL}"
action="#{parameterManager.cancel}"
styleClass="portlet-form-button"/>
</span>
- </div>
</div>
- </h:panelGroup>
+ </div>
+ </h:panelGroup>
- <br class="clear"/>
- </h:form>
+ <br class="clear"/>
+ </h:form>
- <!-- Manage existing parameter bindings -->
- <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_PARAMETER_MANAGE_EXISTING}</h3>
- <div class="float-left full-width">
- <h:outputText
value="#{bundle.COORDINATION_PARAMETER_EXISTING_NONE}" rendered="#{empty
parameterManager.displayParameterBindings}"/>
- <h:form rendered="#{!empty
parameterManager.displayParameterBindings}">
- <h:dataTable var="binding"
value="#{parameterManager.displayParameterBindings}"
- rendered="true" styleClass="objectList
datatable full-width"
-
rowClasses="portlet-section-body,portlet-section-alternate-blue"
-
columnClasses="ten-percent-width,half-width,quarter-width"
- headerClass="portlet-section-header">
- <h:column>
- <f:facet
name="header">#{bundle.COORDINATION_PARAMETER_EXISTING_NAME}</f:facet>
- <h4>#{binding.name}</h4>
- </h:column>
- <h:column>
- <f:facet
name="header">#{bundle.COORDINATION_PARAMETER_EXISTING_PAIRS}</f:facet>
- <div class="full-width">
- <ui:repeat var="pair"
value="#{binding.parameterWindowPairs}">
- <div class="float-left pad5">
- <div
class="paramList-header">#{pair.window.name}</div>
- <ul class="paramList">
- <c:set var="pairname"
value="#{fn:split(pair.name, ';')}" />
- <ui:repeat var="name"
value="#{pairname}">
- <li>#{name}</li>
- </ui:repeat>
- </ul>
- </div>
- </ui:repeat>
- </div>
+ <!-- Manage existing parameter bindings -->
+ <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_PARAMETER_MANAGE_EXISTING}</h3>
- </h:column>
- <h:column>
- <f:facet
name="header">#{bundle.COORDINATION_PARAMETER_EXISTING_ACTIONS}</f:facet>
- <h:panelGrid columns="2" cellpadding="0"
cellspacing="0" border="0">
+ <div class="float-left full-width">
+ <h:outputText
value="#{bundle.COORDINATION_PARAMETER_EXISTING_NONE}"
+ rendered="#{empty
parameterManager.displayParameterBindings}"/>
+ <h:form rendered="#{!empty
parameterManager.displayParameterBindings}">
+ <h:dataTable var="binding"
value="#{parameterManager.displayParameterBindings}"
+ rendered="true" styleClass="objectList datatable
full-width"
+
rowClasses="portlet-section-body,portlet-section-alternate-blue"
+
columnClasses="ten-percent-width,half-width,quarter-width"
+ headerClass="portlet-section-header">
+ <h:column>
+ <f:facet
name="header">#{bundle.COORDINATION_PARAMETER_EXISTING_NAME}</f:facet>
+ <h4>#{binding.name}</h4>
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{bundle.COORDINATION_PARAMETER_EXISTING_PAIRS}</f:facet>
+
+ <div class="full-width">
+ <ui:repeat var="pair"
value="#{binding.parameterWindowPairs}">
+ <div class="float-left pad5">
+ <div
class="paramList-header">#{pair.window.name}</div>
+ <ul class="paramList">
+ <c:set var="pairname"
value="#{fn:split(pair.name, ';')}"/>
+ <ui:repeat var="name"
value="#{pairname}">
+ <li>#{name}</li>
+ </ui:repeat>
+ </ul>
+ </div>
+ </ui:repeat>
+ </div>
+
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{bundle.COORDINATION_PARAMETER_EXISTING_ACTIONS}</f:facet>
+ <h:panelGrid columns="2" cellpadding="0"
cellspacing="0" border="0">
<h:commandLink action="renameCoordination"
actionListener="#{coordinationManager.select}">
<h:outputText styleClass="actionRename"
value="#{bundle.RENAME}"/>
<f:param name="name"
value="#{binding.name}"/>
@@ -215,197 +250,207 @@
<f:param name="name"
value="#{binding.name}"/>
<f:param name="type"
value="parameter"/>
</h:commandLink>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
- </h:form>
- </div>
- <br class="clear"/>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+ </h:form>
</div>
+ <br class="clear"/>
</div>
+</div>
- <br/>
+<br/>
- <!-- Event wirings -->
- <h2 class="portlet-area-header"
onclick="toggle_visibility('eventWirings');" style="cursor:
pointer">
- <img id="eventWiringsDisc" src="/portal-admin/img/minus.gif"
alt="-"/>
- <a
name="#{bundle.COORDINATION_EVENT_WIRINGS}"/>#{bundle.COORDINATION_EVENT_WIRINGS}
- </h2>
- <div id="eventWirings" class="coordination-section">
- <h:form>
- <h:selectBooleanCheckbox id="useExplicitEvents"
value="#{coordinationManager.explicitEventsUsed}"
- onchange="this.form.submit()"
immediate="true"/>#{bundle.COORDINATION_EVENT_EXPLICIT_MODE}
- </h:form>
+<!-- Event wirings -->
+<h2 class="portlet-area-header"
onclick="toggle_visibility('eventWirings');" style="cursor:
pointer">
+ <img id="eventWiringsDisc" src="/portal-admin/img/minus.gif"
alt="-"/>
+ <a
name="#{bundle.COORDINATION_EVENT_WIRINGS}"/>#{bundle.COORDINATION_EVENT_WIRINGS}
+</h2>
- <hr/>
+<div id="eventWirings" class="coordination-section">
+ <h:form>
+ <h:selectBooleanCheckbox id="useExplicitEvents"
value="#{coordinationManager.explicitEventsUsed}"
+ onclick="this.form.submit()"
immediate="true"/>#{bundle.COORDINATION_EVENT_EXPLICIT_MODE}
+ </h:form>
- <!-- Create new event wiring -->
- <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_EVENT_CREATE}</h3>
- <h:outputText value="#{bundle.COORDINATION_EVENT_CREATE_NO_EVENTS}"
rendered="#{empty eventManager.sourceEvents}"/>
- <h:form rendered="#{!empty eventManager.sourceEvents}"
id="create-wiring-form">
- <div class="half-width float-left">
+ <hr/>
+
+ <!-- Create new event wiring -->
+ <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_EVENT_CREATE}</h3>
+ <h:outputText value="#{bundle.COORDINATION_EVENT_CREATE_NO_EVENTS}"
rendered="#{empty eventManager.sourceEvents}"/>
+ <h:form rendered="#{!empty eventManager.sourceEvents}"
id="create-wiring-form">
+ <div class="half-width float-left">
+ <div class="full-width pad5">
+ <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP1}</h4>
+ <h:selectOneListbox id="sourceEvent" size="5"
value="#{eventManager.selectedSourceEvent}" immediate="true"
+ onchange="this.form.submit()">
+ <f:selectItems value="#{eventManager.sourceEvents}"/>
+ </h:selectOneListbox>
+ </div>
+
+ <f:subview id="COORDINATION_EVENT_CREATE_STEP2"
rendered="#{!empty eventManager.selectedSourceEvent}">
<div class="full-width pad5">
- <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP1}</h4>
- <h:selectOneListbox id="sourceEvent" size="5"
value="#{eventManager.selectedSourceEvent}" immediate="true"
+ <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP2}</h4>
+
+ <div class="pad5"><h:graphicImage
+ url="/img/jbp-icon-set/event_source.gif"/>
#{eventManager.selectedSourceEvent}</div>
+ <h:selectManyListbox id="sourceWindows" size="5"
value="#{eventManager.selectedSourceWindows}"
+ immediate="true"
+ onchange="this.form.submit()">
+ <f:selectItems value="#{eventManager.sourceWindows}"/>
+ </h:selectManyListbox>
+ </div>
+ </f:subview>
+
+ <f:subview id="COORDINATION_EVENT_CREATE_STEP3"
rendered="#{!empty eventManager.selectedSourceWindows}">
+ <div class="full-width pad5">
+ <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP3}</h4>
+ <h:selectOneListbox id="destEvent" size="5"
value="#{eventManager.selectedDestinationEvent}"
+ immediate="true"
onchange="this.form.submit()">
- <f:selectItems value="#{eventManager.sourceEvents}"/>
+ <f:selectItems
value="#{eventManager.destinationEvents}"/>
</h:selectOneListbox>
</div>
+ </f:subview>
- <f:subview id="COORDINATION_EVENT_CREATE_STEP2"
rendered="#{!empty eventManager.selectedSourceEvent}">
- <div class="full-width pad5">
- <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP2}</h4>
- <div class="pad5"><h:graphicImage
url="/img/jbp-icon-set/event_source.gif"/>
#{eventManager.selectedSourceEvent}</div>
- <h:selectManyListbox id="sourceWindows" size="5"
value="#{eventManager.selectedSourceWindows}" immediate="true"
- onchange="this.form.submit()">
- <f:selectItems
value="#{eventManager.sourceWindows}"/>
- </h:selectManyListbox>
- </div>
- </f:subview>
+ <f:subview id="COORDINATION_EVENT_CREATE_STEP4"
rendered="#{!empty eventManager.selectedDestinationEvent}">
+ <div class="full-width pad5">
+ <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP4}</h4>
- <f:subview id="COORDINATION_EVENT_CREATE_STEP3"
rendered="#{!empty eventManager.selectedSourceWindows}">
- <div class="full-width pad5">
- <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP3}</h4>
- <h:selectOneListbox id="destEvent" size="5"
value="#{eventManager.selectedDestinationEvent}" immediate="true"
- onchange="this.form.submit()">
- <f:selectItems
value="#{eventManager.destinationEvents}"/>
- </h:selectOneListbox>
- </div>
- </f:subview>
+ <div class="pad5"><h:graphicImage
+
url="/img/jbp-icon-set/event_dest.gif"/>#{eventManager.selectedDestinationEvent}</div>
+ <h:selectManyListbox id="destWindows" size="5"
value="#{eventManager.selectedDestinationWindows}"
+ immediate="true"
+ onchange="this.form.submit()">
+ <f:selectItems
value="#{eventManager.destinationWindows}"/>
+ </h:selectManyListbox>
+ </div>
+ </f:subview>
- <f:subview id="COORDINATION_EVENT_CREATE_STEP4"
rendered="#{!empty eventManager.selectedDestinationEvent}">
- <div class="full-width pad5">
- <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP4}</h4>
- <div class="pad5"><h:graphicImage
url="/img/jbp-icon-set/event_dest.gif"/>#{eventManager.selectedDestinationEvent}</div>
- <h:selectManyListbox id="destWindows" size="5"
value="#{eventManager.selectedDestinationWindows}" immediate="true"
- onchange="this.form.submit()">
- <f:selectItems
value="#{eventManager.destinationWindows}"/>
- </h:selectManyListbox>
- </div>
- </f:subview>
+ <br class="clear"/>
+ </div>
- <br class="clear"/>
- </div>
+ <div class="half-width float-left event-wiring-preview">
+ <f:subview id="sourceEventUI" rendered="#{!empty
eventManager.selectedSourceEvent}">
+ <h4>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW}</h4>
- <div class="half-width float-left event-wiring-preview">
- <f:subview id="sourceEventUI" rendered="#{!empty
eventManager.selectedSourceEvent}">
- <h4>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW}</h4>
- <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP1}</p>
- <ul class="sourceEventList">
- <li>#{eventManager.selectedSourceEvent}</li>
- </ul>
- </f:subview>
- <f:subview id="sourceWindowUI" rendered="#{!empty
eventManager.selectedSourceWindows}" >
- <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP2}</p>
- <ul class="sourceWindowList">
- <ui:repeat var="window"
value="#{eventManager.selectedSourceWindows}">
- <li>#{window}</li>
- </ui:repeat>
- </ul>
- </f:subview>
- <f:subview id="destEventUI" rendered="#{!empty
eventManager.selectedDestinationEvent}">
- <hr/>
- <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP3}</p>
- <ul class="destEventList">
- <li>#{eventManager.selectedDestinationEvent}</li>
- </ul>
- </f:subview>
- <f:subview id="destWindowUI" rendered="#{!empty
eventManager.selectedDestinationWindows}">
- <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP4}</p>
- <ul class="destWindowList">
- <ui:repeat var="window"
value="#{eventManager.selectedDestinationWindows}">
- <li>#{window}</li>
- </ui:repeat>
- </ul>
- </f:subview>
+ <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP1}</p>
+ <ul class="sourceEventList">
+ <li>#{eventManager.selectedSourceEvent}</li>
+ </ul>
+ </f:subview>
+ <f:subview id="sourceWindowUI" rendered="#{!empty
eventManager.selectedSourceWindows}">
+ <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP2}</p>
+ <ul class="sourceWindowList">
+ <ui:repeat var="window"
value="#{eventManager.selectedSourceWindows}">
+ <li>#{window}</li>
+ </ui:repeat>
+ </ul>
+ </f:subview>
+ <f:subview id="destEventUI" rendered="#{!empty
eventManager.selectedDestinationEvent}">
+ <hr/>
+ <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP3}</p>
+ <ul class="destEventList">
+ <li>#{eventManager.selectedDestinationEvent}</li>
+ </ul>
+ </f:subview>
+ <f:subview id="destWindowUI" rendered="#{!empty
eventManager.selectedDestinationWindows}">
+ <p>#{bundle.COORDINATION_EVENT_CREATE_PREVIEW_STEP4}</p>
+ <ul class="destWindowList">
+ <ui:repeat var="window"
value="#{eventManager.selectedDestinationWindows}">
+ <li>#{window}</li>
+ </ui:repeat>
+ </ul>
+ </f:subview>
- <f:subview id="COORDINATION_EVENT_CREATE_STEP5"
rendered="#{!empty eventManager.selectedDestinationWindows}">
- <div class="full-width createwiring-box">
- <div class="margin10">
- <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP5}</h4>
- <h:inputText id="wiringName"
value="#{eventManager.wiringName}"/>
- <h:message for="wiringName"
errorClass="portlet-msg-error"/>
- <h:commandButton
value="#{bundle.COORDINATION_EVENT_CREATE_CREATE}"
action="#{eventManager.create}"
- styleClass="portlet-form-button"/>
- <h:commandButton value="#{bundle.COMMON_CANCEL}"
action="#{eventManager.cancel}"
- styleClass="portlet-form-button"/>
- </div>
+ <f:subview id="COORDINATION_EVENT_CREATE_STEP5"
rendered="#{!empty eventManager.selectedDestinationWindows}">
+ <div class="full-width createwiring-box">
+ <div class="margin10">
+ <h4>#{bundle.COORDINATION_EVENT_CREATE_STEP5}</h4>
+ <h:inputText id="wiringName"
value="#{eventManager.wiringName}"/>
+ <h:message for="wiringName"
errorClass="portlet-msg-error"/>
+ <h:commandButton
value="#{bundle.COORDINATION_EVENT_CREATE_CREATE}"
action="#{eventManager.create}"
+ styleClass="portlet-form-button"/>
+ <h:commandButton value="#{bundle.COMMON_CANCEL}"
action="#{eventManager.cancel}"
+ styleClass="portlet-form-button"/>
</div>
- </f:subview>
+ </div>
+ </f:subview>
- <br class="clear"/>
- </div>
+ <br class="clear"/>
+ </div>
- </h:form>
+ </h:form>
- <br class="clear"/>
+ <br class="clear"/>
- <!-- Manage existing wirings -->
- <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_EVENT_MANAGE_EXISTING}</h3>
- <h:outputText value="#{bundle.COORDINATION_EVENT_EXISTING_NONE}"
rendered="#{empty eventManager.displayEventWirings}"/>
- <h:form rendered="#{!empty eventManager.displayEventWirings}">
- <h:dataTable var="wiring"
value="#{eventManager.displayEventWirings}"
- styleClass="objectList datatable"
-
rowClasses="portlet-section-body,portlet-section-alternate-blue"
-
columnClasses="ten-percent-width,quarter-width,quarter-width,ten-percent-width"
- headerClass="portlet-section-header">
- <h:column>
- <f:facet name="header">
- #{bundle.COORDINATION_EVENT_EXISTING_NAME}
- </f:facet>
- #{wiring.name}
- </h:column>
+ <!-- Manage existing wirings -->
+ <h3 class="sectionTitle
tenpx-top-bottom">#{bundle.COORDINATION_EVENT_MANAGE_EXISTING}</h3>
+ <h:outputText value="#{bundle.COORDINATION_EVENT_EXISTING_NONE}"
+ rendered="#{empty eventManager.displayEventWirings}"/>
+ <h:form rendered="#{!empty eventManager.displayEventWirings}">
+ <h:dataTable var="wiring"
value="#{eventManager.displayEventWirings}"
+ styleClass="objectList datatable"
+
rowClasses="portlet-section-body,portlet-section-alternate-blue"
+
columnClasses="ten-percent-width,quarter-width,quarter-width,ten-percent-width"
+ headerClass="portlet-section-header">
+ <h:column>
+ <f:facet name="header">
+ #{bundle.COORDINATION_EVENT_EXISTING_NAME}
+ </f:facet>
+ #{wiring.name}
+ </h:column>
- <h:column>
- <f:facet name="header">
- #{bundle.COORDINATION_EVENT_EXISTING_SOURCE_WINDOWS} ⇒
#{bundle.COORDINATION_EVENT_EXISTING_SOURCE_EVENTS}
- </f:facet>
- <ul class="sourceWindowList">
- <ui:repeat var="window"
value="#{wiring.sourceWindows}">
- <li>
- <h:commandLink
action="#{portalobjectmgr.selectObject}" styleClass="objectName">
- <f:param name="id"
value="#{window.id}"/>
- #{window.name}
- </h:commandLink>
- </li>
- </ui:repeat>
- </ul>
- <span style="display: block;
text-align:center;">⇓</span>
- <ul class="sourceEventList">
- <ui:repeat var="event"
value="#{wiring.sourceEvents}">
- <li>#{event}</li>
- </ui:repeat>
- </ul>
- </h:column>
- <h:column>
- <f:facet name="header">
- #{bundle.COORDINATION_EVENT_EXISTING_DESTINATION_WINDOWS} ⇐
#{bundle.COORDINATION_EVENT_EXISTING_DESTINATION_EVENTS}
- </f:facet>
+ <h:column>
+ <f:facet name="header">
+ #{bundle.COORDINATION_EVENT_EXISTING_SOURCE_WINDOWS} ⇒
#{bundle.COORDINATION_EVENT_EXISTING_SOURCE_EVENTS}
+ </f:facet>
+ <ul class="sourceWindowList">
+ <ui:repeat var="window"
value="#{wiring.sourceWindows}">
+ <li>
+ <h:commandLink action="#{portalobjectmgr.selectObject}"
styleClass="objectName">
+ <f:param name="id"
value="#{window.id}"/>
+ #{window.name}
+ </h:commandLink>
+ </li>
+ </ui:repeat>
+ </ul>
+ <span style="display: block;
text-align:center;">⇓</span>
+ <ul class="sourceEventList">
+ <ui:repeat var="event"
value="#{wiring.sourceEvents}">
+ <li>#{event}</li>
+ </ui:repeat>
+ </ul>
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ #{bundle.COORDINATION_EVENT_EXISTING_DESTINATION_WINDOWS} ⇐
#{bundle.COORDINATION_EVENT_EXISTING_DESTINATION_EVENTS}
+ </f:facet>
- <ul class="destWindowList">
- <ui:repeat var="window"
value="#{wiring.destinationWindows}">
- <li>
- <h:commandLink
action="#{portalobjectmgr.selectObject}" styleClass="objectName">
- <f:param name="id"
value="#{window.id}"/>
- #{window.name}
- </h:commandLink>
- </li>
- </ui:repeat>
- </ul>
- <span style="display: block;
text-align:center;">⇑</span>
- <ul class="destEventList">
- <ui:repeat var="event"
value="#{wiring.destinationEvents}">
- <li>#{event}</li>
- </ui:repeat>
- </ul>
+ <ul class="destWindowList">
+ <ui:repeat var="window"
value="#{wiring.destinationWindows}">
+ <li>
+ <h:commandLink action="#{portalobjectmgr.selectObject}"
styleClass="objectName">
+ <f:param name="id"
value="#{window.id}"/>
+ #{window.name}
+ </h:commandLink>
+ </li>
+ </ui:repeat>
+ </ul>
+ <span style="display: block;
text-align:center;">⇑</span>
+ <ul class="destEventList">
+ <ui:repeat var="event"
value="#{wiring.destinationEvents}">
+ <li>#{event}</li>
+ </ui:repeat>
+ </ul>
- </h:column>
- <h:column>
- <f:facet name="header">
- #{bundle.COORDINATION_EVENT_EXISTING_ACTIONS}
- </f:facet>
- <h:panelGrid columns="2" cellpadding="0"
cellspacing="0" border="0">
+ </h:column>
+ <h:column>
+ <f:facet name="header">
+ #{bundle.COORDINATION_EVENT_EXISTING_ACTIONS}
+ </f:facet>
+ <h:panelGrid columns="2" cellpadding="0"
cellspacing="0" border="0">
<h:commandLink action="renameCoordination"
actionListener="#{coordinationManager.select}">
<h:outputText styleClass="actionRename"
value="#{bundle.RENAME}"/>
<f:param name="name"
value="#{wiring.name}"/>
@@ -416,11 +461,11 @@
<f:param name="name"
value="#{wiring.name}"/>
<f:param name="type" value="wiring"/>
</h:commandLink>
- </h:panelGrid>
- </h:column>
- </h:dataTable>
- </h:form>
- </div>
+ </h:panelGrid>
+ </h:column>
+ </h:dataTable>
+ </h:form>
+</div>
</ui:define>
</ui:composition>
Modified:
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/consumers/editConsumer.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/consumers/editConsumer.xhtml 2009-04-20
17:19:11 UTC (rev 13233)
+++
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/consumers/editConsumer.xhtml 2009-04-20
17:23:04 UTC (rev 13234)
@@ -1,3 +1,26 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
<ui:decorate template="consumerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -7,197 +30,200 @@
<ui:define name="content">
-<hr/>
+ <hr/>
-<h:form id="edit-cons-form">
-<table width="100%" class="portlet-table-body #{consumer.active ?
'active' : 'inactive'}">
-<tr>
- <th>#{i18n.edit_consumer_producer}</th>
- <td>
- <h:inputText id="id" value="#{consumer.id}"/>
<h:message styleClass="portlet-msg-error" for="id"/>
- </td>
-</tr>
-<tr>
- <th>#{i18n.edit_consumer_cache}</th>
- <td>
- <h:inputText id="cache" value="#{consumer.cache}"/>
#{i18n.edit_consumer_cache_seconds}
- <h:message styleClass="portlet-msg-error" for="cache"/>
- </td>
-</tr>
-<tr>
- <th>#{i18n.edit_consumer_endpoint}</th>
- <td>
- <h:selectBooleanCheckbox id="useWSDL"
value="#{consumer.useWSDL}" onchange="this.form.submit()"
-
valueChangeListener="#{consumer.useWSDLListener}"
-
immediate="true"/>#{i18n.edit_consumer_endpoint_wsdl}
- <h:message styleClass="portlet-msg-error"
for="useWSDL"/>
-
- <h:panelGroup rendered="#{consumer.useWSDL}">
- <h:inputText id="wsdl" size="70"
value="#{consumer.wsdl}"/> <h:message
styleClass="portlet-msg-error"
-
for="wsdl"/>
- </h:panelGroup>
+ <h:form id="edit-cons-form">
+ <table width="100%" class="portlet-table-body #{consumer.active ?
'active' : 'inactive'}">
+ <tr>
+ <th>#{i18n.edit_consumer_producer}</th>
+ <td>
+ <h:inputText id="id" value="#{consumer.id}"/>
<h:message styleClass="portlet-msg-error" for="id"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_cache}</th>
+ <td>
+ <h:inputText id="cache"
value="#{consumer.cache}"/> #{i18n.edit_consumer_cache_seconds}
+ <h:message styleClass="portlet-msg-error"
for="cache"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint}</th>
+ <td>
+ <h:selectBooleanCheckbox id="useWSDL"
value="#{consumer.useWSDL}" onclick="this.form.submit()"
+
valueChangeListener="#{consumer.useWSDLListener}"
+
immediate="true"/>#{i18n.edit_consumer_endpoint_wsdl}
+ <h:message styleClass="portlet-msg-error"
for="useWSDL"/>
- <h:panelGroup rendered="#{!consumer.useWSDL}">
- <table border="0" class='portlet-table-body'>
- <tr>
- <th>#{i18n.edit_consumer_endpoint_sd}</th>
- <td>
- <h:inputText id="sd" size="70"
value="#{consumer.serviceDescription}"/> <h:message
- styleClass="portlet-msg-error"
for="sd"/>
- </td>
- </tr>
- <tr>
- <th>#{i18n.edit_consumer_endpoint_m}</th>
- <td>
- <h:inputText id="m" size="70"
value="#{consumer.markup}"/> <h:message
- styleClass="portlet-msg-error"
for="m"/>
- </td>
- </tr>
- <tr>
- <th>#{i18n.edit_consumer_endpoint_r}</th>
- <td>
- <h:inputText id="r" size="70"
value="#{consumer.registration}"/> <h:message
- styleClass="portlet-msg-error"
- for="r"/>
- </td>
- </tr>
- <tr>
- <th>#{i18n.edit_consumer_endpoint_pm}</th>
- <td>
- <h:inputText id="pm" size="70"
value="#{consumer.portletManagement}"/> <h:message
- styleClass="portlet-msg-error"
for="pm"/>
- </td>
- </tr>
- </table>
- </h:panelGroup>
- </td>
-</tr>
-<c:if test="#{consumer.localInfoPresent}">
-<tr>
- <th>#{i18n.edit_consumer_registration}</th>
- <td>
- <c:choose>
- <c:when test="#{consumer.localInfoPresent}">
- <h3
class="portlet-area-header">#{i18n.edit_consumer_registration_current}</h3>
- <h:panelGroup styleClass="portlet-area-body">
- <c:choose>
- <c:when
test="#{consumer.registrationPropertiesEmpty}">
- <h:dataTable id="existingProps"
- value="#{consumer.registrationProperties}"
var="prop"
-
rowClasses="portlet-section-body,portlet-section-alternate"
- columnClasses="nameColumn,descColumn,"
- headerClass="portlet-section-header
#{consumer.active ? 'active' : 'inactive'}"
- styleClass="registration-prop-table
#{consumer.active ? 'active' : 'inactive'}"
- width="100%">
- <h:column>
- <f:facet
name="header">#{i18n.edit_consumer_prop_name}</f:facet>
- #{prop.name}
- </h:column>
- <h:column>
- <f:facet
name="header">#{i18n.edit_consumer_prop_desc}</f:facet>
- #{prop.description.label.value}
- </h:column>
- <h:column>
- <f:facet
name="header">#{i18n.edit_consumer_prop_value}</f:facet>
- <!-- todo: valueChangeListener not needed anymore when
events on RegistrationProperties work -->
- <h:inputText id="prop-value-input"
value="#{prop.value}" size="50"
-
valueChangeListener="#{consumer.regPropListener}"
-
disabled="#{consumer.registrationModified}"/>
- <h:outputText styleClass="portlet-msg-error"
value="#{prop.status}"
- rendered="#{prop.determinedInvalid}"
-
converter="faces.convert.RegistrationProperty.Status"/>
- </h:column>
- </h:dataTable>
- <h:commandLink id="cons-update-link"
action="#{consumer.update}"
-
value="#{i18n.edit_consumer_registration_update_props}"
- rendered="#{consumer.registered}"
- styleClass="portlet-form-button
portlet-section-buttonrow"/>
- </c:when>
- <c:otherwise>
- #{i18n.edit_consumer_registration_no_props}
- </c:otherwise>
- </c:choose>
- <h:commandLink id="modify-reg-link"
action="#{consumer.modifyRegistration}"
-
value="#{i18n.edit_consumer_registration_modify}"
-
rendered="#{consumer.registrationLocallyModified}"
-
title="#{i18n.edit_consumer_registration_modify_title}"
- styleClass="portlet-form-button
portlet-section-buttonrow"/>
- <br style="clear:both;"/>
- </h:panelGroup>
+ <h:panelGroup rendered="#{consumer.useWSDL}">
+ <h:inputText id="wsdl" size="70"
value="#{consumer.wsdl}"/> <h:message
styleClass="portlet-msg-error"
+
for="wsdl"/>
+ </h:panelGroup>
- <br/>
+ <h:panelGroup rendered="#{!consumer.useWSDL}">
+ <table border="0" class='portlet-table-body'>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_sd}</th>
+ <td>
+ <h:inputText id="sd" size="70"
value="#{consumer.serviceDescription}"/> <h:message
+ styleClass="portlet-msg-error"
for="sd"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_m}</th>
+ <td>
+ <h:inputText id="m" size="70"
value="#{consumer.markup}"/> <h:message
+ styleClass="portlet-msg-error"
for="m"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_r}</th>
+ <td>
+ <h:inputText id="r" size="70"
value="#{consumer.registration}"/> <h:message
+ styleClass="portlet-msg-error"
+ for="r"/>
+ </td>
+ </tr>
+ <tr>
+ <th>#{i18n.edit_consumer_endpoint_pm}</th>
+ <td>
+ <h:inputText id="pm" size="70"
value="#{consumer.portletManagement}"/> <h:message
+ styleClass="portlet-msg-error"
for="pm"/>
+ </td>
+ </tr>
+ </table>
+ </h:panelGroup>
+ </td>
+ </tr>
+ <c:if test="#{consumer.localInfoPresent}">
+ <tr>
+ <th>#{i18n.edit_consumer_registration}</th>
+ <td>
+ <c:choose>
+ <c:when test="#{consumer.localInfoPresent}">
+ <h3
class="portlet-area-header">#{i18n.edit_consumer_registration_current}</h3>
+ <h:panelGroup styleClass="portlet-area-body">
+ <c:choose>
+ <c:when
test="#{consumer.registrationPropertiesEmpty}">
+ <h:dataTable id="existingProps"
+
value="#{consumer.registrationProperties}" var="prop"
+
rowClasses="portlet-section-body,portlet-section-alternate"
+
columnClasses="nameColumn,descColumn,"
+ headerClass="portlet-section-header
#{consumer.active ? 'active' : 'inactive'}"
+ styleClass="registration-prop-table
#{consumer.active ? 'active' : 'inactive'}"
+ width="100%">
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_name}</f:facet>
+ #{prop.name}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_desc}</f:facet>
+ #{prop.description.label.value}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_value}</f:facet>
+ <!-- todo: valueChangeListener not needed
anymore when events on RegistrationProperties work -->
+ <h:inputText id="prop-value-input"
value="#{prop.value}" size="50"
+
valueChangeListener="#{consumer.regPropListener}"
+
disabled="#{consumer.registrationModified}"/>
+ <h:outputText
styleClass="portlet-msg-error" value="#{prop.status}"
+
rendered="#{prop.determinedInvalid}"
+
converter="faces.convert.RegistrationProperty.Status"/>
+ </h:column>
+ </h:dataTable>
+ <h:commandLink id="cons-update-link"
action="#{consumer.update}"
+
value="#{i18n.edit_consumer_registration_update_props}"
+
rendered="#{consumer.registered}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ </c:when>
+ <c:otherwise>
+ #{i18n.edit_consumer_registration_no_props}
+ </c:otherwise>
+ </c:choose>
+ <h:commandLink id="modify-reg-link"
action="#{consumer.modifyRegistration}"
+
value="#{i18n.edit_consumer_registration_modify}"
+
rendered="#{consumer.registrationLocallyModified}"
+
title="#{i18n.edit_consumer_registration_modify_title}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ <br style="clear:both;"/>
+ </h:panelGroup>
- <c:if test="#{consumer.registrationModified}">
- <h3
class="portlet-area-header">#{i18n.edit_consumer_registration_expected}</h3>
- <h:panelGroup styleClass="portlet-area-body">
- <c:choose>
- <c:when
test="#{consumer.expectedRegistrationPropertiesEmpty}">
- <h:dataTable id="expectedProps"
-
value="#{consumer.expectedRegistrationProperties}" var="prop"
-
rowClasses="portlet-section-body,portlet-section-alternate"
- columnClasses="nameColumn,descColumn,"
- headerClass="portlet-section-header
#{consumer.active ? 'active' : 'inactive'}"
- styleClass="registration-prop-table
#{consumer.active ? 'active' : 'inactive'}"
- width="100%">
- <h:column>
- <f:facet
name="header">#{i18n.edit_consumer_prop_name}</f:facet>
- #{prop.name}
- </h:column>
- <h:column>
- <f:facet
name="header">#{i18n.edit_consumer_prop_desc}</f:facet>
- #{prop.description.label.value}
- </h:column>
- <h:column>
- <f:facet
name="header">#{i18n.edit_consumer_prop_value}</f:facet>
- <h:inputText id="prop-value-input"
value="#{prop.value}" size="50"/>
- <h:outputText styleClass="portlet-msg-error"
value="#{prop.status}"
-
rendered="#{prop.determinedInvalid}"
-
converter="faces.convert.RegistrationProperty.Status"/>
- </h:column>
- </h:dataTable>
+ <br/>
+
+ <c:if test="#{consumer.registrationModified}">
+ <h3
class="portlet-area-header">#{i18n.edit_consumer_registration_expected}</h3>
+ <h:panelGroup styleClass="portlet-area-body">
+ <c:choose>
+ <c:when
test="#{consumer.expectedRegistrationPropertiesEmpty}">
+ <h:dataTable id="expectedProps"
+
value="#{consumer.expectedRegistrationProperties}" var="prop"
+
rowClasses="portlet-section-body,portlet-section-alternate"
+
columnClasses="nameColumn,descColumn,"
+ headerClass="portlet-section-header
#{consumer.active ? 'active' : 'inactive'}"
+ styleClass="registration-prop-table
#{consumer.active ? 'active' : 'inactive'}"
+ width="100%">
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_name}</f:facet>
+ #{prop.name}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_desc}</f:facet>
+ #{prop.description.label.value}
+ </h:column>
+ <h:column>
+ <f:facet
name="header">#{i18n.edit_consumer_prop_value}</f:facet>
+ <h:inputText id="prop-value-input"
value="#{prop.value}" size="50"/>
+ <h:outputText
styleClass="portlet-msg-error" value="#{prop.status}"
+
rendered="#{prop.determinedInvalid}"
+
converter="faces.convert.RegistrationProperty.Status"/>
+ </h:column>
+ </h:dataTable>
+ </c:when>
+ <c:otherwise>
+ #{i18n.edit_consumer_registration_no_props}
+ </c:otherwise>
+ </c:choose>
+ <h:commandLink id="edit-reg-link"
action="#{consumer.modifyRegistration}"
+
value="#{i18n.edit_consumer_registration_modify}"
+
title="#{i18n.edit_consumer_registration_modify_title}"
+ styleClass="portlet-form-button
portlet-section-buttonrow"/>
+ <br style="clear:both;"/>
+ </h:panelGroup>
+ </c:if>
</c:when>
- <c:otherwise>
- #{i18n.edit_consumer_registration_no_props}
- </c:otherwise>
+ <c:when test="#{consumer.registrationChecked and
!consumer.registrationRequired}">
+ #{i18n.edit_consumer_no_registration}
+ </c:when>
</c:choose>
- <h:commandLink id="edit-reg-link"
action="#{consumer.modifyRegistration}"
-
value="#{i18n.edit_consumer_registration_modify}"
-
title="#{i18n.edit_consumer_registration_modify_title}"
- styleClass="portlet-form-button
portlet-section-buttonrow"/>
- <br style="clear:both;"/>
- </h:panelGroup>
+ </td>
+ </tr>
+ <c:if test="#{!empty
consumer.producerInfo.registrationInfo.registrationHandle}">
+ <tr>
+ <th>#{i18n.edit_consumer_registration_context}</th>
+ <td id="handle">
+ #{i18n.edit_consumer_registration_context_handle} <h:outputText
+
value="#{consumer.producerInfo.registrationInfo.registrationHandle}"/>
+ <h:commandLink id="erase-cons-link"
action="confirmEraseRegistration"
+
value="#{i18n.edit_consumer_registration_context_erase}"
+
title="#{i18n.edit_consumer_registration_context_erase_title}"
+ styleClass="portlet-form-button"/>
+ </td>
+ </tr>
</c:if>
- </c:when>
- <c:when test="#{consumer.registrationChecked and
!consumer.registrationRequired}">
- #{i18n.edit_consumer_no_registration}
- </c:when>
- </c:choose>
- </td>
-</tr>
-<c:if test="#{!empty
consumer.producerInfo.registrationInfo.registrationHandle}">
- <tr>
- <th>#{i18n.edit_consumer_registration_context}</th>
- <td id="handle">
- #{i18n.edit_consumer_registration_context_handle} <h:outputText
-
value="#{consumer.producerInfo.registrationInfo.registrationHandle}"/>
- <h:commandLink id="erase-cons-link"
action="confirmEraseRegistration"
value="#{i18n.edit_consumer_registration_context_erase}"
-
title="#{i18n.edit_consumer_registration_context_erase_title}"
- styleClass="portlet-form-button"/>
- </td>
- </tr>
-</c:if>
-</c:if>
-<tr>
- <th/>
- <td class="portlet-section-buttonrow">
- <h:commandButton id="refresh-cons-link"
action="#{consumer.refreshConsumer}"
value="#{i18n.edit_consumer_refresh}"
- title="#{i18n.edit_consumer_refresh_title}"
- styleClass="portlet-form-button"/>
- <h:commandLink id="list-cons-link"
action="#{consumersMgr.listConsumers}"
value="#{i18n.edit_consumer_cancel}" immediate="true"
- styleClass="portlet-form-button"/>
- </td>
-</tr>
-</table>
-</h:form>
+ </c:if>
+ <tr>
+ <th/>
+ <td class="portlet-section-buttonrow">
+ <h:commandButton id="refresh-cons-link"
action="#{consumer.refreshConsumer}"
+ value="#{i18n.edit_consumer_refresh}"
+ title="#{i18n.edit_consumer_refresh_title}"
+ styleClass="portlet-form-button"/>
+ <h:commandLink id="list-cons-link"
action="#{consumersMgr.listConsumers}"
+ value="#{i18n.edit_consumer_cancel}"
immediate="true"
+ styleClass="portlet-form-button"/>
+ </td>
+ </tr>
+ </table>
+ </h:form>
</ui:define>
</ui:decorate>
Modified:
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/producer/producer.xhtml
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/producer/producer.xhtml 2009-04-20
17:19:11 UTC (rev 13233)
+++
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/producer/producer.xhtml 2009-04-20
17:23:04 UTC (rev 13234)
@@ -1,3 +1,26 @@
+<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ ~ JBoss, a division of Red Hat ~
+ ~ Copyright 2009, Red Hat Middleware, LLC, and individual
+ ~ contributors as indicated by the @authors tag. See the
+ ~ copyright.txt in the distribution for a full listing of
+ ~ individual contributors.
+ ~
+ ~ This is free software; you can redistribute it and/or modify it
+ ~ under the terms of the GNU Lesser General Public License as
+ ~ published by the Free Software Foundation; either version 2.1 of
+ ~ the License, or (at your option) any later version.
+ ~
+ ~ This software is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ ~ Lesser General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Lesser General Public
+ ~ License along with this software; if not, write to the Free
+ ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ ~ 02110-1301 USA, or see the FSF site:
http://www.fsf.org. ~
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
+
<ui:decorate template="producerTemplate.xhtml"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
@@ -9,13 +32,14 @@
<ui:define name="content">
<h:form id="producer-form">
<h:panelGrid columns="2" width="100%">
- <h:selectBooleanCheckbox id="cons-reg-req-check"
value="#{producer.registrationRequiredForFullDescription}"/>
+ <h:selectBooleanCheckbox id="cons-reg-req-check"
+
value="#{producer.registrationRequiredForFullDescription}"/>
<h:outputText
value="#{i18n.producer_config_sd_requires_reg}"/>
<h:selectBooleanCheckbox value="#{producer.strictMode}"/>
<h:outputText value="#{i18n.producer_config_strict}"/>
-
- <h:selectBooleanCheckbox id="req-reg-check"
value="#{producer.registrationRequired}" immediate="true"
- onchange="this.form.submit()"
+
+ <h:selectBooleanCheckbox id="req-reg-check"
value="#{producer.registrationRequired}" immediate="true"
+ onclick="this.form.submit()"
valueChangeListener="#{producer.requireRegistrationListener}"/>
<h:outputText value="#{i18n.producer_config_requires_reg}"/>
@@ -87,7 +111,8 @@
<h:panelGroup styleClass="portlet-section-buttonrow">
<h:commandButton id="save-producer"
action="#{producer.save}" value="#{i18n.producer_config_save}"
styleClass="portlet-form-button"/>
- <h:commandButton id="reload-producer"
action="#{producer.reloadConfiguration}"
value="#{i18n.producer_config_cancel}"
+ <h:commandButton id="reload-producer"
action="#{producer.reloadConfiguration}"
+ value="#{i18n.producer_config_cancel}"
styleClass="portlet-form-button"/>
</h:panelGroup>
</h:panelGrid>