Announcement Announcement Module
Collapse
No announcement yet.
Webflow portlet problems with phonebook sample app/jetspeed2 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Webflow portlet problems with phonebook sample app/jetspeed2

    I attempted to get phonebook demo running in jetspeed2. I get the first search screen fine and the help screens also appear to work but the search submit never brings me to search results page. It brings me back to initial search screen. Please let me know what needs to change.

    I have the eclipse project posted in the wiki....

    Assuming in jakarta-tomcat-5.5.8/webapps/jetspeed/WEB-INF/

    To try it out just put war in .\deploy and
    change .\pages\default-page.psml to add section like

    Code:
    <fragment id="dp-21" type="portlet" name="phonebook-portlet&#58;&#58;phonebook-portlet">
    ..
    </fragment>
    Here is the debug log output for a search:
    Code:
    22&#58;33&#58;51,132 DEBUG &#40;OLB&#41; ViewState&#58;139 - Returning view name 'person.Search.results.view' to render
    22&#58;33&#58;51,703 DEBUG &#40;OLB&#41; Transition&#58;200 - Transition '&#91;Transition@9f01e6 criteria = success, targetStateId = 'results.view'&#93;' executed; as a result, the new state is 'results.view' in flow 'person.Search'
    22&#58;33&#58;51,703 DEBUG &#40;OLB&#41; Transition&#58;200 - Transition '&#91;Transition@1dd7880 criteria = success, targetStateId = 'executeQuery'&#93;' executed; as a result, the new state is 'results.view' in flow 'person.Search'
    22&#58;33&#58;51,703 DEBUG &#40;OLB&#41; Transition&#58;200 - Transition '&#91;Transition@bb4d74 criteria = submit, targetStateId = 'bindAndValidate'&#93;' executed; as a result, the new state is 'results.view' in flow 'person.Search'
    22&#58;33&#58;51,713 DEBUG &#40;OLB&#41; InternalRequestContext&#58;211 - Publishing request processed event to 0 listener&#40;s&#41;
    22&#58;33&#58;51,713 DEBUG &#40;OLB&#41; FlowExecutionManager&#58;260 - Returning selected view descriptor org.springframework.web.flow.ViewDescriptor@475614
    22&#58;33&#58;51,943 DEBUG &#40;OLB&#41; FlowExecutionStack&#58;120 - Created new client execution for flow 'person.Search'
    22&#58;33&#58;51,943 DEBUG &#40;OLB&#41; InternalRequestContext&#58;195 - Publishing request submitted event to 0 listener&#40;s&#41;
    22&#58;33&#58;51,943 DEBUG &#40;OLB&#41; InternalRequestContext&#58;179 - Publishing flow session execution started event to 0 listener&#40;s&#41;
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; FlowExecutionStack&#58;220 - Set last event id to 'null' and updated timestamp to 1113186831943
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; ViewState&#58;131 - Entering state 'criteria.view' in flow '&#91;Flow@12a4caf id = 'person.Search', startState = &#91;ViewState@a1d54f id = 'criteria.view', transitions = set&#91;&#91;Transition@bb4d74 criteria = submit, targetStateId = 'bindAndValidate'&#93;, &#91;Transition@d9fc12 criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.criteria.view'&#93;, states = set&#91;&#91;ViewState@a1d54f id = 'criteria.view', transitions = set&#91;&#91;Transition@bb4d74 criteria = submit, targetStateId = 'bindAndValidate'&#93;, &#91;Transition@d9fc12 criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.criteria.view'&#93;, &#91;ActionState@14ffad7 id = 'bindAndValidate', transitions = set&#91;&#91;Transition@1dd7880 criteria = success, targetStateId = 'executeQuery'&#93;, &#91;Transition@1123c41 criteria = error, targetStateId = 'criteria.view'&#93;&#93;&#93;, &#91;ActionState@21275b id = 'executeQuery', transitions = set&#91;&#91;Transition@9f01e6 criteria = success, targetStateId = 'results.view'&#93;&#93;&#93;, &#91;ViewState@d5232c id = 'results.view', transitions = set&#91;&#91;Transition@f82c7d criteria = newSearch, targetStateId = 'criteria.view'&#93;, &#91;Transition@130fa6f criteria = select, targetStateId = 'personId.set'&#93;, &#91;Transition@899a54 criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.results.view'&#93;, &#91;ActionState@1a43cda id = 'personId.set', transitions = set&#91;&#91;Transition@197436b criteria = success, targetStateId = 'person.Detail'&#93;, &#91;Transition@1cb5cfc criteria = error, targetStateId = 'error'&#93;&#93;&#93;, &#91;SubFlowState@1f70a5d id = 'person.Detail', transitions = set&#91;&#91;Transition@1c988ae criteria = finish, targetStateId = 'executeQuery'&#93;, &#91;Transition@2c8ab0 criteria = error, targetStateId = 'error'&#93;&#93;&#93;, &#91;ActionState@430af2 id = 'person.Search.Help.SetHelpMode', transitions = set&#91;&#91;Transition@1839d2e criteria = success, targetStateId = 'person.Search.Help'&#93;&#93;&#93;, &#91;SubFlowState@5842e3 id = 'person.Search.Help', transitions = set&#91;&#91;Transition@8f474f criteria = finish, targetStateId = 'criteria.view'&#93;, &#91;Transition@92b39f criteria = error, targetStateId = 'error'&#93;&#93;&#93;, &#91;EndState@14ea4a2 id = 'error'&#93;&#93;&#93;'
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; FlowSession&#58;152 - Setting current state of this 'person.Search' flow session to '&#91;ViewState@a1d54f id = 'criteria.view', transitions = set&#91;&#91;Transition@bb4d74 criteria = submit, targetStateId = 'bindAndValidate'&#93;, &#91;Transition@d9fc12 criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.criteria.view'&#93;'
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; InternalRequestContext&#58;244 - Publishing state transitioned event to 0 listener&#40;s&#41;
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; ViewState&#58;139 - Returning view name 'person.Search.criteria.view' to render
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; InternalRequestContext&#58;211 - Publishing request processed event to 0 listener&#40;s&#41;
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; PortletSessionFlowExecutionStorage&#58;77 - Saving flow execution in portlet session using id '4A52B8B1-D14F-2E8D-B80E-7313EA58AE63'
    22&#58;33&#58;51,953 DEBUG &#40;OLB&#41; FlowExecutionManager&#58;260 - Returning selected view descriptor org.springframework.web.flow.ViewDescriptor@1312942

  • #2
    I can't tell what the problem is from this information.

    From looking at the log I see the web flow system is telling the calling client (in this case Portlet MVC) to render the view name "person.Search.results.view", which is what you want.

    This may be a problem in Portlet MVC in a Jetspeed environment (Erwin verified Phonebook ran fine in Liferay.) Web flow looks fine to me.

    Keith

    Comment


    • #3
      It tried to display results view but then log continued.

      It tried to display results view but then log continued finally displaying criteria view again. The log I posted was all from the same request. It should have stopped at results view.

      Comment


      • #4
        This issue was resolved by webflow portlet team

        This issue was resolved by webflow portlet team

        Comment


        • #5
          Just to provide a bit of background: there was a bug in the webflow portlet support shipped with the preview 2 release that caused this problem in Jetspeed2. The bug has been fixed and this fix will be available in the preview 3 release (or right now if you build from CVS :-) ).

          Erwin

          Comment

          Working...
          X