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-unsubscribe facelets.dev.java.net
> For additional commands, e-mail: users-help facelets.dev.java.net
>
>
>
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
For additional commands, e-mail: users-help facelets.dev.java.net
|