Monday, October 26, 2009

STEP 12: Create JSF Managed Beans

Create Managed Bean for JSF View Page

Projects (tab) | Expand ICEfacesLiferay001 | Right Click Source Packages | New | Other
  • Categories: Java Server Faces

  • File Types: JSF Managed Bean
Next
  • Class Name: MyIcePortlet_view

  • Project: ICEfacesLiferay001

  • Location: Source Packages

  • Package: my.icefaces.liferay.portlet

  • Created File: (automatically populated)

  • Configuration File: WEB-INF/faces-config.xml

  • Name: MyIcePortlet_view

  • Scope: request
Finish

A new file called MyIcePortlet_view.java will be created. Also a <managed-bean> element for MyIcePortlet_view will be added to faces-config.xml in the WEB-INF folder.


Create Managed Bean for JSF Edit Page

Projects (tab) | Expand ICEfacesLiferay001 | Expand Source Packages | Right Click my.icefaces.liferay.portlet | New | JSF Managed Bean
  • Categories: Java Server Faces

  • File Types: JSF Managed Bean
Next
  • Class Name: MyIcePortlet_edit

  • Project: ICEfacesLiferay001

  • Location: Source Packages

  • Package: my.icefaces.liferay.portlet

  • Created File: (automatically populated)

  • Configuration File: WEB-INF/faces-config.xml

  • Name: MyIcePortlet_edit

  • Scope: request
Finish

A new file called MyIcePortlet_edit.java will be created. Also a <managed-bean> element for MyIcePortlet_edit will be added to faces-config.xml in the WEB-INF folder.


Create Managed Bean for JSF Help Page

Projects (tab) | Expand ICEfacesLiferay001 | Expand Source Packages | Right Click my.icefaces.liferay.portlet | New | JSF Managed Bean
  • Categories: Java Server Faces

  • File Types: JSF Managed Bean
Next
  • Class Name: MyIcePortlet_help

  • Project: ICEfacesLiferay001

  • Location: Source Packages

  • Package: my.icefaces.liferay.portlet

  • Created File: (automatically populated)

  • Configuration File: WEB-INF/faces-config.xml

  • Name: MyIcePortlet_help

  • Scope: request
Finish

A new file called MyIcePortlet_help.java will be created. Also a <managed-bean> element for MyIcePortlet_help will be added to faces-config.xml in the WEB-INF folder.

No comments:

Post a Comment