Re: hook into T4's page creation process
thanks Ron. Currently am with going the way (subclassing a securedpage) as suggested by Dennis. Its simple and works. But am interested in the workers that you mention. Is looking at the source code the only option at this point to write some workers?. Are there any docs somewhere? Btw are workers part of 4.0.2 thanks, Karthik On 12/21/06, Ron Piterman [EMAIL PROTECTED] wrote: yes, there is a configurable annotation workers, so you can create/extend/override page methods when tapestry is preparing the page/component class. You can create your own class worker which will add the needed logic to the mentioned attach event. Take a look at the annotations module code and hivemind configuration. Cheers, Ron karthik G wrote: I just want to add an annotation on the page and then take some action when the page is being bound to a request from the page pool. @SecuredPage abstract class MyPage extends BasePage{ } Is there anyways i can hook into T4's page creation process and then depending upon the annotation take some action? For e.g in the above case, I just want to be able to check for a user object in the session and redirect to login page. I looked at PageAttachListener and it looks nice. But I dont want to implement that in my page but would like to attach a listener to T4 itself. thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: hivemind create-instance and additionnal parameters
1) contribution configuration-id=tapestry.state.ApplicationObjects state-object name=hangmanStateObject scope=session invoke-factory object=service:HangmanFactory / /state-object /contribution service-point id=HangmanFactory interface=org.apache.tapestry.engine.state.StateObjectFactory invoke-factory construct class=games.hangman.service.Hangman set-service property=servletContext service-id=service:tapestry.globals.ServletContext / /construct /invoke-factory /service-point 2) Create a class that implements org.apache.tapestry.engine.state.StateObjectFactory with this signature: public Object createStateObject() { // create your Hangman here } public void setServletContext(ServletContext context) { this.context = context; } Hope this helps, /Firas -Original Message- From: Cyrille37 [mailto:[EMAIL PROTECTED] Sent: Thursday, December 21, 2006 12:32 PM To: Tapestry users Subject: hivemind create-instance and additionnal parameters Hi, I know I'm noisy on this list with my beginner's questions. Sorry for that, but it is not so easy to swallow all Tapestry's stuff. by the way, here is my new question: I would like to add a Session object. This config wroks nice. contribution configuration-id=tapestry.state.ApplicationObjects state-object name=hangmanStateObject scope=session create-instance class=games.hangman.service.Hangman / /state-object /contribution Now I would like to pass a parameter or set a property to that object (like i use to do with Spring). In the object's class (games.hangman.service.Hangman) I would like to inject the ServletContext. With Annotation I could do like : @InjectObject(service:tapestry.globals.ServletContext) public abstract ServletContext getServletContext(); But I do not want to use Annotation. so I would like to add this ServletContext in the previous state-object/create-instance definition. I'd a look at documentation (http://hivemind.apache.org/descriptor.html) but I did not find the right way. Thanks for your help. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
VLib Synchronisation issue tap4
Hello, Maybe someone can explain me something. In Tapestry 4 VLib example the BookQuerySource implementation has some of its methods synchronised. I don't understand why? Shouldn't it be unnecessary as the hivemind service is set to threaded. I thought a threaded service would be only available for the current thread and not shared with other threads, so why synchronize some methods? Could someone explain me this issue? The same is going on for ModelSource ! Help would be greatly appreciated. Numa - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
http://howardlewisship.com/repository/
hi, did the location move, or is server down? happy holidays, peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dojo error
Hello, I am getting the same exception with the official version 4.1.1, downloaded from here: http://tapestry.apache.org/download.html I've also downloaded the latest 4.1.2 version and having the same problem. I supose nobody is having the problem, but what do we do badly ??? Thanks in advance, robert On 12/12/06, Anjana Gopinath [EMAIL PROTECTED] wrote: Hi, i am using tapestry-annotations-4.1.1-20061211.220316-20.jar and tapestry-framework-4.1.1-20061203.170421-12.jar. i get this error when i try to load my app DEBUG: failed loading /northstaradmin/assets/static/dojo/../tapestry/ namespace.js with error: [TypeError: dojo.hostenv.moduleHasPrefix is not a function, file: http://localhost:8080/northstaradmin/assets/ static/dojo/dojo.js, line: 116] I didnt have this issue with the official tapestry4.1 jar. I need to use the dojo modal dialog and it wasnt working in my @shell everthough i gave parsewidgets=true for my @shell component. But with this snapshot, my model dialog seems to be working, but get this dojo error. Can some one help me out please? Thanks a lot! Anjana Gopinath -- Robert Ramírez Vique Computer Science Engineer
Re: [poll] how do people feel about me changing that validation dialog in 4.1.1 ?
Hi, for me is important to divide the part of error checking from the error presentation. Why?? For me is important to present the client and server side error the same way not to be able distinguish these 2 methods. The server side validation goes directly this way, the validation engine only finds the errors and the presentation is on the developer, with javascript this should be the same. Jirka Dennis Sinelnikov napsal(a): Jesse -- I took a look at the links you sent and agree with Alex. Flexibility is nice to have, +1 for configurable :) Thanks, Dennis Norbert Sándor wrote: I can't help too much because in my apps I used server side validation only, so I don't know how the client side validation currently works. But if I would use it, then what I'd like is a very easy way to plug in my own solution - which is the exact same copy of what my server side implementation does. So my users could see the same visual presentation of the error message regardsless of it was generated on the client or server side. Regards: Norbi Jesse Kuhnert írta: If you are using Tapestry 4.1.1 or greater then you have probably run into the new client side validation modal dialog popup: http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html I've decided that I should probably follow some of my own advice and would like to fix this as described here: http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages/ Ironically I had already created a Dojo widget to do the exact same thing before this blog entry even came out but never really thought to apply the same kind of idea to validation..(this is also the kind of non-intrusive validation that tacos does by default): http://archive.dojotoolkit.org/nightly/tests/widget/test_Toaster.html Not sure which release this belongs in but I've got all kinds of usability/humane/etc plans for validation that I'm going to want to try applying at some point. I'd really rather just completely remove this dialog but want to see how people feel about it first. I can always just make this a configurable option where you opt-in and choose which kind of client side validation theme you'd like, but I'm not as convinced that more options here will necessarily be helping people. What do you think/feel ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jiří Mareš (mailto:[EMAIL PROTECTED]) ČSAD SVT Praha, s.r.o. (http://www.svt.cz) Czech Republic - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Job Offer in Miami, US
Yes, we are trying to put together a good team here in Miami. We have some exciting stuff to do and we are going to do it with Tapestry, Spring and Hibernate Some training are allways welcome but can we afford you? ;) Cheers, Jacob -- View this message in context: http://www.nabble.com/Job-Offer-in-Miami%2C-US-tf2866216.html#a8023894 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
PropertySelection unit test
For an oddball reason I am hunting for the PropertySelection unit test and I can't seem to find it in the source bundles or in svn. Can someone point to the right file/path/url ? Thanks! Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry 4.1.1 MultipleFormSupport?
Hello, We've recently upgraded to Tapestry 4.1.1. One of our pages has a @Form nested inside a @For loop, resulting in multiple forms on the page. Up until now, we had been using the direct=false parameter of the form to force the entire page to rewind upon submission of any of the forms. However, using this form action service is no longer an option in Tapestry 4.1.1. Digging around, we found a MultipleFormSupport interface in the code that is new to Tapestry 4.1.1. This looks like it may address exactly what we are trying to do. Has anyone used this? Is there a built-in way to create a form using this type of FormSupport interface? Thanks in advance, Chris
Re: Tapestry 4.1.1 MultipleFormSupport?
Add this in your hivemodule.xml implementation service-id=tapestry.form.FormSupportFactory create-instance class=org.apache.tapestry.form.MultipleFormSupportFactory/ /implementation MultipleFormSupport works by prefixing all form elements id with formId: But if you use autocompleters (or perhaps some other components) you might experience http://issues.apache.org/jira/browse/TAPESTRY-1196 I was planning on working on those issues + documenting everything after i get back from my Christmas vacations next Wednesday (27/12)... can't be of any more help right now :( Chris Schroeder wrote: Hello, We've recently upgraded to Tapestry 4.1.1. One of our pages has a @Form nested inside a @For loop, resulting in multiple forms on the page. Up until now, we had been using the direct=false parameter of the form to force the entire page to rewind upon submission of any of the forms. However, using this form action service is no longer an option in Tapestry 4.1.1. Digging around, we found a MultipleFormSupport interface in the code that is new to Tapestry 4.1.1. This looks like it may address exactly what we are trying to do. Has anyone used this? Is there a built-in way to create a form using this type of FormSupport interface? Thanks in advance, Chris -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hook into T4's page creation process
yes, workers are part of 4.0.2 - and the code is very clear, and one can learn alot from it - howard has a *very* nice programming style, so its worth taking a look. I would look at the wiki, but I don't know if there are any tutorials/docu around for this. It is quite advanced staff, but its not that hard. Cheers, Ron karthik G wrote: thanks Ron. Currently am with going the way (subclassing a securedpage) as suggested by Dennis. Its simple and works. But am interested in the workers that you mention. Is looking at the source code the only option at this point to write some workers?. Are there any docs somewhere? Btw are workers part of 4.0.2 thanks, Karthik On 12/21/06, Ron Piterman [EMAIL PROTECTED] wrote: yes, there is a configurable annotation workers, so you can create/extend/override page methods when tapestry is preparing the page/component class. You can create your own class worker which will add the needed logic to the mentioned attach event. Take a look at the annotations module code and hivemind configuration. Cheers, Ron karthik G wrote: I just want to add an annotation on the page and then take some action when the page is being bound to a request from the page pool. @SecuredPage abstract class MyPage extends BasePage{ } Is there anyways i can hook into T4's page creation process and then depending upon the annotation take some action? For e.g in the above case, I just want to be able to check for a user object in the session and redirect to login page. I looked at PageAttachListener and it looks nice. But I dont want to implement that in my page but would like to attach a listener to T4 itself. thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]