myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Koci <martin.kocicak.k...@gmail.com>
Subject Re: [core] do not check for duplicate ids when saving view on production stage
Date Wed, 11 May 2011 18:45:36 GMT
+1 for specific parameter (in one project I build view dynamically from
DB and want this ids check)

Gerhard Petracek píše v St 11. 05. 2011 v 07:52 +0200:
> hi,
> 
> 
> i would combine it -> +1 for a myfaces specific parameter which gets
> evaluated in case of project-stage production.
> 
> 
> regards,
> gerhard
> 
> http://www.irian.at
> 
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
> 
> Professional Support for Apache MyFaces
> 
> 
> 2011/5/11 Leonardo Uribe <lu4242@gmail.com>
>         Hi
>         
>         Checking the state saving algorithm I have seen that every
>         time
>         StateManager.saveView is called, it checks for duplicate ids,
>         scanning
>         the whole component tree. The documentation of
>         StateManager.saveView
>         says this:
>         
>         "...This method must also enforce the rule that, for
>         components with
>         non-null ids, all components that are descendants of the same
>         nearest
>         NamingContainer must have unique identifiers....".
>         
>         Yes, that's right, but a possible optimization could be do not
>         do it
>         if project stage is production, or maybe just add a param that
>         disable
>         that stuff.
>         
>         Does that sounds good? Any objections?
>         
>         regards,
>         
>         Leonardo Uribe
> 
> 



Mime
View raw message