You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Sylvain Vieujot <sv...@apache.org> on 2005/05/24 05:56:02 UTC

New x:htmlTag component

I'm preparing a new component to render html tags :

<x:htmlTag value="h1">bla bla</x:htmlTag>
would render : <h1>bla bla</h1>

The goal is to avoid the <f:verbatim><h1></f:verbatim>bla
bla<f:verbatim></h1></f:verbatim> codes.
... and to avoid doing one component by html tag (like the very usefull
<x:div>).

Any suggestion ?
Any better tag name ?

Thanks,

Sylvain.

Re: New x:htmlTag component

Posted by Sean Schofield <se...@gmail.com>.
I thought the JSF 1.2 spec was going to address "tree creation and
content interweaving."  I don't recall the elimination of f:verbatim
but I seem to recall them addressing the server-side include problems
that force us to use f:verbatim.  Am I mistaken on that?

sean

On 5/24/05, Manfred Geiler <ma...@gmail.com> wrote:
> Unfortunately not.
> JSF 1.2 is only meant to be an improved JSF 1.x version. Nothing
> revolutonary like "no more verbatim".
> As Matthias has mentioned, a new JSP spec will be necessary to be able
> to get access to the JSP source code right before the JSP container
> handles (and outputs) the verbatim text.
> These things will be handled in JSF 2.0, for which there exists no JCP
> yet, AFAIK.
> HTH,
> Manfred
> 
> 2005/5/24, Sylvain Vieujot <sv...@apache.org>:
> >  Manfred, could you tell us about that ?
> >  Will the 1.2 make this tag useless ?
> >
> >  Thanks,
> >
> >  Sylvain.
> >
> >
> >  On Tue, 2005-05-24 at 08:22 +0200, Matthias Wessendorf wrote:
> >  Interesting component. But I guess the complex <f:verbatim> issue will
> > be fix in JSF 1.2 (that relies on JSP 2.1). Or am I wrong with that
> > guess ?
> >
> >
> >
> > On 5/24/05, Martin Marinschek <ma...@gmail.com> wrote:
> > > Very good idea!
> > >
> > > +1 from me for that, I'd sure as hell love to get rid of those
> > > f:verbatim tags all over the place.
> > >
> > > regards,
> > >
> > > Martin
> > >
> > > On 5/24/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > > For the example, you are right, if the text is that ... just text.
> > > > But as it often occurs to be more complex (with tags, ...), you end up
> > > > having to need both.
> > > >
> > > >
> > > > On Tue, 2005-05-24 at 00:21 -0400, Sean Schofield wrote:
> > > > Sounds interesting. I will try to put forward a formal sandbox
> > > > proposal for us to vote on later this week. This sounds like a good
> > > > candidate for sandbox. I've got a component of my own for the sandbox
> > > > as well.
> > > >
> > > > sean
> > > >
> > > > btw, in your example wouldn't you only need <f:verbatim><h1>bla
> > > > blah</h1></f:verbatim> ?
> > > >
> > > > On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > > > I'm preparing a new component to render html tags :
> > > > >
> > > > > <x:htmlTag value="h1">bla bla</x:htmlTag>
> > > > > would render : <h1>bla bla</h1>
> > > > >
> > > > > The goal is to avoid the
> > <f:verbatim><h1></f:verbatim>bla
> > > > > bla<f:verbatim></h1></f:verbatim> codes.
> > > > > ... and to avoid doing one component by html tag (like the very
> > usefull
> > > > > <x:div>).
> > > > >
> > > > > Any suggestion ?
> > > > > Any better tag name ?
> > > > >
> > > > > Thanks,
> > > > >
> > > > > Sylvain.
> > > >
> > > >
> > >
> >
> >
> >
> >
>

Re: New x:htmlTag component

Posted by Manfred Geiler <ma...@gmail.com>.
Unfortunately not.
JSF 1.2 is only meant to be an improved JSF 1.x version. Nothing
revolutonary like "no more verbatim".
As Matthias has mentioned, a new JSP spec will be necessary to be able
to get access to the JSP source code right before the JSP container
handles (and outputs) the verbatim text.
These things will be handled in JSF 2.0, for which there exists no JCP
yet, AFAIK.
HTH,
Manfred

2005/5/24, Sylvain Vieujot <sv...@apache.org>:
>  Manfred, could you tell us about that ?
>  Will the 1.2 make this tag useless ?
>  
>  Thanks,
>  
>  Sylvain.
> 
>  
>  On Tue, 2005-05-24 at 08:22 +0200, Matthias Wessendorf wrote: 
>  Interesting component. But I guess the complex <f:verbatim> issue will
> be fix in JSF 1.2 (that relies on JSP 2.1). Or am I wrong with that
> guess ?
> 
> 
> 
> On 5/24/05, Martin Marinschek <ma...@gmail.com> wrote:
> > Very good idea!
> > 
> > +1 from me for that, I'd sure as hell love to get rid of those
> > f:verbatim tags all over the place.
> > 
> > regards,
> > 
> > Martin
> > 
> > On 5/24/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > For the example, you are right, if the text is that ... just text.
> > > But as it often occurs to be more complex (with tags, ...), you end up
> > > having to need both.
> > >
> > >
> > > On Tue, 2005-05-24 at 00:21 -0400, Sean Schofield wrote:
> > > Sounds interesting. I will try to put forward a formal sandbox
> > > proposal for us to vote on later this week. This sounds like a good
> > > candidate for sandbox. I've got a component of my own for the sandbox
> > > as well.
> > >
> > > sean
> > >
> > > btw, in your example wouldn't you only need <f:verbatim><h1>bla
> > > blah</h1></f:verbatim> ?
> > >
> > > On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > > I'm preparing a new component to render html tags :
> > > >
> > > > <x:htmlTag value="h1">bla bla</x:htmlTag>
> > > > would render : <h1>bla bla</h1>
> > > >
> > > > The goal is to avoid the
> <f:verbatim><h1></f:verbatim>bla
> > > > bla<f:verbatim></h1></f:verbatim> codes.
> > > > ... and to avoid doing one component by html tag (like the very
> usefull
> > > > <x:div>).
> > > >
> > > > Any suggestion ?
> > > > Any better tag name ?
> > > >
> > > > Thanks,
> > > >
> > > > Sylvain.
> > >
> > >
> > 
> 
> 
> 
>

Re: New x:htmlTag component

Posted by Sylvain Vieujot <sv...@apache.org>.
Manfred, could you tell us about that ?
Will the 1.2 make this tag useless ?

Thanks,

Sylvain.

On Tue, 2005-05-24 at 08:22 +0200, Matthias Wessendorf wrote:

> Interesting component. But I guess the complex <f:verbatim> issue will
> be fix in JSF 1.2 (that relies on JSP 2.1). Or am I wrong with that
> guess ?
> 
> 
> 
> On 5/24/05, Martin Marinschek <ma...@gmail.com> wrote:
> > Very good idea!
> > 
> > +1 from me for that, I'd sure as hell love to get rid of those
> > f:verbatim tags all over the place.
> > 
> > regards,
> > 
> > Martin
> > 
> > On 5/24/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > >  For the example, you are right, if the text is that ... just text.
> > >  But as it often occurs to be more complex (with tags, ...), you end up
> > > having to need both.
> > >
> > >
> > >  On Tue, 2005-05-24 at 00:21 -0400, Sean Schofield wrote:
> > >  Sounds interesting. I will try to put forward a formal sandbox
> > > proposal for us to vote on later this week. This sounds like a good
> > > candidate for sandbox. I've got a component of my own for the sandbox
> > > as well.
> > >
> > > sean
> > >
> > > btw, in your example wouldn't you only need <f:verbatim><h1>bla
> > > blah</h1></f:verbatim> ?
> > >
> > > On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > > I'm preparing a new component to render html tags :
> > > >
> > > > <x:htmlTag value="h1">bla bla</x:htmlTag>
> > > > would render : <h1>bla bla</h1>
> > > >
> > > > The goal is to avoid the <f:verbatim><h1></f:verbatim>bla
> > > > bla<f:verbatim></h1></f:verbatim> codes.
> > > > ... and to avoid doing one component by html tag (like the very usefull
> > > > <x:div>).
> > > >
> > > > Any suggestion ?
> > > > Any better tag name ?
> > > >
> > > > Thanks,
> > > >
> > > > Sylvain.
> > >
> > >
> > 
> 
> 

Re: New x:htmlTag component

Posted by Matthias Wessendorf <mw...@gmail.com>.
Interesting component. But I guess the complex <f:verbatim> issue will
be fix in JSF 1.2 (that relies on JSP 2.1). Or am I wrong with that
guess ?



On 5/24/05, Martin Marinschek <ma...@gmail.com> wrote:
> Very good idea!
> 
> +1 from me for that, I'd sure as hell love to get rid of those
> f:verbatim tags all over the place.
> 
> regards,
> 
> Martin
> 
> On 5/24/05, Sylvain Vieujot <sv...@apache.org> wrote:
> >  For the example, you are right, if the text is that ... just text.
> >  But as it often occurs to be more complex (with tags, ...), you end up
> > having to need both.
> >
> >
> >  On Tue, 2005-05-24 at 00:21 -0400, Sean Schofield wrote:
> >  Sounds interesting. I will try to put forward a formal sandbox
> > proposal for us to vote on later this week. This sounds like a good
> > candidate for sandbox. I've got a component of my own for the sandbox
> > as well.
> >
> > sean
> >
> > btw, in your example wouldn't you only need <f:verbatim><h1>bla
> > blah</h1></f:verbatim> ?
> >
> > On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > > I'm preparing a new component to render html tags :
> > >
> > > <x:htmlTag value="h1">bla bla</x:htmlTag>
> > > would render : <h1>bla bla</h1>
> > >
> > > The goal is to avoid the <f:verbatim><h1></f:verbatim>bla
> > > bla<f:verbatim></h1></f:verbatim> codes.
> > > ... and to avoid doing one component by html tag (like the very usefull
> > > <x:div>).
> > >
> > > Any suggestion ?
> > > Any better tag name ?
> > >
> > > Thanks,
> > >
> > > Sylvain.
> >
> >
> 


-- 
Matthias Wessendorf

Re: New x:htmlTag component

Posted by Martin Marinschek <ma...@gmail.com>.
Very good idea!

+1 from me for that, I'd sure as hell love to get rid of those
f:verbatim tags all over the place.

regards,

Martin

On 5/24/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  For the example, you are right, if the text is that ... just text.
>  But as it often occurs to be more complex (with tags, ...), you end up
> having to need both.
> 
>  
>  On Tue, 2005-05-24 at 00:21 -0400, Sean Schofield wrote: 
>  Sounds interesting. I will try to put forward a formal sandbox
> proposal for us to vote on later this week. This sounds like a good
> candidate for sandbox. I've got a component of my own for the sandbox
> as well.
> 
> sean
> 
> btw, in your example wouldn't you only need <f:verbatim><h1>bla
> blah</h1></f:verbatim> ?
> 
> On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
> > I'm preparing a new component to render html tags :
> > 
> > <x:htmlTag value="h1">bla bla</x:htmlTag>
> > would render : <h1>bla bla</h1>
> > 
> > The goal is to avoid the <f:verbatim><h1></f:verbatim>bla
> > bla<f:verbatim></h1></f:verbatim> codes.
> > ... and to avoid doing one component by html tag (like the very usefull
> > <x:div>).
> > 
> > Any suggestion ?
> > Any better tag name ?
> > 
> > Thanks,
> > 
> > Sylvain.
> 
>

Re: New x:htmlTag component

Posted by Sylvain Vieujot <sv...@apache.org>.
For the example, you are right, if the text is that ... just text.
But as it often occurs to be more complex (with tags, ...), you end up
having to need both.

On Tue, 2005-05-24 at 00:21 -0400, Sean Schofield wrote:

> Sounds interesting.  I will try to put forward a formal sandbox
> proposal for us to vote on later this week.  This sounds like a good
> candidate for sandbox.  I've got a component of my own for the sandbox
> as well.
> 
> sean
> 
> btw, in your example wouldn't you only need <f:verbatim><h1>bla
> blah</h1></f:verbatim> ?
> 
> On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
> >  I'm preparing a new component to render html tags :
> >  
> >  <x:htmlTag value="h1">bla bla</x:htmlTag>
> >  would render : <h1>bla bla</h1>
> >  
> >  The goal is to avoid the <f:verbatim><h1></f:verbatim>bla
> > bla<f:verbatim></h1></f:verbatim> codes.
> >  ... and to avoid doing one component by html tag (like the very usefull
> > <x:div>).
> >  
> >  Any suggestion ?
> >  Any better tag name ?
> >  
> >  Thanks,
> >  
> >  Sylvain.

Re: New x:htmlTag component

Posted by Sean Schofield <se...@gmail.com>.
Sounds interesting.  I will try to put forward a formal sandbox
proposal for us to vote on later this week.  This sounds like a good
candidate for sandbox.  I've got a component of my own for the sandbox
as well.

sean

btw, in your example wouldn't you only need <f:verbatim><h1>bla
blah</h1></f:verbatim> ?

On 5/23/05, Sylvain Vieujot <sv...@apache.org> wrote:
>  I'm preparing a new component to render html tags :
>  
>  <x:htmlTag value="h1">bla bla</x:htmlTag>
>  would render : <h1>bla bla</h1>
>  
>  The goal is to avoid the <f:verbatim><h1></f:verbatim>bla
> bla<f:verbatim></h1></f:verbatim> codes.
>  ... and to avoid doing one component by html tag (like the very usefull
> <x:div>).
>  
>  Any suggestion ?
>  Any better tag name ?
>  
>  Thanks,
>  
>  Sylvain.