Questions tagged [prerenderview]

preRenderView is a JSF specific event which is triggered right before the render response phase

<f:event type="preRenderView"> is a JSF specific event which is triggered right before the render response phase.

It enables developers to attach listener methods which run right before the first bit to the HTTP response is been written, so that any necessary preprocessing could be performed which may be significant for the shape and the state of the response (e.g. preloading some presentation data or even a redirect).

It's often been used in combination with <f:viewParam> as workaround to trigger GET actions based on view parameters, because no suitable "GET action listener" tag exists in JSF 2.0/2.1. This is in JSF 2.2 solved by the new <f:viewAction> tag.

22 questions
0
votes
1 answer

Prerender not detecting token with IIS with angularjs

I am using like this my Web.config
0
votes
0 answers

Best Way to Do a Data List View Refresh in JSF?

What is the best way to assure that a list of data entries is refreshed in a JSF XHTHML view? After reading documentation, I implemented an event as follows: However, it…
Chris
  • 311
  • 1
  • 2
  • 10
0
votes
0 answers

preRenderView not working during a method call

I have in my JSF 2.2 page an event listener in the and its preRenderView is not working on every page call, it's only working for the first page load and when I use the add() method the lists refreshes at shows the added line, but I…
Dwix
  • 1,139
  • 3
  • 20
  • 45
0
votes
1 answer

JSF "cache" some preloaded variables

I have a Page which fills on every "preRenderView" some lists with values of a DB //preRenderView Method public void init(){ loadChapterStructure(); loadCategoryStructure(); } Due to the fact, that the chapters and categories don't…
Niko
  • 1,054
  • 5
  • 25
  • 52
0
votes
0 answers

JSF 2 redirect to first page on back button or URL copy paste (no Authentication involved)

I have a JSF 2.0 application that is used for creating accounts using Self Registration. On the first page, there are fields like name, email, uid etc. Typical to any registration, we show the confirmation page, (other custom pages as well in…
user972391
  • 321
  • 1
  • 4
  • 20
0
votes
1 answer

usage of @ManagedProperty in prerender method

I am having a data table like below in my xhtml: Now in my backing bean, I have: @ManagedBean @RequestScoped public class EmployeeBean implements Serializable { …
Sudipta Deb
  • 1,040
  • 3
  • 23
  • 43
-2
votes
1 answer

Faces messages not shown when preRenderView event jumps to another view in nested backing bean

I have two scenarios. First one, from an external URL, I access a view (V1) with a preRenderView event in it. The executed method in the backing bean navigates to another view (V2). In V2 I have some elements that are associated to a backing bean…
1
2