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;[email protected] 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;[email protected] 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;[email protected] 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 [email protected]
    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;[email protected] id = 'person.Search', startState = &#91;[email protected] id = 'criteria.view', transitions = set&#91;&#91;[email protected] criteria = submit, targetStateId = 'bindAndValidate'&#93;, &#91;[email protected] criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.criteria.view'&#93;, states = set&#91;&#91;[email protected] id = 'criteria.view', transitions = set&#91;&#91;[email protected] criteria = submit, targetStateId = 'bindAndValidate'&#93;, &#91;[email protected] criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.criteria.view'&#93;, &#91;[email protected] id = 'bindAndValidate', transitions = set&#91;&#91;[email protected] criteria = success, targetStateId = 'executeQuery'&#93;, &#91;[email protected] criteria = error, targetStateId = 'criteria.view'&#93;&#93;&#93;, &#91;[email protected] id = 'executeQuery', transitions = set&#91;&#91;[email protected] criteria = success, targetStateId = 'results.view'&#93;&#93;&#93;, &#91;[email protected] id = 'results.view', transitions = set&#91;&#91;[email protected] criteria = newSearch, targetStateId = 'criteria.view'&#93;, &#91;[email protected] criteria = select, targetStateId = 'personId.set'&#93;, &#91;[email protected] criteria = help, targetStateId = 'person.Search.Help.SetHelpMode'&#93;&#93;, viewName = 'person.Search.results.view'&#93;, &#91;[email protected] id = 'personId.set', transitions = set&#91;&#91;[email protected] criteria = success, targetStateId = 'person.Detail'&#93;, &#91;[email protected] criteria = error, targetStateId = 'error'&#93;&#93;&#93;, &#91;[email protected] id = 'person.Detail', transitions = set&#91;&#91;[email protected] criteria = finish, targetStateId = 'executeQuery'&#93;, &#91;[email protected] criteria = error, targetStateId = 'error'&#93;&#93;&#93;, &#91;[email protected] id = 'person.Search.Help.SetHelpMode', transitions = set&#91;&#91;[email protected] criteria = success, targetStateId = 'person.Search.Help'&#93;&#93;&#93;, &#91;[email protected] id = 'person.Search.Help', transitions = set&#91;&#91;[email protected] criteria = finish, targetStateId = 'criteria.view'&#93;, &#91;[email protected] criteria = error, targetStateId = 'error'&#93;&#93;&#93;, &#91;[email protected] 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;[email protected] id = 'criteria.view', transitions = set&#91;&#91;[email protected] criteria = submit, targetStateId = 'bindAndValidate'&#93;, &#91;[email protected] 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 [email protected]

  • #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