Re: [bean-edit-form] error with constructor and enum param

2009-04-07 Thread Thiago H. de Paula Figueiredo
Em Thu, 02 Apr 2009 13:49:59 -0300, nillehammer escreveu: In this case, you don't want that behavior. You surely want BeanEditForm to instantiate via the public no-arguments constructor. Another option is to use the prepare event to instantiate the object yourself. -- Thiago H. de Paula

Re: [bean-edit-form] error with constructor and enum param

2009-04-07 Thread manuel aldana
no problem, i like the past :) why can't it cope with the enum parameter constructor? it works fine with the String parameter type. itself tapestry should know how to build an enum instance (for displaying the combo-box it does correctly). Or is there a finite list which "parameter-types" can

Re: [bean-edit-form] error with constructor and enum param

2009-04-07 Thread nillehammer
Sorry to have messed up the thread. My local clock was wrong nillehammer schrieb: > When the BeanEditForm instantiates a new Model instance, it now uses the > same code that instantiates service implementations (and injects > dependencies). By default, Tapestry will find the constructor with the >

Re: [bean-edit-form] error with constructor and enum param

2009-04-07 Thread nillehammer
When the BeanEditForm instantiates a new Model instance, it now uses the same code that instantiates service implementations (and injects dependencies). By default, Tapestry will find the constructor with the most parameters for this purpose, and will attempt to match each parameter to a service. T

[bean-edit-form] error with constructor and enum param

2009-04-07 Thread manuel aldana
I am using BeanEditForm. I get an exception if I have model-class with a constructor with an enumeration parameter. //WORKS public class Model{ public Model(){..} } //WORKS public class Model{ public Model(String s){..} } //CRASHES with error message: No service implements the interface pub

Re: T5 jsession id in url crashing tap URLEncoder

2009-04-07 Thread raulmt
Yes, and it generally does... if you make a request like http://localhost:8080/mypage;jsessionid and in mypage you print out request.getPath(), it returns only "mypage" BUT, if you do the same request like http://localhost:8080/mypage%3Bjsessionid the ";" equivalent of "%3B" arrives to Tap

Re: T5 jsession id in url crashing tap URLEncoder

2009-04-07 Thread Howard Lewis Ship
Very odd; the servlet container is supposed to strip off the ;jessionid before making the path visible to the application (via HttpServletRequest.getPath() ). On Tue, Apr 7, 2009 at 10:05 AM, raulmt wrote: > > I have the same issue with google... the links on google have the jsessionid > with ";

T 5.1 How to inject Spring beans by name?

2009-04-07 Thread Otho
Since Spring beans are not exposed anymore as services I get exceptions like Error obtaining injected value for field org.example.user.Login.dao: Spring context contains 2 beans assignable to type org.example.dao.Dao: dao, daoImpl. I couldn't find anything in the docs about injecting by name. An

Re: T5 jsession id in url crashing tap URLEncoder

2009-04-07 Thread raulmt
I have the same issue with google... the links on google have the jsessionid with ";" converted to hexa and the application crashs anyone has a solution to this? Regards. I am seeing bot requests to our site which have the session id encoded in the request url because they are not using c

Re: T5 Apache Proxy + SSL

2009-04-07 Thread Carl Crowder
Ok, I found that by decorating the RequestSecurityManager service and overriding getBaseURL(Page page) I was able to fix this. However as RequestSecurityManager is part of the "internal" package I doubt this is the best solution. I'll use it for now as it works but please let me know if there i

T5 Apache Proxy + SSL

2009-04-07 Thread Carl Crowder
Hi all, I'm running Apache as a proxy for my app. The app runs on port 9080, plain HTTP, while Apache presents it to the outside world as "https://:9443". All my redirects are broken :( I end up at "http://:9443". I am using ProxyPassHost. I'm also doing: public void contributeAlias( Con

Re: Tapestry 5.1.0.2 and tapestry-spring-security 2.0.1

2009-04-07 Thread Paul Field
FYI, the problem with the @Secured annotation is related to the performance improvements ( https://issues.apache.org/jira/browse/TAP5-417 ). The ComponentClassTransformWorker now needs to explicitly specify which render phases it requires. tapestry-acegi and tapestry-spring-security don't do th

Re: Inherited properties

2009-04-07 Thread Howard Lewis Ship
Saying something "doesn't work" is rarely enough information; "doesn't work" can be anything from a strack trace, to a blank screen, to invalid data showing up, to other things I can't even name. On Tue, Apr 7, 2009 at 7:12 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, Apr 7, 2009 at 10:40 A

Re: Inherited properties

2009-04-07 Thread Thiago H. de Paula Figueiredo
On Tue, Apr 7, 2009 at 10:40 AM, Peter Stavrinides wrote: > Yes, something stupid in the end! it was there all along hidden by my CSS, > sorry for wasting your time Thiago. :) -- Thiago - To unsubscribe, e-mail: users-unsubsc

Re: Inherited properties

2009-04-07 Thread Peter Stavrinides
Yes, something stupid in the end! it was there all along hidden by my CSS, sorry for wasting your time Thiago. cheers, Peter - Original Message - From: "Peter Stavrinides" To: "Tapestry users" Sent: Tuesday, 7 April, 2009 16:28:15 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subjec

Re: Inherited properties

2009-04-07 Thread Peter Stavrinides
> That's really strange. Tapestry CRUD has some classes that are meant > to be subclassed, have a generic field and it works. You are probably right, then it can't possible be the case... let me check it some more and I will let you know. - Original Message - From: "Thiago H. de Paula Fi

Re: Inherited properties

2009-04-07 Thread Thiago H. de Paula Figueiredo
On Tue, Apr 7, 2009 at 9:17 AM, Peter Stavrinides wrote: > Oh and @Persist proper doesn't make a difference either. That's really strange. Tapestry CRUD has some classes that are meant to be subclassed, have a generic field and it works. Something like: abstract class BaseEditPage { private

Re: Tapestry 5.1 on top of GORM Hibernate Session bound to thread

2009-04-07 Thread ice96
Thank you. This works like a charm. Saddly but the Gorm events not work for me too. Now I'm thinking about the Tapestry Grid and the BeanEditForm form improvements. I want automaticly bind belongsTo anotation for multiple choice (select) in BeanEditForm. -- View this message in context: http

Re: Inherited properties

2009-04-07 Thread Peter Stavrinides
Oh and @Persist proper doesn't make a difference either. Peter -- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important

Re: Inherited properties

2009-04-07 Thread Peter Stavrinides
this is what I am doing... nothing weird: /** The String message to display in a page*/ @Persist(PersistenceConstants.FLASH) private String _displayMessage; /** * @return the displayMessage */ public String getDisplayMessage() { return _di

Re: T5.1 URL Rewriting

2009-04-07 Thread Thiago H. de Paula Figueiredo
On Tue, Apr 7, 2009 at 6:27 AM, Blower, Andy wrote: > I just want to post an update to this. When I started to do this work I > realised that I was not going to duplicate much processing from > ComponentEventLinkEncoderImpl if I used method advice - so that's what I've > done. This is much nicer

Re: Inherited properties

2009-04-07 Thread Thiago H. de Paula Figueiredo
On Tue, Apr 7, 2009 at 7:24 AM, Peter Stavrinides wrote: > Well thats what I thought, but thats not working for me... not sure if I am > doing something stupid or what. Is that property public? Is it annotated with @Property? Or has it a getter and a setter? -- Thiago

Re: Inherited properties

2009-04-07 Thread Peter Stavrinides
Well thats what I thought, but thats not working for me... not sure if I am doing something stupid or what. - Original Message - From: "DH" To: "Tapestry users" Sent: Tuesday, 7 April, 2009 12:53:45 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: Inherited properties It i

RE: Index page URL generation

2009-04-07 Thread Blower, Andy
Thanks guys, I missed this bug because I generally look at open issues and this was fixed pretty swiftly. > -Original Message- > From: Ulrich Stärk [mailto:u...@spielviel.de] > Sent: 07 April 2009 10:55 > To: Tapestry users > Subject: Re: Index page URL generation > > I think this has be

Re: Inherited properties

2009-04-07 Thread DH
It is possible, just think displayMessage is a property of B like in java world, and can use ${displayMessage} and others to reference it. Thanks, DH - Original Message - From: "Peter Stavrinides" To: "Tapestry Mailing List" Sent: Tuesday, April 07, 2009 3:55 PM Subject: Inherited pr

Re: Index page URL generation

2009-04-07 Thread Ulrich Stärk
I think this has been fixed in 5.1.0.3 with https://issues.apache.org/jira/browse/TAP5-610 Uli Am 07.04.2009 11:33 schrieb Blower, Andy: I'm still working through the migration from 5.0.18 to 5.1.0.2 and the latest issue I've found is that in 5.0.18 a page link to an index page would be optim

Re: Index page URL generation

2009-04-07 Thread DH
I don't have this issue, 5.1.0.3-snapshot. Thanks, DH - Original Message - From: "Blower, Andy" To: "'Tapestry users'" Sent: Tuesday, April 07, 2009 5:33 PM Subject: Index page URL generation I'm still working through the migration from 5.0.18 to 5.1.0.2 and the latest issue I've f

Index page URL generation

2009-04-07 Thread Blower, Andy
I'm still working through the migration from 5.0.18 to 5.1.0.2 and the latest issue I've found is that in 5.0.18 a page link to an index page would be optimized to "/" whereas with 5.1 this is not happening. So my site's homepage is http://whatever/ and this works, but any link generated to the

RE: T5.1 URL Rewriting

2009-04-07 Thread Blower, Andy
I just want to post an update to this. When I started to do this work I realised that I was not going to duplicate much processing from ComponentEventLinkEncoderImpl if I used method advice - so that's what I've done. This is much nicer way of doing things and came at a much lower efficiency hi

Inherited properties

2009-04-07 Thread Peter Stavrinides
Hi, If PageClass B extends BaseClass A, and BaseClass A contains a property displayMessage, how do I reference the displayMessage property from PageClass B's .tml file? I would prefer to do this directly in the tml if possible. Thanks, Peter --