Announcement Announcement Module
No announcement yet.
JSF and WebFlow Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    craigmcc did you integrate JSF in a way that supports JSF portlets?

    craigmcc did you integrate JSF in a way that supports JSF portlets? If so can you point me to documentation on that?


    • #32
      I opened up issue on what I found..


      • #33
        Where in the framework would be the best place to initiate a flow?

        I still haven't got any feedback on this. Please take 5mins to give me a tidbit of info.

        Where in the framework would be the best place to initiate a flow. Currently the initial page is not part of the flow it is specified by portal integration framework and from that the flow is launched. I think it makes more sense to define the flowId of the flow to be launched and it could then pick up the page and any initial actions from flow definition.


        • #34
          I have done some refactoring and my current solution appears to accomplish this

          I have streamlined some of the JSF integration so now everything is driven by the flow including the initial state.
          Below are the 3 relavent files.

          portlet.xml contains the standard DispatcherPortlet portlet we know and love.
          In sellItemPortlet.xml for view mode it delegates to a JsfPortletFlowController with the flowId defining the flow (in this case sellItem)
          The entry state of the portlet occurs when the portlet is displayed in the portal
          In this case the entry-actions for sellItem run which populate request prior to display of view-state.
          On submit sellItemDetails view state is entered.

          It seems to all work but now I need the spring team to get involved but for some reason (probably JavaOne) no one is responding to these JSF-Portlet-Webflow posts.

          <?xml version="1.0" encoding="UTF-8"?>
          <portlet-app version="1.0"

          <portlet-class>org.springframework.web.portlet.DispatcherPo rtlet</portlet-class>
          <title>Sell Items</title>

          <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"

          <!-- Application context definition -->


          <bean id="portletModeControllerMapping"
          class="org.springframework.web.portlet.handler.Por tletModeHandlerMapping">
          <property name="portletModeMap">
          <entry key="view">
          <ref bean="sellItemsFlowController" />

          <bean id="sellItemsFlowController" class="org.springframework.webflow.executor.mvc.Js fPortletFlowController">
          <property name="flowLocator" ref="flowLocator"/>
          <property name="defaultFlowId"><value>sellItems</value></property>

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE flow PUBLIC "-//SPRING//DTD WEBFLOW 1.0//EN"

          <flow start-state="sellItems">

          <view-state id="sellItems" view="/WEB-INF/jsp/sellItems.jsp">
          <transition on="submit" to="sellItemDetail"/>

          <view-state id="claimsDetail" view="/WEB-INF/jsp/sellItemDetail.jsp">
          <transition on="submit" to="sellItems"/>