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 g

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 y

Re: Tapestry i18n, Messages

2010-02-04 Thread cordenier christophe
Hi 2010/2/5 Christoph Jäger > 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 > application: > > 1. A user can cl

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
. 2010/2/4 Thiago H. de Paula Figueiredo > 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. >>

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
hu, Feb 4, 2010 at 9:43 AM, cordenier christophe > wrote: > > Hi > > > > I have chosen the second solution. It works fine. > > > > Regards, > > Christophe > > > > 2010/2/4 Howard Lewis Ship > > > >> Contribute a map of instead.

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
Thu, Feb 4, 2010 at 5:34 AM, cordenier christophe > 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: 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 > On Thu, 04 Feb 2010 13:21:23 -0200, cordenier christophe < > christophe.corden...@gmail.com> wrote: &

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 > On Thu, 04 Feb 2010 14:47:17 -0200, cordenier christophe < > christophe.corden...@gmail.com> wrote: > > The problem is th

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 > Ok, it could be what I needed. > > Thanks for the information Thiago, I'll give it a try and make a feedback > in

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 ext

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
class).withId(prefix + "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 co

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 > Am 04.02.2010 16:21, cordenier christophe wrote: > > I have only a design suggestion if you don't mind :) Why not simply put an >> in

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
tests increases. except you > have very good integration tests. > > but... if we had additional positional annotations > or an own marker annotation to distinguish them > > i think it would we a good idea as you could spare > some indirections > Nice idea ! >

Re: onSelectedFrom is called too late

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

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
No i meant onValidateForm, i may be wrong but if your checkboxes are mapped to value, you have access all to those values. Also you should have a look at volatile parameter of the Grid component, used when enclosed by a form. 2010/2/4 Stephan Windmüller > Am 04.02.2010 15:39, corden

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 > 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 >> at >

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 > Am 04.02.2010 14:47, cordenier christophe wrote : > > > Have you tried by setting the 'defer' attribute of your submit button to >> fals

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
same class with two different service identifiers... just another > indirection :) > > g, > kris > > > > > > cordenier christophe > 04.02.2010 14:34 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > >

Re: Multiple configuration items per service

2010-02-04 Thread cordenier christophe
me class with two different service identifiers... just another > indirection :) > > g, > kris > > > > > > cordenier christophe > 04.02.2010 14:34 > Bitte antworten an > "Tapestry users" > > > An > Tapestry users > Kopie > > T

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 > 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 the ac

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
10 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 submi

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 contribut

Re: onSelectedFrom is called too late

2010-02-04 Thread cordenier christophe
Hi 2010/2/3 Stephan Windmüller > 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 for each row if the action of the

Re: Link to a Page from another context

2010-02-03 Thread cordenier christophe
The other app isn't a Tapestry application... > > > > > ________ > De: cordenier christophe > Para: Tapestry users > Enviadas: Quarta-feira, 3 de Fevereiro de 2010 11:32:14 > Assunto: Re: Link to a Page from another context > >

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 you

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 provided

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, 20

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 > On Tue, 02 Feb 2010 19:21:22 -0200, Howard Lewis Ship > wrote: > > Intresting. So perhaps instead of encoding the primary

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 > OWASP A4 is : Avoid Insecure Direct Object References (in URL in my case) > > Suggested implementation is to indirect all direct reference

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

2010-02-02 Thread cordenier christophe
. de Paula Figueiredo > 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. >> > >

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

2010-02-02 Thread cordenier christophe
ng > 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

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

2010-02-02 Thread cordenier christophe
le advice). > > On Tue, Feb 2, 2010 at 9:52 AM, cordenier christophe > 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

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

2010-02-02 Thread cordenier christophe
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 > On Tue, 02 Feb 2010 15:40:04 -0200, cordenier christophe < > chr

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: 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 > Hi > >

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: [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 > > I have a loop that contains a form and a zone. In each iteration of the > lo

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 clo

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 @wook

Re: [Announce] Wooki - Collaborative Writing

2010-01-21 Thread cordenier christophe
t; > 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 mi

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 : http://github.com/robink/wo

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 > Cool, very nice. > > Can't wait to try. > > DH > > - Original Message -

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 contributeValidationMessagesSource(OrderedConfigurat

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 in

Re: FieldTranslatorSourceImpl

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

Re: FieldTranslatorSourceImpl

2010-01-07 Thread cordenier christophe
e the normal case and would > need to see a use case for it (which is why I really like interfaces > with just one method :-) > > What are you actually trying to accomplish, perhaps there is another way? > > On Wed, Jan 6, 2010 at 9:41 AM, cordenier christophe > wrote: > &g

Re: FieldTranslatorSourceImpl

2010-01-06 Thread cordenier christophe
Oups, i just figured out that i will not have access to what i need with the AnnotationProvider provided by FieldTranslatorSource methos :( 2010/1/6 cordenier christophe > My objective is to provide a Translator that will add protection on > textfield value (sql escaping...), a default es

Re: FieldTranslatorSourceImpl

2010-01-06 Thread cordenier christophe
be the normal case and would > need to see a use case for it (which is why I really like interfaces > with just one method :-) > > What are you actually trying to accomplish, perhaps there is another way? > > On Wed, Jan 6, 2010 at 9:41 AM, cordenier christophe > wrote: &g

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 calle

Re: Loop, RadioGroup and Coercion

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

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 > > 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 first, and

Re: About T5 integration modules

2009-12-26 Thread cordenier christophe
am convinced 100% by Tapestry, but simply to open the discussion instead of focusing on existing contribution in Tapestry. Which, i repeat is not so complicated once you get familiar with Tapestry Architecture. Best Regards, Christophe. 2009/12/24 Howard Lewis Ship > On Thu, Dec 24, 200

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 p

Re: Help with Hibernate Data Fetch and Print

2009-12-17 Thread cordenier christophe
Hi Use t:outputRaw component. 2009/12/17 Ashwanth Kumar > 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 text by parsing > th

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

2009-12-16 Thread cordenier christophe
meter ? Regards, Christophe. 2009/12/15 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 >

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 disable

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

2009-11-21 Thread cordenier christophe
2009/11/21 Thiago H. de Paula Figueiredo > 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 fo

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 > > I'm trying to pass param

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.

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: 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 > Hi, > > I didn't find any way to set firefox profile with > AbstractIntegrationTestSuite. > Looking at the source code, it seem

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 Christo

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
omponent(persistentLocale=en) 2009/10/30 cordenier christophe > Sorry i have missed > > [DEBUG] AppModule. > ProtectedPageGateKeeper PPGK.path=/en/tellfriends > > > 2009/10/30 Gunnar Eketrapp > >> Hi! >> >> Well I have read that page over and over ..

Re: currentLocale vs persistentLocale

2009-10-30 Thread cordenier christophe
TELLGAMING --- >>>: 1: > TellLayout.setupComponent(currentLocale.language=sv) > [DEBUG] components.TellLayout <<< --- TELLGAMING --- >>>: 4: > TellLayout.setupComponent(persistentLocale=en) > > > To this I have ... > > TellFriends_en.properties >

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&

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
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 > Hi! >

Re: Index page is activated for each page request ?

2009-10-30 Thread cordenier christophe
> > Thanks for the help > /Gunnar Ekerapp > > 2009/10/30 Gunnar Eketrapp > > > Hi and thanks for the effort! > > > > I will try to create a minimal reproduction. > > > > /Gunnar > > > > 2009/10/30 cordenier christophe > >

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 > Hi! > > By some reason my index page is activated after each page request. > > What have I missed? > > Thanks in advance! > /Gunnar Eketrapp >

Re: Why is setupComponent called twice?

2009-10-30 Thread cordenier christophe
d > twice. > > Must be some other issue ... > > /Gunnar > > > > 2009/10/30 cordenier christophe > > > Hi > > > > I already encounter this kind of problems using Firebug (which make a > > second > > call to obtain JS of the current pag

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 > Hi! > > I have a layout component in which I have a method ... > > @SetupRender > void setupComponent() { >... > } > > For

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 Map cache = CollectionFactory.newConcurrentMap(); private

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 > And Render Request of course. > > So you can also re-render the page and use the RenderSupport to

Re: T5 : Pop up with grid

2009-10-29 Thread cordenier christophe
SetupRender. And Ajax update is maybe cleaner... Excuse me for my previous confusing answers. Regards, Christope. 2009/10/29 cordenier christophe > Sorry i have said something wrong, RenderSupport is not available in > Action Request, only in Ajax Action Request. > > 2009/10/29 vos

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 > > 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 > > >fu

Re: T5 : Pop up with grid

2009-10-29 Thread cordenier christophe
Hello >>How can i get the opener page in my java class ? To update a field on the opener, you have to do it with Javascript, not on server side. There is many alternatives for this : - Using Ajax request on link click to get the name from server side and update client via Javascript - Do it with

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: 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 > > That's right... >

Re: End-of-request actions

2009-10-27 Thread cordenier christophe
Hello Have a look at EndOfRequestEventHub Regards, Christophe. 2009/10/27 Carl Crowder > 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 want to call somethi

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
va.sun.com/dtd/web-app_2_3.dtd";> > > Digileping > > tapestry.app-package > ee.softpro > > > tapestry.combine-scripts > false > > > digileping > org.apache.tapestry5.TapestryFilter > > > digileping > /* > > > 10 > > >

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
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/26 Argo Vilberg > Thanks, seems taht web.xml variants works. > > But AppModule.java is no use :) > &

Re: Return type

2009-10-26 Thread cordenier christophe
Thanks Thiago, my response was to quick :) 2009/10/26 Thiago H. de Paula Figueiredo > 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

Re: Return type

2009-10-26 Thread cordenier christophe
Hi The difference is that you will be able to call accessors on the object that will allow to persist datas between request. Use @Persist on persisted properties for the target page. Regards, Christophe. 2009/10/26 Mite > > A beginner question. A short answer will be enough. > > What is the di

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: 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 addScriptLinksF

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 > > I made some efforts to solve it on my own at first, but t

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 > > Hi, > > AddRow and RemoveRow are nice features of AjaxFormLoop, but I would rather > use UpdateRow or SubmitRow functionali

Re: Comment in Tapestry 5 TML

2009-10-22 Thread cordenier christophe
rare case, leave the annotation alone, but include the API change). > > > > On Thu, Oct 22, 2009 at 11:50 AM, cordenier christophe > > wrote: > >> Well i know my Post was about a detail, but generally even if the > problem is > >> really Minor (in our cas

Re: Comment in Tapestry 5 TML

2009-10-22 Thread cordenier christophe
nt class > should be > changed > > On Thu, Oct 22, 2009 at 7:14 PM, cordenier christophe > wrote: > > Hello > > > > We are going into a strange bug with IE :) and hack like > > > > These hacks seems to be not interpreted because Tapestry automatically &

Comment in Tapestry 5 TML

2009-10-22 Thread cordenier christophe
Hello We are going into a strange bug with IE :) and hack like These hacks seems to be not interpreted because Tapestry automatically add a space character between '"); } Actually, it is not required to have space characters but specification does not allow a comment ending in --->. The fol

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 > If I submit a form using javascript in the onclick I get a javas

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 > Apologies if this is obvious, bu

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 > Hi dear, > > I'm running Tapestry 5.1.0.5 on IBM Websphere Portal 6.1 and I have an > error: when cr

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 > Hello! > > Is it possible to change the use locale during the current request? I > tried Persist

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: 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 > Hi, > > I create a resource file name app_zh_TW.properties, and an actionlink > component and > the method persistentLocale.set(Locale.TAIWAN) to

Re: Lifecycle of a tapestry request and the MarkupRendererFilter

2009-10-16 Thread cordenier christophe
l > > Thanks > Ian > > > > -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 > >

Re: Lifecycle of a tapestry request and the MarkupRendererFilter

2009-10-15 Thread cordenier christophe
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"); > > >

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 > 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 a page specific CSS

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 > Hi, > > > > I have been successfully using the CacheControlMarkupRenderer from the > ioko-tapestry-commons >

  1   2   >