dev@jsftemplating.java.net

Re: JSFTemplating: JSF Components inside JSF Templating template files

From: HobiOne <hobione_at_gmail.com>
Date: Mon, 23 Jun 2008 09:44:38 -0500

Thanks Jaco for your email. I guess, I am not the only one is confused
about these jar files naming conversion (jsftemplating.jar and
jsftemplating-base.jar etc.). Question to JSF expert group: Is it possible
to add version number with these jar file or something more meaning full
name may be......

Please advise.

Thanks

Hobi


.

On Mon, Jun 23, 2008 at 2:42 AM, Jaco Prinsloo <jacolists_at_gmail.com> wrote:

> Hi All,
>
> Ken has been helping me to get my project up and running with JSF
> Templating (thanks Ken!) and he suggested that I take further questions to
> this mailing list.
> I have a few questions/problems still bothering me, so here they are:
>
> 1) In a previous mail Ken showed me how to output a piece of text a number
> of times as specified through my custom component's attributes. I'd like to
> do the exact same thing, only instead of just outputting text I'd like to
> create JSF components (a h:outputText, for example). In other words, my
> custom component's tag should look like this:
>
> <my:component value="Hello World!" count="3" />
>
> Which should then produce the following JSF (to be parsed by the JSF
> engine):
>
> <h:outputText value="Hello World!" />
> <h:outputText value="Hello World!" />
> <h:outputText value="Hello World!" />
>
> 2) I have JSF Templating up and running and I'm using a facelets/xhtml
> template file. Everything displays fine and my ui:events are being handled
> correctly, but if I add a JSF component as a child of another component, the
> child component isn't displayed. For example, the following xhtml will
> output a message followed by an empty panel grid:
>
> <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <ui:composition ... >
> <h:outputText value="This is displayed." />
> <h:panelGrid>
> <h:outputText value="This is ignored." />
> </h:panelGrid>
> </ui:composition>
>
> 3) I'm not 100% sure of the differences between jsftemplating.jar and
> jsftemplating-base.jar. As I understand it, the former has its own
> ViewHandler while the latter uses the provider ViewHandler. Am I correct in
> thinking that if I use Facelets, which has its own ViewHandler, I have to
> use jsftemplating-base.jar?
>
> Thank you,
> Jaco
>