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:56 -0600

Thank you, that suggestion will solve the problem.

--Todd

-----Original Message-----
From: Ryan.Lubke_at_Sun.COM [mailto:Ryan.Lubke_at_Sun.COM]
Sent: Wednesday, December 20, 2006 12:19 PM
To: users_at_javaserverfaces.dev.java.net
Subject: Re: Can my idea be a custom JSF component?

Todd Patrick 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.
>
One possible solution would be to write this within the context of a JSP
tag file. Once you have the tag file written, you include it within the
pages that you want to make use of it just like a standard JSP tag
library.


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

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: users-help_at_javaserverfaces.dev.java.net