Results 1 to 2 of 2
  1. #1
    adevedo is offline Member
    Join Date
    Oct 2012
    Posts
    6
    Rep Power
    0

    Default 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:

    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>
    Will produce the following:




    The article...

    JSF2: Creating Custom Component [OutputObject]

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default 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.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Having trouble with custom pager component not rendering at all
    By ShinTec in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 09-23-2011, 03:57 PM
  2. Custom Component Scrolling
    By morris4019 in forum AWT / Swing
    Replies: 4
    Last Post: 02-06-2011, 08:35 AM
  3. Custom component and paint outside of bounds
    By happy_hippie in forum AWT / Swing
    Replies: 2
    Last Post: 06-30-2010, 05:41 PM
  4. Custom painter for standard component
    By spike in forum AWT / Swing
    Replies: 1
    Last Post: 10-04-2008, 05:06 PM
  5. Help with custom component
    By Falcon1 in forum AWT / Swing
    Replies: 8
    Last Post: 07-21-2007, 12:39 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •