myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (Created) (JIRA)" <>
Subject [jira] [Created] (MYFACES-3488) [perf] store facelets MARK_CREATED and rendererType at UIComponentBase level
Date Mon, 05 Mar 2012 19:39:57 GMT
[perf] store facelets MARK_CREATED and rendererType at UIComponentBase level

                 Key: MYFACES-3488
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
            Reporter: Leonardo Uribe
            Assignee: Leonardo Uribe

Inspired on the suggestions done in MYFACES-3470 and MYFACES-3471, I have found a solution
for both cases.

MARK_CREATED and rendererType are special properties. Both are more related to the real UIComponent
instance, which means those properties does not change for components inside a table (h:dataTable

In the case of MARK_CREATED, almost all components created by facelets uses it, and this is
assigned when the view is built. It has only sense to save this value when the component needs
to be restored fully, but since this is a property that does not change once created, it does
not have sense to store it on the delta. 

In the case of rendererType, the same as MARK_CREATED happens, but by the spec, it could be
valid to set a ValueExpression for it and it is feasible to create a component, call markInitialState()
and then call setRendererType(...), so this value could be saved on the delta.

Components that are created without properties (for example h:panelGroup) only require these
two properties, so storing these values at UIComponentBase it is possible to prevent create
unnecessary Map.Entry instances. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message