How to prevent default css in some pages
Hi, can I prevent rendering of default css on some pages? I have a page which launches appropriate gwt application via expression in template. It really does not need to load default.css... Damir
Re: T5 - spring integration
Hi, I have actually found a solution in Spring docs. You need to put spring RequestContextFilter before t5 filter, like this: requestContextFilter org.springframework.web.filter.RequestContextFilter requestContextFilter /* It is working now, so no JIRA issue needed. From: Howard Lewis Ship To: Tapestry users Sent: Wednesday, 4 February, 2009 22:44:30 Subject: Re: T5 - spring integration Scope 'session' is not active for the current thread looks like a Spring exception; seems like its wanting some per-thread setup. That's easy enough to do, I just haven't used Spring @Scope before and I didn't know about it. If you could add a JIRA Issue, with pointers to the appropriate Spring documentation, I can take care of that. On Wed, Feb 4, 2009 at 1:37 PM, Damir Bijuklic wrote: > Hi, > > i would like to share some state objects between tapestry pages and spring > controllers (mainly login data). > My naive first approach is to create session scoped object in spring and > access it from both sides, unfortunately it is to naive... > > In spring i use @Component and @Scope("session") annotations on state object. > In tapestry i use @Inject and @Service("sharedData") annotations. > > When I try accesing object from tapestry side i get > > ComponentEventException Error creating bean with name > 'scopedTarget.sharedData': Scope 'session' is not active for the current > thread; > > > What is recommended practice for sharing such data, if that is possible. I > would like to avoid using external storage like database for various reasons > including simplicity and performance. > > I have read somewhere that T5.1 supports injecting tapestry objects into > spring beans. Should I try that? > I don't mind if it is still work in progress so the exact api might change a > bit until it is final. > > > PS > This is the first project I'm using T5 and as expected it is so much more fun > than T4. > I really love live class reloading, almost like coding in a scripting > language but with access to all those refactorings. > Thank you Howard! > > > Damir > > > -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
T5 - spring integration
Hi, i would like to share some state objects between tapestry pages and spring controllers (mainly login data). My naive first approach is to create session scoped object in spring and access it from both sides, unfortunately it is to naive... In spring i use @Component and @Scope("session") annotations on state object. In tapestry i use @Inject and @Service("sharedData") annotations. When I try accesing object from tapestry side i get ComponentEventException Error creating bean with name 'scopedTarget.sharedData': Scope 'session' is not active for the current thread; What is recommended practice for sharing such data, if that is possible. I would like to avoid using external storage like database for various reasons including simplicity and performance. I have read somewhere that T5.1 supports injecting tapestry objects into spring beans. Should I try that? I don't mind if it is still work in progress so the exact api might change a bit until it is final. PS This is the first project I'm using T5 and as expected it is so much more fun than T4. I really love live class reloading, almost like coding in a scripting language but with access to all those refactorings. Thank you Howard! Damir
T4: getting hold of IUploadFile in custom service
Hi, I want my custom service to handle file uploads. How do I get hold of IUploadFile from inside IEngineService.service(...) method? ... I could perhaps get hold of upload data in a custom ApplicationServlet, and for specific url-s disable tapestry processing but it would be cleaner if i could just get hold of already parsed... Cheers, Damir __ Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com
creating named form components
Hi, I have another question for the tapestry crowd. Can i programaticaly generate names for my components? I generate some parts of my form from a domain model and generated components get assigend names by tapestry (like $TextField_n). I would like to be able to specify their names so i can easly reference these components from the containing page when needed, for example in custom validation or for hooking up events. Can BeanForm do this? Damir ___ Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
4.1.2 Exception page
Hi, Is overriding exception page supported in 4.1.2? If I override exceptionPageName in tapestry.InfrastructureOverrides it works ok for page requestes, but ajax responses get confused and return whole content of exception page. Damir ___ New Yahoo! Mail is the ultimate force in competitive emailing. Find out more at the Yahoo! Mail Championships. Plus: play games and win prizes. http://uk.rd.yahoo.com/evt=44106/*http://mail.yahoo.net/uk
Fw: problem with exception page and tapestry 4.1 snapshot
Hi If i use custom page to display exception message, when exception is triggered on the server client doesn't get properly updated. I have a contribution like this in my hivemodule.xml: If i comment it out and exception happens in form submit handler, the tapestry returns special ajax response that indicates an error has happened. Is i use my own exception page i get "normal" ajax response that has my exception page embedded in it. If this is still work in progress i would appreciate some tips on what i could do as a workaround... if not what could be wrong with my setup? Damir Send instant messages to your online friends http://uk.messenger.yahoo.com
tapestry validation
Hi, I have a couple of questions regarding tapestry validation, I'm using 4.1.2 with clientValidationEnabled=true: I have a problem with validation on my pages. It doesn't work unless i include a @Dialog component somewhere on the page? I'm trying to create a custom validator that will have client side support. Are there examples? I have tried to create my validator by copying PatternValidator and applying my own logic in validate() but the final class it doesn't exactly work. Client side is trying to validate it using a regex pattern i set, and when that passes the vale gets submitted to the form. Now the server side validation kicks in and prevents saving of form but the client side isn't automatically notified... There is another little quirk: when the validation fails it shows the validation dialog multiple times, each time resizing and moving dialog when i click ok. I have noticed the same problem with timetracker sample but in the timetracker case it goes away when i clear the browsers cache. Damir ___ The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html