OFBiz
  1. OFBiz
  2. OFBIZ-4875

Problem Display Behavior Using Response type="view-last"

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: Release 10.04, SVN trunk
    • Fix Version/s: None
    • Component/s: ALL COMPONENTS
    • Labels:
      None
    • Environment:

      demo-stable demo-trunk

      Description

      Under some conditions Response type="view-last" in common-controller.xml produces unexpected results.
      1. When the user navigates from a help file and changes the Language, Visual Theme or Time Zone.
      2. When the user selects a node from a jQuery jstree and changes the Language, Visual Theme or Time Zone (demo-trunk only)
      3. type="view-last" is used extensively throughout OFBiz so there could be other problem cases.

      To Reproduce:
      Case 1 Select Help:
      1 Open any OFBiz back office application with a theme that has a preference section.
      2 Click the Help link in the preferences section
      3 The Help window opens
      4 Close the Help window
      5 Click the Language, Visual Themes or Time Zone link in the preferences section
      6 Select any language , theme or time zone
      Expect: Return to the OFBiz Application

      Case 2 Select tree node (demo-trunk only):
      1 Open Catalog Manager or HR application
      2 Click a node in the jQuery tree
      3 Click the Language, Visual Themes or Time Zone link (not the Done or Cancel button) in the preferences section
      4 Select any language , theme or time zone
      Expect: Return to the OFBiz Application

      Actual:
      Case 1 Help: The Help window opens.
      The application is no longer available. The user is Stuck, only way out is the browser back button.

      Case 2 jQuery Tree: The application opens in a text only mode. If the user makes a selection from the text only view the theme is restored.
      Note: The display may be a Help window or a screen with text "No category specified." if the user follows other paths not described here.

      Not sure of an approach for a solution.
      Modify the "view-last" RequestHandler.java logic
      Using some other response type or value in the <response name="success" type="view-last" value="main"/>

      Any suggestions?

        Activity

        Hide
        Jacques Le Roux added a comment -

        Yes I saw those problems for a long time now. Not sure yet how to address them correctly...

        Show
        Jacques Le Roux added a comment - Yes I saw those problems for a long time now. Not sure yet how to address them correctly...
        Hide
        Tom Burns added a comment -

        Hi Jacques,

        These are links to user preferences. There could be a Preferences portal in My Portal. This portal would be a scalable (how many preferences can you put in the header), centralized location for user preferences. It could include preferences for language, time, themes, displayed menu items?, default Items per page? etc. The current links would stay in place but open to the portal. When the user is finished he would actively select a widget (menu / button /etc) to continue work. There would be no need to use view-last.

        A possible solution?

        Tom

        Show
        Tom Burns added a comment - Hi Jacques, These are links to user preferences. There could be a Preferences portal in My Portal. This portal would be a scalable (how many preferences can you put in the header), centralized location for user preferences. It could include preferences for language, time, themes, displayed menu items?, default Items per page? etc. The current links would stay in place but open to the portal. When the user is finished he would actively select a widget (menu / button /etc) to continue work. There would be no need to use view-last. A possible solution? Tom
        Hide
        Jacques Le Roux added a comment -

        Hi Tom,

        Interesting, but from a slim-down POV this would mean that the myportal specialpurpose application would need to stay OOTB in OFBiz. Also it's convenient to have a quick access to this settings (languages and themes). Though more from a developer perspective, I must admit

        Other ideas, opinions? Not specifically to you Tom, but in the community I mean...

        Show
        Jacques Le Roux added a comment - Hi Tom, Interesting, but from a slim-down POV this would mean that the myportal specialpurpose application would need to stay OOTB in OFBiz. Also it's convenient to have a quick access to this settings (languages and themes). Though more from a developer perspective, I must admit Other ideas, opinions? Not specifically to you Tom, but in the community I mean...
        Hide
        Jacopo Cappellato added a comment -

        This issue has been originally reported by Tom Burns.

        Show
        Jacopo Cappellato added a comment - This issue has been originally reported by Tom Burns.

          People

          • Assignee:
            Unassigned
            Reporter:
            Jacopo Cappellato
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Development