You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Gary Kind (JIRA)" <ad...@incubator.apache.org> on 2006/09/22 22:02:22 UTC

[jira] Created: (ADFFACES-189) Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.

Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.
-------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: ADFFACES-189
                 URL: http://issues.apache.org/jira/browse/ADFFACES-189
             Project: MyFaces ADF-Faces
          Issue Type: Bug
            Reporter: Gary Kind


In previous versions of ADF Faces, XMLMenuModel.getFocusRowKey() was only called during the RenderResponse phase of the request lifecycle, AFTER navigation had occurred.   It was called 5 or more times to render the new page, each time returning the same value.  As an optimization, a static variable was used to prevent the logic from executing after the first time getFocusRowKey() was called.  Instead, the previous focus path was returned.  Since the menu model's scope is request, everything reset after the request finished.   In the new re-architected version of ADF Faces, getFocusRowKey() is called in other phases, before the RenderResponse phase.   This incorrectly set the static variable so that when getFocusRowKey() is called during the RenderResponse phase -- even the first time -- the incorrect focus path is returned.  

The solution (for now) is to remove the optimization.   I have an optimization but it needs to be fully tested.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (ADFFACES-189) Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.

Posted by "Jeanne Waldman (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-189?page=all ]

Jeanne Waldman updated ADFFACES-189:
------------------------------------

        Status: Resolved  (was: Patch Available)
    Resolution: Fixed

> Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-189
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-189
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Assigned To: Jeanne Waldman
>         Attachments: trunk.patch
>
>
> In previous versions of ADF Faces, XMLMenuModel.getFocusRowKey() was only called during the RenderResponse phase of the request lifecycle, AFTER navigation had occurred.   It was called 5 or more times to render the new page, each time returning the same value.  As an optimization, a static variable was used to prevent the logic from executing after the first time getFocusRowKey() was called.  Instead, the previous focus path was returned.  Since the menu model's scope is request, everything reset after the request finished.   In the new re-architected version of ADF Faces, getFocusRowKey() is called in other phases, before the RenderResponse phase.   This incorrectly set the static variable so that when getFocusRowKey() is called during the RenderResponse phase -- even the first time -- the incorrect focus path is returned.  
> The solution (for now) is to remove the optimization.   I have an optimization but it needs to be fully tested.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Assigned: (ADFFACES-189) Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.

Posted by "Jeanne Waldman (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-189?page=all ]

Jeanne Waldman reassigned ADFFACES-189:
---------------------------------------

    Assignee: Jeanne Waldman

> Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-189
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-189
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Assigned To: Jeanne Waldman
>         Attachments: trunk.patch
>
>
> In previous versions of ADF Faces, XMLMenuModel.getFocusRowKey() was only called during the RenderResponse phase of the request lifecycle, AFTER navigation had occurred.   It was called 5 or more times to render the new page, each time returning the same value.  As an optimization, a static variable was used to prevent the logic from executing after the first time getFocusRowKey() was called.  Instead, the previous focus path was returned.  Since the menu model's scope is request, everything reset after the request finished.   In the new re-architected version of ADF Faces, getFocusRowKey() is called in other phases, before the RenderResponse phase.   This incorrectly set the static variable so that when getFocusRowKey() is called during the RenderResponse phase -- even the first time -- the incorrect focus path is returned.  
> The solution (for now) is to remove the optimization.   I have an optimization but it needs to be fully tested.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (ADFFACES-189) Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.

Posted by "Matthias Weßendorf (JIRA)" <ad...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/ADFFACES-189?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matthias Weßendorf updated ADFFACES-189:
----------------------------------------

        Fix Version/s: 1.0.0-incubating-core
    Affects Version/s: 1.0.0-incubating-core

> Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-189
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-189
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>    Affects Versions: 1.0.0-incubating-core
>            Reporter: Gary Kind
>         Assigned To: Jeanne Waldman
>             Fix For: 1.0.0-incubating-core
>
>         Attachments: trunk.patch
>
>
> In previous versions of ADF Faces, XMLMenuModel.getFocusRowKey() was only called during the RenderResponse phase of the request lifecycle, AFTER navigation had occurred.   It was called 5 or more times to render the new page, each time returning the same value.  As an optimization, a static variable was used to prevent the logic from executing after the first time getFocusRowKey() was called.  Instead, the previous focus path was returned.  Since the menu model's scope is request, everything reset after the request finished.   In the new re-architected version of ADF Faces, getFocusRowKey() is called in other phases, before the RenderResponse phase.   This incorrectly set the static variable so that when getFocusRowKey() is called during the RenderResponse phase -- even the first time -- the incorrect focus path is returned.  
> The solution (for now) is to remove the optimization.   I have an optimization but it needs to be fully tested.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (ADFFACES-189) Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.

Posted by "Gary Kind (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-189?page=all ]

Gary Kind updated ADFFACES-189:
-------------------------------

    Status: Patch Available  (was: Open)

> Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-189
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-189
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>            Reporter: Gary Kind
>
> In previous versions of ADF Faces, XMLMenuModel.getFocusRowKey() was only called during the RenderResponse phase of the request lifecycle, AFTER navigation had occurred.   It was called 5 or more times to render the new page, each time returning the same value.  As an optimization, a static variable was used to prevent the logic from executing after the first time getFocusRowKey() was called.  Instead, the previous focus path was returned.  Since the menu model's scope is request, everything reset after the request finished.   In the new re-architected version of ADF Faces, getFocusRowKey() is called in other phases, before the RenderResponse phase.   This incorrectly set the static variable so that when getFocusRowKey() is called during the RenderResponse phase -- even the first time -- the incorrect focus path is returned.  
> The solution (for now) is to remove the optimization.   I have an optimization but it needs to be fully tested.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (ADFFACES-189) Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.

Posted by "Gary Kind (JIRA)" <ad...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/ADFFACES-189?page=all ]

Gary Kind updated ADFFACES-189:
-------------------------------

    Attachment: trunk.patch

> Performance optimization in XMLMenuModel.getFocusRowKey() breaks menu model when called before the RenderResponse Phase of the request lifecycle.
> -------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ADFFACES-189
>                 URL: http://issues.apache.org/jira/browse/ADFFACES-189
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>            Reporter: Gary Kind
>         Attachments: trunk.patch
>
>
> In previous versions of ADF Faces, XMLMenuModel.getFocusRowKey() was only called during the RenderResponse phase of the request lifecycle, AFTER navigation had occurred.   It was called 5 or more times to render the new page, each time returning the same value.  As an optimization, a static variable was used to prevent the logic from executing after the first time getFocusRowKey() was called.  Instead, the previous focus path was returned.  Since the menu model's scope is request, everything reset after the request finished.   In the new re-architected version of ADF Faces, getFocusRowKey() is called in other phases, before the RenderResponse phase.   This incorrectly set the static variable so that when getFocusRowKey() is called during the RenderResponse phase -- even the first time -- the incorrect focus path is returned.  
> The solution (for now) is to remove the optimization.   I have an optimization but it needs to be fully tested.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira