T5 embedded components

2007-06-16 Thread Janko Muzykant

hi,
lets assume I have a root component with its html template. one of
components used in a template contains a component that interests me the
most. is it possible to get this embedded component from the root one? I
mean, is it generally possible to any component with allocated id from the
root of components tree (in my case from the Layout component) just like
this:

   @Inject
   private ComponentResources _resources;

   _resources.getEmbeddedComponent(id);

thanks.


Is ActionLink deprecated ?

2007-06-16 Thread Leo Stefanesco

Hello everybody,
I'm reading the Tapestry 5 tutorial and when I try to run the example (a
Hi/lo) which contain actionlink tag, there is a error message :


A runtime exception has occurred.
org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing
template context:WEB-INF/Start.html: Element t:ActionLink is in the
Tapestry namespace, but is not a recognized Tapestry template element.



And  I've googled  tapestry actionlink  and I've found this page :
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/ActionLink.html

and it's write :


Warning
This component has been deprecated and will be removed in the next major
release of Tapestry. ActionLink represents an inherently unstable approach,
since it can easily be confused by changing server-side state.



So, can you help me please ?
Thanks.

PS:I'm sorry for my bad English but I'm a french people who try to learn
English.


Re: Is ActionLink deprecated ?

2007-06-16 Thread SergeEby

Hi,

The URL you mentioned is related to Tapestry 4, not T5.
Are you sure you strictly followed all steps mentioned in the tutorial?
There are several examples (Integration Tests) in the source code that might
be helpful.

/Serge


Leo Stefanesco wrote:
 
 Hello everybody,
 I'm reading the Tapestry 5 tutorial and when I try to run the example (a
 Hi/lo) which contain actionlink tag, there is a error message :
 
 A runtime exception has occurred.
 org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing
 template context:WEB-INF/Start.html: Element t:ActionLink is in the
 Tapestry namespace, but is not a recognized Tapestry template element.

 
 And  I've googled  tapestry actionlink  and I've found this page :
 http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/ActionLink.html
 
 and it's write :
 
 Warning
 This component has been deprecated and will be removed in the next major
 release of Tapestry. ActionLink represents an inherently unstable
 approach,
 since it can easily be confused by changing server-side state.

 
 So, can you help me please ?
 Thanks.
 
 PS:I'm sorry for my bad English but I'm a french people who try to learn
 English.
 
 

-- 
View this message in context: 
http://www.nabble.com/Is-ActionLink-deprecated---tf3932639.html#a11154249
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is ActionLink deprecated ?

2007-06-16 Thread Leo Stefanesco

2007/6/16, SergeEby [EMAIL PROTECTED]:



Hi,

The URL you mentioned is related to Tapestry 4, not T5.



Yes, I know, but it's write that actionlink will be removed in the next
major release of Tapestry and I thought that the next major release after
Tapestry 4 is Tapestry 5.

Are you sure you strictly followed all steps mentioned in the tutorial?

There are several examples (Integration Tests) in the source code that
might
be helpful.



Thanks,  I'll try it.

/Serge



Leo Stefanesco wrote:

 Hello everybody,
 I'm reading the Tapestry 5 tutorial and when I try to run the example (a
 Hi/lo) which contain actionlink tag, there is a error message :

 A runtime exception has occurred.
 org.apache.tapestry.ioc.internal.util.TapestryException Failure parsing
 template context:WEB-INF/Start.html: Element t:ActionLink is in the
 Tapestry namespace, but is not a recognized Tapestry template element.


 And  I've googled  tapestry actionlink  and I've found this page :

http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/ActionLink.html

 and it's write :

 Warning
 This component has been deprecated and will be removed in the next
major
 release of Tapestry. ActionLink represents an inherently unstable
 approach,
 since it can easily be confused by changing server-side state.


 So, can you help me please ?
 Thanks.

 PS:I'm sorry for my bad English but I'm a french people who try to learn
 English.



--
View this message in context:
http://www.nabble.com/Is-ActionLink-deprecated---tf3932639.html#a11154249
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Using Hibernate detached objects in Tapestry (thread-safety question)

2007-06-16 Thread Thiago H de Paula Figueiredo
Em Fri, 15 Jun 2007 19:16:30 -0300, Norman Franke [EMAIL PROTECTED]  
escreveu:


The only glitches I noticed is when saving a record (i.e. not rolling  
back) from a listener and returning another page (i.e. a direct  
service.) I don't want them to be in the same session, since cached data  
from the page with the listener gets stuck on the next page.


If you're using session per request, just use redirect-after-post e use  
the flash persistence for your object.
See http://howardlewisship.com/tapestry-javaforge/tapestry-flash/ for more  
details. :)


Thiago

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5 embedded components

2007-06-16 Thread Howard Lewis Ship

You can cast a component to type org.apache.tapestry.runtime.Component
(this interface is added to component classes at runtime).  You can
than access the component's ComponentResources, including embedded
components.

This is not advised; it is possible (in much the way you can use
reflection to bypass accessor methods of Java classes) but generally
indicates that you have wandered off The Golden Path.

On 6/15/07, Janko Muzykant [EMAIL PROTECTED] wrote:

hi,
lets assume I have a root component with its html template. one of
components used in a template contains a component that interests me the
most. is it possible to get this embedded component from the root one? I
mean, is it generally possible to any component with allocated id from the
root of components tree (in my case from the Layout component) just like
this:

@Inject
private ComponentResources _resources;

_resources.getEmbeddedComponent(id);

thanks.




--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Is ActionLink deprecated ?

2007-06-16 Thread Erik Vullings

Hi Leo,

You may also have a look at the Tapestry5 Wiki, e.g. here:
http://wiki.apache.org/tapestry/Tapestry5HowToCreateYourQuickstartWithMaven206

Cheers
Erik

On 6/16/07, Leo Stefanesco [EMAIL PROTECTED] wrote:


2007/6/16, SergeEby [EMAIL PROTECTED]:


 Hi,

 The URL you mentioned is related to Tapestry 4, not T5.


Yes, I know, but it's write that actionlink will be removed in the next
major release of Tapestry and I thought that the next major release
after
Tapestry 4 is Tapestry 5.

Are you sure you strictly followed all steps mentioned in the tutorial?
 There are several examples (Integration Tests) in the source code that
 might
 be helpful.


Thanks,  I'll try it.

/Serge


 Leo Stefanesco wrote:
 
  Hello everybody,
  I'm reading the Tapestry 5 tutorial and when I try to run the example
(a
  Hi/lo) which contain actionlink tag, there is a error message :
 
  A runtime exception has occurred.
  org.apache.tapestry.ioc.internal.util.TapestryException Failure
parsing
  template context:WEB-INF/Start.html: Element t:ActionLink is in the
  Tapestry namespace, but is not a recognized Tapestry template
element.
 
 
  And  I've googled  tapestry actionlink  and I've found this page :
 

http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/ActionLink.html
 
  and it's write :
 
  Warning
  This component has been deprecated and will be removed in the next
 major
  release of Tapestry. ActionLink represents an inherently unstable
  approach,
  since it can easily be confused by changing server-side state.
 
 
  So, can you help me please ?
  Thanks.
 
  PS:I'm sorry for my bad English but I'm a french people who try to
learn
  English.
 
 

 --
 View this message in context:

http://www.nabble.com/Is-ActionLink-deprecated---tf3932639.html#a11154249
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]