Pass through Element and Attribute.

Pass through Element and Attribute.


Pass through element or attributes are ways to use a Manage Java Bean in HTML 5 web page

Example : Suppose we have index.html content as below with Java Class and

<html lang=”en” xmlns:jsf=” ” xmlns:h=”” >

      <input type=”text” jsf:id=”name”  value =”${}” required=”true”>


<h2  h:outputLabel  value=”location”> I am from {$web.getLocation(location) } </h2>


Normally HTML 5 input tag has not jsf:id , with the jsf:id , we are inferring a specific attribute or actions from our Manage Java Bean

The purpose of this is to show how to use a component or  extract a data( properties )  from  Manage Java Bean


The first way is to Pass through Element , which has been indicated in the above example


Pass through element

Example 2

<html  lang=”en”

Xmlns:p=”  >


<input type=”text” p:id=””



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

Up ↑

%d bloggers like this: