[ANN] HandyTapestry Beta 2, Tapestry plugin for IntellijJ Idea
The HandyTapestry plugin for IntelliJ Idea helps you to develop Tapestry web applications faster. The plugin provides following features: - completions and navigations in the HTML template - Create Tapestry component wizard - OGNL expressions syntax and error highlighting http://handyedit.com/handytapestry.html Read more... What's new: - syntax and error highlighting in OGNL expressions - asset, message key, OGNL constant completion and navigation - page, key attribute value completion and navigation - settings: extensions of template and component specification files - fix for component creation: create folders if they don't exist -- View this message in context: http://www.nabble.com/-ANN--HandyTapestry-Beta-2%2C-Tapestry-plugin-for-IntellijJ-Idea-tf3179555.html#a8822767 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Asset is null
Hello I've the following problem with an Asset inside a jar library: The jar structure is: jflylib.jar/js/jfly/edt/edt.js and flylib.jar/org/jfly/... the jwc defines an asset as: asset name=jflyEdtPathAsset path=classpath:/js/jfly/edt/ / Why jflyEdtPathAsset is null? Thx in advance, kiuma
RE: Re: LinkSubmit and null parameters
hi jesse, this bug is filed as https://issues.apache.org/jira/browse/TAPESTRY-1240 greetings kris Jesse Kuhnert [EMAIL PROTECTED] omAn Tapestry users 05.02.2007 05:30 users@tapestry.apache.org Kopie Bitte antwortenThema an Re: LinkSubmit and null parameters Tapestry users [EMAIL PROTECTED] pache.org Sounds like a possible bug. As with all issues, creating a JIRA issue is the best hope anyone has of having something fixed. On 1/23/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: hi all, i just noticed that if an LinkSubmit component with a parameters binding to a TextField causes an exception (on submit) if that input field remains empty (null). The reason is that the listener bound to the LinkSubmit requires exactly one parameter. And if the TextField remains empty Tapestry tries to resolve a listener with no parameters that does not exist. This exception happens even if the TextField has a required validator assigned to. Is that an expected behaviour? component id=lnk_read type=LinkSubmit binding name=listener value=listener:readGPList / binding name=parameters value=searchFieldValue / /component component id=txtSearchField type=TextField binding name=value value=searchFieldValue / binding name=validators value=validators:required,min=2 / /component property name=searchFieldValue / g, kris P.S. i'm using Tapestry 4.1.2 - 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 - 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: LinkSubmit and null parameters
The parameter of your LinkSumbit will always by null because when the link is constructed (at render time) that's what the value of searchFieldValue is. Now regarding listeners and null values, I think it was discussed a year ago and that this behaviour is the expected one. If you want to be able to check for nulls, you can: - Make the method accept the RequestCycle parameter and use that to get the parameters - or, use binding name=parameters value={searchFieldValue} / (it should work) So, i feel that TAPESTRY-1240 is invalid Kristian Marinkovic wrote: hi all, i just noticed that if an LinkSubmit component with a parameters binding to a TextField causes an exception (on submit) if that input field remains empty (null). The reason is that the listener bound to the LinkSubmit requires exactly one parameter. And if the TextField remains empty Tapestry tries to resolve a listener with no parameters that does not exist. This exception happens even if the TextField has a required validator assigned to. Is that an expected behaviour? component id=lnk_read type=LinkSubmit binding name=listener value=listener:readGPList / binding name=parameters value=searchFieldValue / /component component id=txtSearchField type=TextField binding name=value value=searchFieldValue / binding name=validators value=validators:required,min=2 / /component property name=searchFieldValue / g, kris P.S. i'm using Tapestry 4.1.2 - 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]
Re: Re: LinkSubmit and null parameters
i will try as you propose :) but what bothers me is that i have a validator applied to the TextField. Shouldn't Tapestry check the validators before it proceeds to execute the listeners? I'm must admit, i'm not aware at which point of the request processing lifecycle validation is done. i was always expecting validators are always evalutated before anything else. can you give me some hints/clarifications? g, kris andyhot [EMAIL PROTECTED] r An Gesendet von: Tapestry users andreas a users@tapestry.apache.org [EMAIL PROTECTED] Kopie om Thema Re: LinkSubmit and null parameters 06.02.2007 10:48 Bitte antworten an Tapestry users [EMAIL PROTECTED] pache.org The parameter of your LinkSumbit will always by null because when the link is constructed (at render time) that's what the value of searchFieldValue is. Now regarding listeners and null values, I think it was discussed a year ago and that this behaviour is the expected one. If you want to be able to check for nulls, you can: - Make the method accept the RequestCycle parameter and use that to get the parameters - or, use binding name=parameters value={searchFieldValue} / (it should work) So, i feel that TAPESTRY-1240 is invalid Kristian Marinkovic wrote: hi all, i just noticed that if an LinkSubmit component with a parameters binding to a TextField causes an exception (on submit) if that input field remains empty (null). The reason is that the listener bound to the LinkSubmit requires exactly one parameter. And if the TextField remains empty Tapestry tries to resolve a listener with no parameters that does not exist. This exception happens even if the TextField has a required validator assigned to. Is that an expected behaviour? component id=lnk_read type=LinkSubmit binding name=listener value=listener:readGPList / binding name=parameters value=searchFieldValue / /component component id=txtSearchField type=TextField binding name=value value=searchFieldValue / binding name=validators value=validators:required,min=2 / /component property name=searchFieldValue / g, kris P.S. i'm using Tapestry 4.1.2 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: LinkSubmit and null parameters
ok, let's see... if you have a form that includes a (validated) TextField, and a LinkSubmit for that form, why use a parameter? Kristian Marinkovic wrote: i will try as you propose :) but what bothers me is that i have a validator applied to the TextField. Shouldn't Tapestry check the validators before it proceeds to execute the listeners? I'm must admit, i'm not aware at which point of the request processing lifecycle validation is done. i was always expecting validators are always evalutated before anything else. can you give me some hints/clarifications? g, kris andyhot [EMAIL PROTECTED] r An Gesendet von: Tapestry users andreas a users@tapestry.apache.org [EMAIL PROTECTED] Kopie om Thema Re: LinkSubmit and null parameters 06.02.2007 10:48 Bitte antworten an Tapestry users [EMAIL PROTECTED] pache.org The parameter of your LinkSumbit will always by null because when the link is constructed (at render time) that's what the value of searchFieldValue is. Now regarding listeners and null values, I think it was discussed a year ago and that this behaviour is the expected one. If you want to be able to check for nulls, you can: - Make the method accept the RequestCycle parameter and use that to get the parameters - or, use binding name=parameters value={searchFieldValue} / (it should work) So, i feel that TAPESTRY-1240 is invalid Kristian Marinkovic wrote: hi all, i just noticed that if an LinkSubmit component with a parameters binding to a TextField causes an exception (on submit) if that input field remains empty (null). The reason is that the listener bound to the LinkSubmit requires exactly one parameter. And if the TextField remains empty Tapestry tries to resolve a listener with no parameters that does not exist. This exception happens even if the TextField has a required validator assigned to. Is that an expected behaviour? component id=lnk_read type=LinkSubmit binding name=listener value=listener:readGPList / binding name=parameters value=searchFieldValue / /component component id=txtSearchField type=TextField binding name=value value=searchFieldValue / binding name=validators value=validators:required,min=2 / /component property name=searchFieldValue / g, kris P.S. i'm using Tapestry 4.1.2 - 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] - 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]
RE: Re: LinkSubmit and null parameters
this where my considerations: - i have a listener with useful parameter names/types - i do not have to define any abstract properties thus keeping my controller class simpler and cleaner (.. and less code in .page :)) andyhot [EMAIL PROTECTED] r An Gesendet von: Tapestry users andreas a users@tapestry.apache.org [EMAIL PROTECTED] Kopie om Thema Re: LinkSubmit and null parameters 06.02.2007 11:27 Bitte antworten an Tapestry users [EMAIL PROTECTED] pache.org ok, let's see... if you have a form that includes a (validated) TextField, and a LinkSubmit for that form, why use a parameter? Kristian Marinkovic wrote: i will try as you propose :) but what bothers me is that i have a validator applied to the TextField. Shouldn't Tapestry check the validators before it proceeds to execute the listeners? I'm must admit, i'm not aware at which point of the request processing lifecycle validation is done. i was always expecting validators are always evalutated before anything else. can you give me some hints/clarifications? g, kris andyhot [EMAIL PROTECTED] r An Gesendet von: Tapestry users andreas a users@tapestry.apache.org [EMAIL PROTECTED] Kopie om Thema Re: LinkSubmit and null parameters 06.02.2007 10:48 Bitte antworten an Tapestry users [EMAIL PROTECTED] pache.org The parameter of your LinkSumbit will always by null because when the link is constructed (at render time) that's what the value of searchFieldValue is. Now regarding listeners and null values, I think it was discussed a year ago and that this behaviour is the expected one. If you want to be able to check for nulls, you can: - Make the method accept the RequestCycle parameter and use that to get the parameters - or, use binding name=parameters value={searchFieldValue} / (it should work) So, i feel that TAPESTRY-1240 is invalid Kristian Marinkovic wrote: hi all, i just noticed that if an LinkSubmit component with a parameters binding to a TextField causes an exception (on submit) if that input field remains empty (null). The reason is that the listener bound to the LinkSubmit requires exactly one parameter. And if the TextField remains empty Tapestry tries to resolve a listener with no parameters that does not exist. This exception happens even if the TextField has a required validator assigned to. Is that an expected behaviour? component id=lnk_read type=LinkSubmit binding name=listener value=listener:readGPList / binding name=parameters value=searchFieldValue / /component component id=txtSearchField type=TextField binding name=value value=searchFieldValue / binding name=validators value=validators:required,min=2 / /component property name=searchFieldValue / g, kris P.S. i'm using Tapestry 4.1.2 - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --
Re: LinkSubmit and null parameters
ok, i see the point now... TAPESTRY-1240is indeed valid - sorry for my misunderstanding and questionings :) Kristian Marinkovic wrote: this where my considerations: - i have a listener with useful parameter names/types - i do not have to define any abstract properties thus keeping my controller class simpler and cleaner (.. and less code in .page :)) andyhot [EMAIL PROTECTED] r An Gesendet von: Tapestry users andreas a users@tapestry.apache.org [EMAIL PROTECTED] Kopie om Thema Re: LinkSubmit and null parameters 06.02.2007 11:27 Bitte antworten an Tapestry users [EMAIL PROTECTED] pache.org ok, let's see... if you have a form that includes a (validated) TextField, and a LinkSubmit for that form, why use a parameter? Kristian Marinkovic wrote: i will try as you propose :) but what bothers me is that i have a validator applied to the TextField. Shouldn't Tapestry check the validators before it proceeds to execute the listeners? I'm must admit, i'm not aware at which point of the request processing lifecycle validation is done. i was always expecting validators are always evalutated before anything else. can you give me some hints/clarifications? g, kris andyhot [EMAIL PROTECTED] r An Gesendet von: Tapestry users andreas a users@tapestry.apache.org [EMAIL PROTECTED] Kopie om Thema Re: LinkSubmit and null parameters 06.02.2007 10:48 Bitte antworten an Tapestry users [EMAIL PROTECTED] pache.org The parameter of your LinkSumbit will always by null because when the link is constructed (at render time) that's what the value of searchFieldValue is. Now regarding listeners and null values, I think it was discussed a year ago and that this behaviour is the expected one. If you want to be able to check for nulls, you can: - Make the method accept the RequestCycle parameter and use that to get the parameters - or, use binding name=parameters value={searchFieldValue} / (it should work) So, i feel that TAPESTRY-1240 is invalid Kristian Marinkovic wrote: hi all, i just noticed that if an LinkSubmit component with a parameters binding to a TextField causes an exception (on submit) if that input field remains empty (null). The reason is that the listener bound to the LinkSubmit requires exactly one parameter. And if the TextField remains empty Tapestry tries to resolve a listener with no parameters that does not exist. This exception happens even if the TextField has a required validator assigned to. Is that an expected behaviour? component id=lnk_read type=LinkSubmit binding name=listener value=listener:readGPList / binding name=parameters value=searchFieldValue / /component component id=txtSearchField type=TextField binding name=value value=searchFieldValue / binding name=validators value=validators:required,min=2 / /component property name=searchFieldValue / g, kris P.S. i'm using Tapestry 4.1.2 - 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,
WG: IOC TapestryException creating a sample application
Hi. I've tried to create a small sample application based on tapestry 5.0.1. I followed the example from the screencast and it seems to work more or less fine, but when accessing my page I get the message below. * org.apache.tapestry.ioc.internal.util.TapestryException Component de.reswi.tapestry_empty.pages.Home does not contain an embedded component with id ''. Nowhere in my code or HTML page I deal with additional ids. I'm quite puzzled. Mit freundlichen Grüßen, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com http://www.bearingpoint.com/ *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. ***
Re: WG: IOC TapestryException creating a sample application
Can you post the template of you Home page ? You probably have a t:comp tag in the template with an empty id. Stranzenbach, Ralf wrote: Hi. I've tried to create a small sample application based on tapestry 5.0.1. I followed the example from the screencast and it seems to work more or less fine, but when accessing my page I get the message below. * org.apache.tapestry.ioc.internal.util.TapestryException Component de.reswi.tapestry_empty.pages.Home does not contain an embedded component with id ''. Nowhere in my code or HTML page I deal with additional ids. I'm quite puzzled. Mit freundlichen Grüßen, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com http://www.bearingpoint.com/ *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. ***
AW: WG: IOC TapestryException creating a sample application
Hi. For sure. It's quite easy... package de.reswi.tapestry_empty.pages; import java.util.Date; import org.apache.tapestry.annotations.ComponentClass; import org.apache.tapestry.ioc.annotations.Id; @ComponentClass public class Home { public Date getDate() { return new Date(); } } During my tests I've resigned and took some sample page from the maven generated artifacts... html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlehilo Start Page/title /head body h1hilo Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${date}. /p p [a t:type=PageLink page=Homerefresh/a] /p /body /html Home.html and the Home.java are both placed in the pages package. Regards, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com -Ursprüngliche Nachricht- Von: Hugo Palma [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. Februar 2007 16:14 An: Tapestry users Betreff: Re: WG: IOC TapestryException creating a sample application Can you post the template of you Home page ? You probably have a t:comp tag in the template with an empty id. Stranzenbach, Ralf wrote: Hi. I've tried to create a small sample application based on tapestry 5.0.1. I followed the example from the screencast and it seems to work more or less fine, but when accessing my page I get the message below. * org.apache.tapestry.ioc.internal.util.TapestryException Component de.reswi.tapestry_empty.pages.Home does not contain an embedded component with id ''. Nowhere in my code or HTML page I deal with additional ids. I'm quite puzzled. Mit freundlichen Grüßen, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com http://www.bearingpoint.com/ *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *** *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: WG: IOC TapestryException creating a sample application
Everything looks ok. Did you use the maven-archetype to create the project ? Did it work before you started changing the generated files ? Stranzenbach, Ralf wrote: Hi. For sure. It's quite easy... package de.reswi.tapestry_empty.pages; import java.util.Date; import org.apache.tapestry.annotations.ComponentClass; import org.apache.tapestry.ioc.annotations.Id; @ComponentClass public class Home { public Date getDate() { return new Date(); } } During my tests I've resigned and took some sample page from the maven generated artifacts... html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlehilo Start Page/title /head body h1hilo Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${date}. /p p [a t:type=PageLink page=Homerefresh/a] /p /body /html Home.html and the Home.java are both placed in the pages package. Regards, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com -Ursprüngliche Nachricht- Von: Hugo Palma [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. Februar 2007 16:14 An: Tapestry users Betreff: Re: WG: IOC TapestryException creating a sample application Can you post the template of you Home page ? You probably have a t:comp tag in the template with an empty id. Stranzenbach, Ralf wrote: Hi. I've tried to create a small sample application based on tapestry 5.0.1. I followed the example from the screencast and it seems to work more or less fine, but when accessing my page I get the message below. * org.apache.tapestry.ioc.internal.util.TapestryException Component de.reswi.tapestry_empty.pages.Home does not contain an embedded component with id ''. Nowhere in my code or HTML page I deal with additional ids. I'm quite puzzled. Mit freundlichen Grüßen, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com http://www.bearingpoint.com/ *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *** *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: WG: IOC TapestryException creating a sample application
That is quite odd. Are you sure you are not having any compile errors? Also, Tapestry looks for templates FIRST in the package (with the Java .class file), then in WEB-INF (for application pages). So you may have another template hanging around that you've forgotten about, that is causing the error. On 2/6/07, Hugo Palma [EMAIL PROTECTED] wrote: Everything looks ok. Did you use the maven-archetype to create the project ? Did it work before you started changing the generated files ? Stranzenbach, Ralf wrote: Hi. For sure. It's quite easy... package de.reswi.tapestry_empty.pages; import java.util.Date; import org.apache.tapestry.annotations.ComponentClass; import org.apache.tapestry.ioc.annotations.Id; @ComponentClass public class Home { public Date getDate() { return new Date(); } } During my tests I've resigned and took some sample page from the maven generated artifacts... html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlehilo Start Page/title /head body h1hilo Start Page/h1 p This is the start page for this application, a good place to start your modifications. Just to prove this is live: /p p The current time is: ${date}. /p p [a t:type=PageLink page=Homerefresh/a] /p /body /html Home.html and the Home.java are both placed in the pages package. Regards, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com -Ursprüngliche Nachricht- Von: Hugo Palma [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 6. Februar 2007 16:14 An: Tapestry users Betreff: Re: WG: IOC TapestryException creating a sample application Can you post the template of you Home page ? You probably have a t:comp tag in the template with an empty id. Stranzenbach, Ralf wrote: Hi. I've tried to create a small sample application based on tapestry 5.0.1. I followed the example from the screencast and it seems to work more or less fine, but when accessing my page I get the message below. * org.apache.tapestry.ioc.internal.util.TapestryException Component de.reswi.tapestry_empty.pages.Home does not contain an embedded component with id ''. Nowhere in my code or HTML page I deal with additional ids. I'm quite puzzled. Mit freundlichen Grüßen, Ralf Edmund Stranzenbach Manager, FS-Technology BearingPoint Management Technology Consultants Gladbecker Straße 5, 40472 Düsseldorf; Germany +49.211.17143.6038 Phone I +49.211.17143.6060 Fax I +49.174.3075211 Mobile [EMAIL PROTECTED] www.bearingpoint.com http://www.bearingpoint.com/ *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *** *** The information in this email is confidential and may be legally privileged Access to this email by anyone other than the intended addressee is unauthorized. If you are not the intended recipient of this message, any review, disclosure, copying, distribution, retention, or any action taken or omitted to be taken in reliance on it is prohibited and may be unlawful. If you are not the intended recipient, please reply to or forward a copy of this message to the sender and delete the message, any attachments, and any copies thereof from your system. *** - 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
Asset and dojo require
Hello it seems that dojo.require does not work with Asset provided by jar libs. I think that the problem is with digest, in fact the two assets mylib.jar:/js/jfly/edt/ and mylib.jar:/js/jfly/edt/edt.js are rendered as: /asset.svc?digest=d41d8cd98f00b204e9800998ecf8427epath=%2Fjs%2Fjfly%2Fedt%2F /asset.svc?digest=b1376bfb2d3b7c66ddd0fcf0d2a463a8path=%2Fjs%2Fjfly%2Fedt%2Fedt.js if my javascript is: dojo.registerModulePath(jfly.edt, /asset.svc?digest=d41d8cd98f00b204e9800998ecf8427epath=%2Fjs%2Fjfly%2Fedt%2F); dojo.require(jfly.edt.*); it doesn't work. How can I solve this problem ? Thx, kiuma
T5: Type coercer question
Hi, Im trying to contribute a type coercer from MyType to String (and vice versa), but it seems like the Object to String is used instead. When the ActionLink is rendered with a MyType in the context it renders to the value toString() returns, not the value my MyType-String coercer gives. I have tried to add @Order(before:*.*) to the contribution, but to no avail... any suggestions? -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Asset and dojo require
You have to unprotect those assets... Here's an example: http://tacos.sourceforge.net/tacos4.1/tacos-core/hivedocs/index.html Andrea Chiumenti wrote: Hello it seems that dojo.require does not work with Asset provided by jar libs. I think that the problem is with digest, in fact the two assets mylib.jar:/js/jfly/edt/ and mylib.jar:/js/jfly/edt/edt.js are rendered as: /asset.svc?digest=d41d8cd98f00b204e9800998ecf8427epath=%2Fjs%2Fjfly%2Fedt%2F /asset.svc?digest=b1376bfb2d3b7c66ddd0fcf0d2a463a8path=%2Fjs%2Fjfly%2Fedt%2Fedt.js if my javascript is: dojo.registerModulePath(jfly.edt, /asset.svc?digest=d41d8cd98f00b204e9800998ecf8427epath=%2Fjs%2Fjfly%2Fedt%2F); dojo.require(jfly.edt.*); it doesn't work. How can I solve this problem ? Thx, kiuma -- 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: T5: Type coercer question
I think ActionLink simply invokes toString(). I don't see why we couldn't use the TypeCoercer for this purpose. In most cases, the coercer will simply invoke toString(). The TypeCoercer is used on the flip side, mapping string query parameter values to typed event handler method parameters, so I can't see why not using it for your situation would matter. On 2/6/07, Ted Steen [EMAIL PROTECTED] wrote: Hi, Im trying to contribute a type coercer from MyType to String (and vice versa), but it seems like the Object to String is used instead. When the ActionLink is rendered with a MyType in the context it renders to the value toString() returns, not the value my MyType-String coercer gives. I have tried to add @Order(before:*.*) to the contribution, but to no avail... any suggestions? -- /ted - 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: Asset and dojo require
andy, as usual you save me :) but a last thing: what's wrong with: dojo.registerModulePath(jfly.edt, /asset.svc?path=%2Fjs%2Fjfly%2Fedt%2F); dojo.require(jfly.edt.*); Firefox firebug says: jfly is not defined document.edtEventHandler['tableForm'] = new jfly.edt.EdtEventHandler... Thhe .js is in /asset.svc?path=%2Fjs%2Fjfly%2Fedt%2Fedt.js and has: dojo.require(dojo.collections.*); dojo.provide(jfly.edt.EdtEventHandler); dojo.provide(jfly.edt.CellPosition); kiuma On 2/6/07, andyhot [EMAIL PROTECTED] wrote: You have to unprotect those assets... Here's an example: http://tacos.sourceforge.net/tacos4.1/tacos-core/hivedocs/index.html Andrea Chiumenti wrote: Hello it seems that dojo.require does not work with Asset provided by jar libs. I think that the problem is with digest, in fact the two assets mylib.jar:/js/jfly/edt/ and mylib.jar:/js/jfly/edt/edt.js are rendered as: /asset.svc?digest=d41d8cd98f00b204e9800998ecf8427epath=%2Fjs%2Fjfly%2Fedt%2F /asset.svc?digest=b1376bfb2d3b7c66ddd0fcf0d2a463a8path=%2Fjs%2Fjfly%2Fedt%2Fedt.js if my javascript is: dojo.registerModulePath(jfly.edt, /asset.svc?digest=d41d8cd98f00b204e9800998ecf8427epath=%2Fjs%2Fjfly%2Fedt%2F); dojo.require(jfly.edt.*); it doesn't work. How can I solve this problem ? Thx, kiuma -- 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: T5: Type coercer question
Geez ... that toString() is burried pretty deep! Inside LinkFactoryImpl, inside ComponentInvocation. On 2/6/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: I think ActionLink simply invokes toString(). I don't see why we couldn't use the TypeCoercer for this purpose. In most cases, the coercer will simply invoke toString(). The TypeCoercer is used on the flip side, mapping string query parameter values to typed event handler method parameters, so I can't see why not using it for your situation would matter. On 2/6/07, Ted Steen [EMAIL PROTECTED] wrote: Hi, Im trying to contribute a type coercer from MyType to String (and vice versa), but it seems like the Object to String is used instead. When the ActionLink is rendered with a MyType in the context it renders to the value toString() returns, not the value my MyType-String coercer gives. I have tried to add @Order(before:*.*) to the contribution, but to no avail... any suggestions? -- /ted - 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: Feedback for the AcegiSpringJava5FormBased wiki page
Wiki pages updated. Jim Roycroft wrote: I'd like to hang on for a bit to let Jesper update the wiki with any new things he has figured out. If I don't see any changes in another few days, I'll update it. Now, more new stuff for: AcegiSpringJava5Part2! (refactoring) 1. As specified in the Acegi javadocs, the getContext() method will never return null, so there is no need to check it. 2. The userName variable can be set to at the start, avoiding the need for the if statement at the end. Actually, we don't need the variable at all. 3. Since the Authentication object implements the Principal interface, we can actually call getName() on it. This avoids the need for a lot of the checking and casting code on the page. Here is the new code: public abstract class UserPage extends org.apache.tapestry.html.BasePage { public String getUserName() { Authentication auth = SecurityContextHolder.getContext().getAuthentication(); if( auth != null ) { return auth.getName(); } return ; } } Regards, Jim andyhot wrote: Yea, i've noticed some of those too, esp. the basic authentication 'issue' As for loging out, there's a wiki page that describes this and other ways... But anyway, you can go ahead and edit the wiki page yourself and add these findings. They should prove useful and time-saving Jimr wrote: It's great to see this howto up on the wiki! I have been playing around with the example and I have a couple of suggestions to make. 1. The FormProcessingFilter service point is most likely not required. Since the actual authentication is done programatically through the Acegi API, it does not appear to use the FormProcessingFilter at all. When I take this code out, there is no change whatsoever to the behaviour of the app. 2. If a user navigates directly to the login page and logs in successfully, the savedRequest object will be null, resulting in a NullPointerException. I don't have a generic solution for this one yet. It depends on how the pages are set up. 3. Here is a snippet that could be added to the end of the page for people wondering how to Logout: Add the following code to any html page where you want a logout link to appear: span jwcid=@ServiceLink service=ognl:@[EMAIL PROTECTED]Logout/span FYI this only works when using form based authentication through Tapestry. If you use Basic authentication, it will not. The root cause of this appears to be that Acegi maintains a session independently of Tapestry with Basic auth, because Tapestry is bypassed. When using Form based authentication, the ContextHolder's context gets tied to the Tapestry session, and is discarded when that session is destroyed. -- 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] -- View this message in context: http://www.nabble.com/Feedback-for-the-AcegiSpringJava5FormBased-wiki-page-tf3143789.html#a8831753 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: T5: Type coercer question
What I am trying to do is a way to pass database entity objects (or really my DTOs) to my listener methods. So the type coercer simply should coerce the entity to its unique key and use that as the client side representation of the entity. There are surely greater plans for these type of things, but I still would like to know if this is the intended use of a TC. Or should I maybe rethink the way to pass entity object between the client and server? 2007/2/6, Howard Lewis Ship [EMAIL PROTECTED]: Geez ... that toString() is burried pretty deep! Inside LinkFactoryImpl, inside ComponentInvocation. On 2/6/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: I think ActionLink simply invokes toString(). I don't see why we couldn't use the TypeCoercer for this purpose. In most cases, the coercer will simply invoke toString(). The TypeCoercer is used on the flip side, mapping string query parameter values to typed event handler method parameters, so I can't see why not using it for your situation would matter. On 2/6/07, Ted Steen [EMAIL PROTECTED] wrote: Hi, Im trying to contribute a type coercer from MyType to String (and vice versa), but it seems like the Object to String is used instead. When the ActionLink is rendered with a MyType in the context it renders to the value toString() returns, not the value my MyType-String coercer gives. I have tried to add @Order(before:*.*) to the contribution, but to no avail... any suggestions? -- /ted - 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] -- /ted - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Changing the default location of the component template
Was there something else to this? Any changes to the pages that use the component? I cannot get this to work. I presume you meant getTemplate() as opposed to get$template(). Khan, Hatim wrote: Ok, it turns out that I can do the following to change the location of a custom component template: @ComponentClass(allowBody = true, allowInformalParameters = false) public abstract class Border extends BaseComponent { @Asset(context:/WEB-INF/component/my-border.html) public abstract IAsset get$template(); } Sent: Tue 11/28/2006 3:59 PM To: users@tapestry.apache.org Subject: Changing the default location of the component template Hello, I am trying to use annotations instead of .jwc files. I have a custom BaseComponent with a template. However, I want the template to be located under WEB-INF/component/mycomponent.html. Going through some of the code, I found out that you can specify the location of the template using an asset named '$template'. This is great, but how can I use it with annotation? The only solution that I can think of is introducing a new annotation say '@AssetTemplate(context:/WEB-INF/component/mycomponent.html)' . This annotation will simply insert an asset named '$template' with the given value. I have seen other solutions using the ISpecificationResolverDelegate, (http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF), but the Wiki is saying that there is a bug (http://issues.apache.org/jira/browse/TAPESTRY-894) that will prevent the delegate solution from working correctly? Any advice will be greatly appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Changing-the-default-location-of-the-component-template-tf2720951.html#a8832982 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: Changing the default location of the component template
Nevermind, get$template() was absolutely correct! Man that's ugly Jim Roycroft wrote: Was there something else to this? Any changes to the pages that use the component? I cannot get this to work. I presume you meant getTemplate() as opposed to get$template(). Khan, Hatim wrote: Ok, it turns out that I can do the following to change the location of a custom component template: @ComponentClass(allowBody = true, allowInformalParameters = false) public abstract class Border extends BaseComponent { @Asset(context:/WEB-INF/component/my-border.html) public abstract IAsset get$template(); } Sent: Tue 11/28/2006 3:59 PM To: users@tapestry.apache.org Subject: Changing the default location of the component template Hello, I am trying to use annotations instead of .jwc files. I have a custom BaseComponent with a template. However, I want the template to be located under WEB-INF/component/mycomponent.html. Going through some of the code, I found out that you can specify the location of the template using an asset named '$template'. This is great, but how can I use it with annotation? The only solution that I can think of is introducing a new annotation say '@AssetTemplate(context:/WEB-INF/component/mycomponent.html)' . This annotation will simply insert an asset named '$template' with the given value. I have seen other solutions using the ISpecificationResolverDelegate, (http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF), but the Wiki is saying that there is a bug (http://issues.apache.org/jira/browse/TAPESTRY-894) that will prevent the delegate solution from working correctly? Any advice will be greatly appreciated. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Changing-the-default-location-of-the-component-template-tf2720951.html#a8832987 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
new session starting
I have an html page which is refreshing, and each time it refreshes, a new session is getting started. eg. html jwcid=@Shell title=Shopping Cart stylesheet=asset:stylesheet refresh=1 What could be causing a new session to be created each time this page is refreshed? thanks, craig
Tap4.1.2. - @DropDownDatePicker component validation - resets to previous value for invalid dates without user awareness
The @DropDownDatePicker resets to the previous value if someone manually changes the date to an invalid one, but the user is unaware of any validation issues. For example, we have an Expiration Date field that is set for 2/28/2007 and a user manually changes it to 2/29/2008. When they submit the form (without focusing on the next field) the form passes validation and the user thinks that the date they entered is fine. However, what ends up happening is the date just reverts back to the previous value and the user is now unaware that the changes they made on that date were incorrect and not saved. Is there anyway to indicate to the user that an error occurred? Thanks in advance. Anna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Equivalent of this.form.events.submit() in Tap 4.1.1
I know in tapestry 4.1.1 this API changed and you have to use the tapestry.form.submit(formName) call. What is the easiest most straightforward way of getting the name of the enclosing form so that I can submit it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Changing the default location of the component template
Better not use the $template asset - it's completely undocumented and could go away without notice. Go with the wiki suggestion - you can easily invent variations on it, i.e. we like keeping the templates (for both pages and components) in the same folder as the .java files - a ClasspathSpecResolverDelegate and a ClasspathComponentSpecResolver are enough to do the trick. fyi, TAPESTRY-894 has been fixed Jim Roycroft wrote: Nevermind, get$template() was absolutely correct! Man that's ugly Jim Roycroft wrote: Was there something else to this? Any changes to the pages that use the component? I cannot get this to work. I presume you meant getTemplate() as opposed to get$template(). Khan, Hatim wrote: Ok, it turns out that I can do the following to change the location of a custom component template: @ComponentClass(allowBody = true, allowInformalParameters = false) public abstract class Border extends BaseComponent { @Asset(context:/WEB-INF/component/my-border.html) public abstract IAsset get$template(); } Sent: Tue 11/28/2006 3:59 PM To: users@tapestry.apache.org Subject: Changing the default location of the component template Hello, I am trying to use annotations instead of .jwc files. I have a custom BaseComponent with a template. However, I want the template to be located under WEB-INF/component/mycomponent.html. Going through some of the code, I found out that you can specify the location of the template using an asset named '$template'. This is great, but how can I use it with annotation? The only solution that I can think of is introducing a new annotation say '@AssetTemplate(context:/WEB-INF/component/mycomponent.html)' . This annotation will simply insert an asset named '$template' with the given value. I have seen other solutions using the ISpecificationResolverDelegate, (http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF), but the Wiki is saying that there is a bug (http://issues.apache.org/jira/browse/TAPESTRY-894) that will prevent the delegate solution from working correctly? Any advice will be greatly appreciated. Thanks - 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]
Tacos-like AJAX effects in Tapestry 4.1
Is there a way to add rendering effects such as fade in and fade out with standard Tapestry 4.1 like you could in Tacos with the preEffects and postEffects parameters? If not, where would I find information on how to implement this? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Type coercer question
To be honest, I'm trying to avoid having the framework do to much here. Given the tools that are available, which is to say injectable, the need for the framework to do stuff like T4's DataSqueezer is greatly reduced (in fact, had I had HiveMind and a few good ideas in T2 DataSqueezer would never have existed). So my initial thought was that the context would be entity.id, and your event handler method would include the code to convert the id back to the entity. Down side: that much more code. Up side: control over when it happens and how to recover from any errors (such as an entity getting deleted between requests). On 2/6/07, Ted Steen [EMAIL PROTECTED] wrote: What I am trying to do is a way to pass database entity objects (or really my DTOs) to my listener methods. So the type coercer simply should coerce the entity to its unique key and use that as the client side representation of the entity. There are surely greater plans for these type of things, but I still would like to know if this is the intended use of a TC. Or should I maybe rethink the way to pass entity object between the client and server? 2007/2/6, Howard Lewis Ship [EMAIL PROTECTED]: Geez ... that toString() is burried pretty deep! Inside LinkFactoryImpl, inside ComponentInvocation. On 2/6/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: I think ActionLink simply invokes toString(). I don't see why we couldn't use the TypeCoercer for this purpose. In most cases, the coercer will simply invoke toString(). The TypeCoercer is used on the flip side, mapping string query parameter values to typed event handler method parameters, so I can't see why not using it for your situation would matter. On 2/6/07, Ted Steen [EMAIL PROTECTED] wrote: Hi, Im trying to contribute a type coercer from MyType to String (and vice versa), but it seems like the Object to String is used instead. When the ActionLink is rendered with a MyType in the context it renders to the value toString() returns, not the value my MyType-String coercer gives. I have tried to add @Order(before:*.*) to the contribution, but to no avail... any suggestions? -- /ted - 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] -- /ted - 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]
How to get Tap4.1.2 SNAPSHOOT? Need help with pom.xml
I there. I'm not a Maven guy, so I don't really now how to set up a pom.xml do get the Tap 4.1.2 snapshoot. I have seen the instructions page... http://tapestry.apache.org/tapestry4.1/download.html But some more is needed to get the files right? I set up the pom.xml like this... project modelVersion4.0.0/modelVersion groupIdmy.group/groupId artifactIdmy-project/artifactId packagingwar/packaging version0.1.1-SNAPSHOT/version descriptionMy description/description nameMy project name/name dependencies dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-framework/artifactId version4.1.2-SNAPSHOT/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-annotations/artifactId version4.1.2-SNAPSHOT/version /dependency dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-contrib/artifactId version4.1.2-SNAPSHOT/version /dependency /dependencies /project And I get... $ mvn install [INFO] Scanning for projects... [INFO] [INFO] Building My project name [INFO]task-segment: [install] [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom 3K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar 13K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.1/maven-compiler-plugin-2.0.1.jar 14K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.pom 1K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.2/maven-surefire-plugin-2.2.jar 14K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom 981b downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom 6K downloaded Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar 8K downloaded [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Failed to resolve artifact. Missing: -- 1) org.apache.tapestry:tapestry-annotations:jar:4.1.2-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tapestry-DartifactId=tapestry-annotations \ -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) my.group:my-project:war:0.1.1-SNAPSHOT 2) org.apache.tapestry:tapestry-annotations:jar:4.1.2-SNAPSHOT 2) org.apache.tapestry:tapestry-framework:jar:4.1.2-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tapestry-DartifactId=tapestry-framework \ -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) my.group:my-project:war:0.1.1-SNAPSHOT 2) org.apache.tapestry:tapestry-framework:jar:4.1.2-SNAPSHOT 3) org.apache.tapestry:tapestry-contrib:jar:4.1.2-SNAPSHOT Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file -DgroupId=org.apache.tapestry-DartifactId=tapestry-contrib \ -Dversion=4.1.2-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file Path to dependency: 1) my.group:my-project:war:0.1.1-SNAPSHOT 2) org.apache.tapestry:tapestry-contrib:jar:4.1.2-SNAPSHOT -- 3 required artifacts are missing. for artifact: my.group:my-project:war:0.1.1-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] [INFO] For more information, run Maven with the -e switch [INFO]
T4.1.1: Autocomplete is generating tow components instead of one!
I there. I have a strange behaviour with the T4.1.1 Autocompleter. I have build a wrapper component that encapsulates the Autocompleter with a few added funcionalities for my apps use. Basically the new component just wraps a autocompleter inside and set a few things like the ListModel from a few new parameters it receives. Something like this... InputAutocomplete.html html body jwcid=$content$ span class=autocompleter jwcid=autoCompleter style=ognl:'width: '+width+'px; height: 20px;' / /body /html InputAutocomple.jwc (the relevant parts...) ?xml version=1.0? !DOCTYPE component-specification...Tapestry_4_0.dtd component-specification class= com.teamware.fw.view.components.forms.InputAutocomplete allow-body=no allow-informal-parameters=yes descriptionInput field for LOV value selection based on Autocompleter/description (...) parameter name=service descriptionBaseService instance to get data list from/description /parameter parameter name=fieldName descriptionName of the data field to list in the drop down autocompleter list/description /parameter parameter name=keyName default-value=literal:id descriptionName of the key field of the model/description /parameter parameter name=listModel default-value=ognl:defaultModel description The IAutocompleteModel that should be used to filter the drop down list and render the drop down list /description /parameter (...) /component-specification InputAutocomplete.java public abstract class InputAutocomplete extends BaseComponentImplementation implements IFormComponent { public abstract BaseService getService(); public abstract String getFieldName(); public abstract String getKeyName(); // TODO: public abstract LinkedFormComponents getFilterComponent(); // TODO: public abstract String getFilterFieldAttribute(); public abstract BasePojo getValue(); @Component(id = autoCompleter, type = Autocompleter, bindings = { displayName=displayName, value=value, model=listModel, filterOnChange=true, validators=validators }) public abstract Autocompleter getAutoCompleter(); public IAutocompleteModel getDefaultModel() { getLogger().debug(Component: + this.toString()); return new DefaultAutocompleteModel(getService().getAll(), getKeyName(), getFieldName()); } } The BaseComponentImplementation is not relevant since it only provides common resources for all my componentes like loging and stuff. This component when used generates a curious result... In the surrounding FORM component... 2 autoCompleter's input type=hidden name=formids value=autoCompleter,autoCompleter_0.../ The generated INPUTs is only one... but the second, notice the _0 suffix! select name=autoCompleter_0 id=autoCompleter_0 class=autocompleter style=width: 300px; height: 20px;/select And in the configuring JS in the bottom... var autoCompleterprop={dataUrl:/delegateit/app?component=departmentSearch.autoCompleterjson=truepage=Homeservice=directupdateParts=autoCompleterfilter=%{searchString},mode:remote,widgetId:autoCompleter,name:autoCompleter,searchDelay:100,fadeTime:200}; tapestry.widget.synchronizeWidgetState(autoCompleter, Select, autoCompleterprop); if (autoCompleterprop[label] autoCompleterprop[value]){ var selw=dojo.widget.byId(autoCompleter); selw.setValue(autoCompleterprop[value]); selw.setLabel(autoCompleterprop[label]); } var autoCompleter_0prop={dataUrl:/delegateit/app?component=departmentSearch.autoCompleterjson=truepage=Homeservice=directupdateParts=autoCompleterfilter=%{searchString},mode:remote,widgetId:autoCompleter_0,name:autoCompleter_0,searchDelay:100,fadeTime:200}; tapestry.widget.synchronizeWidgetState(autoCompleter_0, Select, autoCompleter_0prop); if (autoCompleter_0prop[label] autoCompleter_0prop[value]){ var selw=dojo.widget.byId(autoCompleter_0); selw.setValue(autoCompleter_0prop[value]); selw.setLabel(autoCompleter_0prop[label]); } Just to sum it up... the logger debug line IS called twice, so it really is instanciated twice, even thought the INPUT tag is only generated for the second one! Strange! 02:49:24,197 DEBUG [InputAutocomplete] Component: [EMAIL PROTECTED]/departmentSearch] 02:49:24,402 DEBUG [InputAutocomplete] Component: [EMAIL PROTECTED]/departmentSearch] Can someone help me please? This sound like a BUG of the component right? Or I'm making an unsuported usage of it of some kind. --- Pedro Viegas
Re: new session starting
The most obvious example would be to have cookies disabled and to not use a URL with the session id encoded in it. Or is there something else which is disturbing your cookies, somehow, such as a proxy server? --sam On 2/6/07, Craig Hamilton [EMAIL PROTECTED] wrote: I have an html page which is refreshing, and each time it refreshes, a new session is getting started. eg. html jwcid=@Shell title=Shopping Cart stylesheet=asset:stylesheet refresh=1 What could be causing a new session to be created each time this page is refreshed? thanks, craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry-spring and IEngineService
Hi, Is there any way to inject a Spring bean into an IEngineService (defined in hivemodule.xml) ? I tried to do this by using @InjectSpring (tapestry-spring), however I get a null pointer exception for the injected object. @InjectSpring(entityService) public EntityService getEntityService() { return entityService; } getEntityService() returns null. regards, Nalin. NOTICE This e-mail and any attachments are confidential and may contain copyright material of Macquarie Bank or third parties. If you are not the intended recipient of this email you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. Macquarie Bank does not guarantee the integrity of any emails or any attached files. The views or opinions expressed are the author's own and may not reflect the views or opinions of Macquarie Bank.