Re: Unable to locate asset (the file does not exist).

2013-06-10 Thread Anbazhagan.G
@boris, I got it. Thanks for your reply. On Monday 10 June 2013 10:48 PM, Boris Horvat wrote: My bad in coping your example to you ${context:layout/images/}${itemProperty.signImage} You have ** in front of itemProperty remove them ${context:layout/images/}${itemProperty.signImage} Also

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread mailingl...@j-b-s.de
And I forgot: Try to make the enum static and/or set a serialuid in your page class, maybe this helps too... Sent from my iPhone On 11.06.2013, at 08:23, "mailingl...@j-b-s.de" wrote: > Hi Ilya > > I make a shot into the dark: you are using persist therefore an instance of > your enum is sto

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread mailingl...@j-b-s.de
Hi Ilya I make a shot into the dark: you are using persist therefore an instance of your enum is stored in the session. When you recompile a new class is loaded and the two enums belong to different classes/classloaders now, thus you get a CCE. If you move it out of your page it should work. J

Re: Embedding content from separate modules (a.k.a plugins)

2013-06-10 Thread Ilya Obshadko
I actually encounter the same problem: x.y.z.Login$EnumType cannot be cast to x.y.z.Login$EnumType EnumType is a simple enum embedded in a page class: @Property @Persist private EnumType something; enum EnumType { ONE, TWO }; What is this? Happens every time container reloads modifi

RE: PageURL Rewriting, pulling name instead of id

2013-06-10 Thread Nomen Nomanum
#Thiago Yes, that would work in the case where I want something like localhost:8080/FullArticle/NameOfArticle but what if I wanted localhost:8080/NameOfArticle ? How to achieve this behavior? #Jens I completely agree with you. But what if I build wrapper around my listing of the articles, an

Re: PageURL Rewriting, pulling name instead of id

2013-06-10 Thread mailingl...@j-b-s.de
Be carefull with article names...make sure a name is unique in all supported languages similar to the PK-ID you are using right now. From experience a name is usually not sufficient to guarantee this, thus attributes like color or size are required as well in your final name or as part of your A

Re: PageURL Rewriting, pulling name instead of id

2013-06-10 Thread Thiago H de Paula Figueiredo
Just use the name of the article as the page activation context instead. No URL rewriting needed. On Mon, 10 Jun 2013 17:59:42 -0300, Nomen Nomanum wrote: Hi. I have an issue with the following: Lets say I click on my article, and it directs me to that specific page localhost:8080/Full

PageURL Rewriting, pulling name instead of id

2013-06-10 Thread Nomen Nomanum
Hi. I have an issue with the following: Lets say I click on my article, and it directs me to that specific page localhost:8080/FullArticle/3 where 3 denotes id of article, however I don't want, what I want is to be something like localhost:8080/FullArticle/NameOfArticle or even better local

Re: Unable to locate asset (the file does not exist).

2013-06-10 Thread Boris Horvat
My bad in coping your example to you ${context:layout/images/}${itemProperty.signImage} You have ** in front of itemProperty remove them ${context:layout/images/}${itemProperty.signImage} Also make sure that singImage has an image type save in db as well. Cheers On Mon, Jun 10, 2013 at 1

Form with Upload loses context on FileUploadException

2013-06-10 Thread Christian Köberl
I encountered a Problem with the "Upload" component since switching to Tapestry 5.3 - the page activation context is lost, when the file size exceeds UploadSymbols.FILESIZE_MAX. The setup is quite simple - a page with a @PageActivationContext property and a form with an Upload component in it. T

Re: how to trap shutdown?

2013-06-10 Thread Thiago H de Paula Figueiredo
Hi! Contribute a RegistryShutdownListener to the RegistryShutdownHub service configuration. On Mon, 10 Jun 2013 10:15:21 -0300, John wrote: I have some DAO methods invoked by the Java shutdown hook after the registry is shut down. Is there a way to do these methods earlier and also to k

how to trap shutdown?

2013-06-10 Thread John
I have some DAO methods invoked by the Java shutdown hook after the registry is shut down. Is there a way to do these methods earlier and also to know when the registry is shutdown so the calls can bypass? java.lang.RuntimeException: Exception constructing service 'AuditDAO': Proxy for service

Re: bad image links after redirect

2013-06-10 Thread Thiago H de Paula Figueiredo
On Mon, 10 Jun 2013 08:51:52 -0300, John wrote: I have a page protection filter that redirects unpermitted page requests to the Denied page, however the redirected url looks like this: http://0.0.0.37:8080/audit/denied/ManageUsers where the original page requested is added to the end of the

Re: Tapestry JPA

2013-06-10 Thread John
Thanks, that's good news - do you know any example I can base my work on? John - Original Message - From: Dimitris Zenios To: Tapestry users Sent: Sunday, June 09, 2013 8:10 AM Subject: Re: Tapestry JPA You car write your own advisor on top of commit after and if commit af

bad image links after redirect

2013-06-10 Thread John
I have a page protection filter that redirects unpermitted page requests to the Denied page, however the redirected url looks like this: http://0.0.0.37:8080/audit/denied/ManageUsers where the original page requested is added to the end of the url. For some reason this damages the page render b

Re: Unable to locate asset (the file does not exist).

2013-06-10 Thread Anbazhagan.G
@boris, I tried but I got the following error. Could not convert '**itemProperty.signImage' into a component parameter binding: Error parsing property expression '**itemProperty.signImage': Unable to parse input at character position 1. Regards, G.Anbazhagan On Saturday 08 June 2013 04:18 PM