myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jakob Korherr <>
Subject Re: JSF 1.2 custom component
Date Tue, 14 Dec 2010 16:42:32 GMT

You need to use the decode() method of the renderer of your component
to get the value into the component.

Maybe this [1] online tutorial for creating a JSF component can help
you (unfortunately it's in German only).



2010/12/14 Matthieu <>:
> Hi,
> I am thinking of creating a component that would do the same job as a
> h:inputText and a h:commandLink together into a form.
> So i thought i could implement it that way:
> In my renderer encodeBegin() function, i would add to the uiComponent given
> as a parameter the two components i need, i-e inputText and commandLink.
> but i'm not too sure of how the values i'll need will be put back where i
> need them when the user will submit the form.
> So, how do i make sure JSF or i can retrieve the value given to my children,
> and put it back into the right field of my own custom component ?
> PS: I could do a facelet but this leaves all CSS rules behind; and i wish
> my css rules gets embedded in the header rather than in style attributes.
> And i am stuck with JSF 1.2...

Jakob Korherr


View raw message