3 Replies Latest reply on Nov 17, 2008 10:11 AM by danielk

    Cannot switch portlet mode

      I cannot switch portlet mode back to view mode when I submit something in edit mode. When I am in edit mode and click "Cancel" without submitting something it works. But when I submit something in edit mode it doesn't works, the mode label is switching from "Cancel" to "Edit" but the content is not switching.

      I am using:
      - JBoss Portal 2.6.3
      - JSF
      - RichFaces 3.1.4
      - JBoss Portlet Bridge 1.0.0.B2

      I tried to submit something with a4j:commandButton and h:commandButton, it gives same result.

      Can someone help me please?

        • 1. Re: Cannot switch portlet mode
          wesleyhales

          Are you using RichFaces 3.1.4.SR1? If so try using 3.2.0.GA.

          • 2. Re: Cannot switch portlet mode

            Thanks for replay!
            I used RichFaces 3.1.4.GA.
            I tried it also with RichFaces 3.2.0.GA --> same problem.
            I tried it with JBoss Portal 2.6.4 + JSF + RichFaces 3.2.0.GA + JBoss Portlet Bridge 1.0.0.B2 --> same problem.

            My portlet.xml:

            ...
            <init-param>
             <name>javax.portlet.faces.defaultViewId.view</name>
             <value>/jsf/view.xhtml</value>
            </init-param>
            <init-param>
             <name>javax.portlet.faces.defaultViewId.edit</name>
             <value>/jsf/edit.xhtml</value>
            </init-param>
            <init-param>
             <name>javax.portlet.faces.defaultViewId.help</name>
             <value>/jsf/help.xhtml</value>
            </init-param>
            <expiration-cache>-0</expiration-cache>
            <supports>
             <mime-type>text/html</mime-type>
             <portlet-mode>VIEW</portlet-mode>
             <portlet-mode>EDIT</portlet-mode>
            </supports>
            ...
            



            • 3. Re: Cannot switch portlet mode
              danielk

              In about 6 Months no answer for a simple question:
              "Is switching portlet Mode with given Configuration possible"

              Perhaps now is the time for an answer. Hope dies last.

              Wbr,

              DanielK