Reply To: Rewrite filter called twice, firing f:viewAction twice

Splash Forums Rewrite Users Rewrite filter called twice, firing f:viewAction twice Reply To: Rewrite filter called twice, firing f:viewAction twice

#27363

djmj
Participant

This is a rewrite BUG.

This problem occurs whenever a resource such as CSS or JS or an image could not be found and mojarra renders the RES_NOT_FOUND instead.

I had a missing resource, since its url was wrong and wondered why my view-scoped bean @PostConstruct was called twice when i accessed the site via the rewritten URL.

Resolving the RES_NOT_FOUND issue also solved the issue of the double bean instantiation.

I am not sure if this is a regression in rewrite library. I just observed it with alpha 10 now.

  • This reply was modified 5 years, 10 months ago by  djmj.