You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (Created) (JIRA)" <de...@myfaces.apache.org> on 2011/09/27 19:39:45 UTC

[jira] [Created] (MYFACES-3335) jsf.getViewState() create a new _AjaxUtils object, but it is singleton

jsf.getViewState() create a new _AjaxUtils object, but it is singleton
----------------------------------------------------------------------

                 Key: MYFACES-3335
                 URL: https://issues.apache.org/jira/browse/MYFACES-3335
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe
            Priority: Minor


jsf.getViewState() create a new _AjaxUtils object, but it is singleton. It should just grab the object, because when jsf.js is loaded, this instance is created

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MYFACES-3335) jsf.getViewState() create a new _AjaxUtils object, but it is singleton

Posted by "Werner Punz (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117116#comment-13117116 ] 

Werner Punz commented on MYFACES-3335:
--------------------------------------

Thanks Leo,  I have missed this at my refactoring, you are right, it has been a singleton since my last refactoring and a new is totally out of scope there.

                
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-3335
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3335
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>            Priority: Minor
>         Attachments: MYFACES-3335-1.patch
>
>
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton. It should just grab the object, because when jsf.js is loaded, this instance is created

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MYFACES-3335) jsf.getViewState() create a new _AjaxUtils object, but it is singleton

Posted by "Leonardo Uribe (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated MYFACES-3335:
------------------------------------

    Status: Patch Available  (was: Open)
    
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-3335
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3335
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>            Priority: Minor
>         Attachments: MYFACES-3335-1.patch
>
>
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton. It should just grab the object, because when jsf.js is loaded, this instance is created

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (MYFACES-3335) jsf.getViewState() create a new _AjaxUtils object, but it is singleton

Posted by "Werner Punz (Updated) (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Werner Punz updated MYFACES-3335:
---------------------------------

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

Ok this bug gave me the incentive to rework the entire viewstate subystem
                
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-3335
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3335
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>            Priority: Minor
>         Attachments: MYFACES-3335-1.patch
>
>
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton. It should just grab the object, because when jsf.js is loaded, this instance is created

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (MYFACES-3335) jsf.getViewState() create a new _AjaxUtils object, but it is singleton

Posted by "Werner Punz (Commented) (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-3335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13117121#comment-13117121 ] 

Werner Punz commented on MYFACES-3335:
--------------------------------------

Ok there is more to it, I rely on the standard error handlers in the encodesubmittablefields, I have to change that, this could be related to: https://issues.apache.org/jira/browse/MYFACES-3334 because if you call encode submittable fields and raise an error by issuing it wrongly, you will run into the issue of not having an error handler there because there is no context available which hosts the error handlers.

This needs to be fixed.

                
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton
> ----------------------------------------------------------------------
>
>                 Key: MYFACES-3335
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3335
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>            Reporter: Leonardo Uribe
>            Assignee: Leonardo Uribe
>            Priority: Minor
>         Attachments: MYFACES-3335-1.patch
>
>
> jsf.getViewState() create a new _AjaxUtils object, but it is singleton. It should just grab the object, because when jsf.js is loaded, this instance is created

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira