[T5] Re-inject or inherit services in children ?

2007-12-06 Thread Francois Armand
Hello ! My project is a little more advanced, so I spent some time refactoring the code. Along this refactoring, I saw that I have a lot if component and class that inherit a base page (yes, that's why I have a base page ;). I inject on this page some quite common services (for example, an aut

Re: About Slf4j Error

2007-12-06 Thread Francois Armand
Lococode wrote: Hi, Hello Lococode, [...] error: * java.lang.RuntimeException java.lang.ClassNotFoundException: caught an exception while obtaining a class file for org.example.myapp.pages.Start * java.lang.ClassNotFoundException caught an exception while obtaining a clas

Can't get component inside a component

2007-12-06 Thread Michael Courcy
Hi, I'm a newbie in tapestry I have a component Drapeau that embed 3 others components of type Couleur all the Couleur components in any phase of the Drapeau render process appear to be null in my debugger. Drapeau.html == http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> This i

Re: Can't get component inside a component

2007-12-06 Thread Thiago HP
Try replacing @Component(id="couleur1") Couleur couleur1; by @Component(id="couleur1") private Couleur couleur1; AFAIK, @Component and @Inject only works in private fields. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Can't get component inside a component

2007-12-06 Thread Michael Courcy
Thanks a lot. Thiago HP a écrit : Try replacing @Component(id="couleur1") Couleur couleur1; by @Component(id="couleur1") private Couleur couleur1; AFAIK, @Component and @Inject only works in private fields. Thiago - To unsub

Re: Can't get component inside a component

2007-12-06 Thread Kristian Marinkovic
Hi Michael, Thiago is right, first make the fields private... you should have some warnings in your console tough. then you have to decide how you want to add components: you can add components to a page by declaring them in the template like you did (then you dont need to declare them in your p

Re: About Slf4j Error

2007-12-06 Thread Lococode
No. But I found the error may be because when jetty start load SLF4J. and where run mvn jetty:run is ok! so I :( ... Francois Armand wrote: > > Lococode wrote: >> Hi, > Hello Lococode, > >> [...] >> >> error: >> >> * java.lang.RuntimeException >> java.lang.ClassNotFoundException:

Re: How to integrate tapestry and jbpm,or any other workflow framework?

2007-12-06 Thread Jonathan Glanz
Web services would work.a directory redsident object, etc Sent via BlackBerry by AT&T -Original Message- From: "Oliver Lee" <[EMAIL PROTECTED]> Date: Thu, 6 Dec 2007 21:35:34 To:"users" Subject: How to integrate tapestry and jbpm,or any other workflow framework? Can give me an ide

Re: [T5] Re-inject or inherit services in children ?

2007-12-06 Thread Howard Lewis Ship
I've found that, quite often, there's a little bit of processing around the injected service method invocation, so that's where the base page can really add some value: collect and pre-processing the values before invoking the method. For example, I was just working on PageLink and ActionLink and

Re: T5: Anyone using PageTester?

2007-12-06 Thread Emmanuel Sowah
Howard, I'm using PageTester as well so be warned and don't break things. I think this habit of yours of breaking things you think should be done differently is bad indeed. It is this habit that had endured sufferings and almost an impossible task for anyone trying to migrate from any pre T5 to T

Re: [T5] Re-inject or inherit services in children ?

2007-12-06 Thread Francois Armand
Howard Lewis Ship wrote: [..] I kind of think that if you can't find a true purpose for the base class beyond a convienient place for the common injections, then perhaps you are on the wrong track. Well, now that you explain me that, I think it's my problem. I almost only use the base page/com

Tapestry EventListener doesn't seem to submit form

2007-12-06 Thread caarney
Hi, I'm using Tapestry 4.1.3 (integrated in Appfuse 2.0.1) and the @EventListener functionality. The eventlistener method is called correctly, but I can't get any user-entered values from the form. As I understood from the documentation, the form should submit itself by default and send the values

T3: Type Block

2007-12-06 Thread James Sherwood
Hello, I am trying to make a portal page with DIVs and ajax to fill the html in them. The problem that I am running into is that currently it just puts out the portlets using the type Block then tapestry renders the blocks when the page loads and I cant figure out how to do this without relo

Re: T3: Type Block

2007-12-06 Thread James Sherwood
D] For additional commands, e-mail: [EMAIL PROTECTED] __ NOD32 2706 (20071206) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTE

t5: violates loader constraints-error when loading pages into ioc-injected class-instance

2007-12-06 Thread Britske
I created a class PageRegistry and defined it in Spring. I use @Inject to inject the singleton-instance of this class. (This worked before with other classes). in the constructor of PageRegistry I fill a map with page-instances. (So that i can access some methods of a page when I dont have acce

Re: Tapestry EventListener doesn't seem to submit form

2007-12-06 Thread Jesse Kuhnert
Using elements="elementId" only targets and listens to dom nodes. You only get the majority of automated functionality (like submitting forms) when you target a component via targets = "componentId" Change your example to be: @EventListener(events="onchange", targets = "recordName") pub

Tapestry 6

2007-12-06 Thread Emmanuel Sowah
-- Forwarded message -- From: Emmanuel Sowah <[EMAIL PROTECTED]> Date: Dec 6, 2007 4:53 PM Subject: Re: T5: Anyone using PageTester? To: Tapestry users Howard, I'm using PageTester as well so be warned and don't break things. I think this habit of yours of breaking things you t

Re: Tapestry 6

2007-12-06 Thread Thiago HP
On 12/6/07, Emmanuel Sowah <[EMAIL PROTECTED]> wrote: > > I think this habit of yours of breaking things you think should be done > differently is bad indeed. It is this habit that had endured sufferings > and > almost an impossible task for anyone trying to migrate from any pre T5 to > T5. Tapest

Re: Tapestry 6

2007-12-06 Thread Josh Canfield
-1 troll fud... too bad you can't vote down email list comments. On Dec 6, 2007 12:35 PM, Emmanuel Sowah <[EMAIL PROTECTED]> wrote: > -- Forwarded message -- > From: Emmanuel Sowah <[EMAIL PROTECTED]> > Date: Dec 6, 2007 4:53 PM > Subject: Re: T5: Anyone using PageTester? > To: Ta

Re: T 4.1 Strange Asset Context problem

2007-12-06 Thread Chris Chiappone
Anyone have any idea on this. It is utterly annoying to have to hard code the Context in the page spec. On Dec 5, 2007 10:13 AM, Chris Chiappone <[EMAIL PROTECTED]> wrote: > I have an assets defined in my page spec as follows: > > > > > The images seem to be using the correct context (/es

Re: T 4.1 Strange Asset Context problem

2007-12-06 Thread Andreas Andreou
Can't quite think of anything right now... but tacos-snapshot of 4.1 has an absoluteAsset binding prefix which makes sure the url that the asset produces will be an absolute one (assuming that you're looking for a quick workaround) On Dec 6, 2007 11:57 PM, Chris Chiappone <[EMAIL PROTECTED]> wrote

T3: PropertySelection

2007-12-06 Thread Nazmul Bhuiyan
Hello, I'm having issue with PropertySelection in a Form. I'm using one page to add and update. Data entry fields of the form gets changed according to the property selection during add. For example if infType=DOG selected then the form displays only dog specific fields and if infType=PAK then t

T5: Get me started with Tapestry-Test

2007-12-06 Thread Angelo Chen
Hi, Looking at test facilities in T5, I think Tapestry-Test is different from PageTester, right? could anybody give me a simple non Spring specific sample of using Tapestry-Test? Thanks. A.C. -- View this message in context: http://www.nabble.com/T5%3A-Get-me-started-with-Tapestry-Test-tf49589

[T5] Message Page Redirect

2007-12-06 Thread Jean-Philippe Steinmetz
Hi All, I'd like to build a component/page that handles a page redirection. An example situation is when a user may try and access page X but due to permissions levels may not be allowed access (or some other reason) so they are presented an intermediate page with some message like "You do not ha

T4.1.3 fails with javassist errors after running awhile

2007-12-06 Thread Phillip Rhodes
After running fine for a while (I can access it for a hour), my application stops functioning and starts failing with the exception below. It appears that javaassist is not able to find my abstract page classes that it has compiled. My versions: ognl-2.7.1.jar javassist-3.4.ga.jar tapestry

Re: [T5] Message Page Redirect

2007-12-06 Thread Josh Canfield
This sounds pretty close to a question that came up earlier this week. "page navigation (return to arbitrary page)" Here is how I do it: http://thread.gmane.org/gmane.comp.java.tapestry.user/56014/focus=56022 Josh On Dec 6, 2007 4:27 PM, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote: > Hi A

Re: Tapestry 6

2007-12-06 Thread Andy Huhn
I'm curious, Emmanuel...how much have you contributed to Tapestry? On Thu, 2007-12-06 at 21:35 +0100, Emmanuel Sowah wrote: > -- Forwarded message -- > From: Emmanuel Sowah <[EMAIL PROTECTED]> > Date: Dec 6, 2007 4:53 PM > Subject: Re: T5: Anyone using PageTester? > To: Tapestry us

Re: t5: violates loader constraints-error when loading pages into ioc-injected class-instance

2007-12-06 Thread Howard Lewis Ship
If you need a page instance, you need to go through the appropriate Tapestry services ... unfortunately, some of them are internal. Nonetheless, Tapestry enforces a specific lifecycle on Tapestry pages and components and if you attempt to instantiate them directly you will fail. If you have common

Re: T4: replacing script asset in AbstractSubmit

2007-12-06 Thread Andreas Andreou
Hi, so, SubmitBindings.script actually calls tapestry.form.submit and/or tapestry.form.refresh, tapestry.form.cancel so, why not just connect around those and do whetever you want? You can completely bypass them, or just have your code run before or after those... BTW, I remember someone doing so

Re: Tapestry 6

2007-12-06 Thread [EMAIL PROTECTED]
在 Fri, 07 Dec 2007 05:49:05 +0800,Thiago HP <[EMAIL PROTECTED]> 写道: On 12/6/07, Emmanuel Sowah <[EMAIL PROTECTED]> wrote: I think this habit of yours of breaking things you think should be done differently is bad indeed. It is this habit that had endured sufferings and almost an impossible tas

T5 How to write a layout component ?

2007-12-06 Thread Dapeng
Hi First time try T5 i followed the link http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> My Tapestry Application copy the codes into respective src/java/com/my/components/Lay

Re: [T4] Help converting InjectComponent annotation to page specification

2007-12-06 Thread Andreas Andreou
Hi, i'm not exactly sure how you're going to use that client id, but if you really want to get rid of annotations, why not just try: public String getRowClientId() { return getComponent("customersLoop").getClientId(); } On Dec 4, 2007 2:20 AM, cpnguyen <[EMAIL PROTECTED]> wro