Archive | July 12th, 2008

Accessing Managed Bean methods programmatically in JSF 1.1

July 12, 2008

0 Comments

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 [...]

email

How to use Managed Bean reference inside faces-config.xml?

July 12, 2008

0 Comments

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

0 Comments

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

3 Comments

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. [...]