dev@javaserverfaces.java.net

Re: using jsfc= with outputText?

From: Mike Kienenberger <mkienenb_at_gmail.com>
Date: Fri, 14 Jul 2006 15:00:06 -0400

It's my understanding that any tag with jsfc is replaced in total with
the jsf component on rendering. Yeah, the div should probably remain
and maybe another div or span should be put inside it with the jsfc
attributes on it.

On 7/14/06, Keith Zantow <kzantow_at_gmail.com> wrote:
> In your example, the <div would be replaced with text, right? I think
> that would cause confusion when it is rendered and the text isn't the
> same as the template with the div in it.
>
> Perhaps I'm confused about how the jsfc attribute works (or the
> outputText component). If the <div and all attributes are retained as
> part of the output with the value attribute as the inner text and the
> "Sample Text" removed, it seems that could be quite useful...
>
> -Keith
>
>
>
> On 7/14/06, Mike Kienenberger <mkienenb_at_gmail.com> wrote:
> > On 7/14/06, Nikita Tovstoles <nikita_at_doppelganger.com> wrote:
> > > >I'm wondering
> > > >whether it's possible to use jsfc to somehow replace hard-coded output
> > > >with h:outputText:
> > > >
> > > >web designer produces:
> > > >
> > > ><div align="right" class="errorText">
> > > >Sample Text
> > > ></div>
> >
> > On 7/14/06, jacob_at_hookom.net <jacob_at_hookom.net> wrote:
> > > I'm just wondering if the Renderer for h:outputText should avoid rendering its children when a value is defined.
> >
> > Right, because otherwise, you could do something like this. (Right
> > now, you'd still get the sample text, yes?)
> >
> > <div align="right" class="errorText" jsfc="h:outputText">
> > Sample Text
> > </div>
> >
> > Maybe a jsfc-ignore-children="true" flag?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> > For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>