Re: Problem after upgrade to Tapestry 4.1.2
I don't know Maybe it's not a tomcat version issue at all but more of a library version issue. Somehow that server machine has an old version of tapestry somewhere. On your server go to wherever the root path of tomcat is (I never install any java related software with apt/yum) and do: find . -name *tapestry* -print That should tell you more. Just be sure every single occurrence of a matching file is accounted for. I think it's been stuck in the shared lib or something else weird somehow. On 6/29/07, spot_ [EMAIL PROTECTED] wrote: Hello Jesse thanks for help. But no, I have not overriden the Shell component. I searched all project files for the terms 'dojoPath' and 'Shell' with no result (except of Border.html where it belongs to). But what about this: The WebApp works fine on my development machine! It's WinXP/Tomcat 5.5.17... maybe Tapestry 4.1.2 needs Tomcat 5.5 to work? (Server machine: Ubuntu 6.10 server/Tomcat 5.0.30) Cheers Christoph Jessek wrote: The exception message saying its missing classpath resource '/dojo/'. sounds suspicious. This was the old parameter given and shouldn't be something Tapestry would reference by default in the current release. I think Marcus was on to something there.You may want to check very carefully what jar versions you are using and what parameters and such you are giving to your Shell component. (have you overriden the Shell component and forgotten maybe?) -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355278 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Problem after upgrade to Tapestry 4.1.2
may be you should clear the tomcat caches which are in tomcat temp directory. - Original Message - From: spot_ [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Friday, June 29, 2007 1:32 PM Subject: Re: Problem after upgrade to Tapestry 4.1.2 Hello Jesse thanks for help. But no, I have not overriden the Shell component. I searched all project files for the terms 'dojoPath' and 'Shell' with no result (except of Border.html where it belongs to). But what about this: The WebApp works fine on my development machine! It's WinXP/Tomcat 5.5.17... maybe Tapestry 4.1.2 needs Tomcat 5.5 to work? (Server machine: Ubuntu 6.10 server/Tomcat 5.0.30) Cheers Christoph Jessek wrote: The exception message saying its missing classpath resource '/dojo/'. sounds suspicious. This was the old parameter given and shouldn't be something Tapestry would reference by default in the current release. I think Marcus was on to something there.You may want to check very carefully what jar versions you are using and what parameters and such you are giving to your Shell component. (have you overriden the Shell component and forgotten maybe?) -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355278 Sent from the Tapestry - User mailing list archive at Nabble.com. - 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: T4 T4.1.2: tapestry.form.registerForm is not a function
Thanks for the quick reply. I cleared my browser cache, but no luck. Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of alert('hi'); lines embedded in the form.js file. Cleared my cache again and checked the GET request responses to make sure the browser was fetching the updated file. Loaded the page and got no alerts, so I'm updating my theory. I don't think dojo is parsing these. (Tangentially... do you know an easier way to do this?) One other datum supports this... I added binding name=debugEnabled value=ognl:true/ to the Shell component declaration. This causes the following lines to appear in the page: dojo.require(dojo.logging.Logger); dojo.log.setLevel(dojo.log.getLevel(WARNING)); firefox complains that dojo.log.getLevel is not a function, so I'm guessing that none of the dojo.require statements are succeeding. Yowza! Jessek wrote: Clear your browser cache? I've never seen/heard of something like this so I don't have a lot of ideas. On 6/29/07, Jeremy F. Kassis [EMAIL PROTECTED] wrote: Just upgraded to T4.1.2. On pages with forms, I get the following error: tapestry.form.registerForm is not a function Using firebug, I... 1. Set a breakpoint on this line: require(tapestry.form); 2. clear the console 3. step over the function call 4. observe the GET requests for form.js *AND* form/validation.js *AND* form_compat.js The last two files are dependencies declared in the form.js file, so it even seems that dojo is parsing this. It's just not parsing the money line: tapestry.form={ blah blah blah }; My theory is that dojo is swallowing some errors here, but I'm open to others. Any thoughts anyone? -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4 T4.1.2: tapestry.form.registerForm is not a function
And on the server do you get log warning messages about classpath resources not being found? Maybe your urls aren't being handled properly for some reason? I haven't tested anything without friendly urls in a while, maybe something there is broken. On 6/29/07, Jeremy F. Kassis [EMAIL PROTECTED] wrote: Thanks for the quick reply. I cleared my browser cache, but no luck. Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of alert('hi'); lines embedded in the form.js file. Cleared my cache again and checked the GET request responses to make sure the browser was fetching the updated file. Loaded the page and got no alerts, so I'm updating my theory. I don't think dojo is parsing these. (Tangentially... do you know an easier way to do this?) One other datum supports this... I added binding name=debugEnabled value=ognl:true/ to the Shell component declaration. This causes the following lines to appear in the page: dojo.require(dojo.logging.Logger); dojo.log.setLevel(dojo.log.getLevel(WARNING)); firefox complains that dojo.log.getLevel is not a function, so I'm guessing that none of the dojo.require statements are succeeding. Yowza! Jessek wrote: Clear your browser cache? I've never seen/heard of something like this so I don't have a lot of ideas. On 6/29/07, Jeremy F. Kassis [EMAIL PROTECTED] wrote: Just upgraded to T4.1.2. On pages with forms, I get the following error: tapestry.form.registerForm is not a function Using firebug, I... 1. Set a breakpoint on this line: require(tapestry.form); 2. clear the console 3. step over the function call 4. observe the GET requests for form.js *AND* form/validation.js *AND* form_compat.js The last two files are dependencies declared in the form.js file, so it even seems that dojo is parsing this. It's just not parsing the money line: tapestry.form={ blah blah blah }; My theory is that dojo is swallowing some errors here, but I'm open to others. Any thoughts anyone? -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: T4 T4.1.2: tapestry.form.registerForm is not a function
Good idea. I restarted the server and loaded the page. Looks clean on the server-side. Then, I broke it more by messing with one of IAsset declarations. I get asset not found errors and the page fails to load. I'm attaching my page source in case it might help. http://www.nabble.com/file/p11355653/app.htm app.htm Jessek wrote: And on the server do you get log warning messages about classpath resources not being found? Maybe your urls aren't being handled properly for some reason? I haven't tested anything without friendly urls in a while, maybe something there is broken. On 6/29/07, Jeremy F. Kassis [EMAIL PROTECTED] wrote: Thanks for the quick reply. I cleared my browser cache, but no luck. Then, I rebuilt the tapestry-framework-4.1.2 jar with a couple of alert('hi'); lines embedded in the form.js file. Cleared my cache again and checked the GET request responses to make sure the browser was fetching the updated file. Loaded the page and got no alerts, so I'm updating my theory. I don't think dojo is parsing these. (Tangentially... do you know an easier way to do this?) One other datum supports this... I added binding name=debugEnabled value=ognl:true/ to the Shell component declaration. This causes the following lines to appear in the page: dojo.require(dojo.logging.Logger); dojo.log.setLevel(dojo.log.getLevel(WARNING)); firefox complains that dojo.log.getLevel is not a function, so I'm guessing that none of the dojo.require statements are succeeding. Yowza! Jessek wrote: Clear your browser cache? I've never seen/heard of something like this so I don't have a lot of ideas. On 6/29/07, Jeremy F. Kassis [EMAIL PROTECTED] wrote: Just upgraded to T4.1.2. On pages with forms, I get the following error: tapestry.form.registerForm is not a function Using firebug, I... 1. Set a breakpoint on this line: require(tapestry.form); 2. clear the console 3. step over the function call 4. observe the GET requests for form.js *AND* form/validation.js *AND* form_compat.js The last two files are dependencies declared in the form.js file, so it even seems that dojo is parsing this. It's just not parsing the money line: tapestry.form={ blah blah blah }; My theory is that dojo is swallowing some errors here, but I'm open to others. Any thoughts anyone? -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355279 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355545 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355653 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem after upgrade to Tapestry 4.1.2
Hi Jesse, gant thank you very much! After deleting the whole /var/cache/tomcat5/Catalina/localhost/MyApp dir recursively on the server machine everything works fine. Cheers Christoph Jessek wrote: I don't know Maybe it's not a tomcat version issue at all but more of a library version issue. Somehow that server machine has an old version of tapestry somewhere. On your server go to wherever the root path of tomcat is (I never install any java related software with apt/yum) and do: find . -name *tapestry* -print That should tell you more. Just be sure every single occurrence of a matching file is accounted for. I think it's been stuck in the shared lib or something else weird somehow. -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com -- View this message in context: http://www.nabble.com/Problem-after-upgrade-to-Tapestry-4.1.2-tf3993336.html#a11355676 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4 T4.1.2: tapestry.form.registerForm is not a function
Just to be clear, I broke it more to see what would happen and eliminate the possibility that the defaultDojoPath and related IAsset declarations were wrong. I changed them back, assuming they are right, but I don't have any new theories. I'm using Firefox 2, which I know is a little bleeding edge, so I tried on IE and get the same problem. -- View this message in context: http://www.nabble.com/T4-T4.1.2%3A-tapestry.form.registerForm-is-not-a-function-tf3998293.html#a11355832 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updated T5 Tutorial
On 6/29/07, Bhuiyan, Nazmul [EMAIL PROTECTED] wrote: What are the advantages using Jetty over Tomcat? It's simply better :) Thanks a lot for giving us Tapestry Seconded. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updated T5 Tutorial
Amazing! Forms are so much easy now :) Thanks Tapestry Team! On 29/06/07, Massimo Lusetti [EMAIL PROTECTED] wrote: On 6/29/07, Bhuiyan, Nazmul [EMAIL PROTECTED] wrote: What are the advantages using Jetty over Tomcat? It's simply better :) Thanks a lot for giving us Tapestry Seconded. -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Renat Zubairov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tap. 4.1.2: Problem changing components parameter
Hello, I'm trying the new stable tap-4.1.2 And I'm having the following problem: An exception has occurred. You may continue by *restarting http://localhost:8080/restart.svc* the session. [ +/- ] Exception: http://localhost:8080/app Exception invoking listener method addNewListener of component Home/tableForm: Binding with value 0 (ExpressionBinding[Home/tableForm 0]) may not be updated. org.apache.tapestry.BindingException Exception invoking listener method addNewListener of component Home/tableForm: Binding with value 0 (ExpressionBinding[Home/tableForm 0]) may not be updated. binding: [EMAIL PROTECTED] action, component=Home/tableForm, methodName=addNewListener, location=classpath:/org/jfly/web/components/edittable/EditTable.jwc, line 154, column 59] component: [EMAIL PROTECTED]/tableForm] location: classpath:/org/jfly/web/components/edittable/EditTable.jwc, line 154, column 59 149 binding name=updateComponents value=ognl:{clientId}/ 150 /component 151 component id=addNew type=Submit 152 binding name=value value=literal:addNew/ 153 binding name=updateComponents value=ognl:{clientId}/ 154 binding name=action value=listener:addNewListener/ 155 binding name=async value=ognl:true/binding 156 /component 157 component id=insert type=Submit 158 binding name=value value=literal:insert/ 159 binding name=updateComponents value=ognl:{clientId}/ [ +/- ] Exception: http://localhost:8080/app Binding with value 0 (ExpressionBinding[Home/tableForm 0]) may not be updated. org.apache.tapestry.BindingException Binding with value 0 (ExpressionBinding[Home/tableForm 0]) may not be updated. binding: ExpressionBinding[Home/tableForm 0] location: classpath:/org/jfly/web/components/edittable/EditTable.jwc, line 30, column 69 25 description 26 If it's a sized table (a table that can display only a limited amount of rows a time) this 27 is number of the entire source displayed. It's needed for scrollbar creation 28 /description 29/parameter 30 parameter name=startRow required=no default-value=ognl:0 31description 32 When you have a scrollable table, this is the index of the first row displayed. 33 /description 34 /parameter 35 parameter name=displayRowCount required=no default-value=ognl:0 I've not set the startRow parameter from the container component. and have in the component code the abstract setter/getter methods. Then I need to change the value when I call the component addNewListenerlistener, but the exception above appears. What should I do? Is it changed something in component parameters ? Thx, kiuma
How to configure tapestry to keep actual page after maximisation of portlet?
Hi all! I'm using Tapestry 4.0.2 in JBoss Portal 2.6-CR2. Within my portlet different pages are shown. When I click on the maximize-button I always get back to the page, where I started from, usually view. It is possible to configure a matching in hivemodule.xml but what do I have to configure there to keep the actual page? Best regards Kay Thielmann Mitarbeiter / BC Government Themen Business Unit Information __ MATERNA GmbH Information Communications Voßkuhle 37 * 44141 Dortmund * Deutschland Tel.: +49 231 5599-8297 [EMAIL PROTECTED] * www.materna.de Hauptsitz der MATERNA GmbH: Voßkuhle 37, 44141 Dortmund Geschäftsführer: Dr. Winfried Materna, Helmut an de Meulen, Ralph Hartwig Amtsgericht Dortmund HRB 5839 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Updated T5 Tutorial
I tried the mvn archetype:create . to download the quickstart. but it doesn't work. is it really OK to follow the Tutorial now? Cheers John - Original Message - From: Howard Lewis Ship [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Friday, June 29, 2007 5:39 AM Subject: Updated T5 Tutorial The T5 Tutorial has been updated: - It is now HTML format, not PDF - I've added a chapter on forms and validation it's still very much a work in progress, but I think it will server many people's needs better than the raw reference documentation. http://tapestry.apache.org/tapestry5/tutorial1/index.html -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - 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: OutOfMemoryError after serving N pages
Hello all, Arjan Verstoep and me co-posted the original message. We experienced our web-application to consume all available memory slowly but steadily until no memory was left. This was in a production environment, with caching enabled. Since then, we were able to locate and eliminate one source of this problem, which we will describe below. Since then, the memory consumption still rises slowly during production deployment, but not nearly as much as it used to. We are not yet completely satisfied, because the memory consumption still leads to OutOfMemoryExceptions eventually. We do not think the problem is with Tapestry. Rather, there might be a few (common) coding mistakes that lead to this kind of problem. We must continue our search for any remaining sources of the problem. We hope this information might be helpfull to others. The problem (partially solved): In our Engine class, we used to set the Locale for our application. This contained erroneous code: public final void setLocale(Locale locale) { if (getLocale() == null ) { super.setlocale(new Locale(nl,NL)); } else { super.setLocale(locale); } } This code effectively prevented Tapestry to cache pages, because every page was different (each page received a freshly made Locale object). We replaced the code above with: private static final Locale NL = new Locale(nl,NL); public final void setLocale(Locale locale) { if (getLocale() == null ) { super.setlocale(NL); } else { super.setLocale(locale); } In this code each page receives the same Locale object and caching now works as it should. On Thu, 28 Jun 2007 22:48:21 -0400, Jesse Kuhnert wrote Doesn't happen in dev or production mode with Tapestry 4.1.2. At least not even remotely near what it used to. It's possible someone may hit it at one point I suppose. On 6/28/07, Evan Rawson - Work [EMAIL PROTECTED] wrote: that is correct. we disable caching on our dev machines, but enable it on our live servers and testing servers. This allows for less local resources to be used and faster redeployments, usually only happens after say 20 to30 redeployments on a 2gig box. using about 60% of system resources. Ive seen tomcat get up to well over 400 megs. our live servers have never gotten an outta memory with caching on in the last two years, which makes me happy. evan - Original Message - From: Norman Franke [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Thursday, June 28, 2007 12:25 PM Subject: Re: OutOfMemoryError after serving N pages I get this if I disable caching after a while. However, I have not seen it with caching enabled. -Norman On Jun 28, 2007, at 11:47 AM, Evan Rawson - Work wrote: what application host are you using. cuz i know in tomcat, when you redeploy X amount of times you will get out of memory error. i dont know if this is some how related. but the only way to fix it is to shut down and start tomcat back up. evan - Original Message - From: Thomas Wiz [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: Thursday, June 28, 2007 3:40 AM Subject: Re: OutOfMemoryError after serving N pages Arjan Verstoep wrote: I'm building an application with the Tapestry 4.0.2 framework, which manages my music-collection. I'm getting OutOfMemoryErrors since I've created a small ajax-ish component that refreshes every 10 seconds to show the song that is currently playing. A piece of javascript gets the Tapestry-page with the currently-playing song on it, and puts the generated html into a div. After 24 hours or so making these page-requests, an out of memory error occurs. I have the feeling that this new auto-refreshing component of mine only quickens the OutOfMemoryError, since I did get these errors before, but only after much longer uptimes. What am I doing wrong here? Is it the Spring OpenSessionInView- filter that I use that is wasting memory, am I not cleaning-up everything myself? Should I use Tapestry 4.1.1? Can anybody help? The code of the page follows: (You can also have a look at http://musicontroller.cvs.sourceforge.net/musicontroller/ for more sourcecode) Thanks, ~Arjan Verstoep Hi Arjan, I'm having the same problem you had: heap space OOME after serving N pages. Did you find any solutions? Thanks. -- View this message in context: http://www.nabble.com/ OutOfMemoryError-after-serving-N-pages-tf3272095.html#a11338497 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To
Re: Updated T5 Tutorial
Hi Douglas/John. Please include any error message when reporting a problem. When T5.0.5 is officially released the tutorial's mvn command should work. Until then you will have to append the following: -DremoteRepositories=http://people.apache.org/~hlship/tapestry-ibiblio-rsynch-repository/ Cheers, Nick. Douglas Chan wrote: I tried the mvn archetype:create . to download the quickstart. but it doesn't work. is it really OK to follow the Tutorial now? Cheers John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4]Handling Nulls in OGNL expressions
Hi! I have a Table component (actually I have TableRows, TableView, and all those other components that form a Table) and one of the columns in TableView is declared like this: columnName:object1.object2.property. As you can see this can throw NullPointerException if either object1 or object2 are null. To solve this problem, I have to alternatives: a) Use a Block component called columnNameColumnValue an inside the block an Insert component with a value asociated with the page's class that handles nulls b) Declare the column like: columnName:object1.propertyObject2. (that it a getPropertyObject2 method in object1 class that handles nulls). Is there a better way to solve this?? I would love something like a prefix that allows me to specify that whenever a NPE is found, a blank space is rendered. Is something like that possible? I'm ussing Tapestry 4.1.1. Btw, great work with Tap4.1.2, congratulations! Thanks!
Re: [T5] tapestry-spring and WebApplicationContext
Hi, Just import and inject the WAC in your page: import org.springframework.web.context.WebApplicationContext; class Foo { ... @Inject private WebApplicationContext wac; ... } /Serge cyrille37 wrote: 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] -- View this message in context: http://www.nabble.com/-T5--tapestry-spring-and-WebApplicationContext-tf3996411.html#a11359690 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dom featured image widget
Actually a link could be another thing I might want to overlay ontop of the main image. Thanks for any ideas or psuedo code. Thanks Best regards Ken in nashua _ Get a preview of Live Earth, the hottest event this summer - only on MSN http://liveearth.msn.com?source=msntaglineliveearthhm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dom featured image widget
Folks, I am looking for a kind of widget... that derives from Image... but offers configurable overlays for dom objects... A plain old image does not cut it. I want something that will support imaginable entities ontop. Text with configurable color foreground/brakground Sub image smaller than main image I guess thats it... you cuold call this widget ImageDecorator whereby subsequent objects (in ajax/dom) get configured and rendered ontop of the main image onRender. Any ideas or thoughts or snippets? I guess an image that renders and places itself or another image in smaller scale ontop of it could pilot some of the logic. I think it might look like a tacos oriented widget. I'd sure like to see an example of this idea. Thanks Best regards Ken in nashua _ Like puzzles? Play free games earn great prizes. Play Clink now. http://club.live.com/clink.aspx?icid=clink_hotmailtextlink2 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4.0.2 with Tacos 4.0.1 Autocomplete - Basic Issue
Hi all, i'm using the Autocomplete component from tacos and i'm having problems with some special characters, like ã and é. My component gets its model from the database, making a query with the characters entered in the textbox, but when i get the input from the user the string comes very strange, the ã turns into an ã, for example... i had to make a translator, but it's very uncomfortable. This is a known issue? Someone have an easiest way to solve this? Thanks in advance! -- Atenciosamente, Marcelo Lotif
Re: How update component on the page
I just experienced exactly the same problem with RenderBlock and worked around wrapping it with Any. should update work directly with RenderBlock id, or not. I'd guess it should but if not, is there other special components that aren't? On 5/4/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: Ah I remember this - I think there's still actually a ticket open for it...The gist of it is that the @Table component doesn't honor the component id you pass in to it, so there probably really isn't an element on your rendered page with a id=table attribute. You can get around this for now by doing something like: span jwcid=[EMAIL PROTECTED] // table in here... /span But I'll try to make sure that gets fixed in table before 4.1.2 goes out. Sorry for the confusion. On 5/4/07, Бурлака Денис [EMAIL PROTECTED] wrote: Hello. I have made a simple form and table on the page. I send async AJAX request to the server, then I update model (ListItem) on the server side and then I update table component on the page. But table component does't change. Here some code: snipped -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: [T4]Handling Nulls in OGNL expressions
http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.ognl.NullHandlers.html the way it works, is that you associate implementations of http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/NullHandler.html with class types whose methods (or properties) may return null O/H Marcos Chicote έγραψε: Hi! I have a Table component (actually I have TableRows, TableView, and all those other components that form a Table) and one of the columns in TableView is declared like this: columnName:object1.object2.property. As you can see this can throw NullPointerException if either object1 or object2 are null. To solve this problem, I have to alternatives: a) Use a Block component called columnNameColumnValue an inside the block an Insert component with a value asociated with the page's class that handles nulls b) Declare the column like: columnName:object1.propertyObject2. (that it a getPropertyObject2 method in object1 class that handles nulls). Is there a better way to solve this?? I would love something like a prefix that allows me to specify that whenever a NPE is found, a blank space is rendered. Is something like that possible? I'm ussing Tapestry 4.1.1. Btw, great work with Tap4.1.2, congratulations! Thanks! -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4.1: Valid XHTML and script assets
you won't see those with friendly urls http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html O/H Malin Ljungh έγραψε: Hi, I'm trying to get my pages to be valid XHTML 1.0 Transitional (or Strict). A problem is that the ampersands in the script src values (e.g. for dojo script resources) are not encoded with amp; For example: script type=text/javascript src=/myApp/app?service=assetpath=%2Fdojo-0.4.3%2Fdojo.js/scriptscript type=text/javascript src=/myApp/app?service=assetpath=%2Fdojo-0.4.3%2Fdojo2.js/script is not valid. should be replaced with amp; (I'm using http://validator.w3.org/ to validate.) Is there any way to fix this? /Malin -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4]Handling Nulls in OGNL expressions
Thanks Andreas. Before mailing to this list, I tried looking at the ognl documentation and I found the NullHandler interface but I wasn't sure how it worked with Tapestry or if it was possible to do it another way without altering the BOs. Correct me if I'm wrong but what I understand is that Tapestry already implements a Hivemind service that does the null handling. All I have to do is make my BOs implement NullHandler interface. Am I right? Thanks a lot! Marcos On 6/29/07, Andreas Andreou [EMAIL PROTECTED] wrote: http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.ognl.NullHandlers.html the way it works, is that you associate implementations of http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/NullHandler.html with class types whose methods (or properties) may return null O/H Marcos Chicote έγραψε: Hi! I have a Table component (actually I have TableRows, TableView, and all those other components that form a Table) and one of the columns in TableView is declared like this: columnName:object1.object2.property. As you can see this can throw NullPointerException if either object1 or object2 are null. To solve this problem, I have to alternatives: a) Use a Block component called columnNameColumnValue an inside the block an Insert component with a value asociated with the page's class that handles nulls b) Declare the column like: columnName:object1.propertyObject2. (that it a getPropertyObject2 method in object1 class that handles nulls). Is there a better way to solve this?? I would love something like a prefix that allows me to specify that whenever a NPE is found, a blank space is rendered. Is something like that possible? I'm ussing Tapestry 4.1.1. Btw, great work with Tap4.1.2, congratulations! Thanks! -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4]Handling Nulls in OGNL expressions
O/H Marcos Chicote έγραψε: Thanks Andreas. Before mailing to this list, I tried looking at the ognl documentation and I found the NullHandler interface but I wasn't sure how it worked with Tapestry or if it was possible to do it another way without altering the BOs. Correct me if I'm wrong but what I understand is that Tapestry already implements a Hivemind service that does the null handling. All I have to do is make my BOs implement NullHandler interface. Am I right? Hmmm, not really... Tapestry simply provides that point so that your have a global way of registring handlers - so, making your BOs implement NullHandler is not enough Also, i'm not sure if that's the correct approach - seems it polutes your BOs I think I'd create a service that would be able to null-handle your specific objects, and esp. of all those objects have a common superclass, i'd be able to register them all at once. I'll dig in for some code - it's been a while since i last used this Thanks a lot! Marcos On 6/29/07, Andreas Andreou [EMAIL PROTECTED] wrote: http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.ognl.NullHandlers.html the way it works, is that you associate implementations of http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/NullHandler.html with class types whose methods (or properties) may return null O/H Marcos Chicote έγραψε: Hi! I have a Table component (actually I have TableRows, TableView, and all those other components that form a Table) and one of the columns in TableView is declared like this: columnName:object1.object2.property. As you can see this can throw NullPointerException if either object1 or object2 are null. To solve this problem, I have to alternatives: a) Use a Block component called columnNameColumnValue an inside the block an Insert component with a value asociated with the page's class that handles nulls b) Declare the column like: columnName:object1.propertyObject2. (that it a getPropertyObject2 method in object1 class that handles nulls). Is there a better way to solve this?? I would love something like a prefix that allows me to specify that whenever a NPE is found, a blank space is rendered. Is something like that possible? I'm ussing Tapestry 4.1.1. Btw, great work with Tap4.1.2, congratulations! Thanks! -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T4] Changing the Locale for subdomains
I have changed the method getLocale in BaseEngine: @Override public Locale getLocale() { String domain = this.getInfrastructure().getRequest().getServerName(); if (domain.startsWith(en.)){ return new Locale(en, ); } else { return new Locale(de, ); } } If I access www.domain.com I get the MyApplication_en.properties and with en.domain.com as well.the MyApplication.properties are never picked. Any ideas? Thanks! - 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: bean id=myLittleNanoBeanSession class=tapandspring.beans.NanoBean scope=session / java : @InjectSpring(myLittleNanoBeanSession) public abstract NanoBean getBean1(); html: span jwcid=@Insert value=ognl:bean1.value/span 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)
[T5] Sub Component Navigation
Hi, I read the documentation and the source code to find a way for a parent component to discover his embedded components. I saw the best place for that will be the componentResources class. Why tapestry don't get the possibility to acces to the child tree dependency. With more investigation it's seems that the methode getEmbeddedComponent(String id) In the class ComponentResources not work directly (throw exception in my tests) and need and explicite binding to work (like in the Grid class). There is a way to accomplish my goal ? Thank you for any input. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] class transformation to override an annotated method
Okay, so I'm creating a @Once annotation that when applied to a method like so: @Once public ListFoos getFoos() { // do some expensive operation like reading foos from the db } you can call getFoos() as much as you want and it will only actually execute once, allowing you to reference foos many times in your template (or elsewhere) without having to worry about doing expensive operations multiple times or having to cache a value manually. I had this working just fine in T4 because you could call the superclass method but since this is transforming the class I can't call super.getFoos(). ClassTransformation doesn't seem to have any methods for renaming a method or replacing any calls to it. Any suggestions? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T4]Handling Nulls in OGNL expressions
Thanks Andreas. I have to do some more reading then. I you have some code that I can use as an example I would be really grateful. Thanks! Marcos On 6/29/07, Andreas Andreou [EMAIL PROTECTED] wrote: O/H Marcos Chicote έγραψε: Thanks Andreas. Before mailing to this list, I tried looking at the ognl documentation and I found the NullHandler interface but I wasn't sure how it worked with Tapestry or if it was possible to do it another way without altering the BOs. Correct me if I'm wrong but what I understand is that Tapestry already implements a Hivemind service that does the null handling. All I have to do is make my BOs implement NullHandler interface. Am I right? Hmmm, not really... Tapestry simply provides that point so that your have a global way of registring handlers - so, making your BOs implement NullHandler is not enough Also, i'm not sure if that's the correct approach - seems it polutes your BOs I think I'd create a service that would be able to null-handle your specific objects, and esp. of all those objects have a common superclass, i'd be able to register them all at once. I'll dig in for some code - it's been a while since i last used this Thanks a lot! Marcos On 6/29/07, Andreas Andreou [EMAIL PROTECTED] wrote: http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.ognl.NullHandlers.html the way it works, is that you associate implementations of http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/NullHandler.html with class types whose methods (or properties) may return null O/H Marcos Chicote έγραψε: Hi! I have a Table component (actually I have TableRows, TableView, and all those other components that form a Table) and one of the columns in TableView is declared like this: columnName:object1.object2.property. As you can see this can throw NullPointerException if either object1 or object2 are null. To solve this problem, I have to alternatives: a) Use a Block component called columnNameColumnValue an inside the block an Insert component with a value asociated with the page's class that handles nulls b) Declare the column like: columnName:object1.propertyObject2. (that it a getPropertyObject2 method in object1 class that handles nulls). Is there a better way to solve this?? I would love something like a prefix that allows me to specify that whenever a NPE is found, a blank space is rendered. Is something like that possible? I'm ussing Tapestry 4.1.1. Btw, great work with Tap4.1.2, congratulations! Thanks! -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[t5] mixin parameters when not used on an embedded component?
I see in the docs how you can set parameters for a mixin in @Component but what about when you are using it directly in a component? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Ioc @Inject @Value
Hi, Is this a bug or am I just using it wrong? I thought @Inject @Value(${my.parameter}) private String parameter; would be the same as: @Inject private SymbolSource symbolSource; symbolSource.expandSymbols(${my.parameter}); -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] handling page messages in addition to errors
I like having the errors component (which we had to create in T4) but besides displaying validation errors when something goes wrong we also display messages for when something succeeds (which I'm guessing is pretty typical among CRUD applications). Are there any plans to incorporate this in any way? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Ioc @Inject @Value
It should be exactly the same. On 6/29/07, Robin Ericsson [EMAIL PROTECTED] wrote: Hi, Is this a bug or am I just using it wrong? I thought @Inject @Value(${my.parameter}) private String parameter; would be the same as: @Inject private SymbolSource symbolSource; symbolSource.expandSymbols(${my.parameter}); -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] class transformation to override an annotated method
You are correct, ClassTransformation needs the ability to rename a method. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: Okay, so I'm creating a @Once annotation that when applied to a method like so: @Once public ListFoos getFoos() { // do some expensive operation like reading foos from the db } you can call getFoos() as much as you want and it will only actually execute once, allowing you to reference foos many times in your template (or elsewhere) without having to worry about doing expensive operations multiple times or having to cache a value manually. I had this working just fine in T4 because you could call the superclass method but since this is transforming the class I can't call super.getFoos(). ClassTransformation doesn't seem to have any methods for renaming a method or replacing any calls to it. Any suggestions? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] class transformation to override an annotated method
You can extend an existing method, but off the top of my head, I can't remember if that automatically invokes the existing method before executing the new code. I think it does, which would defeat what you are trying to do. On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: You are correct, ClassTransformation needs the ability to rename a method. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: Okay, so I'm creating a @Once annotation that when applied to a method like so: @Once public ListFoos getFoos() { // do some expensive operation like reading foos from the db } you can call getFoos() as much as you want and it will only actually execute once, allowing you to reference foos many times in your template (or elsewhere) without having to worry about doing expensive operations multiple times or having to cache a value manually. I had this working just fine in T4 because you could call the superclass method but since this is transforming the class I can't call super.getFoos(). ClassTransformation doesn't seem to have any methods for renaming a method or replacing any calls to it. Any suggestions? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] class transformation to override an annotated method
yeah, the docs say that it adds you code to the end of it. I added a ticket: https://issues.apache.org/jira/browse/TAPESTRY-1615 On Fri, 2007-06-29 at 09:30 -0700, Howard Lewis Ship wrote: You can extend an existing method, but off the top of my head, I can't remember if that automatically invokes the existing method before executing the new code. I think it does, which would defeat what you are trying to do. On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: You are correct, ClassTransformation needs the ability to rename a method. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: Okay, so I'm creating a @Once annotation that when applied to a method like so: @Once public ListFoos getFoos() { // do some expensive operation like reading foos from the db } you can call getFoos() as much as you want and it will only actually execute once, allowing you to reference foos many times in your template (or elsewhere) without having to worry about doing expensive operations multiple times or having to cache a value manually. I had this working just fine in T4 because you could call the superclass method but since this is transforming the class I can't call super.getFoos(). ClassTransformation doesn't seem to have any methods for renaming a method or replacing any calls to it. Any suggestions? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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 ListFoos 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]
[T5] using GridPager without a grid
GridPager looks like it could be used without Grid if it weren't for its dependence on GridDataSource (which it looks like is only used for getting the number of rows). Could this component be changed to be more generally useful? I have a pager component from T4 that isn't quite as nice but very very similar which we use whenever we have to create a search results page and it would be nice if we could just use GridPager (or a more general Pager). -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 XHTML compliant markup
To pick up this topic again... On Wed, 2007-06-20 at 08:19 +0200, Martin Grotzke wrote: On Mon, 2007-06-18 at 20:21 +0200, Martin Grotzke wrote: Our template uses the following DOCTYPE definition: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; What's wrong with this to get well-formed XML? No answer until now - so it's correct? Or is the doctype correct and s.th. else might be the reason for the not well-formed xml? A colleage just create a nearly blank template with the doctype above and it also created non xhtml markup... Do you need more information about environment/whatever? Thanx in advance, cheers, Martin On Mon, 2007-06-18 at 10:29 -0700, Howard Lewis Ship wrote: To elaborate; Tapestry uses the !DOCTYPE of the component template to determine the type of markup it will send; when the !DOCTYPE is omitted, it is assumed to be legacy HTML as defined by SGML, where many element are unclosed. When you provide an explicit !DOCTYPE, Tapestry switches over to rendering out well-formed XML. On 6/18/07, Robin Ericsson [EMAIL PROTECTED] wrote: On 6/18/07, Martin Grotzke [EMAIL PROTECTED] wrote: Hi, T5 currently renders markup that is not XHTML compliant. Yes and no. E.g. the element 'meta http-equiv=Content-Type content=text/html; charset=utf-8 /' is rendered as 'meta content=text/html; charset=utf-8 http-equiv=Content-Type' - the tag is not closed properly. Is there any way to force T5 to generate XHTML compliant markup? If your template uses HTML (SGML) markup, T5 generates HTML markup, if your template uses XHTML, T5 generates XHTML. See previous posts on this list. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Grotzke http://www.javakaffee.de/blog/ signature.asc Description: This is a digitally signed message part
[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: Updated T5 Tutorial
Hi, Until T5.0.5 release, to run application using mvn jetty:run you have to change POM.xml: tapestry-release-version5.0.5-SNAPSHOT/tapestry-release-version After mvn command: http://localhost:8080/tapestry-tutorial1/ because of the defined artifact id:tapestry-tutorial1 Marcus
Re: T5: Ioc @Inject @Value
On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: My guess is that you are injecting in a base class, but the base class is not in the correct directory. Base classes for pages and components must be in the .base package (alongside .pages and .components). No, no base class, it's a simple page. The complete class looks like this: package nu.localhost.tapestry5.acegi.example.pages; import org.apache.tapestry.annotations.Inject; import org.apache.tapestry.ioc.annotations.Value; import org.apache.tapestry.services.Request; public class LoginPage { @Inject @Value(${acegi.check.url}) private String checkUrl; @Inject private Request request; public String getLoginCheckUrl() { return request.getContextPath() + checkUrl; } } -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Ioc @Inject @Value
My guess is that you are injecting in a base class, but the base class is not in the correct directory. Base classes for pages and components must be in the .base package (alongside .pages and .components). On 6/29/07, Robin Ericsson [EMAIL PROTECTED] wrote: On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: It should be exactly the same. Ok, then something is wrong :). I'm getting null, so where should I investigate? @Inject or @Value? -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Ioc @Inject @Value
On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: It should be exactly the same. Ok, then something is wrong :). I'm getting null, so where should I investigate? @Inject or @Value? -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Ioc @Inject @Value
If i remember correctly, a value that can't be resolved should cause a runtime error; just in case, check the console. It may be that the acegi.check.url symbol couldn't be resolved. On 6/29/07, Robin Ericsson [EMAIL PROTECTED] wrote: On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: My guess is that you are injecting in a base class, but the base class is not in the correct directory. Base classes for pages and components must be in the .base package (alongside .pages and .components). No, no base class, it's a simple page. The complete class looks like this: package nu.localhost.tapestry5.acegi.example.pages; import org.apache.tapestry.annotations.Inject; import org.apache.tapestry.ioc.annotations.Value; import org.apache.tapestry.services.Request; public class LoginPage { @Inject @Value(${acegi.check.url}) private String checkUrl; @Inject private Request request; public String getLoginCheckUrl() { return request.getContextPath() + checkUrl; } } -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] using GridPager without a grid
I don't see why it couldn't be refactored that way, in terms of current page and number of pages. As always, adding a bug to JIRA is the best way to keep these from getting misplaced. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: GridPager looks like it could be used without Grid if it weren't for its dependence on GridDataSource (which it looks like is only used for getting the number of rows). Could this component be changed to be more generally useful? I have a pager component from T4 that isn't quite as nice but very very similar which we use whenever we have to create a search results page and it would be nice if we could just use GridPager (or a more general Pager). -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] handling page messages in addition to errors
Haven't pursued that idea, since it doesn't fall into the absolutely essential category. I think we go do a lot there however, a Messages components that could do a good job formatting a single message, or a list of messages; maybe an icon, some CSS in the default.css stylesheet. Flash storage for the messages, so they go away. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: I like having the errors component (which we had to create in T4) but besides displaying validation errors when something goes wrong we also display messages for when something succeeds (which I'm guessing is pretty typical among CRUD applications). Are there any plans to incorporate this in any way? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 XHTML compliant markup
This is an unimplemented feature; currently Tapestry isn't smart enough to output well-formed markup just because the template specified an XML doctype. Please check JIRA and add an issue if not present. On 6/19/07, Martin Grotzke [EMAIL PROTECTED] wrote: On Mon, 2007-06-18 at 20:21 +0200, Martin Grotzke wrote: Our template uses the following DOCTYPE definition: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; What's wrong with this to get well-formed XML? Or is the doctype correct and s.th. else might be the reason for the not well-formed xml? Cheers, Martin Thx cheers, Martin On Mon, 2007-06-18 at 10:29 -0700, Howard Lewis Ship wrote: To elaborate; Tapestry uses the !DOCTYPE of the component template to determine the type of markup it will send; when the !DOCTYPE is omitted, it is assumed to be legacy HTML as defined by SGML, where many element are unclosed. When you provide an explicit !DOCTYPE, Tapestry switches over to rendering out well-formed XML. On 6/18/07, Robin Ericsson [EMAIL PROTECTED] wrote: On 6/18/07, Martin Grotzke [EMAIL PROTECTED] wrote: Hi, T5 currently renders markup that is not XHTML compliant. Yes and no. E.g. the element 'meta http-equiv=Content-Type content=text/html; charset=utf-8 /' is rendered as 'meta content=text/html; charset=utf-8 http-equiv=Content-Type' - the tag is not closed properly. Is there any way to force T5 to generate XHTML compliant markup? If your template uses HTML (SGML) markup, T5 generates HTML markup, if your template uses XHTML, T5 generates XHTML. See previous posts on this list. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Grotzke http://www.javakaffee.de/blog/ -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Ioc @Inject @Value
On 6/29/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: If i remember correctly, a value that can't be resolved should cause a runtime error; just in case, check the console. It may be that the acegi.check.url symbol couldn't be resolved. Yes, correctly, using this, the code works, changing the value to something non-existing gives me a runtime error: public class LoginPage { @Inject private SymbolSource symbolSource; @Inject private Request request; public String getLoginCheckUrl() { return request.getContextPath() + symbolSource.expandSymbols(${acegi.check.url}); } } Doing the same thing with @Inject @Value, I don't get a runtime error when entering a non-existing value. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] handling page messages in addition to errors
That's more or less exactly what I was thinking. On Fri, 2007-06-29 at 11:56 -0700, Howard Lewis Ship wrote: Haven't pursued that idea, since it doesn't fall into the absolutely essential category. I think we go do a lot there however, a Messages components that could do a good job formatting a single message, or a list of messages; maybe an icon, some CSS in the default.css stylesheet. Flash storage for the messages, so they go away. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: I like having the errors component (which we had to create in T4) but besides displaying validation errors when something goes wrong we also display messages for when something succeeds (which I'm guessing is pretty typical among CRUD applications). Are there any plans to incorporate this in any way? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[t5] no support for block parameters?
In t4 you could this: comp jwcid=@RenderBlock block=component:block foo=bar / block jwcid=[EMAIL PROTECTED] ins jwcid=@Insert value=ognl:components.block.getParameter('foo') / /block Does such a thing exist in T5? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - 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=fullsearchvalue=Tapestry5titlesearch=Titles Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [t5] no support for block parameters?
t:delegate to=block:myblock/ t:block id=myblock ... /t:block What's missing is a way of providing context in the caller (the Delegate component) that is accessible inside the block. What I've been doing is using a more indirect, but also more typesafe, approach of storing the data inside an Environmental service; the caller uses Environment.push(), and the block uses the @Environmental annotation to retrieve the value. You can see this in action inside BeanEditForm. On 6/29/07, Dan Adams [EMAIL PROTECTED] wrote: In t4 you could this: comp jwcid=@RenderBlock block=component:block foo=bar / block jwcid=[EMAIL PROTECTED] ins jwcid=@Insert value=ognl:components.block.getParameter('foo') / /block Does such a thing exist in T5? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry 5 and Template Reloading
It appears that this is a version issue with javassist 3.2. The protection domain is no longer a parameter to the createClass method. I built my own version of the IOC jar without the parameter, and everything is working just fine. Can anybody say what version of javassist is used to build the 5.0.4 IOC jar? -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a11368986 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TLD location
Where can the Tapestry tag library TLD file be found? I would like to educate myself about the tags that are available. -- View this message in context: http://www.nabble.com/TLD-location-tf4002744.html#a11368990 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLD location
Tapestry 4 and 5 does not have a TLD, it does not use JSPs at all. Tapestry 3 had a kind of kludge that allowed JSPs to reference Tapestry pages. For T4 and T5 there is component documentation available. Check out the web site. On 6/29/07, cziesman [EMAIL PROTECTED] wrote: Where can the Tapestry tag library TLD file be found? I would like to educate myself about the tags that are available. -- View this message in context: http://www.nabble.com/TLD-location-tf4002744.html#a11368990 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: dom featured image widget
google light box On 6/29/07, Ken nashua [EMAIL PROTECTED] wrote: Actually a link could be another thing I might want to overlay ontop of the main image. Thanks for any ideas or psuedo code. Thanks Best regards Ken in nashua _ Get a preview of Live Earth, the hottest event this summer - only on MSN http://liveearth.msn.com?source=msntaglineliveearthhm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Thanks Erik for updates on T5 Wiki !
I know.I've alerted infrastructure ...I don't think it's the actual Erik . On 6/29/07, #Cyrille37# [EMAIL PROTECTED] wrote: Thanks a lot Erik for your work on Tapestry5 's wiki. http://wiki.apache.org/tapestry/?action=fullsearchvalue=Tapestry5titlesearch=Titles Cyrille. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Tapestry 5 and Template Reloading
http://tapestry.apache.org/tapestry5/tapestry-core/dependencies.html On 6/29/07, cziesman [EMAIL PROTECTED] wrote: It appears that this is a version issue with javassist 3.2. The protection domain is no longer a parameter to the createClass method. I built my own version of the IOC jar without the parameter, and everything is working just fine. Can anybody say what version of javassist is used to build the 5.0.4 IOC jar? -- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a11368986 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
disable dojo
I just upgraded from 4.0.2. to 4.1.2 and now my rendered pages (with @Shell attributes) are filled with Dojo related javascript stuff: script type=text/javascriptdjConfig = {isDebug:false,baseRelativePath:/tapestry-test-0.1-dev/app?service=assetpath=%2Fdojo-0.4.3%2F,parseWidgets:false,locale:en-us} /script script type=text/javascript src=/tapestry-test-0.1-dev/app?service=assetpath=%2Fdojo-0.4.3%2Fdojo.js/script script type=text/javascript dojo.registerModulePath(tapestry, /tapestry-test-0.1-dev/app?service=assetpath=%2Ftapestry%2F); /script script type=text/javascript src=/tapestry-test-0.1-dev/app?service=assetpath=%2Ftapestry%2Fcore.js/script script type=text/javascript dojo.require(tapestry.namespace); tapestry.requestEncoding='UTF-8'; /script I dont want any of this stuff. How do I turn it off? I looked at the mailing list archives and something like ajaxEnabled was mentioned but I dont see this documented anywhere. r - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
field-error-marker error in TP5.0.5
Hi All I use T5.0.5 to bind the java field and html field, But I always get the similar error like this div class=t-error t-invisible id=graphic_form:errors img alt=[Error] class=t-error-icon t-invisible id=file:icon src=/bogo/assets/tapestry/field-error-marker.png Anyway , the page class field value can be display correctlly and pass to backend from html side. It's so strange . Can anybody give me some suggestion? Thank you in advance Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: field-error-marker error in TP5.0.5
See, you've made a statement, not asked a proper question. Please read: http://www.catb.org/~esr/faqs/smart-questions.html ... and have another go at it. On 6/29/07, Allen Guo [EMAIL PROTECTED] wrote: Hi All I use T5.0.5 to bind the java field and html field, But I always get the similar error like this div class=t-error t-invisible id=graphic_form:errors img alt=[Error] class=t-error-icon t-invisible id=file:icon src=/bogo/assets/tapestry/field-error-marker.png Anyway , the page class field value can be display correctlly and pass to backend from html side. It's so strange . Can anybody give me some suggestion? Thank you in advance Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: field-error-marker error in TP5.0.5
I'm sorry I can't open the url you gave me 2007/6/30, Howard Lewis Ship [EMAIL PROTECTED]: See, you've made a statement, not asked a proper question. Please read: http://www.catb.org/~esr/faqs/smart-questions.html ... and have another go at it. On 6/29/07, Allen Guo [EMAIL PROTECTED] wrote: Hi All I use T5.0.5 to bind the java field and html field, But I always get the similar error like this div class=t-error t-invisible id=graphic_form:errors img alt=[Error] class=t-error-icon t-invisible id=file:icon src=/bogo/assets/tapestry/field-error-marker.png Anyway , the page class field value can be display correctlly and pass to backend from html side. It's so strange . Can anybody give me some suggestion? Thank you in advance Allen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TLD location
Thanks for the response, but I now realize that I asked about the wrong thing. Tapestry HTML files reference the namespace t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;, but when I look at that XSD file, it's quite generic and none of the component tags are defined in it. The component template documentation says that component templates are well formed XML documents. So, when we have something like the following, where is the syntax for the tags defined? Is there another schema somewhere? t:loop source=1..10 value=index t:actionlink context=index${index}/t:actionlink /t:loop I use NetBeans, and it allows me to specify a schema file so that when I edit XML or HTML files, NetBeans helpfully provides auto-completion for any tags that I enter. Even without making use of that feature, I would still like to be able to validate my component templates against a schema before they are deployed. I hope I'm making sense this time. -- View this message in context: http://www.nabble.com/TLD-location-tf4002744.html#a11371069 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]