Re: [T5.4] context isn't passed to enclosing page during form submit

2014-07-03 Thread Ilya Obshadko
That's Hibernate entity, so I don't think ValueEncoder is necessary with tapestry-hibernate. On Thu, Jul 3, 2014 at 11:28 PM, Lance Java wrote: > If you contribute an appropriate ValueEncoder for Entity, you won't need > onActivate() / onPassivate(). You can use @PageActivationContext instead.

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
thank you 2014-07-03 16:57 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 03 Jul 2014 10:35:18 -0300, squallmat . > wrote: > > I see that when i just use "layout/layout.css" it searches in the package >> of my component. >> Is it possible to tell link it a resource at the root of classpat

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

2014-07-03 Thread Manuel Sugawara
On Wed, Jul 2, 2014 at 8:36 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Wed, 02 Jul 2014 21:29:03 -0300, Manuel Sugawara < > manuel.sugaw...@gmail.com> wrote: > > Hi, >> > > Hello, Manuel! > > > I'm trying to play a little bit with 5.4-beta-6 but our application that >> ru

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread Thiago H de Paula Figueiredo
On Thu, 03 Jul 2014 10:35:18 -0300, squallmat . wrote: I see that when i just use "layout/layout.css" it searches in the package of my component. Is it possible to tell link it a resource at the root of classpath ? /layout/layout.css -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibe

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
I see that when i just use "layout/layout.css" it searches in the package of my component. Is it possible to tell link it a resource at the root of classpath ? 2014-07-03 15:11 GMT+02:00 squallmat . : > Thank you, it works now. > > > > 2014-07-03 14:50 GMT+02:00 Thiago H de Paula Figueiredo < >

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
Thank you, it works now. 2014-07-03 14:50 GMT+02:00 Thiago H de Paula Figueiredo : > On Thu, 03 Jul 2014 09:33:31 -0300, squallmat . > wrote: > > I should have seen that before, but in my console I have: >> >> Caused by: java.lang.IllegalArgumentException: Unknown prefix for asset >> path 'a

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread Thiago H de Paula Figueiredo
On Thu, 03 Jul 2014 09:33:31 -0300, squallmat . wrote: I should have seen that before, but in my console I have: Caused by: java.lang.IllegalArgumentException: Unknown prefix for asset path 'asset:layout/layout.css'. ^^^ Here's the missing information for figuring out the problem. When p

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
I should have seen that before, but in my console I have: Caused by: java.lang.IllegalArgumentException: Unknown prefix for asset path 'asset:layout/layout.css'. at org.apache.tapestry5.internal.services.AssetSourceImpl.getUnlocalizedResource(AssetSourceImpl.java:127) at org.apache.tapestry5.inter

Is request parameter encoding working like intended in 5.4?

2014-07-03 Thread Chris Poulsen
Hi, I'm seeing some weird query parameter behavior in a component where I have a node with the following id: /182 A link generated with: @Component( parameters = { "event=opencloseclick","parameters={'t:nodeId': row.id}", "zone=^" } ) private EventLink openCloseLink; To the following handle

Re: [T5.4] context isn't passed to enclosing page during form submit

2014-07-03 Thread Lance Java
If you contribute an appropriate ValueEncoder for Entity, you won't need onActivate() / onPassivate(). You can use @PageActivationContext instead. On 3 July 2014 06:11, Ilya Obshadko wrote: > Oops my bad. I always try to forget about onPassivate () > That should fix it, thanks! > > > On Thu, Ju

Re: Tapestry 5.4-beta-6 No service implements the interface org.slf4j.Logger.

2014-07-03 Thread Lance Java
I'm guessing you're trying to @Inject a logger into a service. >From memory, I *think* that loggers can only be @Inject'ed into pages and components. Components have additional behaviour availble to @Inject that services do not. See InjectWorker/InjectProvider On 3 July 2014 01:29, Manuel Sugawar

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
LoginLayout : @Import(stylesheet = "asset:layout/layout.css") public class LoginLayout { // Title of the page // @SuppressWarnings("unused") @Property @Parameter(required = true, defaultPrefix = BindingConstants.LITERAL) private String title; @InjectPage private Index indexPage; Object onActionF

RE: java.lang.reflect.InvocationTargetException

2014-07-03 Thread Thilo Tanner
Hi! Is the layout class itself maybe private or protected? Otherwise, could you provide us a (anonymous version) of your code? Thanks and best, Thilo From: squallmat . Sent: Thursday, July 03, 2014 13:29 To: Tapestry users Subject: Re: java.lang.reflec

Re: java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
I don't have created any constructor in my layouts, so it can't be that. 2014-07-03 12:16 GMT+02:00 Thilo Tanner : > Hi! > > The problem is, that Tapestry cannot create an instance of your component > LoginLayout. > > You probably created a non-default constructor or the constructor is > private

RE: java.lang.reflect.InvocationTargetException

2014-07-03 Thread Thilo Tanner
Hi! The problem is, that Tapestry cannot create an instance of your component LoginLayout. You probably created a non-default constructor or the constructor is private or protected. Check the Tapestry component lifecycle in case you want to setup your component (for example by using @SetupRen

java.lang.reflect.InvocationTargetException

2014-07-03 Thread squallmat .
Hello I have an embedded component into another component but when I try to launch i got this : "Exception assembling root component of page Index: Exception assembling embedded component 'mainlayout' (of type atos.smt.livraison.components.MainLayout, within Index): Exception assembling embedded c