You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Massimo Lusetti <ml...@gmail.com> on 2009/02/09 12:30:11 UTC

Re: svn commit: r741938 - in /tapestry/tapestry5/trunk: src/site/apt/ tapestry-core/ tapestry-core/src/main/java/org/apache/tapestry5/ tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ tapestry-core/src/main/java/org/apache/tapestry

On Sat, Feb 7, 2009 at 8:11 PM,  <hl...@apache.org> wrote:

> Author: hlship
> Date: Sat Feb  7 19:11:39 2009
> New Revision: 741938
>
> URL: http://svn.apache.org/viewvc?rev=741938&view=rev
> Log:
> Convert Tapestry to use the Woodstox StAX2 parser when parsing Tapestry Markup Templates

Out of curiosity i would like to know the reasons behind this?
Performance? Clearer API? Future expansions? ... Obviously before i
dig into the code to learn more...

-- 
Massimo
http://meridio.blogspot.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: svn commit: r741938 - in /tapestry/tapestry5/trunk: src/site/apt/ tapestry-core/ tapestry-core/src/main/java/org/apache/tapestry5/ tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ tapestry-core/src/main/java/org/apache/tapestry

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
Em Mon, 09 Feb 2009 17:42:23 -0300, Howard Lewis Ship <hl...@gmail.com>  
escreveu:

> This is to get ready to
> bring back a version of $content$ and $remove$ (from T4),

I implemented something very similar to $content$ and $remove$  
implementing two components: crud/Remove (renders absolutely nothing, just  
like $remove$ [1] and crud/JustBody (renders only its body, not its  
element) [2]. A template using them to provide complete previewability can  
be found at [3]. That's one very nice Tapestry feature: implementing a  
very simple component you accomplish something that need special treatment  
in other frameworks (like Tapetry 4, for example).

[1]  
http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-crud/tags/1.0/src/main/java/br/com/arsmachina/tapestrycrud/components/Remove.java?revision=379&view=markup

[2]  
http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-crud/tags/1.0/src/main/java/br/com/arsmachina/tapestrycrud/components/JustBody.java?revision=379&view=markup  
and

[3]  
http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/example/tags/1.0/src/main/webapp/user/EditUser.tml?revision=395&view=markup  
and  
http://ars-machina.svn.sourceforge.net/viewvc/ars-machina/tapestry-crud/tags/1.0/src/main/resources/br/com/arsmachina/tapestrycrud/components/JustBody.tml?revision=379&view=markup.

> plus future
> ideas (allow a subclass template to override only portions of the
> superclass template).

Couldn't this be accomplished just using regular block parameters? AFAIK,  
this can be true for components, but not for pages. Am I right?

-- 
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


Re: svn commit: r741938 - in /tapestry/tapestry5/trunk: src/site/apt/ tapestry-core/ tapestry-core/src/main/java/org/apache/tapestry5/ tapestry-core/src/main/java/org/apache/tapestry5/internal/bindings/ tapestry-core/src/main/java/org/apache/tapestry

Posted by Howard Lewis Ship <hl...@gmail.com>.
Much easier to maintain code.  Speed appears about the same.
Unfortunate that there's another dependency.  This is to get ready to
bring back a version of $content$ and $remove$ (from T4), plus future
ideas (allow a subclass template to override only portions of the
superclass template).

On Mon, Feb 9, 2009 at 3:30 AM, Massimo Lusetti <ml...@gmail.com> wrote:
> On Sat, Feb 7, 2009 at 8:11 PM,  <hl...@apache.org> wrote:
>
>> Author: hlship
>> Date: Sat Feb  7 19:11:39 2009
>> New Revision: 741938
>>
>> URL: http://svn.apache.org/viewvc?rev=741938&view=rev
>> Log:
>> Convert Tapestry to use the Woodstox StAX2 parser when parsing Tapestry Markup Templates
>
> Out of curiosity i would like to know the reasons behind this?
> Performance? Clearer API? Future expansions? ... Obviously before i
> dig into the code to learn more...
>
> --
> Massimo
> http://meridio.blogspot.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org