Frameworks| Hibernate| Struts| JSF| JavaFX| Ajax| Spring| DOJO| JDO| iBatis| Questions? | Software Development
 

Binding Component Value to an Implicit Object

JSF provides list of implicit objects. These objects can be referred in value attribute of component in the JSP page.

Binding Component Value to an Implicit Object

                          

JSF provides list of implicit objects. These objects can be referred in value attribute of component in the JSP page.

 

 

 

 

 

 

 

Implicit Object Description
applicationScope Represents a Map of application scope attribute values with attribute names as keys
cookie Represents a Map of cookie values for the current request with cookie names as keys
facesContext Represents the FacesContext instance for the current request
header Represents a Map of HTTP header values for the current request with header names as keys
headerValues Represents a Map of String arrays containing all the header values for HTTP headers in the current request with header names as keys
initParam Represents a Map of the context initialization parameters
param Represents a Map of the request parameters for this request with parameter names as keys
paramValues Represents a Map of String arrays containing all the parameter values for request parameters in the current request with parameter names as keys
requestScope Represents a Map of the request attributes for this request with attribute names as keys
sessionScope Represents a Map of the session attributes for this request with attribute names as keys
view Represents The root UIComponent in the current component tree stored in the FacesRequest for this request

 

For example:

Session Scoped parameter can be accessed as below:

<h:outputFormat value="Session Scope Value Is: {0}" rendered="#{!(sessionScope.username==null)}">
<f:param value="#{sessionScope.username}"/>
</h:outputFormat>

Request Scoped parameter can be accessed as below:

<h:outputFormat value="Request Scope Value Is: {0}" rendered="#{!(requestScope.value==null)}">
<f:param value="#{requestScope.value}"/>
</h:outputFormat>

 

Download code for all examples

                          

» View all related tutorials
Related Tags: c validation com jsf io make sed content component id ai js cte expect to e li use pe in

Leave your comment:

Name:

Email:

URL:

Title:

Comments:


Enter Code:

Audio Version
Reload Image
 

Note: Emails will not be visible or used in any way, and are not required. Please keep comments relevant. Any content deemed inappropriate or offensive may be edited and/or deleted.

No HTML code is allowed. Line breaks will be converted automatically. URLs will be auto-linked. Please use BBCode to format your text.

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
 
Tell A Friend
Your Friend Name

 

 
Recently Viewed
Software Solutions
Search Tutorials

 

 
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2008. All rights reserved.