Re: Re: T5 Page field persistance and multithread problems

2009-07-13 Thread nille hammer
Hi, This is NOT a thread issue, but behavoiour that one would expect with values persisted in the session. The requests coming all from within the same session store and fetch the (same) value in the sesion. Add this to the java file @PageAttached private void showPageInstance() { System.out

Re: Problems deploying tapestry App in Tomcat 5.x/6.x

2009-07-13 Thread Artem Grigorev
Maybe you have dublicate javassist jar in your classpath.

Re: T5 SSOs and Hibernate

2009-07-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Jul 2009 20:04:12 -0300, Norman Franke escreveu: I have a Session State Object that will hold some cached values from a database. I was hoping I could just inject Hibernate's Session into the SSO and use that, but it doesn't appear to work. An SSO is not a service, mixin nor comp

Re: [T5] 5.1 Startup problem with TapestrySpringFilter

2009-07-13 Thread sige
Hi do you mean you changed the filter class: org.apache.tapestry5.spring.TapestrySpringFilter to org.apache.tapestry5.TapestryFilter and solved the problem? I have the same problem when shifting from T5.0 to T5.1, I have some Spring beans needed in my classes which I have injected

Re: Mixin Order

2009-07-13 Thread Robert Zeigler
Hi Geof, the only ordering tapestry does is to ensure that mixins with "@MixinAfter" are applied correctly. Otherwise, I the order is basically a crapshoot. I had always assumed that mixins would be applied in the order specified, but from a recent perusal of mixin-related code, I've found t

Re: T5 Page field persistance and multithread problems

2009-07-13 Thread Robert Zeigler
Well, it /is/ the case that page fields and pages are thread-safe. But persistent fields are accessing their data from the session, and session-bound data is only thread-safe if you explicitly make it so. You're right, though: the documentation should probably be more clear in that regard, as

T5 SSOs and Hibernate

2009-07-13 Thread Norman Franke
I have a Session State Object that will hold some cached values from a database. I was hoping I could just inject Hibernate's Session into the SSO and use that, but it doesn't appear to work. I realize that SSOs are per-session and the Session is per thread. However, it seems the IoC should

Re: Dojo

2009-07-13 Thread Andreas Andreou
but you're right - i can't seem to find anywhere on the website where this is mentioned! On Tue, Jul 14, 2009 at 1:35 AM, Andreas Andreou wrote: > it's dojo 0.4.3 > > On Tue, Jul 14, 2009 at 1:20 AM, Tony Giaccone wrote: >> I'm trying to implement a sortable table using dojo in tapestry. I want th

Re: Dojo

2009-07-13 Thread Andreas Andreou
it's dojo 0.4.3 On Tue, Jul 14, 2009 at 1:20 AM, Tony Giaccone wrote: > I'm trying to implement a sortable table using dojo in tapestry. I want the > browser to do all the sorting of data for me so that I can avoid the round > trip to the server. > > Maybe I'm brain dead, but I can't seem to find

Dojo

2009-07-13 Thread Tony Giaccone
I'm trying to implement a sortable table using dojo in tapestry. I want the browser to do all the sorting of data for me so that I can avoid the round trip to the server. Maybe I'm brain dead, but I can't seem to find which version of dojo is part of the 4.1.6 release of Tapestry, can someone eith

Mixin Order

2009-07-13 Thread Geoffrey Wiseman
Is there a way to control the order of mixins? I've declared them in a particular order, and it looks like Tapestry's applying them in reverse order -- I could reverse the order of declaration, but I was just wondering whether or not there's any guarantees here, or if I'm essentially relying on so

Re: T5 IOC Questions

2009-07-13 Thread Norman Franke
Alas, I just gave up. I wrote my own getClassesFromPackage() instead of using ClassNameLocator and went with that. Seems to work. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 13, 2009, at 3:42 PM, Norman Franke wrote: On Jul 10, 2009, at 6:55 PM, Howard Lewis Sh

Re: authorization for components

2009-07-13 Thread Sergey Didenko
Thanks for the tips. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

T5 Page field persistance and multithread problems

2009-07-13 Thread kristjankelt
Hi, After a little thinking about Tapestry persistence, I constructed a sample that shows how Tapestry page field persistence handling is not thread safe. This is a page class and it's template: http://www.nabble.com/file/p24468298/NotSafe.java NotSafe.java http://www.nabble.com/file/p244682

Re: T5 IOC Questions

2009-07-13 Thread Norman Franke
On Jul 10, 2009, at 6:55 PM, Howard Lewis Ship wrote: On Fri, Jul 10, 2009 at 3:27 PM, Norman Franke wrote: First, I have a ton of DAOs that I need to bind the interface to the implementation. I'd like to do this automatically, so I don't have to keep modifying my AppModule for each DAO I cr

Re: T5 IOC Questions

2009-07-13 Thread Norman Franke
Not sure what I was doing wrong, but this works when added to my AppModule: public static void bind(ServiceBinder binder) { binder.bind(ActionRenderResponseGenerator.class, MyActionRenderResponseGenerator .class).withId("MyActionRenderResponseGenerator"); } public

Re: [Tapestry Central] Public Tapestry Training in London: Aug 10 - 12

2009-07-13 Thread Howard Lewis Ship
It's going to be a busy three days! On Mon, Jul 13, 2009 at 1:50 AM, Newham, Cameron wrote: > I'm looking forward to this. > > > -Original Message- > From: Howard [mailto:hls...@gmail.com] > Sent: 30 June 2009 18:39 > To: users@tapestry.apache.org > Subject: [Tapestry Central] Public Tapes

Re: 'dojo' is undefined IE7 tapestry 4.1.6

2009-07-13 Thread Andreas Andreou
The only way i can think of for the following code to fail (even in IE7) is if dojo.js arrives in the browser corrupted dojo.registerModulePath("tapestry", "path"); so perhaps you can check if that is the case... Anyway, the ajaxDelegate parameter of Shell can allow you to change what gets ou

authentication: remember me feature

2009-07-13 Thread Sergey Didenko
Is it true that the only ways to have "remember me" feature for authentication are 1) to use spring security 2) to implement it manually (and call it in Dispatcher or RequestFilter) As I understand chenillekit-access does not support it, right? Regards, Sergey --

Re: [T5.1] Coercion/Class mismatch error (a real headbanger)

2009-07-13 Thread xfile80303
Thanks Howard. Howard Lewis Ship wrote: > > Any top-level class under components is considered to be a component > and will be loaded in a special class loader. This causes a problem > when an instance is created by the normal class loader and passed into > a comopnent, which has a distinct Cla

Re: [T5.1] Coercion/Class mismatch error (a real headbanger)

2009-07-13 Thread xfile80303
Hi Juan, Yes, Thiago's post helped. I moved the non-component classes to a different package and all is well. Thanks, Levi Juan E. Maya wrote: > > Levi, did u try to do what Thiago suggested? > The class Tab is not a component therefore it shouldn't be inside the > component packet. > > On

'dojo' is undefined IE7 tapestry 4.1.6

2009-07-13 Thread szymonu
Hi! I use Shell component. Component includes dojo.js into each of my pages. Just after declaring dojo.js library component tries to use dojo javasript object. ie. dojo.registerModulePath("tapestry", "path"); Problem occures becouse when browser will generate page slowly (usually IE and

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-13 Thread Peter Stavrinides
Hi Christian, This is my effective pom: http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 com.albourne.web castle pom /home/Tapestry

TextField component and body background attachement

2009-07-13 Thread shymon
Hi, I have noticed that whenever I put TextField component on my page eg. like this: element in generated page source in MSIE gets additional style attribute: style="background-attachment: fixed;" This occurs _only_ in MSIE. Is it a bug or feature? (T5.1.0.5) -- View this message i

Re: t5: layout pattern and search engine indexing

2009-07-13 Thread Thiago H. de Paula Figueiredo
Em Mon, 13 Jul 2009 00:56:57 -0300, Angelo Chen escreveu: Hi Thiago, Hi! How to avoid event links? when you have a actionLink in the tml you will get that kind of links in the page, right? I'm sorry, I was not clear in the first message: I tried to tell you to not use ActionLink or E

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-13 Thread Christian Gruber
The xml provided looks a lot like the default metadata that occurs if you don't configure anything. Resources are copied from /src/main/ resources into the resulting jar/war/ear and are filtered.Can you post your pom.xml file (and any parent poms) in case you're overriding some subtle

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-13 Thread Peter Stavrinides
I potentially found something, Maven seems to be the advocated this solution below, though I can't seem to get it working still? any help with this would be appreciated: ... src/main/resources true **/*.xml

Re: authorization for components

2009-07-13 Thread Ulrich Stärk
Implement a ComponentRequestFilter. It allows you to handle component event requests and page render requests inside the same filter. Uli On 13.07.2009 11:00 schrieb Sergey Didenko: Hi, How do you implement authorization for components? I mean when the component is not authorized for the curr

Re: Testify + Testng

2009-07-13 Thread Christian Gruber
It might make sense to have a "hit" annotation for Testify that follows @Inject which allows the injection to be beforeMethod or beforeClass. Unfortunately, we can't re-use the jUnit ones because (if I recall correctly) they are not suitable for Field annotation, just method. But somethin

Re: authorization for components

2009-07-13 Thread Massimo Lusetti
On Mon, Jul 13, 2009 at 11:00 AM, Sergey Didenko wrote: > Hi, > > How do you implement authorization for components? I mean when the > component is not authorized for the current user it outputs nothing. > > I made a small mixin for this, but may be there is a solution with > Annotations? Chenil

Tapestry, Maven and Log4j using an XML properties file

2009-07-13 Thread P . Stavrinides
Hi, I am not sure if this is if fact a Maven issue more than it is a Tapestry one... apologies if it is, but basically I have some new logging requirements that will use the range and match filters that are only available using an XML configuration file for log4j, so I tried to switch over from

authorization for components

2009-07-13 Thread Sergey Didenko
Hi, How do you implement authorization for components? I mean when the component is not authorized for the current user it outputs nothing. I made a small mixin for this, but may be there is a solution with Annotations? Regards, Sergey. --

Re: Testify + Testng

2009-07-13 Thread Paul Field
Hi Juan, > I have been playing with Testng and the Testify library but i am > having a small issue. It seems that the injection of services occurs > after the @BeforeSuite. That's true - Testify was processing @Inject annotations before every test method, mainly because that's the natural way fo

RE: [Tapestry Central] Public Tapestry Training in London: Aug 10 - 12

2009-07-13 Thread Newham, Cameron
I'm looking forward to this. -Original Message- From: Howard [mailto:hls...@gmail.com] Sent: 30 June 2009 18:39 To: users@tapestry.apache.org Subject: [Tapestry Central] Public Tapestry Training in London: Aug 10 - 12 Formos is partnering with London-based SkillsMatter to provide open e