Re: Template customisation depending on certain parameters

2008-11-05 Thread Edouard sur edouardmercier.fr
Hello Carl. I do not have much experience on the subject, but I'm facing the same problem. At the moment, if use statements depending on the server agent, which works, because I only need to support a few smart phone models, but which be difficult to maintain as soon as new devices come in line.

Re: How to call a method of a tapestry page when the page is called using anchor tag

2008-10-17 Thread Edouard sur edouardmercier.fr
Hi Sonu. I'm far from being a Tapestry expert, but what you are asking is feasible by: 1. injecting the Register page into the Login page (user "@Inject private Register register" in the Login.java), 2. adding an action link "Register" in the Login.tml, 3. add the "Object onActionFromRegister() {

Re: Loops in Form - where are my serialized

2008-10-09 Thread Edouard sur edouardmercier.fr
Hello. I'm not sure to quite understand your problem, but in case your concern is to retrieve the values of the checkboxes, please take a look at a previous thread at http://markmail.org/search/?q=list%3Aorg.apache.tapestry.users+dynamic+form#query:list%3Aorg.apache.tapestry.users%20dynamic%20form

Re: Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Edouard sur edouardmercier.fr
Thank you for this very quick and clear answer! Does it mean that I will be able to inject the "PropertiesFileSymbolProvider" object inside the "AppModule::bind(ServiceBinder binder, @InjectService("PropertiesFileSymbolProvider") SymbolProvider propertiesFileSymbolProvider)" method this way? Or sh

Access the ApplicationGlobals inside the "AppModule::bind()" method

2008-10-07 Thread Edouard sur edouardmercier.fr
Hello again. I would like the service implementation binding (inside the "AppModule::bind(ServiceBinder binder)") to depend on the web.xml configuration file. This is the reason why I would like to access the ApplicationGlobal instance inside the method (in order to call as "globals.getServletCont

Re: How to access an ASO in a non-servlet thread

2008-10-07 Thread Edouard sur edouardmercier.fr
Thank you Uli. I had already taken a look at the two pointers you have provided, without really understanding them: I'm a bit lost on how to start with. I've understood that I must create a service and declare it inside the AppModule class. I've seen that I should declare an interface for such a s

How to access an ASO in a non-servlet thread

2008-10-07 Thread Edouard sur edouardmercier.fr
Hi everyone. I'm currently facing the following problem: my T5 (0.15) web application receive notifications in a dedicated non servlet thread inside some of my Tapestry components, which have an ApplicationStateObject attribute. I would like to update the state of the ASO, but the problem is that

Re: Creating inner components on the fly in a form custom component

2008-09-27 Thread Edouard sur edouardmercier.fr
Thank you so much Kris for your answer. The Tapestry 5 BeanEditor source code gives some kind of vertigo, but I will look at it, in order to better understand what you mean. In the meantime, I had another idea: using some .tml inside my component with a and statements inside that nest some /...

Creating inner components on the fly in a form custom component

2008-09-25 Thread Edouard sur edouardmercier.fr
Hello. I've been digging the web with no success, but I'm a Tapestry 5 newbie (running the v5.0.15), thus maybe I missed something. I'm currently attempting to develop a custom Tapestry component that aims at inserting HTML "select/checkbox/textfield" tags into an existing HTML form. Let's say th