rich:toolBar, rich:dropDownMenu and rich:menuItem This example demonstrates how to create simple toolbar using RichFaces tag library. RichFaces provides predefined tags like rich:toolBar which will be easily plugged into our webpages to disply the toolbar component. Apart from rich:toolBar, to create menus we have to use other tags rich:dropDownMenu and rich:menuItem. rich:dropDownMenu is used for creating [...]
Archive | JSF RSS feed for this section
Use rich:datascroller for rich:dataTable pagination
July 18, 2008
rich:datascroller and rich:dataTable rich:dataTable tag is the RichFaces version fo datatable component which has few extra features on look and feel.One of the difficulty JSF developers is creating good pagination for the data dsiplayed using rich:datatable. To resole this problem, RichFaces tags library provides rich:datascroller component which can display the automatic paginations based on data [...]
Use a4j:status to display status of the request
July 18, 2008
a4j:support and a4j:status When there is a request to the server, the client have to wait untill he gets the response. It will be nice if you give status of the server request processing. use a4j:status tag in the RichFaces to implement this feature in your webpages. In this example this tag is used with [...]
a4j:support – How to use action attribute?
July 18, 2008
a4j:support and action attribute This example program demonstrates how to use action attribute to update the server values and display in the screen. In this example user inputs are passed to update method and processed. The values are updated in the h:panelGrid component. The advantage of using a4j:support tag is it can be updated the [...]
a4j:support – Simple Example on onkeyup event
July 18, 2008
a4j:support This example program demonstrates how to get started with a4j:support tag in the RiachFaces tag libraray. This is part of Ajax4jsf libraray. But, from RiachFaces 3.0, Ajax4jsf is merged with RichFaces tag libraray. a4j:support is used inside any component to provide ajax support on that particular field. In our example a4j:support allows user developer [...]
Accessing Managed Bean methods programmatically in JSF 1.1
July 12, 2008
Access Managed Bean methods As we know JSF managed beans are mostly access only through the JSP pages are faces-config.xml.But, there is some schenarios where you will need information stored in the managed beans for the business logic in some other beans. JSF provides API to access those values where ever you want. Note that [...]
How to use Managed Bean reference inside faces-config.xml?
July 12, 2008
Managed Bean in JSF can refer another managed bean inside the faces-config.xml. There is no restriction for the type of bean can be refered. But, JSF does not support the cyclic dependencies for Managed Bean reference. For example, you cannot refer bean B from bean A while bean B also refers to bean A. The [...]
How to initialize List property in Managed Mean?
July 12, 2008
List property in Managed Mean JSF Managed Beans can initialize its List properties in the faces-config.xml. There is a property in the faces-config.xml as list-entries. This cane be used for initializing the values and can be accessed directly through the Managed Beans in any JSP pages. You also can directly use the List as Managed [...]
Lists and Maps as Managed Beans in JSF
July 12, 2008
This tips explain how to use List and Map classes directly as Managed Beans. Here notice that you cannot use List and Map interfaces directly as Managed Beans, you can use only the implementations classes like ArrayList, Map,etc. There is no way to call constructor in the interfaces if you use List or Map directly. [...]
How to use h:selectOneRadio inside h:dataTable in JSF?
July 9, 2008
h:selectOneRadio and h:dataTable This tips explains how to use the h:selectOneRadio tag inside h:dataTable iteration tag. Using h:selectOneRadio is not straight forward since JSF doesn’t provide easy mechanism for toggling the radio button selectios. Programmer has to write the manual script code to toggle the radio selections. If you are looking for the use of [...]






July 19, 2008
0 Comments