about ognl and class changes detection
Hello OGNL is very nice but I would like to know how to manage classes changes without testing every pages. Exemple : In pages we have some ognl expression like value="ognl:user.lastname" and we change the class's property getLastname() to getName(). Every page are broken, And I could not find a nice method to find thoses errors. How do you manage tis case with Tapestry ?? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] Removing Html comments at render time
Hello, Do you know a way to remove Html comments at render time ? I use to put many many comments in html templates, and I would like to not see them in the source code. For exemple, with the Php Smarty template engine you got 'smarty comment' like {* bla bla *} or you can add render_filter which can remove Html comments. Is there a way to do like that with Tapestry ?? Thanks Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] howto re-use component definition
Martino Piccinato a écrit : Great. I did not this copy-of attribute. Sorry, I've to read more carefully the documentation. Thanks a lot Cyrille. On Nov 20, 2007 3:17 PM, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello again, I could not find how to re-use component definition. How can I do if I want to put a link at several places in the page ? For example there is a PageLink definition : But I can't use it several times in the template : Home ... Home Because Tapestry is shooting "contains multiple references to embedded component homeLink". What is the mechanism for re-using component definition ?? Cheers, Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] howto re-use component definition
Hello again, I could not find how to re-use component definition. How can I do if I want to put a link at several places in the page ? For example there is a PageLink definition : But I can't use it several times in the template : Home ... Home Because Tapestry is shooting "contains multiple references to embedded component homeLink". What is the mechanism for re-using component definition ?? Cheers, Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] component Image has no alt parameter
Hello Why the component Image has no 'alt' parameter, but only the 'image'. It should be nice if it got one. It'll avoid the use of ognl expression in html template. Cheers Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] How to get the right DOCTYPE ...
Martino Piccinato a écrit : If you are using Shell component in your border (probably you do) you have to set this parameter for the shell component: http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd""/> note the use of " as you are writing it inside an xml file. It works like that too : literal:html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"; But I've got 2 doctype in the rendered page because the designer put (and have to) a doctype in each template. Cyrille. On Nov 20, 2007 12:16 PM, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello, I could not find how to set the DocType ? My Border component's HTML start like this : http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; title="TestApp" stylesheet="asset:generalCss" jwcid="@Shell" disableCaching="true" consoleEnabled="false" debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true" > ... But when rendering I got that : http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/TR/html4/loose.dtd";> ... ... Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] How to get the right DOCTYPE ...
#Cyrille37# a écrit : #Cyrille37# a écrit : Hello, I could not find how to set the DocType ? Sorry for the noise. It's in the @Shell component. If the designer set a Doctype in the template, and the programmer set the doctype in @Shell, in the rendered page there is 2 doctypes ... is there a solution ? Thanks Cyrille. Cheers Cyrille. My Border component's HTML start like this : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; title="TestApp" stylesheet="asset:generalCss" jwcid="@Shell" disableCaching="true" consoleEnabled="false" debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true" > ... But when rendering I got that : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> "http://www.w3.org/TR/html4/loose.dtd";> ... ... Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] How to get the right DOCTYPE ...
#Cyrille37# a écrit : Hello, I could not find how to set the DocType ? Sorry for the noise. It's in the @Shell component. Cheers Cyrille. My Border component's HTML start like this : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; title="TestApp" stylesheet="asset:generalCss" jwcid="@Shell" disableCaching="true" consoleEnabled="false" debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true" > ... But when rendering I got that : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> "http://www.w3.org/TR/html4/loose.dtd";> ... ... Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] How to get the right DOCTYPE ...
Hello, I could not find how to set the DocType ? My Border component's HTML start like this : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml"; title="TestApp" stylesheet="asset:generalCss" jwcid="@Shell" disableCaching="true" consoleEnabled="false" debugEnabled="false" browserLogLevel="DEBUG" parseWidgets="true" > ... But when rendering I got that : "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> "http://www.w3.org/TR/html4/loose.dtd";> ... ... Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] about cookie and page cycle
Hello, I've found howto set a cookie. I come to you to know more about why setting the cookie in renderPage() works, but not in beginPageRender() ?? Thanks Cyrille = I put my little code here, to archive it in Internet ;-) public abstract class Home extends BasePage { @Override public void renderPage( ResponseBuilder builder, IRequestCycle cycle ) { super.renderPage( builder, cycle ); setCookie("TestCookie", "789"); } @InjectObject("infrastructure:cookieSource") public abstract CookieSource getCookieSource(); void setCookie( String name, String value ) { getCookieSource().writeCookieValue(name, value); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 3 new French Tapestry5 tutorials
Baptiste Meurant a écrit : j'autorise la traduction bien sur et je suis disposé à faire une relecture des tutoriels une fois traduits. Merci. I allow you translating my tutorials. I can read them once translated if you need. Thanks. Hello I think it's a very good thing. When your tutorials will be in english, Tapestry's Guru will be able to make comments, precisions and corrections. Cheers cyrille. Michael Courcy wrote: Si vous m'y autorisez je peux faire la traduction en anglais et la poster sur le wiki, comme je découvre Tapestry 5 mais que je connais Spring et hibernate (ainsi que wtp) ça ne devrait pas poser de souci. If you allow me I would translate it and post on the wiki. As I 'm a newbie in tapestry 5 but already used to Spring and hibernate it should not be a problem. Michael. #Cyrille37# a écrit : Howard Lewis Ship a écrit : Thanks, looks like a great effort. Sorry I've been so swamped about getting your translations on the main web site. Thanks Howard : Here is translation, done with my poor english : [fr] Premier projet avec Tapestry5, Spring et Hibernate : [en] First project with Tapestry5, Spring and Hibernate : http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ [fr] Intégration simple et élégante d'AJAX avec DWR: [en] A nice integration of Ajax with DWR into Tapestry5 : http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ [fr] Sécurisation d'une application Web avec Acegi Security: [en] Securising a web application with ACEGI http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ All of those 3 tutorials have Tapestry5 as Front view On Nov 5, 2007 3:48 AM, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello, Bonjour, There are 3 new tutorials for Tapestry5 in French. Il y a 3 nouveaux tutoriels en français pour Tapestry5. Thanks to Baptiste Meurant ! Merci à Baptiste Meurant ! Premier projet avec Tapestry5, Spring et Hibernate : http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ Intégration simple et élégante d'AJAX avec DWR: http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ Sécurisation d'une application Web avec Acegi Security: http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ I've added them on http://wiki.apache.org/tapestry/TapestryTutorials but it should be nice to add them to http://tapestry.apache.org/articles.html Bye, Salut Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: source code for Screencast #5
#Cyrille37# a écrit : Hello Is someone know where are source code from Screencast #5 ? Ok, I've found it in source tree : tapestry-core\src\test\java\org\apache\tapestry\integration\app1\components Perhaps those test app could be referenced somewhere like examples ;-) Cheers cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 3 new French Tapestry5 tutorials
Howard Lewis Ship a écrit : Thanks, looks like a great effort. Sorry I've been so swamped about getting your translations on the main web site. Thanks Howard : Here is translation, done with my poor english : [fr] Premier projet avec Tapestry5, Spring et Hibernate : [en] First project with Tapestry5, Spring and Hibernate : http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ [fr] Intégration simple et élégante d'AJAX avec DWR: [en] A nice integration of Ajax with DWR into Tapestry5 : http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ [fr] Sécurisation d'une application Web avec Acegi Security: [en] Securising a web application with ACEGI http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ All of those 3 tutorials have Tapestry5 as Front view On Nov 5, 2007 3:48 AM, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello, Bonjour, There are 3 new tutorials for Tapestry5 in French. Il y a 3 nouveaux tutoriels en français pour Tapestry5. Thanks to Baptiste Meurant ! Merci à Baptiste Meurant ! Premier projet avec Tapestry5, Spring et Hibernate : http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ Intégration simple et élégante d'AJAX avec DWR: http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ Sécurisation d'une application Web avec Acegi Security: http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ I've added them on http://wiki.apache.org/tapestry/TapestryTutorials but it should be nice to add them to http://tapestry.apache.org/articles.html Bye, Salut Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
source code for Screencast #5
Hello Is someone know where are source code from Screencast #5 ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 3 new French Tapestry5 tutorials
Michael Bernagou a écrit : Merci :) Je sais pas pourquoi le firewall de ma boite bloque le site... Dommage, car developpez.com est vraiment très bien et très complet. I must pour l'auto-formation des employés ;-) Cyrille. PS : sorry for english reader, but it's some time very hard for me to translate in english when I have a native langage message. I'm so lazy ;-) Le 05/11/07, Michael Courcy <[EMAIL PROTECTED]> a écrit : Bravo et merci. #Cyrille37# a écrit : Hello, Bonjour, There are 3 new tutorials for Tapestry5 in French. Il y a 3 nouveaux tutoriels en français pour Tapestry5. Thanks to Baptiste Meurant ! Merci à Baptiste Meurant ! Premier projet avec Tapestry5, Spring et Hibernate : http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ Intégration simple et élégante d'AJAX avec DWR: http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ Sécurisation d'une application Web avec Acegi Security: http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ I've added them on http://wiki.apache.org/tapestry/TapestryTutorials but it should be nice to add them to http://tapestry.apache.org/articles.html Bye, Salut Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
3 new French Tapestry5 tutorials
Hello, Bonjour, There are 3 new tutorials for Tapestry5 in French. Il y a 3 nouveaux tutoriels en français pour Tapestry5. Thanks to Baptiste Meurant ! Merci à Baptiste Meurant ! Premier projet avec Tapestry5, Spring et Hibernate : http://baptiste-meurant.developpez.com/tutoriaux/tapestry5-spring-hibernate/ Intégration simple et élégante d'AJAX avec DWR: http://baptiste-meurant.developpez.com/tutoriaux/dwr-tapestry5-spring-hibernate/ Sécurisation d'une application Web avec Acegi Security: http://baptiste-meurant.developpez.com/tutoriaux/acegi-dwr-tapestry5-spring-hibernate/ I've added them on http://wiki.apache.org/tapestry/TapestryTutorials but it should be nice to add them to http://tapestry.apache.org/articles.html Bye, Salut Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Thread continuation after client disconnection
Thanks to you two for those ligths. cheers cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Thread continuation after client disconnection
#Cyrille37# a écrit : Hello, I would like to know if there is a option, in the ServletServer or in Tapestry for managing client disconnection. I call "client disconnection" when the client press stop or back or ... while the page is loading. If there is no option, how should we handle the cas ? Sorry to repost, but I'm afraid to have posted a void question. I try to reformulate it in another way : Is client's thread is killed when the client disconnect before full processing of a page, or is the thread finish it's work before dying ? Cyrille. Thanks a lot Cyrille?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thread continuation after client disconnection
Hello, I would like to know if there is a option, in the ServletServer or in Tapestry for managing client disconnection. I call "client disconnection" when the client press stop or back or ... while the page is loading. If there is no option, how should we handle the cas ? Thanks a lot Cyrille?. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HandyTapestry 1.2.1 with Flash demos
Alexei Orishchenko a écrit : The Flash demos are available: - create component with HandyTapestry (create and edit its class and template) - HandyTapestry configuration The plugin update includes fixes in the configuration and page specification handling. Some links please ? thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Tap4.1.2-Ognl2.7]OGNL error
Hello I come on a strange stuff. An ognl expression is well working but I see a Hivemind exception in log. In a html file I affect a value to a property : value="ognl:currentlocaleCode=page.engine.locale.language"/> The property is defined in the specification page : The result works: if I display the value of "currentlocaleCode" I well get the current locale language code So all stuffs seems ok. But while I'm looking at log (in Eclipse console) I can see that the expression evaluation throw a exception : 22953 [http-8080-2] ERROR org.apache.tapestry.services.impl.HiveMindExpressionCompiler - Error generating OGNL statements for expression currentlocaleCode = page.engine.locale.language with root [EMAIL PROTECTED]/$Util$LocaleSelectionFlags] org.apache.hivemind.ApplicationRuntimeException: Unable to add method void set(ognl.OgnlContext, java.lang.Object, java.lang.Object) to class $ASTAssign_11491e63e30: [source error] ; is missing at org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278) at org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:214) at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498) at ognl.Ognl.compileExpression(Ognl.java:141) at org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152) at org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115) at $ExpressionCache_11491e63db9.getCompiledExpression($ExpressionCache_11491e63db9.java) at org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134) at org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) at org.apache.tapestry.AbstractComponent.renderInformalParameters(AbstractComponent.java:290) at org.apache.tapestry.components.Any.renderComponent(Any.java:38) Any Idea ? Why the page and property value are well render without a exception page ? In a previous post Marcus Schulte told me that "The OGNL Expression-Compiler falls back from the new, byte-code generating mode to the old, interpreting mode when an error occurs." and to try with Ognl v2.7. But I'm using Tap4.1.2 which already comes with ognl 2.7. Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Help out Matt Raible: Looking for Web Framework Stories
Howard Lewis Ship a écrit : Matt Raible is looking for stories of how people chose a JVM Web Framework and how it worked out for them. I'd encourage all Tapestry users to drop in with a story or two. http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1 2007/08/31 : only one comment for Tapestry ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 is production ready ?
Hello, This subject is often present in the list... I'm working on a project which has to be in production in 1 month. The business layer is done, and the web part is nearly done with T4.1.2. I've some time left, and every day I'm thinking about changing to T5 ... The only T5 missing part seems to be Ajax. But is T5 is ready for production use ? If yes, there are 5 releases, so which release is production ready ? Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Hivemind / OGNL error
[EMAIL PROTECTED] a écrit : The OGNL Expression-Compiler falls back from the new, byte-code generating mode to the old, interpreting mode when an error occurs. That why I get a well rendered page. Are you using the very latest and greatest OGNL-version? At least, try version 2.7. If the error persists, try 2.7.1-SNAPSHOT. If it's still there you can file a bug for OGNL. I'm using the Tapestry 4.1.2 release and its Ognl package version. Should I try a more recent ognl version with T 4.1.2 ? I'll try. cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] Hivemind / OGNL error
Hello I come on a strange stuff. An ognl expression is well working but I see a Hivemind exception in log. In a html file I affect a value to a property : value="ognl:currentlocaleCode=page.engine.locale.language"/> The property is defined in the specification page : The result works: if I display the value of "currentlocaleCode" I well get the current locale language code So all stuffs seems ok. But while I'm looking at log (in Eclipse console) I can see that the expression evaluation throw a exception : 22953 [http-8080-2] ERROR org.apache.tapestry.services.impl.HiveMindExpressionCompiler - Error generating OGNL statements for expression currentlocaleCode = page.engine.locale.language with root [EMAIL PROTECTED]/$Util$LocaleSelectionFlags] org.apache.hivemind.ApplicationRuntimeException: Unable to add method void set(ognl.OgnlContext, java.lang.Object, java.lang.Object) to class $ASTAssign_11491e63e30: [source error] ; is missing at org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278) at org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:214) at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498) at ognl.Ognl.compileExpression(Ognl.java:141) at org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152) at org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115) at $ExpressionCache_11491e63db9.getCompiledExpression($ExpressionCache_11491e63db9.java) at org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134) at org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) at org.apache.tapestry.AbstractComponent.renderInformalParameters(AbstractComponent.java:290) at org.apache.tapestry.components.Any.renderComponent(Any.java:38) Any Idea ? Why the page and property value are well render without a exception page ? Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] Changing Locale
Hello, I've started a page on the Tapestry wiki which present a component that offer to the visitor to change the site Locale by clicking on a flag. http://wiki.apache.org/tapestry/ChangeLocale There is no explanations, I'll add some next hours and days ... Comments and changes are welcome ! tips: Is it possible to add image in the wiki ? I did not find how to in the HelpOnEditing section... Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] compputing url relative to the context
I've started a page : http://wiki.apache.org/tapestry/ChangeLocale Comments and changes are welcome. cyrille Ulrich Stärk a écrit : If localeItem is the value of your for component, you can put all this into your page class and thus simplify your template. The for component will take care, that getLocaleItem() in your page class will return the actual LocaleItem. getComputeUrl() could be public String getComputeUrl() { String locale = getLocaleItem().getLanguage(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } and then simplify your expression to ognl:computeUrl. It's a question of style but I find it more readable that way. Uli #Cyrille37# schrieb: Ulrich Stärk a écrit : Well, rename computeUrl() to getYouNameIt() and access it using ognl:youNameIt from your template or page specification. I compute the url in the html in a for loop. So the stuff I miss is how to access "infrastructure:contextPath" from ognl. I did this ognl:page.engine.infrastructure.contextPath+'/Public/flags/'+localeItem.language+'.gif' and it's working ! Great. cyrille Uli #Cyrille37# schrieb: Ulrich Stärk a écrit : Let Tapestry inject the infrastructure:contextPath object like @InjectObject("infrastructure:contextPath") public abstract String getContextPath(); Then write some computeUrl method similar to this one (just typed this in, no guarantee that this will work). public String computeUrl() { String locale = getLocale().getCountry().toLowerCase(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } Thank you Ulrich, This is the Java way, what is the Ognl way ? To use in Html and/or Jwc files. Cyrille Cheers, Uli On Mi, 22.08.2007, 01:53, #Cyrille37# sagte: Hello, I could not find how to compute a url ... It is for a component which give the user the possibility to change his locale by clicking on a image (country flags). Urls should be like : /theApp/Public/flags/fr.gif There is 2 dynamics parts : * the application context : /theApp * the available locale code : fr like : /Public/flags/.gif I thought about but it is not possible because path attribute started by "context:" could not use ognl expression. Also thought about currentLoopItem + '.gif' " /> but "page.context" does not exists. I really could not find how to compute the part of urls. Have you got any idea please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] compputing url relative to the context
Ulrich Stärk a écrit : If localeItem is the value of your for component, you can put all this into your page class and thus simplify your template. The for component will take care, that getLocaleItem() in your page class will return the actual LocaleItem. getComputeUrl() could be public String getComputeUrl() { String locale = getLocaleItem().getLanguage(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } and then simplify your expression to ognl:computeUrl. It's a question of style but I find it more readable that way. Thanks for your time and this nice proposition. I'll use your way. Cheers, cyrille Uli #Cyrille37# schrieb: Ulrich Stärk a écrit : Well, rename computeUrl() to getYouNameIt() and access it using ognl:youNameIt from your template or page specification. I compute the url in the html in a for loop. So the stuff I miss is how to access "infrastructure:contextPath" from ognl. I did this ognl:page.engine.infrastructure.contextPath+'/Public/flags/'+localeItem.language+'.gif' and it's working ! Great. cyrille Uli #Cyrille37# schrieb: Ulrich Stärk a écrit : Let Tapestry inject the infrastructure:contextPath object like @InjectObject("infrastructure:contextPath") public abstract String getContextPath(); Then write some computeUrl method similar to this one (just typed this in, no guarantee that this will work). public String computeUrl() { String locale = getLocale().getCountry().toLowerCase(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } Thank you Ulrich, This is the Java way, what is the Ognl way ? To use in Html and/or Jwc files. Cyrille Cheers, Uli On Mi, 22.08.2007, 01:53, #Cyrille37# sagte: Hello, I could not find how to compute a url ... It is for a component which give the user the possibility to change his locale by clicking on a image (country flags). Urls should be like : /theApp/Public/flags/fr.gif There is 2 dynamics parts : * the application context : /theApp * the available locale code : fr like : /Public/flags/.gif I thought about but it is not possible because path attribute started by "context:" could not use ognl expression. Also thought about currentLoopItem + '.gif' " /> but "page.context" does not exists. I really could not find how to compute the part of urls. Have you got any idea please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] compputing url relative to the context
Ulrich Stärk a écrit : Well, rename computeUrl() to getYouNameIt() and access it using ognl:youNameIt from your template or page specification. I compute the url in the html in a for loop. So the stuff I miss is how to access "infrastructure:contextPath" from ognl. I did this ognl:page.engine.infrastructure.contextPath+'/Public/flags/'+localeItem.language+'.gif' and it's working ! Great. cyrille Uli #Cyrille37# schrieb: Ulrich Stärk a écrit : Let Tapestry inject the infrastructure:contextPath object like @InjectObject("infrastructure:contextPath") public abstract String getContextPath(); Then write some computeUrl method similar to this one (just typed this in, no guarantee that this will work). public String computeUrl() { String locale = getLocale().getCountry().toLowerCase(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } Thank you Ulrich, This is the Java way, what is the Ognl way ? To use in Html and/or Jwc files. Cyrille Cheers, Uli On Mi, 22.08.2007, 01:53, #Cyrille37# sagte: Hello, I could not find how to compute a url ... It is for a component which give the user the possibility to change his locale by clicking on a image (country flags). Urls should be like : /theApp/Public/flags/fr.gif There is 2 dynamics parts : * the application context : /theApp * the available locale code : fr like : /Public/flags/.gif I thought about but it is not possible because path attribute started by "context:" could not use ognl expression. Also thought about currentLoopItem + '.gif' " /> but "page.context" does not exists. I really could not find how to compute the part of urls. Have you got any idea please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] compputing url relative to the context
Ulrich Stärk a écrit : Let Tapestry inject the infrastructure:contextPath object like @InjectObject("infrastructure:contextPath") public abstract String getContextPath(); Then write some computeUrl method similar to this one (just typed this in, no guarantee that this will work). public String computeUrl() { String locale = getLocale().getCountry().toLowerCase(); return getContextPath() + "/Public/flags/" + locale + ".gif"; } Thank you Ulrich, This is the Java way, what is the Ognl way ? To use in Html and/or Jwc files. Cyrille Cheers, Uli On Mi, 22.08.2007, 01:53, #Cyrille37# sagte: Hello, I could not find how to compute a url ... It is for a component which give the user the possibility to change his locale by clicking on a image (country flags). Urls should be like : /theApp/Public/flags/fr.gif There is 2 dynamics parts : * the application context : /theApp * the available locale code : fr like : /Public/flags/.gif I thought about but it is not possible because path attribute started by "context:" could not use ognl expression. Also thought about but "page.context" does not exists. I really could not find how to compute the part of urls. Have you got any idea please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] compputing url relative to the context
Hello, I could not find how to compute a url ... It is for a component which give the user the possibility to change his locale by clicking on a image (country flags). Urls should be like : /theApp/Public/flags/fr.gif There is 2 dynamics parts : * the application context : /theApp * the available locale code : fr like : /Public/flags/.gif I thought about but it is not possible because path attribute started by "context:" could not use ognl expression. Also thought about but "page.context" does not exists. I really could not find how to compute the part of urls. Have you got any idea please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Multi Fields validation: How to handle decoration ?
Shing Hing Man a écrit : Have you look at chapter 3 of Kent Tong's book Enjoying Web Development with Tapestry on Tap4 ? In case you did not know, the first 4 chapters are free. http://www.agileskills2.org/EWDT/ mmmh... I read it, but not well. I think I can got the solution after re-read chapter 3 "Errors that don't belong to any input field". You need to use ValidationDelegate to record the component that is in error. It is a bit tricky if you have components in a For loop. http://www.nabble.com/validation-of-fields-within-a-For-component-tf1903417.html#a5215064 I'll have a look. Thanks a lot for your coaching ! ;-) Cheers, Cyrille. Shing --- #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello, For days I looking how to handle multi-fields validation on a form submit on the server-side. The validation needs to know all form's field state. So I can plug my rules in the submit listener but know I could not find how to decorate fields that are not matching rules. Can you give me a start-point, an idea ? Thanks a lot cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Home page : http://www.lombok.demon.co.uk/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] Multi Fields validation: How to handle decoration ?
Hello, For days I looking how to handle multi-fields validation on a form submit on the server-side. The validation needs to know all form's field state. So I can plug my rules in the submit listener but know I could not find how to decorate fields that are not matching rules. Can you give me a start-point, an idea ? Thanks a lot cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] add an include-script element throw a SAX exception
#Cyrille37# a écrit : Hello I don't understand why I get the SAXParseException : The content of element type "script" must match "(include-script*,input-symbol*,(let|set)*,body?,initialization?)". The exception arrived when **I add a include-script element**. The script is : http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>
[T4.1.2] add an include-script element throw a SAX exception
Hello I don't understand why I get the SAXParseException : The content of element type "script" must match "(include-script*,input-symbol*,(let|set)*,body?,initialization?)". The exception arrived when **I add a include-script element**. The script is : http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>Unable to parse file:/D:/evote.java/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/Scrutalys-web-T4/WEB-INF/classes/com/digimedia/scrutalys/web/components/vote/BallotRenderer.script: The content of element type "script" must match "(include-script*,input-symbol*,(let|set)*,body?,initialization?)".... org.apache.tapestry.util.xml.DocumentParseException location:classpath:/com/digimedia/scrutalys/web/components/vote/BallotRenderer.script, line 144, column 10139 ad.setMessage( errors ); 140 ad.show(); 141 } 142 143 144 145 Have you got any idea about that ? thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about T4.1.2 sources in SVN
Martino Piccinato a écrit : No, usually tags are done for "release" and don't change with time. trunk is usually the currently developed (changing) version. version 4.1.2 just released recently so you have tag for 4.1.2 that reflect the source code if this release (and that won't change), as Tapestry 4 is still under active development you find changes from 4.1.2 (latest version) in trunk Thanks a lot for precision, it's what I tought. Just to confirm my knowledge about svn managment (not about Tapestry) : Usually if we want to correct bugs for a released version (which has a Tah) we create a Branche and leave the Trunk for the next version, isn'it ? Cheers cyrille. On 7/26/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Jesse Kuhnert a écrit : > If you want to look at 4.1.2 source use the tag - if you want to look at > whatever the current development version is use trunk. (currently > 4.1.3 but > that will probably change more frequently now) Thanks. Is the Tag 4.1.2 changes ? Like bug correction ? I think the Tag is static and all changes comes to the 4.1.3, isn't it ?? Cheers Cyrille > > On 7/22/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Hello >> >> If I want to have a look at T4.1.2 source code, should I use >> http://svn.apache.org/repos/asf/tapestry/tapestry4/tags/4.1.2 >> or >> http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk >> or >> somewhere else ? >> >> Thanks >> cyrille > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about T4.1.2 sources in SVN
Jesse Kuhnert a écrit : If you want to look at 4.1.2 source use the tag - if you want to look at whatever the current development version is use trunk. (currently 4.1.3 but that will probably change more frequently now) Thanks. Is the Tag 4.1.2 changes ? Like bug correction ? I think the Tag is static and all changes comes to the 4.1.3, isn't it ?? Cheers Cyrille On 7/22/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello If I want to have a look at T4.1.2 source code, should I use http://svn.apache.org/repos/asf/tapestry/tapestry4/tags/4.1.2 or http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk or somewhere else ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] FieldLabel does not works with Radio
Hi, FieldLabel does not works with Radio because it does not descend from IFormComponent, and a search on the [EMAIL PROTECTED] confirm this fact: http://www.nabble.com/Radio-button-labels-tf3083795.html#a8569717 I've done this for a Labeled Radio button: JWC: value="ognl:'vl'+currentList.id+'c'+currentCandidat.id" /> value="ognl:'vl'+currentList.id+'c'+currentCandidat.id" /> HTML: blabla If this solution is nice enough, perhaps it could be added to the documentation of Radio component as a Tips : http://tapestry.apache.org/tapestry4.1/components/form/radio.html Cheers cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] variable in component specification
Igor Drobiazko a écrit : Hi, use 'copy-of' attribute: Using 'copy-of' it is also possible to override some of the bindings of the original component. Thanks a lot Igor. Cheers Cyrille. Igor On 7/26/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hi, What's the way to have something like a variable in component specification ? In those 2 components there is the same ognl expresion in the value attribute. How can I define this expresion only one time ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] variable in component specification
Hi, What's the way to have something like a variable in component specification ? In those 2 components there is the same ognl expresion in the value attribute. value="ognl::'L'+currentList.id+'C'+currentCandidat.id" /> value="ognl:'L'+currentList.id+'C'+currentCandidat.id" /> How can I define this expresion only one time ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] need help on multi-checkbox validation
Perhaps I can present my question in a different way : What's the way to have an inter-fields validation for a form, like if checkboxA and checkboxB are checked, textfieldC must be filled. Should I create a component which it not rendered but it comes for inspecting form's fields to make the validation ? Have you got an idea ? thanks cyrille. #Cyrille37# a écrit : Hello, This days I'm trying to find a way for managing validation between severals checkbox. The need is: there are several checkboxes in a form and each checkbox needs to match rules which exprims dependencies between those checkboxes. For example : you can check this one if you have checked those two others, but only if a third on is not checked. I come here to ask your opinion, ideas and tips on the way you will do it in different layer : server-side validation, client-side validation, a rules manager component or not, is validation can have a view on several component to return error or not ... Please, tell me want idea comes to you about that need. Thanks a lot cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Jesse Kuhnert a écrit : Look at the "How client ids are generated" section here: http://tapestry.apache.org/tapestry4.1/ajax/basics.html It's all covered in excruciating detail. The gist of it is that you do this: public void renderSomething(){ super.renderIdAttribute(writer, cycle); } and everything else gets handled for you. Thanks a lot cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: j_security_check in tapestry
Alexa22 a écrit : Hi, I have a problem, I'm developing a Tapestry's aplication and I need to active the security in there, but the page is autenticated by WAS (WebShere Application Server) and LDAP, When the user is already authenticate, Is Tapestry running on the WAS ? If yes, have a look at Authentication auth = SecurityContextHolder.getContext().getAuthentication(); To retrieve current credentials. cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] need help on multi-checkbox validation
Hello, This days I'm trying to find a way for managing validation between severals checkbox. The need is: there are several checkboxes in a form and each checkbox needs to match rules which exprims dependencies between those checkboxes. For example : you can check this one if you have checked those two others, but only if a third on is not checked. I come here to ask your opinion, ideas and tips on the way you will do it in different layer : server-side validation, client-side validation, a rules manager component or not, is validation can have a view on several component to return error or not ... Please, tell me want idea comes to you about that need. Thanks a lot cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Igor Drobiazko a écrit : Well, your component looks somehow strange to me. I don't see what it should do. However id="checkbox" is written when your contained checkbox is rendered. That's expected behavior. Your own component does nothing except registering to the group. So why do you expect id="ckL1"? Because it will do something soon ... :-) Perhaps it is not a good practice to force the clientId for a component. Thanks for your time ! cyrille On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Igor Drobiazko a écrit : > It is inpossible to help you without having a look into your > GroupableCheckbox.java and GroupableCheckbox.html > Please post it. Ha! That's another story, a more complex problem ;-) After relearned Ids concept, I can talk to you about the component GroupableCheckbox which I try to construct. The rendered version of the concept/need is looking like (where "x" are checkboxes) : x List1 x List1Choice1 x List1Choice2 x List2 x List2Choice1 x List2Choice2 With those constraints : 1/ you can select list's choices only in the selected list. eg: is List1 is selected you can choice List1Choice1 or List1Choice2 but not List2Choice1 or List2Choice2 2/ The validation must be done on the client-side *without* any communication with the server, but the validation has to exist on the server to check validity at form's submit. 3/ I do not want to have encapsulation of component html tags like the CheckboxGroup component do. This constraint is to let free html designer. I've not yet many sources to show because I've to learning and find many stuff to complete this 3 constraints. At first I've to verify that the third constraint is possible ... For da moment I've got : TestGroupableCheckbox.html : L1 L1C1 L1C2 L1C3 GroupableCheckbox.html : GroupableCheckbox.jwc : http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";> A checkbox whose state may be controlled/validated by an other checkbox which acting as a checkbox group controler. Specifies the GroupableCheckbox this component belongs to. And the UGLY java file. I'm just at the time of tracing all calls to learn more on cycle... GroupableCheckbox.java : public abstract class GroupableCheckbox extends BaseComponent { public abstract Object getGroup(); public abstract Collection getSubCheckboxesId() ; public void registerSubCheckbox( GroupableCheckbox groupableCheckbox) { getSubCheckboxesId().add( groupableCheckbox ); } protected void renderComponent( IMarkupWriter writer, IRequestCycle cycle ) { log.info( "*** renderComponent()" ); log.info( "getBoundId: "+this.getBoundId() ); log.info( "id: "+this.getId()+", clientId: "+this.getClientId()+", specifiedId: "+this.getSpecifiedId() ); log.info( "getIdPath: "+this.getIdPath() + ", getExtendedId: "+this.getExtendedId() ); Object group = this.getGroup(); log.info( "group: "+group ); if( group != null ) { ((GroupableCheckbox)group).registerSubCheckbox( this ); } super.renderComponent( writer, cycle ); } ... ... Overrided methods with log.info("methodName") ... } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Igor Drobiazko a écrit : It is inpossible to help you without having a look into your GroupableCheckbox.java and GroupableCheckbox.html Please post it. Ha! That's another story, a more complex problem ;-) After relearned Ids concept, I can talk to you about the component GroupableCheckbox which I try to construct. The rendered version of the concept/need is looking like (where "x" are checkboxes) : x List1 x List1Choice1 x List1Choice2 x List2 x List2Choice1 x List2Choice2 With those constraints : 1/ you can select list's choices only in the selected list. eg: is List1 is selected you can choice List1Choice1 or List1Choice2 but not List2Choice1 or List2Choice2 2/ The validation must be done on the client-side *without* any communication with the server, but the validation has to exist on the server to check validity at form's submit. 3/ I do not want to have encapsulation of component html tags like the CheckboxGroup component do. This constraint is to let free html designer. I've not yet many sources to show because I've to learning and find many stuff to complete this 3 constraints. At first I've to verify that the third constraint is possible ... For da moment I've got : TestGroupableCheckbox.html : L1 value="L1" /> L1C1value="0" group="component:ckL1" /> L1C2value="ognl:null" group="component:ckL1" /> L1C3group="component:ckL1" /> GroupableCheckbox.html : GroupableCheckbox.jwc : http://tapestry.apache.org/dtd/Tapestry_4_0.dtd";> A checkbox whose state may be controlled/validated by an other checkbox which acting as a checkbox group controler. Specifies the GroupableCheckbox this component belongs to. inherit-informal-parameters="yes"> And the UGLY java file. I'm just at the time of tracing all calls to learn more on cycle... GroupableCheckbox.java : public abstract class GroupableCheckbox extends BaseComponent { public abstract Object getGroup(); public abstract Collection getSubCheckboxesId() ; public void registerSubCheckbox( GroupableCheckbox groupableCheckbox) { getSubCheckboxesId().add( groupableCheckbox ); } protected void renderComponent( IMarkupWriter writer, IRequestCycle cycle ) { log.info( "*** renderComponent()" ); log.info( "getBoundId: "+this.getBoundId() ); log.info( "id: "+this.getId()+", clientId: "+this.getClientId()+", specifiedId: "+this.getSpecifiedId() ); log.info( "getIdPath: "+this.getIdPath() + ", getExtendedId: "+this.getExtendedId() ); Object group = this.getGroup(); log.info( "group: "+group ); if( group != null ) { ((GroupableCheckbox)group).registerSubCheckbox( this ); } super.renderComponent( writer, cycle ); } ... ... Overrided methods with log.info("methodName") ... } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Igor Drobiazko a écrit : Cyrille, please provide your sources. Otherwise we have to use our glass sphere :) But I do not need to debug my source, I just need more memory ;-) I do not remember some tapestry syntax. I think I'm handsaking component's ids in my brain. Is that syntax definition right ? Before kiuma's answer I tought : where Id should be used as clientId. but it's wrong, ins't it ? thanks cyrille On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Andrea Chiumenti a écrit : > ciao, > the fact is that tapestry uses the form form['componentname'] , so > for > Tapestry name is sufficient to specify ur id u should use > id="clientId:yourComponentId". But why the shortest way jwcid="[EMAIL PROTECTED]" does not create a html element with a id="myCompId" ? Perhaps there are not same ids : clientId <> tapestryId ? Is that right ? cyrille > > Hope this helps. > > kiuma > > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: >> >> Hello >> I'm writing my first "complex" component : GroupableCheckbox (not same >> behaviors as CheckboxGroup). >> >> The question is about the component id. To define the id of the >> component I think to use the text before the @ in the jwcid but it does >> work, I had to add an id attribute : >> >> does not write my defined id : >> >> render is : >> > id="checkbox" /> >> >> does works : >> >> render is : >> >> >> >> What the reason ? The theory ? >> Thanks for your explanation. >> cyrille >> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about component id
Andrea Chiumenti a écrit : ciao, the fact is that tapestry uses the form form['componentname'] , so for Tapestry name is sufficient to specify ur id u should use id="clientId:yourComponentId". But why the shortest way jwcid="[EMAIL PROTECTED]" does not create a html element with a id="myCompId" ? Perhaps there are not same ids : clientId <> tapestryId ? Is that right ? cyrille Hope this helps. kiuma On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello I'm writing my first "complex" component : GroupableCheckbox (not same behaviors as CheckboxGroup). The question is about the component id. To define the id of the component I think to use the text before the @ in the jwcid but it does work, I had to add an id attribute : does not write my defined id : render is : does works : render is : What the reason ? The theory ? Thanks for your explanation. cyrille - 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]
[T4] about component id
Hello I'm writing my first "complex" component : GroupableCheckbox (not same behaviors as CheckboxGroup). The question is about the component id. To define the id of the component I think to use the text before the @ in the jwcid but it does work, I had to add an id attribute : does not write my defined id : render is : id="checkbox" /> does works : render is : What the reason ? The theory ? Thanks for your explanation. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] Checkbox group and validation
Hello, I need to make a component for validating several checkbox on server-side and client-side. I'm looking at the source of contrib:CheckboxGroup and friends. In this compoent I've found the client-side behavior and some server-side stuff (sub components managment). Do you know another source of help about component group ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Is there Client side validation for @RadioGroup ?
[EMAIL PROTECTED] a écrit : Looks like a bug to me. If you file a JIRA-issue for it, I'll have a closer look Thanks a lot. Here is the newly created Jira : https://issues.apache.org/jira/browse/TAPESTRY-1663 Cyrille. -Original Message- From: #Cyrille37# [mailto:[EMAIL PROTECTED] Sent: Monday, July 23, 2007 12:31 PM To: users@tapestry.apache.org Subject: Re: [T4.1.2] Is there Client side validation for @RadioGroup ? #Cyrille37# a écrit : #Cyrille37# a écrit : For the TextField the client-side validation works, but for @RadioGroup only the server-side validation is called, no client-side event occured. For precision here is following the code at the end of the generated html page. In that code we can see that there is some client-side-validation for the @TextField "text01" and for the @RadioGroup "radioGroup01". But when submiting the form the client-side-validation for "text01" is triggered, but none for "radioGroup01". <!-- dojo.addOnLoad(function(e) { dojo.require("tapestry.form");tapestry.form.registerForm("theForm"); tapestry.form.focusField('text01'); tapestry.form.clearProfiles('theForm'); tapestry.form.registerProfile('theForm', {"required":["text01","radioGroup01"], </pre><tt>"text01":{"required":["Vous devez entrer une valeur pour Le Text </tt><tt>01."]}, "radioGroup01":{"required":["Vous devez entrer une </tt><tt> </tt></blockquote><tt>valeur pour </tt><tt> </tt><blockquote style="border-left: #EE solid 0.2em; margin: 0em; padding-left: 0.85em"><pre style="margin: 0em;"> Le RadioGroup 01."]} });}); // --> The @RadioGroup makes @Radio got the same "name" attribute but unique "id" attribute. Perhaps we have to hack tapestry.form.validation to get client-side validation working ?? Any tips or idea about that ? Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Is there Client side validation for @RadioGroup ?
#Cyrille37# a écrit : #Cyrille37# a écrit : For the TextField the client-side validation works, but for @RadioGroup only the server-side validation is called, no client-side event occured. For precision here is following the code at the end of the generated html page. In that code we can see that there is some client-side-validation for the @TextField "text01" and for the @RadioGroup "radioGroup01". But when submiting the form the client-side-validation for "text01" is triggered, but none for "radioGroup01". <!-- dojo.addOnLoad(function(e) { dojo.require("tapestry.form");tapestry.form.registerForm("theForm"); tapestry.form.focusField('text01'); tapestry.form.clearProfiles('theForm'); tapestry.form.registerProfile('theForm', {"required":["text01","radioGroup01"], "text01":{"required":["Vous devez entrer une valeur pour Le Text 01."]}, </pre><tt>"radioGroup01":{"required":["Vous devez entrer une valeur pour Le </tt><tt>RadioGroup 01."]} </tt><pre style="margin: 0em;"> });}); // --> The @RadioGroup makes @Radio got the same "name" attribute but unique "id" attribute. Perhaps we have to hack tapestry.form.validation to get client-side validation working ?? Any tips or idea about that ? Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Is there Client side validation for @RadioGroup ?
#Cyrille37# a écrit : #Cyrille37# a écrit : For the TextField the client-side validation works, but for @RadioGroup only the server-side validation is called, no client-side event occured. For precision here is following the code at the end of the generated html page. In that code we can see that there is some client-side-validation for the @TextField "text01" and for the @RadioGroup "radioGroup01". But when submiting the form the client-side-validation for "text01" is triggered, but none for "radioGroup01". <!-- dojo.addOnLoad(function(e) { dojo.require("tapestry.form");tapestry.form.registerForm("theForm"); tapestry.form.focusField('text01'); tapestry.form.clearProfiles('theForm'); tapestry.form.registerProfile('theForm', {"required":["text01","radioGroup01"], "text01":{"required":["Vous devez entrer une valeur pour Le Text 01."]}, </pre><tt>"radioGroup01":{"required":["Vous devez entrer une valeur pour Le </tt><tt>RadioGroup 01."]} </tt><pre style="margin: 0em;"> });}); // --> So, after thinking a bit more (do not laught please ;-) ... The "radioGroup01"'s validation could not work because there is not html element for it. Only @Radio got a html element. After reading the javascript code tapestry.form.validation I do not see anything that match with the @RadioGroup specific needs. Perhaps it miss ? I continue to investigate, while the weekend ending and people coming back to their keyboard. ;-) cheers cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Is there Client side validation for @RadioGroup ?
#Cyrille37# a écrit : For the TextField the client-side validation works, but for @RadioGroup only the server-side validation is called, no client-side event occured. For precision here is following the code at the end of the generated html page. In that code we can see that there is some client-side-validation for the @TextField "text01" and for the @RadioGroup "radioGroup01". But when submiting the form the client-side-validation for "text01" is triggered, but none for "radioGroup01". <!-- dojo.addOnLoad(function(e) { dojo.require("tapestry.form");tapestry.form.registerForm("theForm"); tapestry.form.focusField('text01'); tapestry.form.clearProfiles('theForm'); tapestry.form.registerProfile('theForm', {"required":["text01","radioGroup01"], "text01":{"required":["Vous devez entrer une valeur pour Le Text 01."]}, </pre><tt>"radioGroup01":{"required":["Vous devez entrer une valeur pour Le </tt><tt>RadioGroup 01."]} </tt><pre style="margin: 0em;"> });}); // --> Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] Is there Client side validation for @RadioGroup ?
Hello, it looks like that there is no client-side validation for @RadioGroup. For the TextField the client-side validation works, but for @RadioGroup only the server-side validation is called, no client-side event occured. Is it normal ? Have I to look some where for more information ? thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] Shell and Border ok but ...
Thanks a lot Chris, Now how can I add a Page.html specific stylesheet ? If the border define the use of a stylesheet with the @Shell like : Border.html: ... How the Page.html could add a specific stylesheet because it's won't be used, so how to ? Thanks cyrille. Chris Lewis a écrit : Remember that by default a component's body is the whole template, unless you use the special component it $content$, in which case everything /inside/ the element with this jwcid will be used and all else ignored. So for your border component use valid html instead of the invalid bit you currently have: Border.html: consoleEnabled="true" debugEnabled="true" browserLogLevel="DEBUG"> ** This is the page content. Page.html: ... ** ... #Cyrille37# wrote: Hello I got a @Border with a @Shell to get all stuff common for all pages. It's working but ... All that around the are not compatible with HTML, so wysiwyg editor are not happy. Perhaps I've miss some knwoledge ? The Boder.html : ... consoleEnabled="true" debugEnabled="true" browserLogLevel="DEBUG"> ... This is the page content. A tipycal page.html : ... ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
about T4.1.2 sources in SVN
Hello If I want to have a look at T4.1.2 source code, should I use http://svn.apache.org/repos/asf/tapestry/tapestry4/tags/4.1.2 or http://svn.apache.org/repos/asf/tapestry/tapestry4/trunk or somewhere else ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] attributes namescape like T5 has
Jesse Kuhnert a écrit : I don't know.. You are welcome to give it a try if you like. =) Have you got some tips to help me starting an investigation ? thanks cyrille. On 7/20/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello, Should it be a hard work to add namescape for tapestry 4.1.x attributes, like with T5. My question comes because of Eclipse warnings about invalid HTML : Undefined attribute name (jwcid). Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Fwd: Re: T5 Border Component]
Jordan Howarth a écrit : My apologies but my last sentence is actually incorrect: "In this case, the 'Border' ... ". Probably a mixture of sleep deprivation and wishful thinking. The behaviour is exactly as described in the documentation. To that end, I would like to know if their is an equivalent to $content$ in T5? on 2007-06-27 Howard answered : Existing feature request in JIRA, but not yet implemented. But I did not find this JIRA entry. Perhaps we should create one with the keyword "$content$" in the Jira entry's summary ? cyrille Thanks, J. Original Message Subject:Re: T5 Border Component Date: Sat, 21 Jul 2007 02:56:56 +1000 From: Jordan Howarth <[EMAIL PROTECTED]> To: users@tapestry.apache.org References: <[EMAIL PROTECTED]> Hi Peter I was not aware of a core border component in T4 although I am happy to be corrected. Regardless, in T5 you have the Tapestry Element which, as described in the documentation (http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html), is an analogue of @RenderBody from T4. The example in the documentation shows the layout component operating as the root node of the containing page which is fine if you are a minimalist. However if you appreciate being able to validate the html of your page templates, you can finds examples of a "Border" component being declared in the node of page templates, e.g. the testing source code (v5.0.5). In this case, the "Border" component behaves in a way that is similar to what occurred under T4 when the body element of a containing page template was marked with jwcid="$content$". J. Peter Stavrinides wrote: Will the border component be re-introduced in Tapestry 5, if not how can I achieve a similar effect? - 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]
Re: IRC
Evan Rawson - Work a écrit : wow IRC, looks like i got another reason to download mIRC again. ill definatly be on that channel. If you use Firefox there is the ChatZilla plugin. Easy to use and it handle irc:// links - Original Message - From: "Chris Lewis" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Friday, July 20, 2007 9:16 AM Subject: IRC Dear mailing list, I'm sure you've probably received messages like this before, but I wanted to reiterate that there is an IRC channel for tapestry: #tapestry @ irc.freenode.net. There's usually 5 ~ 8 of us in there, and we work/talk about Tapestry. I know some people just dont do IRC, but if you're interested in talkingin realish time with some tapestry people, come check it out. chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] Shell and Border ok but ...
Joe Trewin a écrit : Try changing the to a ... (Tapestry doesn't care what it is, and spans have inline layout meaning that they can only contain other inline tags - div is a block element, so it can). Thanks a lot. I've just try with Eclipse3.3 and it complains : Invalid location of tag (div). I will try with DreamWeaver... cheers, cyrille -Original Message----- From: #Cyrille37# [mailto:[EMAIL PROTECTED] Sent: 20 July 2007 17:14 To: Tapestry users Subject: [T4] Shell and Border ok but ... Hello I got a @Border with a @Shell to get all stuff common for all pages. It's working but ... All that around the are not compatible with HTML, so wysiwyg editor are not happy. Perhaps I've miss some knwoledge ? The Boder.html : ... consoleEnabled="true" debugEnabled="true" browserLogLevel="DEBUG"> ... This is the page content. A tipycal page.html : ... ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] Shell and Border ok but ...
Hello I got a @Border with a @Shell to get all stuff common for all pages. It's working but ... All that around the are not compatible with HTML, so wysiwyg editor are not happy. Perhaps I've miss some knwoledge ? The Boder.html : ... consoleEnabled="true" debugEnabled="true" browserLogLevel="DEBUG"> ... This is the page content. A tipycal page.html : ... ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IRC
Chris Lewis a écrit : Dear mailing list, I'm sure you've probably received messages like this before, but I wanted to reiterate that there is an IRC channel for tapestry: #tapestry @ irc.freenode.net. There's usually 5 ~ 8 of us in there, and we work/talk about Tapestry. I know some people just dont do IRC, but if you're interested in talkingin realish time with some tapestry people, come check it out. Ho. Great. I come ! cyrille chris - 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]
[T4] sharing date between @Border and pages
Hello, My Pages extends MyBasePage which has the method getUser() which return an User object which has a login property. What the best way (design/efficiency) to display in the @Border the property user.login ? Should Pages set a @Border's property or @Border should ask to Pages for the user ? Have you got some best practice about @Border ? Thanks a lot Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] attributes namescape like T5 has
Hello, Should it be a hard work to add namescape for tapestry 4.1.x attributes, like with T5. My question comes because of Eclipse warnings about invalid HTML : Undefined attribute name (jwcid). Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry5HowTos new snippet
Davor Hrg a écrit : Fidel Chavarria asked for a solution to inline dynamic image he needed for a chart component... I tried doing it, and added the snippet to Tapestry5HowTos: http://wiki.apache.org/tapestry/Tapestry5HowTos the example is placed at: http://wiki.apache.org/tapestry/Tapestry5HowToCreateASimpleGraphComponent hope it helps someone :) Thanks a lot. It demonstrate the power of Tapestry ! In a line of code, Tapestry got da Power ! Really impressing ! Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] T4 $content$ equivalent for T5 ?
Hello, In a old post I asked a question about the T5's component html (subject was: [T5] about component's html). Now I now the T4 equivalent : the $content$ attribute define which part of the component will be rendered in the parent component/page. Howard answered to me that there is a JIRA about that, but I do not find it. Is this improvement exists now ? Thanks Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 tutorial
Read again Olasoji Ajayi's mail : I am new to T5, can anyone point me to some tutorial on T5 that I can download, I know there is documentation online but I don't have regular internet access for the moment. He need some Off-Line doc. Perhaps he can make a book with "htmldoc" tool. cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry make me feel happy !
Eko S.W. a écrit : I just want to ask one question, but why not T5? I just try Tap too, and I do straight coding in T5 (to my opinion, because it is the latest, and it should be the only choice) Is the current T5 can not do the same ? Of course, T5 is better, but not finished ... I've try T5.0.5 and it was great. But some of my needs were not implemented, some bugs persists and documentation is on the road. Shure if I was more experimented with Java, I choice T5. May be in few months. Cheers cyrille Thank you in advance! 2007/7/4, #Cyrille37# <[EMAIL PROTECTED]>: Hi, I spent a lot of time for discovering the Java World. After used Php, C++ and C# for years, this new learning adventure need a lot of energy. But today Tapestry make my feel really Happy ! Yesterday I started a fresh project with Tapestry 4.1.2, Acegi, Hibernate3, Spring2, Tomcat6, Eclipse3.3, and tonight I've just finished a Hivemind service to server Json-RPC calls (http://oss.metaparadigm.com/jsonrpc/) to give access to the application from some Java Applet and other stuff. Great, it's working ! Thank you very much to the Tapestry Team and other people from this mailing list. Thanks you all ! Best regards, Cyrille. PS: in 1 month I will have to hard test all of that in a cluster environment, I think the adventure will restart ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tapestry make me feel happy !
Hi, I spent a lot of time for discovering the Java World. After used Php, C++ and C# for years, this new learning adventure need a lot of energy. But today Tapestry make my feel really Happy ! Yesterday I started a fresh project with Tapestry 4.1.2, Acegi, Hibernate3, Spring2, Tomcat6, Eclipse3.3, and tonight I've just finished a Hivemind service to server Json-RPC calls (http://oss.metaparadigm.com/jsonrpc/) to give access to the application from some Java Applet and other stuff. Great, it's working ! Thank you very much to the Tapestry Team and other people from this mailing list. Thanks you all ! Best regards, Cyrille. PS: in 1 month I will have to hard test all of that in a cluster environment, I think the adventure will restart ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] Acegi integration
Sébastien, Perhaps it would not help (Im' so beginer) : perhaps pages are loaded before a HttpRequest exists, just the time for Tapestry to add some code decoration. cyrille Deleuze Sébastien a écrit : Hi again, During our login process, in org.apache.tapestry.internal.services.InternalModule,buildCookieSource(), the first time we load our page, _requestGlobals.getHTTPServletRequest() return null, so _requestGlobals.getHTTPServletRequest().getCookies(); throw a NPE. The second time everything is ok. Our web.xml is : Acegi Security Filter /* Hibernate Session In View Filter /* app /* Someone can help us ? Sébastien Deleuze _ De : Deleuze Sébastien Envoyé : mardi 3 juillet 2007 18:04 À : users@tapestry.apache.org Objet : [T5] Acegi integration Hi, We would like to use Acegi with tapestry 5, but we see a NPE (we put Acegi filter before Tapestry 5 filter (for security reason). If someone has successfully integrated Aceji with T5, can he send us his web.xml ? We would like to see how filters are defined. You will find bellow the stacktrace : java.lang.NullPointerException at org.apache.tapestry.internal.services.InternalModule$2.getCookies(InternalModule.java:364) at $CookieSource_1138ccba180.getCookies($CookieSource_1138ccba180.java) at org.apache.tapestry.internal.services.CookiesImpl.readCookieValue(CookiesImpl.java:58) at $Cookies_1138ccba17f.readCookieValue($Cookies_1138ccba17f.java) at org.apache.tapestry.services.PersistentLocaleImpl.getCookieValue(PersistentLocaleImpl.java:50) at org.apache.tapestry.services.PersistentLocaleImpl.get(PersistentLocaleImpl.java:44) at $PersistentLocale_1138ccba17e.get($PersistentLocale_1138ccba17e.java) at org.apache.tapestry.internal.services.LocalizationSetterImpl.setThreadLocale(LocalizationSetterImpl.java:98) at $LocalizationSetter_1138ccba17b.setThreadLocale($LocalizationSetter_1138ccba17b.java) at org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:41) at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java) at org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:628) at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java) at org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:63) at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java) at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91) at org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82) at org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77) at org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104) at $RequestHandler_1138ccba17d.service($RequestHandler_1138ccba17d.java) at $RequestHandler_1138ccba175.service($RequestHandler_1138ccba175.java) at org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java:1022) at $HttpServletRequestHandler_1138ccba174.service($HttpServletRequestHandler_1138ccba174.java) at org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:115) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040) at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286) at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275) at org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149) at org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1040) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:352) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:230) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:627) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:123) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:141) at org.mortbay.jetty.Server.handle(Server.java:286) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:444) at or
Re: [T4] Login.html as the Login and Failed page for Acegi
Alejandro Scandroli a écrit : Salut Cyrille This trick has two parts: 1) the acegi configuration: class="org.acegisecurity.ui.webapp.AuthenticationProcessingFilter"> ref="authenticationManager"/> value="/Login.page?login_error=1"/> value="/j_acegi_security_check"/> The important property here is "authenticationFailureUrl", pay attention to the added parameter "?login_error=1" after the login page name. 2) Then in your login page you check if the "login_error" parameter exist. value="message:org.trails.login.error">Error: Wrong Username or Password Thanks you Alejandro ! Of course it's help ;-) It's so simple that it is powerful. But if someone has another idea, that will be managing "inside" Tapestry ... It will be a good way for learning more about Tapestry. Cheers cyrille I hope this helps. Alejandro. On 7/3/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Ken nashua a écrit : > Here is a sample working login... > > Best I can provide at this point. > > public abstract class LoginPage extends BasePage { > > private static final Log LOG = LogFactory.getLog(LoginPage.class); > > public abstract String getUsername(); > > public abstract String getPassword(); > > public void login(IRequestCycle cycle) throws RedirectException { > > LOG.debug("User " + getUsername() + " is attempting login."); > > String acegiUrl = > cycle.getAbsoluteURL("/j_acegi_security_check?j_username=" + > getUsername() + "&j_password=" + getPassword()); > > throw new RedirectException(acegiUrl); > } > } > Thanks but it is not what I need. And in my post there was exactly the same code (for login method). What I would like to find is how to distinguish between an arrival on the Login page for login against an arrival because login failed while I'm using the same page for Acegi parameters AuthenticationProcessingFilterEntryPoint.loginFormUrl (Login) and AuthenticationProcessingFilter.authenticationFailureUrl (LoginFailed) cheers cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] Login.html as the Login and Failed page for Acegi
Ken nashua a écrit : Here is a sample working login... Best I can provide at this point. public abstract class LoginPage extends BasePage { private static final Log LOG = LogFactory.getLog(LoginPage.class); public abstract String getUsername(); public abstract String getPassword(); public void login(IRequestCycle cycle) throws RedirectException { LOG.debug("User " + getUsername() + " is attempting login."); String acegiUrl = cycle.getAbsoluteURL("/j_acegi_security_check?j_username=" + getUsername() + "&j_password=" + getPassword()); throw new RedirectException(acegiUrl); } } Thanks but it is not what I need. And in my post there was exactly the same code (for login method). What I would like to find is how to distinguish between an arrival on the Login page for login against an arrival because login failed while I'm using the same page for Acegi parameters AuthenticationProcessingFilterEntryPoint.loginFormUrl (Login) and AuthenticationProcessingFilter.authenticationFailureUrl (LoginFailed) cheers cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] Login.html as the Login and Failed page for Acegi
Hello, After many mails on that list and many read on the web I get something running (Tap4.1.2, Spring2, Hibernate3, Acegi, Json-Rpc). Ouf ! I would like to make only one page for Login and LoginFailed but I could not find how the Login page can know that it is coming back from the ACEGI url /j_acegi_security_check. I've got a easy Login class : ... public void login( IRequestCycle cycle ) throws RedirectException { if (!getDelegate().getHasErrors()) { String acegiUrl = cycle.getAbsoluteURL( "/j_acegi_security_check?" + "j_username=" + getUsername() + "&j_password=" + getPassword() ) ; throw new RedirectException( acegiUrl ) ; } } ... So, which feature to use by the Login page to know if the request is from the user (for Login request) or from Acegi (Login failed) ? Thanks a lot cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to reference property value ? quiz question please.
Ken nashua a écrit : I declared an id to a widget and trying to reference a property of that widget further below in html. Here is the code.. title="ognl:page.components.headComponent.title" stylesheet="ognl:assets.stylesheet"> value="ognl:page.components.headComponent.title"/> The widget in question is headComponent... Now the widget CustomHead has no problem referencing ognl:page.components.headComponent.title but thereafter down below in html... it fails nosuchproperty value="ognl:page.components.headComponent.title"/> Did you try or - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4.1.2] Honeycomb or Tapernate ?
#Cyrille37# a écrit : Hi, After hard work and neuronal sport, I come to the moment where I to implement a real database access and replace my fake data objects. So I can see there is 2 Hibernate/Tapestry4 integration project. Have you got some comments to help me make the choice ? Sorry to have posted to quickly. The answer is on the list's archive. http://www.mail-archive.com/[EMAIL PROTECTED]/msg17803.html Cheers Cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] Honeycomb or Tapernate ?
Hi, After hard work and neuronal sport, I come to the moment where I to implement a real database access and replace my fake data objects. So I can see there is 2 Hibernate/Tapestry4 integration project. Have you got some comments to help me make the choice ? Thanks Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] documentation about @Radio and @FieldLabel in a @For loop
#Cyrille37# a écrit : Hi, I think it miss some documentation about @Radio and @FieldLabel in a @For loop. While reading the T4 documentation I could not make working those component together. I've finally found the solution here : "Radio button labels" http://www.nabble.com/forum/ViewPost.jtp?post=8570558&framed=y I've added a Jira entry : https://issues.apache.org/jira/browse/TAPESTRY-1620 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] documentation about @Radio and @FieldLabel in a @For loop
Hi, I think it miss some documentation about @Radio and @FieldLabel in a @For loop. While reading the T4 documentation I could not make working those component together. I've finally found the solution here : "Radio button labels" http://www.nabble.com/forum/ViewPost.jtp?post=8570558&framed=y Perhaps someone can add this Tips in the FieldLabel documentation page. Cheers cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4] about JSON in Tapestry
Igor Drobiazko a écrit : Hi, in tapestry JSON is used to render the asynchronous response to the client. Lets say you have an ajax component which has some javascript. The component provides needed data for its javascript via JSON. I'm not sure whether it is your scenario but you could have a look at: http://tapestry.apache.org/tapestry4.1/ajax/json.html Thanks, I'll try to make a page/component which live like those ajax enabled components. cyrille. br, Igor On 7/2/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hi, I can see that JSon is implemented in Tapestry4.1.x (IJSONRender,ResponseBuilder) Today I use JSon for communicate between Java Applet and WebApp, I've go a Servlet that make the bridge from JSon call to the WebApp via some Spring Beans. Perhaps I can stop to use this Servlet and manage JSon exchanges directly with Tapestry but I do not know where to start. Can you give me some points please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] about JSON in Tapestry
Hi, I can see that JSon is implemented in Tapestry4.1.x (IJSONRender,ResponseBuilder) Today I use JSon for communicate between Java Applet and WebApp, I've go a Servlet that make the bridge from JSon call to the WebApp via some Spring Beans. Perhaps I can stop to use this Servlet and manage JSon exchanges directly with Tapestry but I do not know where to start. Can you give me some points please ? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] ognl: inner component refer container component
Hi, There is a component which contains an inner component. In the inner component I try to refer a property defined in the container component. It works in the inner component html : but it doesn't works in the inner component jwc specification file : initial-value="ognl:container.currentList" /> in the html file the "currentList" property is empty . Any correction for me please ? Thanks a lot cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Thanks Erik for updates on T5 Wiki !
Thanks a lot Erik for your work on Tapestry5 's wiki. http://wiki.apache.org/tapestry/?action=fullsearch&value=Tapestry5&titlesearch=Titles Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] a component select its template dynamicly (one class, several html)
Hi, I would like a component which can select its template. In another way, one component class with several html templates. The component has to look at his state and then select which template will be used. I could solution the problem with some @If in a single template but it will result in a very very long template which won't be easy to edit in a wysiwyg editor. Have you got some solutions or ideas to do that why Tapestry 4.1.2 ? Thanks cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] class transformation to override an annotated method
Dan Adams a écrit : @Once public List getFoos() { // do some expensive operation like reading foos from the db } Could you please give us the your @Once annotation source code ? My 2 reasons are : - I'm learning Java so I'll like to see how to write such annotation - It is a really great idea !! But do not feel obliged of course ;-) Cheers, Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4.1.2] and Spring: works with Tomcat, fail with Jetty
Hi, I'm just doing some very simples tests with - Tapestry 4.1.2 - Spring 2.0.5 - Tapestry-spring-1.0.0 and - Tomcat 5.5.23 - Jetty 5.1.12 I've got a simple session bean defined in SpringContext and I inject it in a page. spring: class="tapandspring.beans.NanoBean" scope="session" /> java : @InjectSpring("myLittleNanoBeanSession") public abstract NanoBean getBean1(); html: TOMCAT : - If I run with Tomcat the bean is well injected in the page. JETTY : - but when running whith Jetty it could not inject the session bean the error is : No thread-bound request found: Are you referring to request attributes outside of an actual web request? If you are actually operating within a web request and still receive this message,your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. I could not figure why it's append ... Any idea ? Cyrille Stack Trace: org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:102) org.springframework.web.context.request.SessionScope.get(SessionScope.java:88) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:285) org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733) $BeanFactory_11377f7b791.getBean($BeanFactory_11377f7b791.java) $BeanFactory_11377f7b78f.getBean($BeanFactory_11377f7b78f.java) $Page1_1.getBean1($Page1_1.java) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:597) ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:743) ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1167) ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60) ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:142) ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1882) ognl.ASTProperty.getValueBody(ASTProperty.java:109) ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:200) ognl.SimpleNode.getValue(SimpleNode.java:244) ognl.ASTChain.getValueBody(ASTChain.java:137) ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:200) ognl.SimpleNode.getValue(SimpleNode.java:244) ognl.Ognl.getValue(Ognl.java:494) ognl.Ognl.getValue(Ognl.java:458) org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:148) ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498) ognl.Ognl.compileExpression(Ognl.java:141) org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152) org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115) $ExpressionCache_11377f7b7b9.getCompiledExpression($ExpressionCache_11377f7b7b9.java) org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134) org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) org.apache.tapestry.binding.AbstractBinding.getObject(AbstractBinding.java:84) $Insert_2.getValue($Insert_2.java) org.apache.tapestry.components.Insert.renderComponent(Insert.java:48) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:180) org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107) org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725) org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:178) org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:249) org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:397) org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse(DefaultResponseBuilder.java:152) org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:33) $ResponseRenderer_11377f7b682.renderResponse($ResponseRenderer_11377f7b682.java) org.apache.tapestry.engine.PageService.service(PageService.java:68) $IEngineService_11377f7b6fc.service($IEngineService_11377f7b6fc.java) org.apache.tapestry.services.impl.EngineServiceInnerProxy.service(EngineServiceInnerProxy.java:77) org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72) org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:237) org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54) $WebRequestServicer_11377f7b6d8.service($WebRequestServicer_11377f7b6d8.java) $WebRequestServicer_
Re: [T5] tapestry-spring and WebApplicationContext
Fidel Chavarria a écrit : Hi I think this willhelp you, http://tapestry.apache.org/tapestry5/tapestry-spring/ Thanks, but if you had read my mail, I should see that I'm talked about this page. In this page in "Limitations" chapter it is writte that we can't inject Spring session bean but we have to retreive the WebApplicationContext and use it. But I don't know howto retreive this so famous WebApplicationContext when I'm in a tapestry code page or component. cyrille. cyrille37 wrote: Hi, In the T5 tapestry-spring documentation it is writed to don't use other Spring beans than Singleton ones. Inject the WebApplicationContext instead. http://tapestry.apache.org/tapestry5/tapestry-spring/ But howto inject the WebApplicationContext ? thanks cyrille - 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]
[T5] tapestry-spring and WebApplicationContext
Hi, In the T5 tapestry-spring documentation it is writed to don't use other Spring beans than Singleton ones. Inject the WebApplicationContext instead. http://tapestry.apache.org/tapestry5/tapestry-spring/ But howto inject the WebApplicationContext ? thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 : potential feature - JSON component
I spoke about Java Applet, but we can think about Macromedia Flash too. Flash is a really nice technology. If JSon is implemented in Tapestry like every great Tapestry designs, it should be very easy to add more protocols !! cyrille. Evan Rawson - Work a écrit : it really wouldn't be that hard. basically you would create a java class to generate your RPC calls and internally within your java app it would share data via java objects. i believe they would be serialized so you could easily access and share them. the bulk of the work would be having the tapestry java component generate the resource location on the fly when an external service is invoked. Kinda like how AJAX invokes an XML document on the fly. i completely forgot about applets. We dont usually use them at work so i always forget. go figure. Anyways, the ability to easily allow applets to communicate with a java backend running on a servcer would be amazing powerful. forexample, you could use your applet to handle only UI data and other smaller processes which the client side could handle. have it communicate directly with a java app running on the backend which could be hooked up to a mainframe or network which could be used to massive rendering jobs or datamining. a possible use of this integration would be a realtime, high resolution rendering of say a molecule, CAD drawing, or 3d animation accesable from the web. The server could process the rendering and outputs the frames to a dir, you could have the applet pick up the frames via JSON (IE. passing the applet the URI of the rendered frames, then have the applet sequence them. A fbig enough mainframe could even cahce the rendered frames and map them to a URI. This could open up tapestry with the ability to program and host say a Web based 3d rendering program such as Maya or something. The possibilities are endless. ~evan - Original Message - From: "#Cyrille37#" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Thursday, June 28, 2007 1:28 PM Subject: Re: T5 : potential feature - JSON component Hello, I'm interesting by the subject. How to integrate JSON with Tap5 in a nice way. For the moment I'm using http://oss.metaparadigm.com/jsonrpc/ to communicate between Java Applets and WebApps. But I didn't integrate it in Tapestry ; I'm using the JSonRpc Servlet and share objects with WebApps using SpringFramework. It would be nice to get Tapestry managing JSonRpc calls. I'm new with Tapestry, and Java in general, so I could not bring any idea about the way to do this. But I can participate to the discussion and make some tryies. cyrille Evan Rawson - Work a écrit : It would be great if a JSON component could be created for T5. After some extensive research i feel that this feature really would add a ton of flexibility of how your tapestry application can communicate with other tapestry application running on a network. For example my company needs to split up our monstrous application now consisting of about 700 to 1000 pages, and and a few thousand components. We are branching off our sub applications to run as there own independent application. The ability to allow these separate application to talk to each other is very ambigious, meaning that we need to transfer data via http sessions or via a db. with the implementation of JSON we could easily setup a java component service which could allow another tapestry application to request data from another server by giving it the domain, app name, and service name (what you wanna look up) due to JSON 's extreme flexibility and speed, tapestry applicatiosn powered by JSON could allow our application to talk to and interact with pretty much any other application coded in any modern language. wether it be another web application or backend process, or even a desktop application. i believe that JSON would be a better langauge versus say XML becuase its parser is faster, and its easier to intrepret in human language. JSON is also a more superior way to handle AJAX requests rather then using XML streams. (smaller size, and faster to parse) just a thought. ~evan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 : potential feature - JSON component
Hello, I'm interesting by the subject. How to integrate JSON with Tap5 in a nice way. For the moment I'm using http://oss.metaparadigm.com/jsonrpc/ to communicate between Java Applets and WebApps. But I didn't integrate it in Tapestry ; I'm using the JSonRpc Servlet and share objects with WebApps using SpringFramework. It would be nice to get Tapestry managing JSonRpc calls. I'm new with Tapestry, and Java in general, so I could not bring any idea about the way to do this. But I can participate to the discussion and make some tryies. cyrille Evan Rawson - Work a écrit : It would be great if a JSON component could be created for T5. After some extensive research i feel that this feature really would add a ton of flexibility of how your tapestry application can communicate with other tapestry application running on a network. For example my company needs to split up our monstrous application now consisting of about 700 to 1000 pages, and and a few thousand components. We are branching off our sub applications to run as there own independent application. The ability to allow these separate application to talk to each other is very ambigious, meaning that we need to transfer data via http sessions or via a db. with the implementation of JSON we could easily setup a java component service which could allow another tapestry application to request data from another server by giving it the domain, app name, and service name (what you wanna look up) due to JSON 's extreme flexibility and speed, tapestry applicatiosn powered by JSON could allow our application to talk to and interact with pretty much any other application coded in any modern language. wether it be another web application or backend process, or even a desktop application. i believe that JSON would be a better langauge versus say XML becuase its parser is faster, and its easier to intrepret in human language. JSON is also a more superior way to handle AJAX requests rather then using XML streams. (smaller size, and faster to parse) just a thought. ~evan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] missing some listener to bind component/page events ?
Francois Armand a écrit : #Cyrille37# wrote: In another way to explain, I would like to make "by hand" the same work than a t:actionLink in a t:loop the code : ${guess} create several links like : /do.guess/4 /do.guess/6 /do.guess/7 So, howto do the same "by hand" (without a loop) ??? You can use list in context. For example, if you have a ListgetGuessContexte() { List list = new ArrayList(); list.add("plop"); list.add(new Integer(guess).toString()); return list; } In your : ${guess} You will have link : .../do./guess/plop/0, .../do.guess/plop/1 etc. See http://tapestry.apache.org/tapestry5/tapestry-core/component-parameters.html#org.apache.tapestry.corelib.components.actionlink Thank you François, The problem is not on the component context, but on the component id. I think a listener concept is missing ! Another example : (This code is invalid because of the duplicate component id) YES YES Object onActionFromWant2beRich( boolean yes ) { ... } Perhaps I've missed some essential concept ?? cheers cyrille. Well, if anybody as an idea about how to do this kind of think with submit button, I'm interested :) Francois - 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]
[T4.1.2] about jwcid and xml validator
Hello, It Tap4.1.2 will accept a namespace for its xml attributes like jwcid ? Like Tap5 as its schema: xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; It would be nice because of Eclipse Xml Validator which shoot because of jwcid attributes. any idea ? cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] missing some listener to bind component/page events ?
In another way to explain, I would like to make "by hand" the same work than a t:actionLink in a t:loop the code : ${guess} create several links like : /do.guess/4 /do.guess/6 /do.guess/7 So, howto do the same "by hand" (without a loop) ??? cyrille #Cyrille37# a écrit : Hi (again and again ;-) Is it possible to create event for a component ?? After read guide "Component Events" and done some tests I could not figure howto manage differents events for a component. For exemple I would like to bind 2 links to the onActionA() method and 2 other link to the onActionB() method. How it is possible ? This following code does not work, but it is to explain me need : bind A() bind A() bind B() bind B() I've understand that : A link : Ballot 01 The t:type is a component, so I must use 'actionLink' to send a event. The t:id is the unique id of the component. It miss something like a listener as with Tapestry4, isn't it ? cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] missing some listener to bind component/page events ?
Hi (again and again ;-) Is it possible to create event for a component ?? After read guide "Component Events" and done some tests I could not figure howto manage differents events for a component. For exemple I would like to bind 2 links to the onActionA() method and 2 other link to the onActionB() method. How it is possible ? This following code does not work, but it is to explain me need : bind A() bind A() bind B() bind B() I've understand that : A link : Ballot 01 The t:type is a component, so I must use 'actionLink' to send a event. The t:id is the unique id of the component. It miss something like a listener as with Tapestry4, isn't it ? cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: One class for differents templates ?
Howard Lewis Ship a écrit : This is an idea I am actively resisting. I don't want there to be any confusion or ambiguity between a class and its template. Multiple classes per template are somewhat ambiguous. You could have a base class with a template, and then have subclasses, which will inherit the base classes's template. Yep, that the right answer. Thanks for you clear perspicacity. Cyrille. On 6/27/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hi, Perhaps it is a stupid question, but in this case it should demonstrate that I do not understand anything ;-) Is it possible to use differents templates with the same page/component class ? like : MyPage.java and MyPage01.html, MyPage02.html, ... I think that with Tap4 we could do that with page specification (MyPage01.page, MyPage02.page ...) Thanks for you highlight, cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] about component's html
Howard Lewis Ship a écrit : Existing feature request in JIRA, but not yet implemented. Thanks Howard for your answer. Like that I can start thinking that I'm not so stupid ... ;-) And Thanks a lot for Tapestry 5, it is a real great pleasure to play with it !!! Best regards and sincere thanks cyrille On 6/27/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hi, I could not find with T5 how to use only a part of a component html. I would like that only the body's component is rendering in the page, but all the html's component is rendered The component HTML : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> TheComponent Hello ! The page HTML : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ThePage Ho! How to get only Hello ! of the component ??? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] about component's html
Hi, I could not find with T5 how to use only a part of a component html. I would like that only the body's component is rendering in the page, but all the html's component is rendered The component HTML : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> TheComponent Hello ! The page HTML : http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";> ThePage Ho! How to get only Hello ! of the component ??? Thanks cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
One class for differents templates ?
Hi, Perhaps it is a stupid question, but in this case it should demonstrate that I do not understand anything ;-) Is it possible to use differents templates with the same page/component class ? like : MyPage.java and MyPage01.html, MyPage02.html, ... I think that with Tap4 we could do that with page specification (MyPage01.page, MyPage02.page ...) Thanks for you highlight, cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about JSON-RPC
Renat Zubairov a écrit : Depends on the version of tapestry. If you are talking about 4.1 you can integrate it seamlessly to your page About 5.0 I don't know the details, but as far as I've seen it should be simple. About earlier versions of tapestry you need to extend a BasePage class a bit to generate JSON in response. Thank you. Do you know some places (links) on the web which talk about that ? Cheers, Cyrille Renat On 27/06/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: Hello, I'm using JSON-RPC for talking beetwen a Java Applet and the WebApplication. To manage JsonRpc calls I've done a Servlet. I come to you to know if there is a Tapestry way for handling those JsonRpc calls ? thanks for ideas cyrille - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: about JSON-RPC
Martino Piccinato a écrit : Have your component implement the IJSONRencerer interface ( http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/IJSONRender.html ) Thanks ! I'll read more today around that. Is there a plan for JSON and Tapestry5 ? Cyrille. On 6/27/07, Renat Zubairov <[EMAIL PROTECTED]> wrote: Depends on the version of tapestry. If you are talking about 4.1 you can integrate it seamlessly to your page About 5.0 I don't know the details, but as far as I've seen it should be simple. About earlier versions of tapestry you need to extend a BasePage class a bit to generate JSON in response. Renat On 27/06/07, #Cyrille37# <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using JSON-RPC for talking beetwen a Java Applet and the WebApplication. > To manage JsonRpc calls I've done a Servlet. > > I come to you to know if there is a Tapestry way for handling those > JsonRpc calls ? > > thanks for ideas > cyrille > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]