Results 1 to 2 of 2
- 10-07-2012, 06:31 AM #1
Member
- Join Date
- Oct 2012
- Posts
- 1
- Rep Power
- 0
JSF2: Creating Custom Component [OutputObject]
In this article, you will see just how easy it is to create new components that are fully functional and integrated into your web applications by creating a new component that takes a simple - with primative attributes only - java bean object as a value and his output will be the bean details printed in HTML table
e.g.
JSF code:
Will produce the following:Java Code:<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:cc="http://myapplication.com/com"> <h:head></h:head> <h:body> <h1>User Bean</h1> <cc:outputObject value="#{mybean.user}" /> <h1>Address Bean</h1> <cc:outputObject value="#{mybean.address}" /> </h:body> </html>

The article...
JSF2: Creating Custom Component [OutputObject]
- 10-07-2012, 09:29 AM #2
Re: JSF2: Creating Custom Component [OutputObject]
Moved from JavaServer Faces (JSF).
Advertisements in the technical sections are liable to be deleted as spam and reported to an anti-spam service, so be careful not to do this again.
dbWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
Having trouble with custom pager component not rendering at all
By ShinTec in forum JavaServer Faces (JSF)Replies: 0Last Post: 09-23-2011, 03:57 PM -
Custom Component Scrolling
By morris4019 in forum AWT / SwingReplies: 4Last Post: 02-06-2011, 08:35 AM -
Custom component and paint outside of bounds
By happy_hippie in forum AWT / SwingReplies: 2Last Post: 06-30-2010, 05:41 PM -
Custom painter for standard component
By spike in forum AWT / SwingReplies: 1Last Post: 10-04-2008, 05:06 PM -
Help with custom component
By Falcon1 in forum AWT / SwingReplies: 8Last Post: 07-21-2007, 12:39 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks