Questions tagged [viewhandler]

5 questions
3
votes
1 answer

FOSRestBundle custom view handler not registering

I'm trying to create custom handler for serializing response into csv format. So far I've been following the steps from documentation (http://symfony.com/doc/master/bundles/FOSRestBundle/2-the-view-layer.html#custom-handler), however when calling my…
Nicolas
  • 1,007
  • 1
  • 9
  • 21
3
votes
1 answer

IllegalStateException: Illegal attempt to set ViewHandler after a response has been rendered

I've been migrating to from JSF 1.0 to JSF 2.2. I'm getting the following error while trying to run my app: JSP Error page Illegal attempt to set ViewHandler after a response has been rendered. | java.lang.IllegalStateException: Illegal attempt…
Sari Eiz
  • 77
  • 8
1
vote
0 answers

how to properly add a view handler to fosrestbundle to return file

Checking this post and this other post, also I checked the bundle RssExample I came up with this config: Under fos_rest format_listener: enabled: true rules: - { path: ^/service/export-to-csv, priorities: [ csv,json ],…
1
vote
0 answers

Reuse UIViewRoot object during the restore view phase

It seems that it is possible to reuse UIViewRoot object during the restore view phase in JSF as suggested in this link here I am dealing with a very large form here with hundreds of data elements and on profiling the application, I found that that…
Saikat
  • 448
  • 4
  • 12
1
vote
1 answer

Distinguish view from normal view in ViewHandler#createView()

I have defined error page in my web.xml for error 404 in this way: 404 /common/messages/pageNotFoundError.jsf Handling invalid page url works as intended - user is…
martaj
  • 59
  • 1
  • 9