Apr 15 2008

Priority used by navigation handler

Tag: JSFYogesh @ 11:31 am

The order in which the navigation handler prioritizes the forward rule,

(if outcome is null then the navigation handler ignores all rules and redisplays the same page)

1)outcome matching an exact from-view-id
2)outcome matching a wild card from-view-id
3)use the rule which does not specify a specific from-view-id

Here outcome represents the output of from-action and other similar navigation rules.


Apr 15 2008

URL does not update when navigating to next page - in JSF

Tag: JSFYogesh @ 11:07 am

Add a

<redirect />

after the

<to -view-id></to>

example:

<navigation -case>
   <from -outcome>ok</from>
   <to -view-id>/welcome.jsp</to>
   <redirect />
</navigation>
 

What it does:

The jsp container terminates the current HTTP request and sends a HTTP Redirect.
hence it should be noted that all the data in request scope will be lost.


Apr 15 2008

What are Backing Beans?

Tag: JSF, JavaYogesh @ 9:41 am

A Backing Bean, also called as a Pagebean is used to assist validation / event handling of a form.

simply put when a bean is created to contain all the form fields so that validators and event handlers may have access to the actual components of a form.

Continue reading "What are Backing Beans?"


Next Page »