Re: Several Advices on same service

2012-10-04 Thread kheldar666
Hi, I find out the root cause thanks to your idea Lance. Actually when you use the @Advise twice, matching the same Interface... then you MUST use the id parameter in the @Advice Annotation. If not Tapestry try to create Advice ids based on the Interface name... in that case you end up with 2 Adv

Re: Several Advices on same service

2012-10-04 Thread kheldar666
Actually in my case, the Order in which the Advices are not important. What I don't understand is why 1 Advice is simply ignored (apparently because the Advice creates a second ServiceMenu with the same id... ) That being said, I will look into the Advice declaration if there is anything wrong.

Re: Several Advices on same service

2012-10-03 Thread kheldar666
Yes I thought about that But anyway it should work but my approach... So i try to figure out what is going wrong as I actually hope to have Modules developped by 3rd Parties in the future... -- View this message in context: http://tapestry.1045711.n5.nabble.com/Several-Advices-on-same-serv

Several Advices on same service

2012-10-03 Thread kheldar666
Hi, I am facing an issue that I know is weird, but I can put my finger on the root cause of the issue. Basically I have an App developped around several Tapestry Modules. One of my Module defines a MenuService that list down all the nodes available in the different navigation in the site. Then I

[Sharing] How to setup a Global XSS Filter in Tapestry 5

2012-08-17 Thread kheldar666
Hi all, I post this as I had some headaches finding the proper solution and it seems that nobody posted a similar approach here First step in AppModule.java: public static void bind(ServiceBinder binder) { binder.bind(RequestFilter.class, XSSRequestFilterImpl.class).w

Re: XSS Filter and Erratic Behaviour of Tapestry 5.3.4

2012-08-17 Thread kheldar666
Hi Thiago ! Thanks for the hint ! That helped me a lot ^^ I will post the solution and the Filter as I see many times this question of XSS filter have been asked. Best regards, Martin -- View this message in context: http://tapestry.1045711.n5.nabble.com/XSS-Filter-and-Erratic-Behaviour-of-

XSS Filter and Erratic Behaviour of Tapestry 5.3.4

2012-08-16 Thread kheldar666
Hi all, I am currently trying to add a general XSS Filter in my application and I am facing some really weird behavior. Basically the Filter operate 1 time out of 5... Here is my approach : In AppModule.java public static void bind(ServiceBinder binder) { binder.bind(H

Re: [T5] Instantiate "Interfaces"

2008-06-27 Thread Kheldar666
Yes, I know how to instantiate an Object in a onSetupRender phase for instance. But in the case of the BeanEditForm, the problem occurs when submitting. Maybe the BeanEditForm, on Submit, tries to create a new User before copying all datas from the Form to the user's properties ? So I think I do

[T5] Instantiate "Interfaces"

2008-06-27 Thread Kheldar666
Hello, When i use Tapestry, almost my Bean are Interfaces (ex : UserImpl implements User ). That causes me a problem sometimes, specially when using BeanEditForm (ex : with @Parameter private User _user ). When I submit the form after editing a User, I have this error : Exception instantiating

[T5] EventLink generate FileNotFound Warnings

2008-06-24 Thread Kheldar666
Hello Everybody, I recently change some of my ActionLinks with EventLinks. Since that moment I have that kind of errors : - For this URL : http://127.0.0.1:8080/theorcs-main/index.layoutrenderer.portal.editmodelink:switchEditMode I have this Warning : 18:30:09,726 WARN Credential:

Re: T5 Services with diferent Implementation

2008-05-20 Thread Kheldar666
@InjectService("MyService1") maxthesecond wrote: > > > > I have an Interface with 2 different implementations > > lets say IMyInterface MyImplementation1 Myimplementation2 > > > until now I only needed to use one of the implementations at once, so in > my client code I just wrote @Inje

[T5] Refresh Application context / IoC Registry

2008-03-09 Thread Kheldar666
Hello everybody, I am using the tapestry-spring package and I was wondering if there is a way the refresh to WebApplicationContext ? I looked at the sources but it seems that the implementation of WebApplicationContext does not extends AbstractApplicationContext [1]. May be there is a way to res

Re: t5: home page

2008-03-07 Thread Kheldar666
See : http://tapestry.apache.org/tapestry5/tapestry-core/guide/conf.html Parameter : tapestry.start-page-name Regards, Angelo Chen wrote: > > hi, > > t5 loads start page when it is called: > > http://localhost:8080/myapp > > I'd like it to load home.tmp instead, any way to set it? renamin

[T5] Component report

2008-03-06 Thread Kheldar666
Hello everybody ! I'm working on a project that -for practical reasons- have in the same Maven project several sources folders each one containing a particular SubModule declared in the main Tapestry App. For the moment there are no Maven modules. I was wondering if there is a way to generate Co

Re: [T5] Index pages bug ?

2008-03-03 Thread Kheldar666
Done https://issues.apache.org/jira/browse/TAPESTRY-2226 -- View this message in context: http://www.nabble.com/-T5--Index-pages-bug---tp15806148p15810780.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

[T5] Index pages bug ?

2008-03-03 Thread Kheldar666
Hello everybody, I have a problem with the new index pages. The system that shortens the url, shorten too much I think... Exemple in the Index.tml page a the Root of my Tapestry package : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; > test The generated URL will be http://ho

RE: [T5] ASO, BeanEditor and Interfaces

2008-02-03 Thread Kheldar666
stry.apache.org/tapestry5/tapestry-core/guide/appstate.html > > Also, you can make sure your UserImpl constructor instantiates an empty > Address object. > > Jonathan > > >> -Original Message- >> From: Kheldar666 [mailto:[EMAIL PROTECTED] >> Sent: S

Re: [T5] ASO, BeanEditor and Interfaces

2008-02-03 Thread Kheldar666
nd IOC serices. > > in your case i think it makes more sense to let instantiate the enties > by a factory class > please read http://www.hibernate.org/328.html > > 2008/2/3, Kheldar666 <[EMAIL PROTECTED]>: >> >> Well by adding this to my module : >>

Re: [T5] ASO, BeanEditor and Interfaces

2008-02-03 Thread Kheldar666
Sven Homburg wrote: > > this should help you > http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate > > 2008/2/3, Kheldar666 <[EMAIL PROTECTED]>: >> >> Hi Everybody, >> >> I was wondering if ASO and BeanEditor can work with Interfaces ? At

[T5] ASO, BeanEditor and Interfaces

2008-02-03 Thread Kheldar666
Hi Everybody, I was wondering if ASO and BeanEditor can work with Interfaces ? At the first sight it seems not possible. Let's say I have this Interface and Classes : public interface User { public int getId(); public void setId(int id); public String getName();

How to use LinkImpl in T5.0.9 ?

2008-01-30 Thread Kheldar666
Hello everybody ! Can anybody post an exemple of how to use the 'new' LinkImpl in T5.0.9 ? Do we still have to use the Internal component ? Is there now a more elegant and recommanded way to create a Link to an external URL -the use of an Internal componant is not safe at all- ? Thanks for the a

Re: [Tapestry 5] Template question

2008-01-28 Thread Kheldar666
Yes, but Howard allready answered that it is not a good idea for the moment. Fernando Padilla wrote: > > Do you mean like skins or themes support? > ( of which locale is just one dimensions for skins ) > > Kheldar666 wrote: >> Hi again, >> >> We tried your

Re: [Tapestry 5] Template question

2008-01-28 Thread Kheldar666
Hi again, We tried your method in our Tapestry demos. It works fine, but it is not very convinient for the moment. We were wondering if there is a way to implement the same mecanism that is used by the "Localized Component Templates". In fact this mecanism would perfectly feet our needs. If it i

Re: [T5] Service Module declaration

2007-09-06 Thread Kheldar666
Yes that's what I thought, but it is not very convinient... Francois Armand wrote: > > Thiago H de Paula Figueiredo wrote: >> On Thu, 06 Sep 2007 10:03:04 -0300, Francois Armand >> <[EMAIL PROTECTED]> wrote: >> >>> I saw that in a (old) thread : >>> http://mail-archives.apache.org/mod_mbox/t

[T5] Service Module declaration

2007-09-06 Thread Kheldar666
Hi everybody, I'm devellopping a Tapestry application that will use several packages (because I use a JPF plugin architecture). So in Eclipse, I have several source folder. One for each plug in I developp. My problem is that I don't find a way to tell Tapestry IoC that there is a Module in pack

Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Kheldar666
I do this : > In AppModule.java : > > public void > contributeApplicationInitializer(OrderedConfiguration > configuration) { > configuration.add("mainModuleInitializer", new > MainModuleInitializer()); > } > > With MainModuleInitializer implementing Application

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
r :) Cheers, Martin Robin Ericsson-3 wrote: > > On 8/16/07, Kheldar666 <[EMAIL PROTECTED]> wrote: >> >> I may have two questions : >> >> - First is it normal that you choose not to use the >> SecurityContextHolderAwareRequestFilter ? I used this : >

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
Well... I made this, and now I can Login / Logout and use isUserInRole() and getUserPrincipal() methods > public static void contributeHttpServletRequestHandler( > OrderedConfiguration configuration, > WebApplicationContext webApplicationContext, > @Injec

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
I may have two questions : - First is it normal that you choose not to use the SecurityContextHolderAwareRequestFilter ? I used this : > public static void contributeHttpServletRequestHandler( > OrderedConfiguration configuration, > WebApplicationContext webApplicat

Re: [Announce] Acegi Security library for Tapestry 5

2007-08-16 Thread Kheldar666
Alleluia -- View this message in context: http://www.nabble.com/-Announce--Acegi-Security-library-for-Tapestry-5-tf4279236.html#a12180260 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe

[T5] Skin feature

2007-08-15 Thread Kheldar666
Hi everybody, I know that the 'multiple skin/layout' discution is something frequently discussed here, an most of the time the answer is "Use CSS my son". Well that's indeed probably the best answer, but in some case it's not. For instance, I'm building a site where people that uses the site can