Author: thomas.heute(a)jboss.com
Date: 2009-01-20 05:35:10 -0500 (Tue, 20 Jan 2009)
New Revision: 12563
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/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
Log:
- For some reason JSTL doesn't like Facelets
- Message instead of failing
Modified:
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java
===================================================================
---
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java 2009-01-19
22:21:27 UTC (rev 12562)
+++
branches/JBoss_Portal_Branch_2_7/core/src/main/org/jboss/portal/core/ui/content/portlet/PortletContentEditorPortlet.java 2009-01-20
10:35:10 UTC (rev 12563)
@@ -39,6 +39,8 @@
import javax.portlet.PortletSecurityException;
import javax.portlet.RenderRequest;
import javax.portlet.RenderResponse;
+import javax.portlet.UnavailableException;
+
import javax.xml.namespace.QName;
import java.io.IOException;
import java.io.PrintWriter;
@@ -97,6 +99,15 @@
}
}
+
+ protected void doView(RenderRequest req, RenderResponse resp) throws PortletException,
PortletSecurityException, IOException
+ {
+ resp.setContentType("text/html");
+ PrintWriter writer = resp.getWriter();
+ writer.write("This portlet is not made to be viewed");
+ writer.close();
+ }
+
protected void doEditContent(RenderRequest req, RenderResponse resp) throws
PortletException, PortletSecurityException, IOException
{
getContent(req, resp, false);
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-01-19
22:21:27 UTC (rev 12562)
+++
branches/JBoss_Portal_Branch_2_7/core-wsrp/src/resources/portal-wsrp-admin-war/jsf/consumers/editConsumer.xhtml 2009-01-20
10:35:10 UTC (rev 12563)
@@ -27,17 +27,17 @@
<tr>
<th>#{i18n.edit_consumer_endpoint}</th>
<td>
- <h:selectBooleanCheckbox id="useWSDL"
value="#{consumer.useWSDL}" onchange="this.form.submit()"
+ <h:selectBooleanCheckbox id="useWSDL"
value="#{consumer.useWSDL}" onchange="this.form.submit()"
valueChangeListener="#{consumer.useWSDLListener}"
-
immediate="true"/>#{i18n.edit_consumer_endpoint_wsdl}
+
immediate="true"/>#{i18n.edit_consumer_endpoint_wsdl}
<h:message styleClass="portlet-msg-error"
for="useWSDL"/>
- <c:choose>
- <c:when test="#{consumer.useWSDL}">
+
+ <h:panelGroup rendered="#{consumer.useWSDL}">
<h:inputText id="wsdl" size="70"
value="#{consumer.wsdl}"/> <h:message
styleClass="portlet-msg-error"
for="wsdl"/>
- </c:when>
+ </h:panelGroup>
- <c:otherwise>
+ <h:panelGroup rendered="#{!consumer.useWSDL}">
<table border="0" class='portlet-table-body'>
<tr>
<th>#{i18n.edit_consumer_endpoint_sd}</th>
@@ -69,8 +69,7 @@
</td>
</tr>
</table>
- </c:otherwise>
- </c:choose>
+ </h:panelGroup>
</td>
</tr>
<c:if test="#{consumer.localInfoPresent}">
@@ -201,4 +200,4 @@
</table>
</h:form>
</ui:define>
-</ui:decorate>
\ No newline at end of file
+</ui:decorate>