List Info

Thread: TagHandler getting call AFTER the view has been built




TagHandler getting call AFTER the view has been built
user name
2006-10-31 16:19:20
If I request a page and then refresh it I have noticed that
facelets 
revisits the component tree causing all my custom
taghandlers to be 
invoked again. I thought that the view would only be built
once and then 
reused, so in my tag handlers I always add the component to
the tree. 
But since the tag handlers are called again when I refresh I
get the 
same components inserted twice.

Did I misunderstand tree creation? Should tag handlers in
fact check if 
they have already added their corresponding components and
only add a 
new component if it does not exist?

Randahl

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribefacelets.dev.java.net
For additional commands, e-mail: users-helpfacelets.dev.java.net

TagHandler getting call AFTER the view has been built
user name
2006-10-31 16:56:55
I think I found the answer to why my tag handlers are being
called when 
the page is refreshed in section 6.1.7 of the facelets doc
book and in 
the JavaDoc for ComponentHandler so never mind 

Randahl


Randahl Fink Isaksen wrote:
> If I request a page and then refresh it I have noticed
that facelets 
> revisits the component tree causing all my custom
taghandlers to be 
> invoked again. I thought that the view would only be
built once and 
> then reused, so in my tag handlers I always add the
component to the 
> tree. But since the tag handlers are called again when
I refresh I get 
> the same components inserted twice.
>
> Did I misunderstand tree creation? Should tag handlers
in fact check 
> if they have already added their corresponding
components and only add 
> a new component if it does not exist?
>
> Randahl
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail: users-unsubscribefacelets.dev.java.net
> For additional commands, e-mail: users-helpfacelets.dev.java.net
>
>
>

------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribefacelets.dev.java.net
For additional commands, e-mail: users-helpfacelets.dev.java.net

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )