users@javaserverfaces.java.net

RE: Re: Can my idea be a custom JSF component?

From: Todd Patrick <Todd.Patrick_at_dtn.com>
Date: Wed, 20 Dec 2006 14:53:17 -0600

Unfortunately, I am not using Facelets for reasons explained on
different threads - I greatly appreciate your time to respond though.
 
However, I am not using Facelets for the project.
 
Thanks,
 
--Todd

________________________________

From: Pablo Saavedra [mailto:pablo.a.saavedra_at_gmail.com]
Sent: Wednesday, December 20, 2006 1:09 PM
To: users_at_javaserverfaces.dev.java.net
Subject: Re: Can my idea be a custom JSF component?


If you are using facelets [1], you could create the component as a
composition of other components and then call it with a custom tag (i.e.
<myC:addRow />).

If you are not using facelets, you should take a look a it ;).

Regards.

[1] https://facelets.dev.java.net


On 19/12/06, Todd Patrick < Todd.Patrick_at_dtn.com
<mailto:Todd.Patrick_at_dtn.com> > wrote:

        For my current project, I need to develop a component similar to
the following:
         
         
         
        
        

        The Add Row button would add another row of Text and Value
textfields below the current one.

        The Save button would change the textfields to read-only and
write the values into the
"variable1=value;variable2=value2;variable3=value3 ..." format and write
the value into a hidden field of type String.

        The hidden field value is what I would pass to a Backing Bean,
etc...

        To me, this doesn't extend any specific appropriate UIComponent
class, matter of fact - this is a group of components made of two
h:inputText components and two h:commandButton.

        Maybe this really isn't a true custom JSF component, even
thought I'll use this so-called component in more than one place.

        However, at this point I don't see any benefits of going down
the path of trying to make this a custom component, unless I am missing
something.

        I'd appreciate any thoughts on the best way to handle the
development of this.

        Thanks,

        --Todd

        NOTICE: This email message is for the sole use of the
        intended recipient(s) and may contain confidential and
privileged
        information. Any unauthorized use, disclosure or distribution is
        prohibited. If you are not the intended recipient, please
contact
        the sender by reply email and destroy all copies of the original
        message.