Re: Tapestry i18n, Messages

2010-02-08 Thread cordenier christophe
Hi Try to inject ComponentResources into your page, call getMessages(), this will build a new Catalog hierarchy as you describe. If you want to obtain this from a service, use ComponentSource service to obtain an instance of page (implements Component), then call getComponentResources() and then

Re: Automatically include javascript companion

2010-02-05 Thread cordenier christophe
Hi, Your worker should use AssetSource and RenderSupport to automatically add the js file if it exists, have a look at IncludeJavaScriptLibraryWorker source file to see an exemple of script injection. BTW in my experience, the multiplication of JS/CSS files is not really appreciated by IE, so if

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Hi 2010/2/3 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Hello! I have the following problem: On a page a Grid is displayed inside a form which contains a checkbox for each row (similar to [0]). When I submit the form using *one of the submit buttons* below, I want to check

Multiple configuration items per service

2010-02-04 Thread cordenier christophe
Hi, I have a use case where i want to provide to my service a white list + a black list of patterns.This list must be extensible by the service user via a contributeXxx method. The DefaultModelDef does not allow this. I guess this is a design choice, but is it reasonnable to say that the

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
-dortmund.de Am 04.02.2010 14:27, cordenier christophe wrote: On a page a Grid is displayed inside a form which contains a checkbox for each row (similar to [0]). When I submit the form using *one of the submit buttons* below, I want to check for each row if the action of the submit button

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Have you tried by setting the 'defer' attribute of your submit button to false ? 2010/2/4 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Am 04.02.2010 14:37, schrieb cordenier christophe: Sorry but I don't get your case, is it the user that have to check the row on which

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
with two different service identifiers... just another indirection :) g, kris cordenier christophe christophe.corden...@gmail.com 04.02.2010 14:34 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Multiple

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
with two different service identifiers... just another indirection :) g, kris cordenier christophe christophe.corden...@gmail.com 04.02.2010 14:34 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Multiple

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Just to be sure this does not work can you try also by moving your button at the top of the form ? 2010/2/4 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Am 04.02.2010 14:47, cordenier christophe wrote : Have you tried by setting the 'defer' attribute of your submit button

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Why do you not simply intercept onSelectEvent and check user with email address in onValidateForm ? 2010/2/4 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Am 04.02.2010 15:28, schrieb cordenier christophe: Just to be sure this does not work can you try also by moving your button

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
04.02.2010 15:39, cordenier christophe wrote: Why do you not simply intercept onSelectEvent and check user with email address in onValidateForm ? You mean onSelectFromSubmitButton, right? In onValidateForm I do not have access to the single checkbox components of my Grid. - Stephan

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
screen to alert that no email will be send to these user because of the lack of information. 2010/2/4 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Am 04.02.2010 15:59, schrieb cordenier christophe: No i meant onValidateForm, i may be wrong but if your checkboxes are mapped

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
indirection :) g, kris cordenier christophe christophe.corden...@gmail.com 04.02.2010 14:34 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Multiple configuration items per service

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Of course, I can understand. So i come back to your first proposal and will vote for it if you post a JIRA ;) 2010/2/4 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Am 04.02.2010 16:21, cordenier christophe wrote: I have only a design suggestion if you don't mind :) Why not simply

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
+ WhiteList); } Each service will have then two contributeXxx methods, one for White List and the other for Black List. Thanks Kristian for guidance. PS : i'll see for a Marker solution when i have time to go deep in Module loading stuff :) 2010/2/4 cordenier christophe christophe.corden...@gmail.com

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
The problem is that i need to build dedicated service to handle whiteList and blackList for each service that requires different configuration if i don't want to manipulate Map, it will create 2*n + n instance of services for services that requires a WhiteListManager and a BlackListManager. By

Re: [T5]Multiple templates for a page

2010-02-04 Thread cordenier christophe
Hi I have used the third locale parameter : variant associated to an identification filter. Regards, Christophe. Developer of wooki @wookicentral.com 2010/2/4 Thomas Cucchietti thomas.cucchie...@gmail.com Ok, it could be what I needed. Thanks for the information Thiago, I'll give it a try

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
I have also thought about this solution, but it requires to instantiate objects for simple lists of String. 2010/2/4 Thiago H. de Paula Figueiredo thiag...@gmail.com On Thu, 04 Feb 2010 14:47:17 -0200, cordenier christophe christophe.corden...@gmail.com wrote: The problem is that i need

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
I don't think CheckBox handles validation in its processSubmission method, AbstractTextField does but not the CheckBox component. 2010/2/4 Thiago H. de Paula Figueiredo thiag...@gmail.com On Thu, 04 Feb 2010 13:21:23 -0200, cordenier christophe christophe.corden...@gmail.com wrote: Well

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
). On Thu, Feb 4, 2010 at 5:34 AM, cordenier christophe christophe.corden...@gmail.com wrote: Hi, I have a use case where i want to provide to my service a white list + a black list of patterns.This list must be extensible by the service user via a contributeXxx method

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
. On Thu, Feb 4, 2010 at 9:43 AM, cordenier christophe christophe.corden...@gmail.com wrote: Hi I have chosen the second solution. It works fine. Regards, Christophe 2010/2/4 Howard Lewis Ship hls...@gmail.com Contribute a map of String, Boolean instead. Or have two services

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
. 2010/2/4 Thiago H. de Paula Figueiredo thiag...@gmail.com On Thu, 04 Feb 2010 15:07:44 -0200, cordenier christophe christophe.corden...@gmail.com wrote: I have also thought about this solution, but it requires to instantiate objects for simple lists of String. IMHO, it's way better

Re: Tapestry i18n, Messages

2010-02-04 Thread cordenier christophe
Hi 2010/2/5 Christoph Jäger christoph.jae...@polleninfo.org Hi, I use org.apache.tapestry5.ioc.Messages to get the translated strings for my web application from the property files for my pages. This works great. Now, I want to use the same mechanism in two different places in my

Re: How to decorate a service that has already been decorated ?

2010-02-03 Thread cordenier christophe
Actually, this OWASP rule does not exclude access checking. But using temporary indirection keys has also effects on CSRF attacks. 2010/2/3 Thiago H. de Paula Figueiredo thiag...@gmail.com On Tue, 02 Feb 2010 19:21:22 -0200, Howard Lewis Ship hls...@gmail.com wrote: Intresting. So perhaps

Re: How to decorate a service that has already been decorated ?

2010-02-03 Thread cordenier christophe
string would have to be in some kind of fast lookup table stored persistently (perhaps in the DB for sharing across the cluster, if any). Anyway, that's the kind of idea that popped into my head ... what's your solution looking like? On Tue, Feb 2, 2010 at 10:42 AM, cordenier christophe

Re: How to decorate a service that has already been decorated ?

2010-02-03 Thread cordenier christophe
The solution i used is to create the inderiction key at the very end of activation encoding in ContextValueEncoder. I mean just after toClient() call, i get the resulting string and transform it. Then before calling delegated toValue i retrieve the direct reference from the indirection key

Re: Link to a Page from another context

2010-02-03 Thread cordenier christophe
Hi (If application are deployed in the same container) I guess using crossContext feature will allow you to have access to Tapestry Registries of other application contexts. Then you can call PageRenderLinkSource service instance of other context. It depends on the security level you want for

Re: Link to a Page from another context

2010-02-03 Thread cordenier christophe
important thing. The other app isn't a Tapestry application... De: cordenier christophe christophe.corden...@gmail.com Para: Tapestry users users@tapestry.apache.org Enviadas: Quarta-feira, 3 de Fevereiro de 2010 11:32:14 Assunto: Re: Link to a Page from

Re: Form element ids are getting changed

2010-02-02 Thread cordenier christophe
Hi If the block returned by the 'ajax action' contains Javascript then it's called by Tapestry on zone refresh (via RenderSupport) Also, use @InjectComponent to obtain new component's client ids. Regards, Christophe. Developer of wooki @wookicentral.com 2010/2/2 Jagadesh Paladugula

How to decorate a service that has already been decorated ?

2010-02-02 Thread cordenier christophe
Hi I am facing this problem by decorating ComponentEventLinkEncoder, the result is that my decoration is ignored or it fails with a StackOverflowException. I will investigate in tapestry-ioc, but if anyone has a clue it's welcome. Thanks, Christophe.

Re: How to decorate a service that has already been decorated ?

2010-02-02 Thread cordenier christophe
, cordenier christophe christophe.corden...@gmail.com wrote: Hi I am using decorateXxx because i prefer this way of decorating, but if you suggest to do it with advisors, i'll do it this way. I wil give it a try. Thanks, Christophe 2010/2/2 Thiago H. de Paula Figueiredo thiag

Re: How to decorate a service that has already been decorated ?

2010-02-02 Thread cordenier christophe
conventions. Rename your method to something like decorateWithOWASPSupport and use a @Match annotation to identify the target service to decorate: ComponentEventLinkEncoder. On Tue, Feb 2, 2010 at 10:08 AM, cordenier christophe christophe.corden...@gmail.com wrote: Actually i am trying

Re: How to decorate a service that has already been decorated ?

2010-02-02 Thread cordenier christophe
. de Paula Figueiredo thiag...@gmail.com On Tue, 02 Feb 2010 16:08:41 -0200, cordenier christophe christophe.corden...@gmail.com wrote: Actually i am trying to decorate ComponentEventLinkEncoder to implement a solution for OWASP A4 recommandation. Which recommendation? Just curious

Re: How to decorate a service that has already been decorated ?

2010-02-02 Thread cordenier christophe
An old link http://www.owasp.org/index.php/Top_10_2007-Insecure_Direct_Object_Reference but principle is there. 2010/2/2 cordenier christophe christophe.corden...@gmail.com OWASP A4 is : Avoid Insecure Direct Object References (in URL in my case) Suggested implementation is to indirect all

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread cordenier christophe
Hi I don't know if it's the cause of your problem, but you should avoid to use ${} for parameter values, use prop: binding instead. Best Regards, Christophe Developer of wooki @wookicentral.com 2010/2/1 lebenski be...@gamesys.co.uk I have a loop that contains a form and a zone. In each

Re: [T5] Form and Zone inside a loop

2010-02-01 Thread cordenier christophe
Hi, You have to find what is failing on the client side. If a submit action refreshes the whole page, this means that the zone has not been initialized. So i guess firebug or any other tool should help you. Also, you may use class=t-zone-update on the element that must be refreshed by the zone,

Re: Can't get the prototype.js????

2010-01-30 Thread cordenier christophe
Hi, I already encounter this kind of error but the cause was not prototype.js. There was a problem with anotherJS file (wymeditor) that was trying to access to the script declarations to obtain path information. First you can disable tapestry.combine-scripts to see what happens. Then have a

Re: About T5 integration modules

2010-01-29 Thread cordenier christophe
Hi, For the one who are interested in, I have written a first article on how we have secured Tapestry Pages in wooki with Spring Security : http://spreadthesource.com/2010/01/securing-tapestry-5-pages-with-spring-security-2-x-part-i/ Best Regards, Christophe Cordenier. Developper of Wooki

Re: [Announce] Wooki - Collaborative Writing

2010-01-21 Thread cordenier christophe
email. On Tue, Jan 19, 2010 at 5:13 PM, cordenier christophe christophe.corden...@gmail.com wrote: Hi Thanks a lot for your feedbacks, currently we have found some minor UI bugs on the deployed version. So please don't mind for small service interruption (less than one minute

Re: [Announce] Wooki - Collaborative Writing

2010-01-19 Thread cordenier christophe
Hi Thanks a lot for your feedbacks, currently we have found some minor UI bugs on the deployed version. So please don't mind for small service interruption (less than one minute) Regards, Christophe. 2010/1/19 ningdh ningd...@gmail.com Cool, very nice. Can't wait to try. DH -

Re: Different ExceptionReport for different pages

2010-01-19 Thread cordenier christophe
Hi, We have implemented such a feature in our project and documented it on our blog http://spreadthesource.com/2010/01/handle-multiple-exception-page-with-tapestry-5/ Hope this can help. Christophe Cordenier, Developper of Wooki @http://wookicentral.com Source code :

Re: FieldTranslatorSourceImpl

2010-01-07 Thread cordenier christophe
by Tapestry, this one is important also for older application that do not use JPA implementations 2010/1/7 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Wed, 06 Jan 2010 16:51:52 -0200, cordenier christophe christophe.corden...@gmail.com escreveu: Tapestry has a lot of security mechanisms

Re: FieldTranslatorSourceImpl

2010-01-07 Thread cordenier christophe
I have to admit you are right, next time i will read recommandations fully... Sorry for annoyance with SQL escaping. http://owasp-esapi-java.googlecode.com/svn/trunk_doc/latest/org/owasp/esapi/Encoder.html BTW it would be interesting to allow developper to advise a service considering only its

Re: [T5] Overriding integer validation message?

2010-01-07 Thread cordenier christophe
Hi, To generalize messages overrides for all form, you can contribute to ValidationMessagesSource service in your AppModule class with your own property file. See Tapestry code below for default validation messages properties : public void

FieldTranslatorSourceImpl

2010-01-06 Thread cordenier christophe
Hi, I am facing a problem related to the design of FieldTranslatorSourceImpl internal class design. I would like to adivse one of the method to pass my own modified instance of Translator, but actually the adivor does'nt work for this method because the public method (from the interface) is

Re: Loop, RadioGroup and Coercion

2009-12-28 Thread cordenier christophe
Hi I think you have to specify the encoder on the form element too. 2009/12/28 antb59 ant...@gmail.com Hello, I'm trying to make a tapestry component that looks like a poll. This component will contain a question, a list of suggestions, and a button to vote. I didn't want to use Ajax at

Re: Loop, RadioGroup and Coercion

2009-12-28 Thread cordenier christophe
Oups, it's the radiogroup that need it :) 2009/12/28 cordenier christophe christophe.corden...@gmail.com Hi I think you have to specify the encoder on the form element too. 2009/12/28 antb59 ant...@gmail.com Hello, I'm trying to make a tapestry component that looks like a poll

Re: About T5 integration modules

2009-12-26 Thread cordenier christophe
, cordenier christophe christophe.corden...@gmail.com wrote: Hello, And what about integration of Tapestry in other framework ? From my experience view, integrating technologies in Tapestry is fun and fast, and the one provided by Tapestry are really good and enough to do what a Web

Re: About T5 integration modules

2009-12-24 Thread cordenier christophe
Hello, And what about integration of Tapestry in other framework ? From my experience view, integrating technologies in Tapestry is fun and fast, and the one provided by Tapestry are really good and enough to do what a Web Application should do. !but when i want to do the inverse i am facing a

Re: Help with Hibernate Data Fetch and Print

2009-12-17 Thread cordenier christophe
Hi Use t:outputRaw component. 2009/12/17 Ashwanth Kumar ashwanth.ku...@gmail.com Hello, I need to fetch a Post from the Database and print them in an HTML. All works fine, expect for the fact that, the printed text contains the HTML tags as in the Post from the DB. How do i print the post

Re: T5 : Zone / Tapestry.windowUnloaded / Download link

2009-12-16 Thread cordenier christophe
? Regards, Christophe. 2009/12/15 cordenier christophe christophe.corden...@gmail.com Hi All When i have a dowload link in my page (generated via EventLink), and zones in the same page. If the download link is clicked, it raises a window.beforeunload event (because of GET). After that the zone do

T5 : Zone / Tapestry.windowUnloaded / Download link

2009-12-15 Thread cordenier christophe
Hi All When i have a dowload link in my page (generated via EventLink), and zones in the same page. If the download link is clicked, it raises a window.beforeunload event (because of GET). After that the zone do not update anymore, since tapestry.js is listening to 'window.beforeunload' to

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread cordenier christophe
Hi OnActivate is called once to activate the page. OnPassivate is called each time a link is created to allow you to persist datas between request. I had the same problem, but it was firebug that send the second request. Regards Christophe. 2009/11/21 EasyStrutser jae...@aol.com I'm trying

Re: Multiple calls of method OnActivate()???

2009-11-21 Thread cordenier christophe
2009/11/21 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Sat, 21 Nov 2009 09:32:32 -0200, cordenier christophe christophe.corden...@gmail.com escreveu: Hi Hi! OnActivate is called once to activate the page. Right, but when a form is submitted or an ActionLink or EventLink

Devoxx 2009

2009-11-18 Thread cordenier christophe
Hi Is there any other Tapestry folk here at the devoxx ? Maybe we can meet at the end of the day. Cheers Christophe.

AbstractIntegrationTestSuite and Profile

2009-11-03 Thread cordenier christophe
Hi, I didn't find any way to set firefox profile with AbstractIntegrationTestSuite. Looking at the source code, it seems that the SeleniumServer variable is private and not accessible from test case implementation. Is it worth to create a JIRA for this or am i missing something ? Regards

Re: AbstractIntegrationTestSuite and Profile

2009-11-03 Thread cordenier christophe
Actually i have missed somthing, i didn't see that setFirefoxProfileTemplate is static on SeleniumServer... 2009/11/3 cordenier christophe christophe.corden...@gmail.com Hi, I didn't find any way to set firefox profile with AbstractIntegrationTestSuite. Looking at the source code, it seems

Re: AbstractIntegrationTestSuite and Profile

2009-11-03 Thread cordenier christophe
Well, actually this method is not available anymore with Selenium 1.0-beta2. Has anyone used Firefox profile with AbstactIntegrationTestSuite ? Thanks in advance Christophe.

Re: Why is setupComponent called twice?

2009-10-30 Thread cordenier christophe
Hi I already encounter this kind of problems using Firebug (which make a second call to obtain JS of the current page) Regards Christophe. 2009/10/30 Gunnar Eketrapp gunnar.eketr...@gmail.com Hi! I have a layout component in which I have a method ... @SetupRender void setupComponent() {

Re: Why is setupComponent called twice?

2009-10-30 Thread cordenier christophe
is still called twice. Must be some other issue ... /Gunnar 2009/10/30 cordenier christophe christophe.corden...@gmail.com Hi I already encounter this kind of problems using Firebug (which make a second call to obtain JS of the current page) Regards Christophe. 2009/10/30

Re: Index page is activated for each page request ?

2009-10-30 Thread cordenier christophe
Hi I have made a test and cannot reproduce this behaviour, can you send a sample that reproduces it ? Regards, Christophe. 2009/10/30 Gunnar Eketrapp gunnar.eketr...@gmail.com Hi! By some reason my index page is activated after each page request. What have I missed? Thanks in advance!

Re: Index page is activated for each page request ?

2009-10-30 Thread cordenier christophe
Ekerapp 2009/10/30 Gunnar Eketrapp gunnar.eketr...@gmail.com Hi and thanks for the effort! I will try to create a minimal reproduction. /Gunnar 2009/10/30 cordenier christophe christophe.corden...@gmail.com Hi I have made a test and cannot reproduce this behaviour, can you

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
Hi Have a look at 'Changing the Locale' here http://tapestry.apache.org/tapestry5.1/guide/localization.html to check if your are using the good scenario to change locale, since Tapestry 5.1 uses URL to store Local and not a cookie (like in 5.0.18) Christophe. 2009/10/30 Gunnar Eketrapp

Tapestry 5.1 / Selenium / Session handling

2009-10-30 Thread cordenier christophe
Hi all, I am trying to build a test case with Selenium (AbstractIntegrationTestSuite), but it seems that a new session is created on each request. I use IE. Has anyone encounter this problem ? Thanks in advance, Christophe.

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
] components.TellLayout --- TELLGAMING --- : 4: TellLayout.setupComponent(persistentLocale=en) To this I have ... TellFriends_en.properties TellFriends_sv.properties ... and sv is the default language. /Gunnar 2009/10/30 cordenier christophe christophe.corden...@gmail.com Hi Have a look

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
: TellLayout.setupComponent(currentLocale.language=sv) [DEBUG] components.TellLayout --- TELLGAMING --- : 4: TellLayout.setupComponent(persistentLocale=en) To this I have ... TellFriends_en.properties TellFriends_sv.properties ... and sv is the default language. /Gunnar 2009/10/30 cordenier christophe

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
cordenier christophe christophe.corden...@gmail.com Sorry i have missed [DEBUG] AppModule. ProtectedPageGateKeeper PPGK.path=/en/tellfriends 2009/10/30 Gunnar Eketrapp gunnar.eketr...@gmail.com Hi! Well I have read that page over and over ... I am calling persistentLocale.set() in the action

Re: T5 : Pop up with grid

2009-10-29 Thread cordenier christophe
Sorry i have said something wrong, RenderSupport is not available in Action Request, only in Ajax Action Request. 2009/10/29 vos sovireak.moe...@gmail.com Hi Christophe, Thanks for your answer. I tried to code with the renderSupport as you told me. here is the javascript for my pop up

Re: T5 : Pop up with grid

2009-10-29 Thread cordenier christophe
Hi You can also have a look at http://www.chenillekit.org/demo/tapcomp/oneventdemo to see how Ajax call can be made easily with Tapestry and ChenilleKit 2009/10/29 cordenier christophe christophe.corden...@gmail.com And Render Request of course. So you can also re-render the page and use

Re: T5: ClasspathResource and performance

2009-10-29 Thread cordenier christophe
Hello i have already encounter this kind of problem, we solved it by using a decorator to cache asset access with something like, it was for Tapestry 5.0.18 : public class AssetSourceCacheDecorator implements AssetSource { private final MapMultiKey, *Asset* cache =

Re: how can i construct external url with querystring???

2009-10-28 Thread cordenier christophe
Hello I use java.net.URL to create external URLs, this allows me to verify URL is valid. Tapestry uses java.net.URL for external redirection, i mean that action method can return URL and Tapestry will do the redirection work. Regards Christophe. 2009/10/28 sameerkhare sameer.kh...@hcl.in

Re: Soliciting suggestions about how to even start tracking this problem down.

2009-10-28 Thread cordenier christophe
Hello Can you send the code of the 'CreateAgeProfile' page ? For the meantime a good thing (if you have not already done it) would be to check your classpath to verify that there is not multiple tapestry jar versions, and verify that your javassist jar is conformed to the one used by Tapestry 5

Re: End-of-request actions

2009-10-27 Thread cordenier christophe
Hello Have a look at EndOfRequestEventHub Regards, Christophe. 2009/10/27 Carl Crowder carl.crow...@taptu.com Hello, Is there a service or chain or something that I can contribute to do perform end-of-request actions? I have an advert server which I use to get adverts using spot IDs. I

Re: Verbose path for combined javascript

2009-10-26 Thread cordenier christophe
Hi This is because it contains all the URLs of the Asset to get prefixed by the number of elements, all is written in a ObjectOutputStream and URL Encoded I think that it may be possible to override the default behavior by implementing a custom DocumentLinkerImpl, and override the

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
Hello Actually, it is possible to configure Tapestry with (in priority order) 1. java system properties (-D) 2. web.xml context parameters 3 contributeApplicationDefaults 4. contribteFactoryDefaults Check your environment to verify the configuration symbol is not duplicated with a wrong value

Re: Return type

2009-10-26 Thread cordenier christophe
Thanks Thiago, my response was to quick :) 2009/10/26 Thiago H. de Paula Figueiredo thiag...@gmail.com Em Mon, 26 Oct 2009 10:39:05 -0200, cordenier christophe christophe.corden...@gmail.com escreveu: Hi Hi! The difference is that you will be able to call accessors on the object

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
cordenier christophe christophe.corden...@gmail.com Hello Actually, it is possible to configure Tapestry with (in priority order) 1. java system properties (-D) 2. web.xml context parameters 3 contributeApplicationDefaults 4. contribteFactoryDefaults Check your environment to verify

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
session-timeout10/session-timeout /session-config /web-app 2009/10/26 cordenier christophe christophe.corden...@gmail.com Hi What name have you given to the TapestryFilter in you web.xml ? 'App' prefix (in 'AppModule') is the name of the filter. Regards Christophe. 2009/10

Re: AjaxFormLoop and Update/SubmitRow

2009-10-23 Thread cordenier christophe
Hello I don't know if it fully answers to your needs, but have a look at this : http://www.chenillekit.org/demo/tapcomp/inplacedemo Christophe. 2009/10/23 alarmatwork n...@wbgrupp.net Hi, AddRow and RemoveRow are nice features of AjaxFormLoop, but I would rather use UpdateRow or SubmitRow

Re: Tapestry seems to delete object data

2009-10-23 Thread cordenier christophe
Hi Can i add a point on activation/passivation to persist data between request ? Because i like so much this feature for stateless pages :) http://tapestry.apache.org/tapestry5.1/guide/pagenav.html Cheers Christophe 2009/10/23 Mite mitemeis...@gmail.com I made some efforts to solve it on my

Comment in Tapestry 5 TML

2009-10-22 Thread cordenier christophe
Hello We are going into a strange bug with IE :) and hack like !--[if ...-- These hacks seems to be not interpreted because Tapestry automatically add a space character between '!--' and '[' Here is the implementation of Comment class : @Override void toMarkup(Document document,

Re: Comment in Tapestry 5 TML

2009-10-22 Thread cordenier christophe
should be changed On Thu, Oct 22, 2009 at 7:14 PM, cordenier christophe christophe.corden...@gmail.com wrote: Hello We are going into a strange bug with IE :) and hack like !--[if ...-- These hacks seems to be not interpreted because Tapestry automatically add a space character

Re: Catch Throwable insteads of RuntimeException in org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject()

2009-10-21 Thread cordenier christophe
I don't know if this can help, but verify the javassist version you have in your application is conformed to the latest Tapestry version = 3.9.0.GA Regards Christophe. 2009/10/21 Xuan Tran Le xua...@myvietnam.net Hi dear, I'm running Tapestry 5.1.0.5 on IBM Websphere Portal 6.1 and I have an

Re: T5: query about onValidateForm()

2009-10-21 Thread cordenier christophe
I prefer to use onSuccess method and handle second level validation in onValidate and onValidateFromXxx method. I use @Validate for first level validation, and sometime create my own validator when it's possible. Regards, Christophe. 2009/10/21 Newham, Cameron cameron.new...@bl.uk Apologies if

Re: Javascript submit in onclick results in javascript in function $T on IE7

2009-10-21 Thread cordenier christophe
Why do you need javascript ? if this is for submitting a form with a link, check this URL : http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/LinkSubmit.html 2009/10/21 martijn.list martijn.l...@gmail.com If I submit a form using javascript in the

Re: Changing a locale during a request

2009-10-20 Thread cordenier christophe
Hello I think the locale present in URL is decoded in the Dispatcher (after RequestFilter) Try to change the local in a PageRenderRequestFilter. Regards, Christophe. 2009/10/20 Stephan Windmüller stephan.windmuel...@cs.tu-dortmund.de Hello! Is it possible to change the use locale during the

Re: How to create same functionality as TriggerFragment, but for actionLink

2009-10-19 Thread cordenier christophe
Hi Do you mean without 'server side' persistency ? You can do it by using prototype API to show or hide DOM elements, and scriptaculous for more visual effect. If you want to persist the state, you can send an Ajax Request on toggle that updates the state each time the user click on your link.

Re: Lifecycle of a tapestry request and the MarkupRendererFilter

2009-10-16 Thread cordenier christophe
-Original Message- From: cordenier christophe [mailto:christophe.corden...@gmail.com] Sent: 15 October 2009 15:31 To: Tapestry users Subject: Re: Lifecycle of a tapestry request and the MarkupRendererFilter What not using the prepareResponse of the StreamResponse Tapestry interface to set

Re: T5: problem switching to locale zh_TW

2009-10-16 Thread cordenier christophe
Hello By default tapestry supports : en,it,es,zh_CN,pt_PT,de,ru,hr,fi_FI,sv_SE,fr_FR,da,pt_BR,ja,el. Regards, Christophe. 2009/10/16 Roy Douglas onj888-tapes...@yahoo.com.hk Hi, I create a resource file name app_zh_TW.properties, and an actionlink component and the method

Re: component must be enclosed by a Form component error

2009-10-15 Thread cordenier christophe
Hello I think this is caused by 'inPlace=true'. Regards. 2009/10/15 Lindsay Ridgeway lindsay.ridge...@mac.com I have the following t:grid defined in the file AccountLog.tml: t:form t:id=recordFormId . . . t:grid t:pagerPosition=top t:rowsPerPage=10 t:inPlace=true

Re: Lifecycle of a tapestry request and the MarkupRendererFilter

2009-10-15 Thread cordenier christophe
Hello From my point of view this kind of caching mechanism should be done in front of your application server. Regards Christophe. 2009/10/15 Ian Petzer ian.pet...@ioko.com Hi, I have been successfully using the CacheControlMarkupRenderer from the ioko-tapestry-commons

Re: T5 / Include file ordering

2009-10-15 Thread cordenier christophe
Hello How do you include the main css file ? Regards Christophe. 2009/10/15 Gunnar Eketrapp gunnar.eketr...@gmail.com Please anyone! My T5'ed version of the page differs from the HTML designers version and I really suspect the ordering of the CSS includes to be the reason. So how do I add

Re: Lifecycle of a tapestry request and the MarkupRendererFilter

2009-10-15 Thread cordenier christophe
on the HTTP responses. For example in this particular case we need to set: response.setHeader(CACHE_CONTROL_HEADER, no-cache); response.setHeader(PRAGMA_HEADER, No-Cache); -Original Message- From: cordenier christophe

Re: Tapestry5 Form Validate, Success,Failure, Select Events

2009-10-14 Thread cordenier christophe
Hi Actually you can only handle Validate event for the components declared in 'MyComponent'. During submission process each text field triggers an event that can be handled by the parent components. In your case, if you have field components inside 'MyComponent' you will be only allowed to handle

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread cordenier christophe
Hello What version of Tapestry are you using ? It reminds me a bug report on JIRA that has been fixed. Regards Christophe. 2009/10/14 Michael Gentry mgen...@masslight.net Hi everyone. I've been developing using Eclipse+Jetty and everything runs fine in that environment. I decided I needed

Re: Geronimo+Tomcat = Parameter namespacePrefix was null

2009-10-14 Thread cordenier christophe
I found this also : https://issues.apache.org/jira/browse/TAP5-541 2009/10/14 cordenier christophe christophe.corden...@gmail.com Hello What version of Tapestry are you using ? It reminds me a bug report on JIRA that has been fixed. Regards Christophe. 2009/10/14 Michael Gentry mgen

Re: NPE when using Response.sendRedirect(String url) to forward to offsite address.

2009-10-12 Thread cordenier christophe
Hello Try by returning a java.net.URL from your activate method. This should work i think. Regards, Christophe. 2009/10/12 Martin Reurings mar...@windgazer.nl Hi everyone, For various reasons (that are good enough for our team ;) ) we have to make use of a sendRedirect to forward to an

Re: Problem with error404

2009-10-12 Thread cordenier christophe
. Regards Christophe. 2009/10/7 Kalle Korhonen kalle.o.korho...@gmail.com On Wed, Oct 7, 2009 at 9:17 AM, cordenier christophe christophe.corden...@gmail.com wrote: Thanks, but i didn't look that way because of what found in the Tapestry documentation. I mean 'vestigal' like deprecated :) I

Re: Problem with error404

2009-10-12 Thread cordenier christophe
Hello The previous solution is based on the same idea than returning a javax.net.URL or Tapestry Link, i'm not sure this is the best thing to do but it works. Regards, Christophe. 2009/10/12 cordenier christophe christophe.corden...@gmail.com 1. Create a class ErrorCode that will handle

Re: Javascript not included on Ajax.Request

2009-10-09 Thread cordenier christophe
Hi If you only append content i don't think it will work. Have a look at how Tapestry achieve JS loading in loadScriptsInReply method of 'tapestry.js' file. christophe. 2009/10/9 Inge Solvoll inge.tapes...@gmail.com Hi! I use prototype Ajax.Request to load a tapestry page url into a

  1   2   >