Re: First Tapestry app with Hibernate

2010-12-01 Thread Michal Gruca

That is probably not the answer that you would excpect but please review that
small app of mine. I created that for JUG and it has working hibernate
support for T5 with in memory h2 db running. It's not cleanest, but should
be easy to understand.
http://bitbucket.org/mgruca/tjug_tapestry_30.09.10/overview

Last thing that I recall regarding hibernate (I was even writing that on
this list), I had to annotate AppModule with @SubModule(value = {
HibernateModule.class }) else eclipse was ** on me.
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/First-Tapestry-app-with-Hibernate-tp5787608p5790976.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: using template instead of T5's tml

2010-12-01 Thread Massimo Lusetti
On Wed, Dec 1, 2010 at 7:46 AM, Kalle Korhonen
kalle.o.korho...@gmail.com wrote:

 fill in the blanks. JMHO, but previewable templates never work in the
 long run as your application (and components!) get more complex.

That's for sure!

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

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: First Tapestry app with Hibernate

2010-12-01 Thread Angelo C.

I wrote that tutorial when I was a newbie:) try to add this to your pom,
works?
  
 dependency
  groupIdcommons-collections/groupId
  artifactIdcommons-collections/artifactId
  version3.1/version
 /dependency

-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/First-Tapestry-app-with-Hibernate-tp3285845p3287397.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: using template instead of T5's tml

2010-12-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com  
wrote:



Is there any editors with preview functionality that works well with T5's
template?


As long as you use div t:type=ComponentName instead of  
t:componentName, you can use any HTML editor.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: alternative template location

2010-12-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Dec 2010 02:56:19 -0200, Angelo C. angelochen...@gmail.com  
wrote:



Hi,


Hi!

Is there a way to let T5 look at an alternative location for templates,  
if not found, it goes to the default location? example: Home.tml is  
always in WEB-INF,  there might be a customized version of Home.tml in:

plugIns/WEB-INF. possible?


What's the use case here?

If you're thinking about easy editing, why not putting the templates in  
the classpath and running an exploded WAR so it can be edited live when  
needed?


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: alternative template location

2010-12-01 Thread Angelo C.

example: if you have a packaged blog system, user can customize it by editing
those tml files, but when a new version is out, those 'in place' editing
will be replaced, if user copies those tml file into a new directory, say
'plugins', then they will be preserved.



Thiago H. de Paula Figueiredo wrote:
 
 On Wed, 01 Dec 2010 02:56:19 -0200, Angelo C. angelochen...@gmail.com  
 wrote:
 
 Hi,
 
 What's the use case here?
 
 
 
 

-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-alternative-template-location-tp3287207p3287564.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: alternative template location

2010-12-01 Thread Thiago H. de Paula Figueiredo
On Wed, 01 Dec 2010 10:08:41 -0200, Angelo C. angelochen...@gmail.com  
wrote:


example: if you have a packaged blog system, user can customize it by  
editing those tml files, but when a new version is out, those 'in place'  
editing

will be replaced, if user copies those tml file into a new directory, say
'plugins', then they will be preserved.


You can subclass the pages, use this customized template as the subclass  
one and use URL rewriting to do that. No need for new template locations.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: alternative template location

2010-12-01 Thread Igor Drobiazko
You can contribute your own ComponentTemplateLocator. Read this article:

http://blog.tapestry5.de/index.php/2010/08/06/extending-template-lookup-mechanism/



On Wed, Dec 1, 2010 at 5:56 AM, Angelo C. angelochen...@gmail.com wrote:


 Hi,

 Is there a way to let T5 look at an alternative location for templates, if
 not found, it goes to the default location? example: Home.tml is always in
 WEB-INF,  there might be a customized version of Home.tml in:
 plugIns/WEB-INF. possible?

 Angelo
 --
 View this message in context:
 http://tapestry.1045711.n5.nabble.com/T5-alternative-template-location-tp3287207p3287207.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




-- 
Best regards,

Igor Drobiazko
http://tapestry5.de


Re: T5: using template instead of T5's tml

2010-12-01 Thread Everton Agner
 As long as you use div t:type=ComponentName instead of
t:componentName, you can use any HTML editor.

Invisible instrumentation is great... But, if you're working inside a Layout
Component, you will have some extra work on merging the Page's TML and the
Layout's TML to see it properly on the Browser (which is not only a Tap
problem)... If that's not a problem for the Designer's, it's okay, thought.

___
Everton Agner Ramos


2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com

 On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com
 wrote:

  Is there any editors with preview functionality that works well with T5's
 template?


 As long as you use div t:type=ComponentName instead of
 t:componentName, you can use any HTML editor.

 --
 Thiago H. de Paula Figueiredo
 Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
 and instructor
 Owner, Ars Machina Tecnologia da Informação Ltda.
 http://www.arsmachina.com.br


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




T5: accessing parameters from request

2010-12-01 Thread Angelo C.

Hi,

I have a standard form that has an action to call BeforeProc, where email
can be accessed from request, but when BeforeProc returns AfterProc,
the request.getParameter(email) is null, why?


public class BeforeProc {

@Inject
private Request request;

Object onActivate() {
return sub_proc();
}

Object sub_proc() {
String email = request.getParameter(email);
// email has value
return AfterProc;
}
}



public class AfterProc {

@Inject
private Request request;

Object onActivate() {
String email = request.getParameter(email);
// email is null here
}

}

-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-accessing-parameters-from-request-tp3287653p3287653.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: accessing parameters from request

2010-12-01 Thread Richard Hill

sub_proc() is returning AfterProc, which will resolve simply to the
page as is with no parameters. If you want to pass parameters to
AfterProc page the sub_proc should return a Link with the email added as
a query parameter. 



-Original Message-
From: Angelo C. angelochen...@gmail.com
Reply-to: Tapestry users users@tapestry.apache.org
To: users@tapestry.apache.org
Subject: T5: accessing parameters from request
Date: Wed, 1 Dec 2010 05:36:54 -0800 (PST)

Hi,

I have a standard form that has an action to call BeforeProc, where email
can be accessed from request, but when BeforeProc returns AfterProc,
the request.getParameter(email) is null, why?


public class BeforeProc {

@Inject
private Request request;

Object onActivate() {
return sub_proc();
}

Object sub_proc() {
String email = request.getParameter(email);
// email has value
return AfterProc;
}
}



public class AfterProc {

@Inject
private Request request;

Object onActivate() {
String email = request.getParameter(email);
// email is null here
}

}




-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: accessing parameters from request

2010-12-01 Thread Angelo C.

thanks, it works!
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-accessing-parameters-from-request-tp3287653p3287683.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: using template instead of T5's tml

2010-12-01 Thread Alex Kotchnev
Everton,
   a while back (w/ the T4 equivalent) and more recently (after 5.1) I was
experimenting with using t:content to have a full-blown HTML page but only
use a part of it for the real template. Thus, you could have something
like this for a previewable page that your designers can work with in ther
WISYWIGs:

html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
head
   .. include whatever styles you need for the HTML editor to display the
page properly
/head
body
  div i --- whatever your layout component has  --
  div t:type=content  -- ... this is where the 'real' template
starts...  --
   div t:type='yourLayoutComponent'
  ... this is the content that you would otherwise
have if you didn't use t:content
   /div
   /div
  /div
/body

/html

which would be the equivalent of having a page that uses the layout like
this (which has zero previewability):
div t:type='yourLayoutComponent'
  ... this is the content that you would otherwise
have if you didn't use t:content
/div

with a layout of
html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
head/head
body
  div 
  div t:type=body
  /div
/body

/html

I hope this helps.

Alex K

On Wed, Dec 1, 2010 at 8:10 AM, Everton Agner ton.ag...@gmail.com wrote:

  As long as you use div t:type=ComponentName instead of
 t:componentName, you can use any HTML editor.

 Invisible instrumentation is great... But, if you're working inside a
 Layout
 Component, you will have some extra work on merging the Page's TML and
 the
 Layout's TML to see it properly on the Browser (which is not only a Tap
 problem)... If that's not a problem for the Designer's, it's okay, thought.

 ___
 Everton Agner Ramos


 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com

  On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com
  wrote:
 
   Is there any editors with preview functionality that works well with
 T5's
  template?
 
 
  As long as you use div t:type=ComponentName instead of
  t:componentName, you can use any HTML editor.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
  and instructor
  Owner, Ars Machina Tecnologia da Informação Ltda.
  http://www.arsmachina.com.br
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



RE: T5: Hibernate

2010-12-01 Thread Jens Reufsteck
I remember that I got errors with hibernate, when I had different versions of 
hibernate core and hibernate annotations combined ( in my case 3.6 with 3.5.6). 
Downgrading both to 3.5.6 solved it. 

No idea, what's behind it, I'm not very familiar with hibernate, but I saw you 
have hibernate with 3.2.2.ga and hibernate annotations with 3.2.1.ga

Jens Reufsteck


 -Original Message-
 From: robnangle [mailto:robnan...@gmail.com]
 Sent: Tuesday, November 30, 2010 11:25 AM
 To: users@tapestry.apache.org
 Subject: Re: T5: Hibernate
 
 
 Hi,
 Im trying to get this example but keep getting the same two errors. Any help
 would be greatly appreciated.
 
 org.apache.tapestry5.internal.services.TransformationException:
 java.lang.ClassNotFoundException:
 org.apache.tapestry5.hibernate.annotations.CommitAfter
 
 org.apache.tapestry5.internal.services.TransformationException:
 javassist.NotFoundException: org.hibernate.Session (when I take out the
 commitAfter)
 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/T5-Hibernate-
 tp2409789p3285852.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry Web Site Updated

2010-12-01 Thread Borut Bolčina
Wow, I didn't know we could make our own stackoverflow! Just read the
http://area51.stackexchange.com/faq

But yes, this would make a lot of effort, so it is just a nice dream.

-Borut

2010/11/25 Paul Stanton p...@mapshed.com.au

 Andreas,

 Agreed 100%.

 http://stackoverflow.com/questions/tagged/tapestry
 or as a feed:
 http://stackoverflow.com/feeds/tag/tapestry

 Maybe the tapestry site can leverage stackoverflow as it's recommended
 question/answer forum?

 To work however, this would require some of the people here to take
 interest.

 p.


 On 25/11/2010 11:41 AM, Andreas Andreou wrote:

 You're probably right on the reasons, but the thing is that it's a pain
 having
 to monitor multiple sources of user feedback - there's just never enought
 free
 time to do so.

 And there's also a few big risks:
 1) Making the community appear to be unresponsive
 2) Frustrating users who never get their questions answered
 3) Spreading the info to multiple places is hard to update
 and easy to get obsolete

 So, anyway, Tapestry has the mailing list, its website/documentation and
 there's
 always StackOverflow. Perhaps it makes sense to define a strategy on how
 to take
 advantage of that last one though

 On Thu, Nov 25, 2010 at 01:36, Paul Stantonp...@mapshed.com.au  wrote:

 it did. it's still there but doesn't have the community.

 the reason it dies was twofold:

 1. it was very spam prone: the way it was set up did not do enough to
 limit/kill spammers
 2. it did not get the tapestry community support - it was not even
 acknowledged by the tapestry site

 that's not to say a forum wouldn't work if setup and supported by the
 core
 tapestry community.

 p.

 On 25/11/2010 8:18 AM, Robert Zeigler wrote:

 Tapestry had a forum for awhile.  I think it died.

 Robert

 On Nov 24, 2010, at 11/244:46 AM , Paul Stanton wrote:

  i know most of you guys, who have been using ml for so long probably
 prefer ml, that's not the point!

 i guarantee there's a number of users who don't want to configure their
 inbox for ml and give up.

 just a thought, if no one can see the benefit i guess it isn't going to
 happen!

 i use stackoverflow a lot and attempt to answer or contribute to most
 tapestry questions.

 p.

 On 24/11/2010 8:35 PM, Ivano Luberti wrote:

 I prefer ml to forums and in nay case ML web archives allow to search
 them.
 I cannot see any other advantage of a forum over a ml.

 Il 24/11/2010 4.56, Paul Stanton ha scritto:

 how about adding a forum?

 personally i prefer forums to mailing lists, and i believe a lot of
 people don't participate in this 'user-group' community and therefore
 don't get help and therefore don't like tapestry...

 if you want to attract more users i recommend this.

 p.

 On 20/11/2010 8:15 AM, Howard Lewis Ship wrote:

 We're still working out the kinks ... and I've been working hard on
 revising
 the tutorial ... but at long last, we're debuting the new Tapestry
 Web Site:

 http://tapestry.apache.org/

 Feedback is encouraged; just post to users@tapestry.apache.org with
 [SITE]
 in the subject.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org


  -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org





 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org




MultiZoneUpdate position param

2010-12-01 Thread raulmt

Hi,

Consider the following scenario:

ul id=items
  lian item/li
  lian item/li
  lian item/li
/ul
Add new item 

I want the Add new item button to add another li element to the items list,
but only requesting the new item to the server (something similar to what
ajaxForLoop/addRowLink does, but not within a Form). The only solution I see
(maybe i'm missing something obvious) is to link the Add new item button to
an auxiliary Zone and return, as the Ajax request result, a Block and a
script that removes the content of the updated Zone and place it where I
want it to be (at the bottom of the ul list). This is not a very good
solution, so I was wondering if maybe a new param to MultiZoneUpdate could
be added: position. That way, I could make the ul list as a Zone and return
new MultiZoneUpdate(zoneId, blockToRender, MZUPositions.BOTTOM) to put the
blockToRender HTML not as a content replacement but at the bottom of the
content (and in a similar way with others Prototype's Element.insert()
position options).

This could be useful not only in this case, but also when developing a chat
board or a list of new messages in a messaging system.

In terms of Tapestry, this could be accomplished by returning another
optional JSON attribute in the Ajax response: position. When the ZoneManager
process the reply instead of just replacing the Zone content with the
arrived content, it can use Element.insert() to insert it at the right
position, if position was specified.

If all of these makes sense to more people, I could post it in Jira, but
first it would be helpful to know another opinion.

Regards,
Raul.
-- 
View this message in context: 
http://tapestry-users.832.n2.nabble.com/MultiZoneUpdate-position-param-tp5792773p5792773.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Tapestry 5 with Prototype 1.7

2010-12-01 Thread 9902468

Hi,

has anyone used Prototype 1.7? 1.6.1 has some problems with IE9 and I'd like
to code new things against the newer version.

The 1.7 is supposed to be drop-in replacement for 1.6.1, and it should also
work with scriptaculous 1.8.x. (According to the developer if it does not it
is a bug and it will be fixed.)

However, I have faced problems that appear with ajax: the javascript that
get's attached to the ajax response is never evaluated. No exceptions
raised, no errors with any browsers.

Before I start to debug this I'd like to know if someone has already seen
(and hopefully fixed) this?

 - Ville 
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-with-Prototype-1-7-tp3288189p3288189.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: using template instead of T5's tml

2010-12-01 Thread Angelo C.

Hi Alex,

it's an interesting approach, some more details? I can't find t:content in
the T5 component reference, is it a component you created in additional to
youLayoutComponent? Thanks,

Angelo


Alex Kotchnev-2 wrote:
 
 Everton,
a while back (w/ the T4 equivalent) and more recently (after 5.1) I was
 experimenting with using t:content to have a full-blown HTML page but only
 use a part of it for the real template. Thus, you could have something
 like this for a previewable page that your designers can work with in ther
 WISYWIGs:
 
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 head
.. include whatever styles you need for the HTML editor to display the
 page properly
 /head
 body
   div i --- whatever your layout component has  --
   div t:type=content  -- ... this is where the 'real' template
 starts...  --
div t:type='yourLayoutComponent'
   ... this is the content that you would otherwise
 have if you didn't use t:content
/div
/div
   /div
 /body
 
 /html
 
 which would be the equivalent of having a page that uses the layout like
 this (which has zero previewability):
 div t:type='yourLayoutComponent'
   ... this is the content that you would otherwise
 have if you didn't use t:content
 /div
 
 with a layout of
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 head/head
 body
   div 
   div t:type=body
   /div
 /body
 
 /html
 
 I hope this helps.
 
 Alex K
 
 On Wed, Dec 1, 2010 at 8:10 AM, Everton Agner ton.ag...@gmail.com wrote:
 
  As long as you use div t:type=ComponentName instead of
 t:componentName, you can use any HTML editor.

 Invisible instrumentation is great... But, if you're working inside a
 Layout
 Component, you will have some extra work on merging the Page's TML and
 the
 Layout's TML to see it properly on the Browser (which is not only a Tap
 problem)... If that's not a problem for the Designer's, it's okay,
 thought.

 ___
 Everton Agner Ramos


 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com

  On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com
  wrote:
 
   Is there any editors with preview functionality that works well with
 T5's
  template?
 
 
  As long as you use div t:type=ComponentName instead of
  t:componentName, you can use any HTML editor.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java, Apache Tapestry 5 and Hibernate consultant,
 developer,
  and instructor
  Owner, Ars Machina Tecnologia da Informação Ltda.
  http://www.arsmachina.com.br
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 

 
 
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3288868.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: T5: using template instead of T5's tml

2010-12-01 Thread Kalle Korhonen
On Wed, Dec 1, 2010 at 8:22 PM, Angelo C. angelochen...@gmail.com wrote:
 it's an interesting approach, some more details? I can't find t:content in
 the T5 component reference, is it a component you created in additional to
 youLayoutComponent? Thanks,

http://lmgtfy.com/?q=tapestry+t%3Acontent

Kalle


 Alex Kotchnev-2 wrote:
 Everton,
    a while back (w/ the T4 equivalent) and more recently (after 5.1) I was
 experimenting with using t:content to have a full-blown HTML page but only
 use a part of it for the real template. Thus, you could have something
 like this for a previewable page that your designers can work with in ther
 WISYWIGs:

 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 head
    .. include whatever styles you need for the HTML editor to display the
 page properly
 /head
 body
   div i --- whatever your layout component has  --
       div t:type=content  -- ... this is where the 'real' template
 starts...  --
                div t:type='yourLayoutComponent'
                           ... this is the content that you would otherwise
 have if you didn't use t:content
                /div
        /div
   /div
 /body

 /html

 which would be the equivalent of having a page that uses the layout like
 this (which has zero previewability):
 div t:type='yourLayoutComponent'
                           ... this is the content that you would otherwise
 have if you didn't use t:content
 /div

 with a layout of
 html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd;
 head/head
 body
   div 
           div t:type=body
   /div
 /body

 /html

 I hope this helps.

 Alex K

 On Wed, Dec 1, 2010 at 8:10 AM, Everton Agner ton.ag...@gmail.com wrote:

  As long as you use div t:type=ComponentName instead of
 t:componentName, you can use any HTML editor.

 Invisible instrumentation is great... But, if you're working inside a
 Layout
 Component, you will have some extra work on merging the Page's TML and
 the
 Layout's TML to see it properly on the Browser (which is not only a Tap
 problem)... If that's not a problem for the Designer's, it's okay,
 thought.

 ___
 Everton Agner Ramos


 2010/12/1 Thiago H. de Paula Figueiredo thiag...@gmail.com

  On Wed, 01 Dec 2010 03:41:41 -0200, Angelo C. angelochen...@gmail.com
  wrote:
 
   Is there any editors with preview functionality that works well with
 T5's
  template?
 
 
  As long as you use div t:type=ComponentName instead of
  t:componentName, you can use any HTML editor.
 
  --
  Thiago H. de Paula Figueiredo
  Independent Java, Apache Tapestry 5 and Hibernate consultant,
 developer,
  and instructor
  Owner, Ars Machina Tecnologia da Informação Ltda.
  http://www.arsmachina.com.br
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
  For additional commands, e-mail: users-h...@tapestry.apache.org
 
 



 --
 View this message in context: 
 http://tapestry.1045711.n5.nabble.com/T5-using-template-instead-of-T5-s-tml-tp3287114p3288868.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Tapestry 5 with Prototype 1.7

2010-12-01 Thread Jochen Berger
Ville,

Am Mittwoch, den 01.12.2010, 10:52 -0800 schrieb 9902468:
 has anyone used Prototype 1.7? [...] I have faced problems that appear
 with ajax: the javascript that get's attached to the ajax response is
 never evaluated.

I think I remember a problem like that when I tried a Prototype 1.7 RC
with Tapestry. However, I got an error message that led me to line 1913
of tapestry.js where it says

Object.keys(reply.zones).each(...);

The problem was that if the response was not generated by a
MultiZoneUpdate, reply.zones is undefined and the version of Prototype
seemed to have a problem with that. For me, changing the line to 

reply.zones != undefined  Object.keys(reply.zones).each(...);

did the trick.

hth,
Jochen


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org