Re: form submit doesnt work when using an encoder
Hi How do you initialize your source values on submit ? 2010/11/9 hese 1024h...@gmail.com hi I have a form in which I use a grid with an encoder. Strangely when I include the encoder attribute in the grid component onSubmit() or onSuccessFrom...() dont get called. When I remove the the encoder attribute they are called. Any ideas??? TML form t:type=form t:id=upload t:context=id t:errors/ t:upload t:id=file class=text medium / t:submit class=button value=${message:button.make} t:id=make / t:submit class=button value=${message:button.upload} t:id=save/ table t:grid t:id=tags1 t:source=tagRows t:row=tagRow t:encoder=tagRowEncoder t:rowclass=prop:evenodd.next /t:grid /table /form JAVA @Property private TagRowEncoder tagRowEncoder; void onPrepare() { tagRowEncoder = new TagRowEncoder(); } private class TagRowEncoder implements ValueEncoderTagRow { @Override public String toClient(TagRow value) { Long key = value.getKey(); return key.toString(); } @Override public TagRow toValue(String keyAsString) { long key = Common.toLong(keyAsString); for (TagRow holder : tagRows) { if (holder.getKey() == key) { return holder; } } throw new IllegalArgumentException(Received key \ + key + \ which has no counterpart in this collection: + tagRows); } } -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-submit-doesnt-work-when-using-an-encoder-tp3257152p3257152.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com
Re: session is NULL
I have setup my DAO as a Tapestry service in the AppModule as: public class AppModule { public static void bind(ServiceBinder binder) { binder.bind(BranchDAO.class, BranchHibernateDAO.class); } } Then, I try to inject the session as follows: public class BranchHibernateDAO implements BranchDAO { @Inject private Session session; �...@suppresswarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); } } I still get a NULL session. Following the suggestion by Kalle, I injected the session to a page. Then, passed the session to my DAO in the contructor. That worked! However, I would rather keep the code cleaner by injecting the session directly into the DAO. Any suggestion would be greatly appreciated. --- On Wed, 11/10/10, Kalle Korhonen kalle.o.korho...@gmail.com wrote: From: Kalle Korhonen kalle.o.korho...@gmail.com Subject: Re: session is NULL To: Tapestry users users@tapestry.apache.org Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at 9:52 PM, Anas Mughal anasmug...@yahoo.com wrote: I have setup my Tapestry project using the Maven archetype. Then, I setup my hibernate.cfg.xml file with references to my hibernate mapping files. (I am not using annotations for hibernate.) Now, I have setup a simple DAO object to try to retrieve an object from the database: public class BranchDAO { @Inject private Session session; @SuppressWarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); // session is NULL here } } I get a NULL pointer exception because my session does not seem to be initialized. Searching online, I came accross: http://wiki.apache.org/tapestry/SessionPagePersistence I have not setup any hivemind configuration or any of the suggested classes on that wiki page. Please advise me what do I need to be able to fetch objects using Tapestry-Hibernate. I don't know where to place the hivemind configuration file -- if I need it. I am new to Tapestry. Please bear with me. Thank you for your kind assistance. --Anas Mughal http://anas-mughal.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Localization changes in t5.2.2
Hi, the supported Locales do contain de, de_DE, de_CH, fr_CH, etc. M. Am 10.11.2010 um 09:33 schrieb Christophe Cordenier: Hi How is configured your supported locales ? 2010/11/9 Moritz Gmelin moritz.gme...@gmx.de Hi, I have just done the upgrade of out application to T5.2.2. We have so far had a system to redirect a user to a localized start page depending on his locale settings. So far those locale settings could contain language and country. So a german user was re-directed to context/de_DE/startpage. A swiss user could get redirected to de_CH or fr_CH (or it_CH). Since 5.2.2, T5.2.2 does not accept those paths containing the country anymore. Only language paths (context/de/startpage) URLs are accepted. Everything else gets redirected to the default start page. Why is that? How can I now differentiate country specifics for localization? Regards Moritz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ValidationDecorator using zone updates don't seem to work
Thanks Denis, that worked great. Still, i think this is more of a workaround than a solution right ? Shouldn't this work right out-of-the-box ? On Wed, Nov 10, 2010 at 12:08, Denis Stepanov denis.stepa...@gmail.comwrote: Try: public void contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter configuration, final Environment environment) { MarkupRendererFilter defaultValidationDecorator = new MarkupRendererFilter() { public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { environment.push(ValidationDecorator.class, new MyValidatorDecorator(environment, writer)); renderer.renderMarkup(writer); environment.pop(ValidationDecorator.class); } }; configuration.add(MyValidatorDecorator, defaultValidationDecorator, after:DefaultValidationDecorator); } public void contributePartialMarkupRenderer(OrderedConfigurationPartialMarkupRendererFilter configuration, final Environment environment) { PartialMarkupRendererFilter defaultValidationDecorator = new PartialMarkupRendererFilter() { public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { environment.push(ValidationDecorator.class, new MyValidatorDecorator(environment, writer)); renderer.renderMarkup(writer, reply); environment.pop(ValidationDecorator.class); } }; configuration.add(MyValidatorDecorator, defaultValidationDecorator, after:DefaultValidationDecorator); } On 10.11.2010, at 12:15, Hugo Palma wrote: The doesn't seem to be on the render but on the injection of the ValidationDecorator into de label component in my case. I've created an issue for this here https://issues.apache.org/jira/browse/TAP5-1339 On Wed, Nov 10, 2010 at 10:20, Denis Stepanov denis.stepa...@gmail.com wrote: Ajax response uses PartialMarkupRenderer via contributePartialMarkupRenderer. Denis On 9.11.2010, at 17:00, Hugo Palma wrote: I contributed a custom ValidationDecorator which in my case simply adds a * to the label of every required field. This works fine except when i update a zone with a form. If the form is rendered on page load the ValidationDecorator is executed as excepted, but if i update a zone with a form component then the label fields on that form aren't decorated by my custom ValidationDecorator. Any idea if this is a bug or maybe i'm doing something wrong ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- LinkedIn http://www.linkedin.com/in/hugopalma Twitterhttp://twitter.com/hugompalma -- LinkedIn http://www.linkedin.com/in/hugopalma Twitterhttp://twitter.com/hugompalma
Re: Localization changes in t5.2.2
Hi How is configured your supported locales ? 2010/11/9 Moritz Gmelin moritz.gme...@gmx.de Hi, I have just done the upgrade of out application to T5.2.2. We have so far had a system to redirect a user to a localized start page depending on his locale settings. So far those locale settings could contain language and country. So a german user was re-directed to context/de_DE/startpage. A swiss user could get redirected to de_CH or fr_CH (or it_CH). Since 5.2.2, T5.2.2 does not accept those paths containing the country anymore. Only language paths (context/de/startpage) URLs are accepted. Everything else gets redirected to the default start page. Why is that? How can I now differentiate country specifics for localization? Regards Moritz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com
Re: Localization changes in t5.2.2
How do you build the redirect URL ? 2010/11/10 Moritz Gmelin moritz.gme...@gmx.de Hi, the supported Locales do contain de, de_DE, de_CH, fr_CH, etc. M. Am 10.11.2010 um 09:33 schrieb Christophe Cordenier: Hi How is configured your supported locales ? 2010/11/9 Moritz Gmelin moritz.gme...@gmx.de Hi, I have just done the upgrade of out application to T5.2.2. We have so far had a system to redirect a user to a localized start page depending on his locale settings. So far those locale settings could contain language and country. So a german user was re-directed to context/de_DE/startpage. A swiss user could get redirected to de_CH or fr_CH (or it_CH). Since 5.2.2, T5.2.2 does not accept those paths containing the country anymore. Only language paths (context/de/startpage) URLs are accepted. Everything else gets redirected to the default start page. Why is that? How can I now differentiate country specifics for localization? Regards Moritz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com
Re: Localization changes in t5.2.2
Something like this. @Inject private PersistentLocale persistentLocale; Locale loc = new Locale(de, DE); persistentLocale.set(loc); Link link = linkSource.createPageRenderLink(Start.class); request.getResponse().sendRedirect(link); Am 10.11.2010 um 09:58 schrieb Christophe Cordenier: How do you build the redirect URL ? 2010/11/10 Moritz Gmelin moritz.gme...@gmx.de Hi, the supported Locales do contain de, de_DE, de_CH, fr_CH, etc. M. Am 10.11.2010 um 09:33 schrieb Christophe Cordenier: Hi How is configured your supported locales ? 2010/11/9 Moritz Gmelin moritz.gme...@gmx.de Hi, I have just done the upgrade of out application to T5.2.2. We have so far had a system to redirect a user to a localized start page depending on his locale settings. So far those locale settings could contain language and country. So a german user was re-directed to context/de_DE/startpage. A swiss user could get redirected to de_CH or fr_CH (or it_CH). Since 5.2.2, T5.2.2 does not accept those paths containing the country anymore. Only language paths (context/de/startpage) URLs are accepted. Everything else gets redirected to the default start page. Why is that? How can I now differentiate country specifics for localization? Regards Moritz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com
Re: User guide missing from 5.2 site menu
Awesome, the new web site is looking great. On Wed, Nov 10, 2010 at 01:59, Howard Lewis Ship hls...@gmail.com wrote: We are scrambling to get the new web site up and running; the content you are looking for is available, temporarily, here: http://people.apache.org/~uli/tapestry-site/ On Tue, Nov 9, 2010 at 2:57 AM, Hugo Palma hugo.m.pa...@gmail.com wrote: It seems that the latest site deploy doesn't show the user guide on the left menu of the website http://tapestry.apache.org/tapestry5.2-dev/ http://tapestry.apache.org/tapestry5.2-dev/Is this on purpose ? I can't find a link to user guide anywhere else. -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com -- LinkedIn http://www.linkedin.com/in/hugopalma Twitterhttp://twitter.com/hugompalma
Re: session is NULL
Kindly visit my post. http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-td3229905.html#a3229905 http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-td3229905.html#a3229905 -- View this message in context: http://tapestry.1045711.n5.nabble.com/session-is-NULL-tp3258165p3258344.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ValidationDecorator using zone updates don't seem to work
Try: public void contributeMarkupRenderer(OrderedConfigurationMarkupRendererFilter configuration, final Environment environment) { MarkupRendererFilter defaultValidationDecorator = new MarkupRendererFilter() { public void renderMarkup(MarkupWriter writer, MarkupRenderer renderer) { environment.push(ValidationDecorator.class, new MyValidatorDecorator(environment, writer)); renderer.renderMarkup(writer); environment.pop(ValidationDecorator.class); } }; configuration.add(MyValidatorDecorator, defaultValidationDecorator, after:DefaultValidationDecorator); } public void contributePartialMarkupRenderer(OrderedConfigurationPartialMarkupRendererFilter configuration, final Environment environment) { PartialMarkupRendererFilter defaultValidationDecorator = new PartialMarkupRendererFilter() { public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { environment.push(ValidationDecorator.class, new MyValidatorDecorator(environment, writer)); renderer.renderMarkup(writer, reply); environment.pop(ValidationDecorator.class); } }; configuration.add(MyValidatorDecorator, defaultValidationDecorator, after:DefaultValidationDecorator); } On 10.11.2010, at 12:15, Hugo Palma wrote: The doesn't seem to be on the render but on the injection of the ValidationDecorator into de label component in my case. I've created an issue for this here https://issues.apache.org/jira/browse/TAP5-1339 On Wed, Nov 10, 2010 at 10:20, Denis Stepanov denis.stepa...@gmail.comwrote: Ajax response uses PartialMarkupRenderer via contributePartialMarkupRenderer. Denis On 9.11.2010, at 17:00, Hugo Palma wrote: I contributed a custom ValidationDecorator which in my case simply adds a * to the label of every required field. This works fine except when i update a zone with a form. If the form is rendered on page load the ValidationDecorator is executed as excepted, but if i update a zone with a form component then the label fields on that form aren't decorated by my custom ValidationDecorator. Any idea if this is a bug or maybe i'm doing something wrong ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- LinkedIn http://www.linkedin.com/in/hugopalma Twitterhttp://twitter.com/hugompalma
Re: ValidationDecorator using zone updates don't seem to work
The doesn't seem to be on the render but on the injection of the ValidationDecorator into de label component in my case. I've created an issue for this here https://issues.apache.org/jira/browse/TAP5-1339 On Wed, Nov 10, 2010 at 10:20, Denis Stepanov denis.stepa...@gmail.comwrote: Ajax response uses PartialMarkupRenderer via contributePartialMarkupRenderer. Denis On 9.11.2010, at 17:00, Hugo Palma wrote: I contributed a custom ValidationDecorator which in my case simply adds a * to the label of every required field. This works fine except when i update a zone with a form. If the form is rendered on page load the ValidationDecorator is executed as excepted, but if i update a zone with a form component then the label fields on that form aren't decorated by my custom ValidationDecorator. Any idea if this is a bug or maybe i'm doing something wrong ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- LinkedIn http://www.linkedin.com/in/hugopalma Twitterhttp://twitter.com/hugompalma
Re: session is NULL
On Wed, Nov 10, 2010 at 9:42 AM, Anas Mughal anasmug...@yahoo.com wrote: I have setup my DAO as a Tapestry service in the AppModule as: [...] Then, I try to inject the session as follows: public class BranchHibernateDAO implements BranchDAO { @Inject private Session session; @SuppressWarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); } } I still get a NULL session. Following the suggestion by Kalle, I injected the session to a page. Then, passed the session to my DAO in the contructor. That worked! However, I would rather keep the code cleaner by injecting the session directly into the DAO. Any suggestion would be greatly appreciated. How do you access an instance of BranchHibernateDAO? I suspect that you might create it using 'new'. That is not correct. Use Tapestry injections instead, e.g. in your page or component: @Inject private BranchDAO dao; Regards, Cezary
Re: Localization changes in t5.2.2
ok, i will have a closer look. 2010/11/10 Moritz Gmelin moritz.gme...@gmx.de Something like this. @Inject private PersistentLocale persistentLocale; Locale loc = new Locale(de, DE); persistentLocale.set(loc); Link link = linkSource.createPageRenderLink(Start.class); request.getResponse().sendRedirect(link); Am 10.11.2010 um 09:58 schrieb Christophe Cordenier: How do you build the redirect URL ? 2010/11/10 Moritz Gmelin moritz.gme...@gmx.de Hi, the supported Locales do contain de, de_DE, de_CH, fr_CH, etc. M. Am 10.11.2010 um 09:33 schrieb Christophe Cordenier: Hi How is configured your supported locales ? 2010/11/9 Moritz Gmelin moritz.gme...@gmx.de Hi, I have just done the upgrade of out application to T5.2.2. We have so far had a system to redirect a user to a localized start page depending on his locale settings. So far those locale settings could contain language and country. So a german user was re-directed to context/de_DE/startpage. A swiss user could get redirected to de_CH or fr_CH (or it_CH). Since 5.2.2, T5.2.2 does not accept those paths containing the country anymore. Only language paths (context/de/startpage) URLs are accepted. Everything else gets redirected to the default start page. Why is that? How can I now differentiate country specifics for localization? Regards Moritz - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com -- Regards, Christophe Cordenier. Committer on Apache Tapestry 5 Co-creator of wooki @wookicentral.com
Re: Diference between addInit and addScript
so RenderSupport is deprecated, the use of addScript is discouraged and I think I 've learned something new... thanks Howard, Nicolás.- On Tue, Nov 9, 2010 at 10:58 PM, Howard Lewis Ship hls...@gmail.com wrote: defined on the Tapestry.Initializer object, to be executed with a set of parameters.
Re: @Persist vs onActivate/OnPassivate
+1 for the best practices page Nicolás.- 2010/11/9 françois facon fra.fa...@gmail.com Passivate will also generate clean and *Bookmarkable* URL for you. Activate/ passivate will reduce memory use and increase performance in server side. because Creating session cost a lot and require memory. by using @Persist, you will generate at east one more request to initialize your data. About documentation, there is perhaps a need for a page that define the best pratices for T5. 2010/11/9 Andreas Andreou andy...@di.uoa.gr It's flash, not flush. :) That's a great idea for an easter-egg there! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry PMC / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: ValidationDecorator using zone updates don't seem to work
Ajax response uses PartialMarkupRenderer via contributePartialMarkupRenderer. Denis On 9.11.2010, at 17:00, Hugo Palma wrote: I contributed a custom ValidationDecorator which in my case simply adds a * to the label of every required field. This works fine except when i update a zone with a form. If the form is rendered on page load the ValidationDecorator is executed as excepted, but if i update a zone with a form component then the label fields on that form aren't decorated by my custom ValidationDecorator. Any idea if this is a bug or maybe i'm doing something wrong ? Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Do a POST with Tapestry and Link
It's not really clear what you want to do. With Tapestry you really don't need to fiddling with URLEncoder or connections. Which Tapestry Version are you targeting (3, 4 or 5)? If you use 5 - take a look at the LinkSubmit component (http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/LinkSubmit.html). Simple form example with LinkSubmit: form t:type=form t:id=myForm input type=text t:type=TextField t:id=myText value=text / # Submit me /form -- View this message in context: http://tapestry-users.832.n2.nabble.com/Do-a-POST-with-Tapestry-and-Link-tp5717358p5724205.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: @Persist vs onActivate/OnPassivate
Hmmm, so I guess this examples page of Passing Data Between Pages isn't meeting the need: http://jumpstart.doublenegative.com.au/jumpstart/examples/state/passingdatabetweenpages1 Suggestions welcome. Cheers, Geoff On 11/11/2010, at 12:06 AM, Nicolas Barrera wrote: +1 for the best practices page Nicolás.- 2010/11/9 françois facon fra.fa...@gmail.com Passivate will also generate clean and *Bookmarkable* URL for you. Activate/ passivate will reduce memory use and increase performance in server side. because Creating session cost a lot and require memory. by using @Persist, you will generate at east one more request to initialize your data. About documentation, there is perhaps a need for a page that define the best pratices for T5. 2010/11/9 Andreas Andreou andy...@di.uoa.gr It's flash, not flush. :) That's a great idea for an easter-egg there! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry PMC / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Deploying T5.2.2 in Glassfish 2.1.1
Hello all, I was upgrading my apps from T 5.1.0.5 to T.5.2.2 , I've managed to make it run in my dev environment (eclipse wtp, tomcat 6). But when i deployed in my production environment Glassfish v2.1.1 I've stumbled into this problem. I've removed the woodstox and stax library from the lib/ext folder (workaround when deploying T5.1.0.5 in GF). For the record I'm using hibernate 3.6.0 , since it works on my dev env, i don't think there's a problem using that version. Can anyone help me with this problem ? Thanks a lot, Cheers, Abangkis [#|2010-11-10T21:35:12.031+0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-80-0;_RequestID=7565e709-f497-4a0b-b0f8-c6218b111e70;|StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default threw exception org.apache.tapestry5.ioc.internal.util.TapestryException: Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, InvalidationEventHub) (at TapestryModule.java:2287) (for service 'ValueEncoderSource'): Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, LoggerSource): Exception constructing service 'HibernateSessionSource': Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): javax.persistence.OneToOne.orphanRemoval()Z [at classpath:org/apache/tapestry5/corelib/components/ExceptionDisplay.tml, line 3] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:993) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:829) at org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:171) at org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:190) at org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:174) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:173) at $PageLoader_12c36260ee7.loadPage($PageLoader_12c36260ee7.java) at org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:81) at $PageSource_12c36260ee5.getPage($PageSource_12c36260ee5.java) at org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:74) at $RequestPageCache_12c36260ee4.get($RequestPageCache_12c36260ee4.java) at $RequestPageCache_12c36260ee3.get($RequestPageCache_12c36260ee3.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:77) at $RequestExceptionHandler_12c36260ed3.handleRequestException($RequestExceptionHandler_12c36260ed3.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:984) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:974) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at net.mreunion.web.infrastructure.AssetProtectionFilter.service(AssetProtectionFilter.java:60) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:80) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at $RequestHandler_12c36260ecb.service($RequestHandler_12c36260ecb.java) at org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:272) at
Re: how to make tapestry ignore some html tags while parsing tml file
Thanks for all your replies! Fernando, I like your solution. I was thinking on similar lines...but not as a component, but a function that would return the #= tags which i could 'outputraw' into the tml, like tr td id=t2Col1Text t:outputraw ${beginTag}/data.yesterday.totalImpressionst:outputraw $endTag} /td /tr and have two functions String getBeginTag() { return #=; } String getEndTag() { return #; } but was wondering if there is a short cut to do it :) Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-tapestry-ignore-some-html-tags-while-parsing-tml-file-tp3257771p3258819.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tynamo tapestry-security help
Ah you are looking for documentation on Shiro. Maybe I can place the links to it more prominently on tapestry-security page, but see http://shiro.apache.org/core.html (there's more but for now Subject and Realms are the most relevant to you). If you want examples, Christophe's hotel booking demo with Tynamo (https://github.com/ccordenier/tapestry5-hotel-booking/tree/tynamo) is very nice. Kalle On Tue, Nov 9, 2010 at 8:46 PM, Paul Stanton p...@mapshed.com.au wrote: hi kalle, ok, to start with.. how would you go about integrating a userset stored in a database? how do you replace/customise the login page? how do you manually perform authentication? cheers, p. On 10/11/2010 3:17 PM, Kalle Korhonen wrote: On Tue, Nov 9, 2010 at 7:57 PM, Paul Stantonp...@mapshed.com.au wrote: Anyone know of a good 'getting started' guide for tynamo tapestry-security? this one ... http://docs.codehaus.org/display/TYNAMO/tapestry-security+guide ... still leaves me scratching my head. It does? Sorry about that, I honestly thought it's pretty straight-forwarded. What do you feel is missing? We have pretty extensive integration tests with the module, maybe taking a look at them would help you. You could start from http://svn.codehaus.org/tynamo/trunk/tapestry-security/src/test/java/org/tynamo/security/testapp/services/AppModule.java Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: session is NULL
On 11/10/2010 03:42 AM, Anas Mughal wrote: I have setup my DAO as a Tapestry service in the AppModule as: public class AppModule { public static void bind(ServiceBinder binder) { binder.bind(BranchDAO.class, BranchHibernateDAO.class); } } Then, I try to inject the session as follows: public class BranchHibernateDAO implements BranchDAO { @Inject private Session session; @SuppressWarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); } } I still get a NULL session. Following the suggestion by Kalle, I injected the session to a page. Then, passed the session to my DAO in the contructor. That worked! However, I would rather keep the code cleaner by injecting the session directly into the DAO. To use the DAO, you will want the following setup. public class BranchHibernateDAO implements BranchDAO { private Session session; public BranchHibernateDAO(Session session){ this.session = session; } ... } then in your page class: @Inject private BranchHibernateDAO bhdao; You do not need to initialize the BranchHibernateDAO yourself. Tapestry-IoC will initialize the BranchHibernateDAO lazily behind the scenes the first time you access it in the web application. In this case, that would be when you navigate to the page relating to your page class, where the DAO is injected. The convention for services, is that when they are setup in the bind method of the AppModule (or whatever your module is called), Tapestry will inject the appropriate objects to its constructor when it initializes the service. This convention will keep your page classes cleaner. Any suggestion would be greatly appreciated. --- On Wed, 11/10/10, Kalle Korhonenkalle.o.korho...@gmail.com wrote: From: Kalle Korhonenkalle.o.korho...@gmail.com Subject: Re: session is NULL To: Tapestry usersusers@tapestry.apache.org Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at 9:52 PM, Anas Mughalanasmug...@yahoo.com wrote: I have setup my Tapestry project using the Maven archetype. Then, I setup my hibernate.cfg.xml file with references to my hibernate mapping files. (I am not using annotations for hibernate.) Now, I have setup a simple DAO object to try to retrieve an object from the database: public class BranchDAO { @Inject private Session session; @SuppressWarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); // session is NULL here } } I get a NULL pointer exception because my session does not seem to be initialized. Searching online, I came accross: http://wiki.apache.org/tapestry/SessionPagePersistence I have not setup any hivemind configuration or any of the suggested classes on that wiki page. Please advise me what do I need to be able to fetch objects using Tapestry-Hibernate. I don't know where to place the hivemind configuration file -- if I need it. I am new to Tapestry. Please bear with me. Thank you for your kind assistance. --Anas Mughal http://anas-mughal.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: form submit doesnt work when using an encoder
sorry, not sure I understand what you mean ... but I am initializing my souce values in setupRender() like this - @Property private ListTagRow tagRows; void setupRender() { loadTags(); } should I be initializing it elsewhere? Actually, now I am doing it without the encoder (coz i cannot waste anymore time with this) and it works. but would still love to know what the problem was. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-submit-doesnt-work-when-using-an-encoder-tp3257152p3258889.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: form submit doesnt work when using an encoder
SetupRender is only executed when the page is being render. Encoders are used during render and during submit so you should use the PREPARE event of your form. On Wed, Nov 10, 2010 at 4:49 PM, hese 1024h...@gmail.com wrote: sorry, not sure I understand what you mean ... but I am initializing my souce values in setupRender() like this - @Property private ListTagRow tagRows; void setupRender() { loadTags(); } should I be initializing it elsewhere? Actually, now I am doing it without the encoder (coz i cannot waste anymore time with this) and it works. but would still love to know what the problem was. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-submit-doesnt-work-when-using-an-encoder-tp3257152p3258889.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: form submit doesnt work when using an encoder
The PREPARE event is executed when the form is render and when is submitted as explained here: http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry5/EventConstants.html#PREPARE On Wed, Nov 10, 2010 at 4:59 PM, Juan E. Maya maya.j...@gmail.com wrote: SetupRender is only executed when the page is being render. Encoders are used during render and during submit so you should use the PREPARE event of your form. On Wed, Nov 10, 2010 at 4:49 PM, hese 1024h...@gmail.com wrote: sorry, not sure I understand what you mean ... but I am initializing my souce values in setupRender() like this - @Property private ListTagRow tagRows; void setupRender() { loadTags(); } should I be initializing it elsewhere? Actually, now I am doing it without the encoder (coz i cannot waste anymore time with this) and it works. but would still love to know what the problem was. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-submit-doesnt-work-when-using-an-encoder-tp3257152p3258889.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Deploying T5.2.2 in Glassfish 2.1.1
hm.. moving to Glassfish v3.0.1 with the same deployment files doesn't show any of the previous problem. On Wed, Nov 10, 2010 at 9:46 PM, abangkis abang...@gmail.com wrote: Hello all, I was upgrading my apps from T 5.1.0.5 to T.5.2.2 , I've managed to make it run in my dev environment (eclipse wtp, tomcat 6). But when i deployed in my production environment Glassfish v2.1.1 I've stumbled into this problem. I've removed the woodstox and stax library from the lib/ext folder (workaround when deploying T5.1.0.5 in GF). For the record I'm using hibernate 3.6.0 , since it works on my dev env, i don't think there's a problem using that version. Can anyone help me with this problem ? Thanks a lot, Cheers, Abangkis [#|2010-11-10T21:35:12.031+0700|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=16;_ThreadName=httpSSLWorkerThread-80-0;_RequestID=7565e709-f497-4a0b-b0f8-c6218b111e70;|StandardWrapperValve[default]: PWC1406: Servlet.service() for servlet default threw exception org.apache.tapestry5.ioc.internal.util.TapestryException: Exception constructing service 'ValueEncoderSource': Error invoking service builder method org.apache.tapestry5.services.TapestryModule.buildValueEncoderSource(Map, InvalidationEventHub) (at TapestryModule.java:2287) (for service 'ValueEncoderSource'): Error invoking service contribution method org.apache.tapestry5.hibernate.HibernateModule.contributeValueEncoderSource(MappedConfiguration, boolean, HibernateSessionSource, Session, TypeCoercer, PropertyAccess, LoggerSource): Exception constructing service 'HibernateSessionSource': Error invoking service builder method org.apache.tapestry5.hibernate.HibernateCoreModule.buildHibernateSessionSource(Logger, List, RegistryShutdownHub) (at HibernateCoreModule.java:123) (for service 'HibernateSessionSource'): javax.persistence.OneToOne.orphanRemoval()Z [at classpath:org/apache/tapestry5/corelib/components/ExceptionDisplay.tml, line 3] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.invoke(ComponentPageElementImpl.java:993) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.containingPageDidLoad(ComponentPageElementImpl.java:829) at org.apache.tapestry5.internal.structure.PageImpl.loaded(PageImpl.java:171) at org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:190) at org.apache.tapestry5.internal.pageload.PageLoaderImpl$3.invoke(PageLoaderImpl.java:174) at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:65) at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1063) at org.apache.tapestry5.internal.pageload.PageLoaderImpl.loadPage(PageLoaderImpl.java:173) at $PageLoader_12c36260ee7.loadPage($PageLoader_12c36260ee7.java) at org.apache.tapestry5.internal.services.PageSourceImpl.getPage(PageSourceImpl.java:81) at $PageSource_12c36260ee5.getPage($PageSource_12c36260ee5.java) at org.apache.tapestry5.internal.services.NonPoolingRequestPageCacheImpl.get(NonPoolingRequestPageCacheImpl.java:74) at $RequestPageCache_12c36260ee4.get($RequestPageCache_12c36260ee4.java) at $RequestPageCache_12c36260ee3.get($RequestPageCache_12c36260ee3.java) at org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.java:77) at $RequestExceptionHandler_12c36260ed3.handleRequestException($RequestExceptionHandler_12c36260ed3.java) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:42) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:984) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:974) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at net.mreunion.web.infrastructure.AssetProtectionFilter.service(AssetProtectionFilter.java:60) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:80) at org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) at org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) at $RequestHandler_12c36260ed6.service($RequestHandler_12c36260ed6.java) at
Re: session is NULL
Yes, that worked. I wish to thank everyone for their help! Tapestry is great! Coming from the Spring world, I do not miss those verbose Spring configuration files! --Anas Mughal http://anas-mughal.com --- On Wed, 11/10/10, Rich M rich...@moremagic.com wrote: From: Rich M rich...@moremagic.com Subject: Re: session is NULL To: Tapestry users users@tapestry.apache.org Date: Wednesday, November 10, 2010, 10:34 AM On 11/10/2010 03:42 AM, Anas Mughal wrote: I have setup my DAO as a Tapestry service in the AppModule as: public class AppModule { public static void bind(ServiceBinder binder) { binder.bind(BranchDAO.class, BranchHibernateDAO.class); } } Then, I try to inject the session as follows: public class BranchHibernateDAO implements BranchDAO { �...@inject private Session session; @SuppressWarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); } } I still get a NULL session. Following the suggestion by Kalle, I injected the session to a page. Then, passed the session to my DAO in the contructor. That worked! However, I would rather keep the code cleaner by injecting the session directly into the DAO. To use the DAO, you will want the following setup. public class BranchHibernateDAO implements BranchDAO { private Session session; public BranchHibernateDAO(Session session){ this.session = session; } ... } then in your page class: @Inject private BranchHibernateDAO bhdao; You do not need to initialize the BranchHibernateDAO yourself. Tapestry-IoC will initialize the BranchHibernateDAO lazily behind the scenes the first time you access it in the web application. In this case, that would be when you navigate to the page relating to your page class, where the DAO is injected. The convention for services, is that when they are setup in the bind method of the AppModule (or whatever your module is called), Tapestry will inject the appropriate objects to its constructor when it initializes the service. This convention will keep your page classes cleaner. Any suggestion would be greatly appreciated. --- On Wed, 11/10/10, Kalle Korhonenkalle.o.korho...@gmail.com wrote: From: Kalle Korhonenkalle.o.korho...@gmail.com Subject: Re: session is NULL To: Tapestry usersusers@tapestry.apache.org Date: Wednesday, November 10, 2010, 1:48 AM @Inject is for pages. Make your DAO a Tapestry service and inject the session to it via its constructor. Kalle On Tue, Nov 9, 2010 at 9:52 PM, Anas Mughalanasmug...@yahoo.com wrote: I have setup my Tapestry project using the Maven archetype. Then, I setup my hibernate.cfg.xml file with references to my hibernate mapping files. (I am not using annotations for hibernate.) Now, I have setup a simple DAO object to try to retrieve an object from the database: public class BranchDAO { @Inject private Session session; @SuppressWarnings(unchecked) public Object find( Class c , BigDecimal id) { return session.get(c, id); // session is NULL here } } I get a NULL pointer exception because my session does not seem to be initialized. Searching online, I came accross: http://wiki.apache.org/tapestry/SessionPagePersistence I have not setup any hivemind configuration or any of the suggested classes on that wiki page. Please advise me what do I need to be able to fetch objects using Tapestry-Hibernate. I don't know where to place the hivemind configuration file -- if I need it. I am new to Tapestry. Please bear with me. Thank you for your kind assistance. --Anas Mughal http://anas-mughal.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: form submit doesnt work when using an encoder
Thanks Juan! Looks like this could have been the problem. Will try it and let you know. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-submit-doesnt-work-when-using-an-encoder-tp3257152p3258966.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 Working Tapestry Hibernate with DAO.
I see you are using HibernateSessionManager instead of Session object in your DAO. Is it better to use HibernateSessionManager? I would like my methods to automatically commit. Thanks. -- Anas Mughal http://anas-mughal.com -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Working-Tapestry-Hibernate-with-DAO-tp3229905p3258981.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry 5.2.2: The rendered content did not include any elements that allow for the positioning of the hidden form field's element.
Hi Dear tapestry users I'm migrating an application from T5.1-T5.2 but I throws the next exception: java.lang.IllegalStateException The rendered content did not include any elements that allow for the positioning of the hidden form field's element. Anyone can help me? The full stack trace: 10-11-2010 10:11:17 [ERROR] ReporteProduccion - Render queue error in AfterRender[reportes/ReporteProduccion:zonadetalle]: The rendered content did not include any elements that allow for the positioning of the hidden form field's element. org.apache.tapestry5.ioc.internal.util.TapestryException: The rendered content did not include any elements that allow for the positioning of the hidden form field's element. [at context:reportes/ReporteProduccion.tml, line 153] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:194) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AfterRenderPhase.render(ComponentPageElementImpl.java:419) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:127) at $PageRenderQueue_12c36a07f1e.render($PageRenderQueue_12c36a07f1e.java) at $PageRenderQueue_12c36a07f16.render($PageRenderQueue_12c36a07f16.java) at org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37) at org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:2089) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:2073) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:2055) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:2040) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:2026) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:2008) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1989) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at $MarkupRenderer_12c36a07f1d.renderMarkup($MarkupRenderer_12c36a07f1d.java) at org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47) at $PageMarkupRenderer_12c36a07f1b.renderPageMarkup($PageMarkupRenderer_12c36a07f1b.java) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67) at $PageResponseRenderer_12c36a07eb7.renderPageResponse($PageResponseRenderer_12c36a07eb7.java) at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64) at org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2326) at $PageRenderRequestHandler_12c36a07eb9.handle($PageRenderRequestHandler_12c36a07eb9.java) at $PageRenderRequestHandler_12c36a07eb3.handle($PageRenderRequestHandler_12c36a07eb3.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) at org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47) at $ComponentRequestHandler_12c36a07eb4.handlePageRender($ComponentRequestHandler_12c36a07eb4.java) at $ComponentRequestHandler_12c36a07e99.handlePageRender($ComponentRequestHandler_12c36a07e99.java) at org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12c36a07e9b.dispatch($Dispatcher_12c36a07e9b.java) at $Dispatcher_12c36a07e94.dispatch($Dispatcher_12c36a07e94.java) at org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:321) at org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26) at $RequestHandler_12c36a07e95.service($RequestHandler_12c36a07e95.java) at org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:984) at $RequestHandler_12c36a07e95.service($RequestHandler_12c36a07e95.java) at
Re: Which security module to choose?
On Wed, Nov 10, 2010 at 3:09 AM, Paul Stanton p...@mapshed.com.au wrote: does anyone use this module? is there i similar module with better documentation? the test doesn't seem to compile or i've got the wrong test for the version i've used. You have to contribute to the AuthenticationService one or more AuthenticationServiceFilter, you have to (should) configure some ApplicationDefaults (ChenilleKitAccessConstants.LOGIN_PAGE, ChenilleKitAccessConstants.ACCESS_DENIED_ACTION for example) If you look at our tests you'll see real live examples... Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5 Working Tapestry Hibernate with DAO.
Not sure exactly what you are responding to, but.. to automatically commit from your DAO methods check out the section about Committing Changes and the @CommitAfter annotation on this page: http://tapestry.formos.com/nightly/tapestry5/tapestry-hibernate/userguide.html You should be able to use @CommitAfter to automatically commit Transactions in your DAO methods, and it will rollback Transactions when the DAO method throws a runtime exception. As for HibernateSessionManager and Session object, I believe it would be the better strategy to use the HibernateSessionManager to manage your Hibernate Session and Transaction objects. This is what the Tapestry-Hibernate module is using, so you'll be better off getting the Session from it, and using its commit(), abort(), etc methods (if you don't use the @CommitAfter annotation) to allow it to manage the Transaction for you. Hope that helps, Rich On 11/10/2010 11:41 AM, anasmughal wrote: I see you are using HibernateSessionManager instead of Session object in your DAO. Is it better to use HibernateSessionManager? I would like my methods to automatically commit. Thanks. -- Anas Mughal http://anas-mughal.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tap 5.2.2 With JQuery Problems
Dear tapestry users: I try to use http://github.com/andyhot/tapestry5-jquery/tree/tap-5.2 with Tapestry 5.2 but I have some problems, when I open my application I watch the exception: org.apache.tapestry5.internal.services.RenderQueueException: Render queue error in SetupRender[core/ExceptionReport:exceptiondisplay]: Unable to create a client URL for classpath resource org/got5/tapestry5/tapestry.js: The resource path was not within an aliased path. [at classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 11] My pom.xml dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version5.2.2/version /dependency dependency groupIdorg.got5/groupId artifactIdtapestry5-jquery/artifactId version1.1.0-SNAPSHOT/version /dependency ... repository iddevlab722-repo/id urlhttp://nexus.devlab722.net/nexus/content/repositories/releases/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository repository iddevlab722-snapshot-repo/id urlhttp://nexus.devlab722.net/nexus/content/repositories/snapshots/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository Anyone may help me ? Thanks in advance for your time -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tap-5-2-2-With-JQuery-Problems-tp3259280p3259280.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.2.2 With JQuery Problems
Things are more or less experimental in the 5.2 branch and unfortunately it doesn't work with 5.2.1 or 5.2.2, see https://github.com/got5/tapestry5-jquery/issues#issue/4 https://github.com/andyhot/tapestry5-jquery/issues#issue/1 If you still want to try it (with 5.2.0) you'd have to build and maven install it yourself and you'd also need to do the same for the tap-5.2 branch of https://github.com/andyhot/tapestry5-clientresources because i'm pretty sure those dont exist in that devlab722 repo Finally, to clarify on the versions, the 5.2 branches would now create org.got5.tapestry5-clientresources:2.0.3-SNAPSHOT org.got5.tapestry5-jquery:2.0.3-SNAPSHOT Note: The errors you're getting are probably due to using wrong versions. Once you'd get passed that, you should get the other errors that exist in the github's tracker :P On Wed, Nov 10, 2010 at 21:19, iberck ibe...@gmail.com wrote: Dear tapestry users: I try to use http://github.com/andyhot/tapestry5-jquery/tree/tap-5.2 with Tapestry 5.2 but I have some problems, when I open my application I watch the exception: org.apache.tapestry5.internal.services.RenderQueueException: Render queue error in SetupRender[core/ExceptionReport:exceptiondisplay]: Unable to create a client URL for classpath resource org/got5/tapestry5/tapestry.js: The resource path was not within an aliased path. [at classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 11] My pom.xml dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version5.2.2/version /dependency dependency groupIdorg.got5/groupId artifactIdtapestry5-jquery/artifactId version1.1.0-SNAPSHOT/version /dependency ... repository iddevlab722-repo/id urlhttp://nexus.devlab722.net/nexus/content/repositories/releases/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository repository iddevlab722-snapshot-repo/id urlhttp://nexus.devlab722.net/nexus/content/repositories/snapshots/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository Anyone may help me ? Thanks in advance for your time -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tap-5-2-2-With-JQuery-Problems-tp3259280p3259280.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry PMC / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.2.2 With JQuery Problems
Thank you for your time and you effort, I will look with Tap 5.2.0 Regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tap-5-2-2-With-JQuery-Problems-tp3259280p3259351.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.2.2 With JQuery Problems
np - it should be interesting for you then to checkout the jquery branch of tapestwitter from https://github.com/andyhot/tapestwitter/ (assuming you've installed the libs i mentioned before) On Wed, Nov 10, 2010 at 21:55, iberck ibe...@gmail.com wrote: Thank you for your time and you effort, I will look with Tap 5.2.0 Regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Tap-5-2-2-With-JQuery-Problems-tp3259280p3259351.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr Tapestry PMC / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
a simple t:if question
Hi, I am using Tapestry 5. I see that in tapestry 4 it was possible to have condition values in the if clause. Is something like this available in 5? Is it possible to check for a particular string value in the t:if tag or is it just boolean? I want to do something like if(str=='somevalue') { } else { } Thanks Hese -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259452.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: a simple t:if question
...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? something like if( foo('somevalue) ) { } else { } -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259456.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: a simple t:if question
Short answer: No. You have to create a public method in the page class and refer to it. All logic should be in java, not tml. On Wed, Nov 10, 2010 at 10:26 PM, hese 1024h...@gmail.com wrote: ...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? something like if( foo('somevalue) ) { } else { } -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259456.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: a simple t:if question
ok thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259547.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tap 5.2.2 With JQuery Problems
I'm using T5.0.5 and the Jquery accordion. I ran into compatibility issues between JQuery and Prototype that were solved using the suggestions on this page: http://docs.jquery.com/Using_jQuery_with_Other_Libraries Chuck Kring On 11/10/2010 11:19 AM, iberck wrote: Dear tapestry users: I try to use http://github.com/andyhot/tapestry5-jquery/tree/tap-5.2 with Tapestry 5.2 but I have some problems, when I open my application I watch the exception: org.apache.tapestry5.internal.services.RenderQueueException: Render queue error in SetupRender[core/ExceptionReport:exceptiondisplay]: Unable to create a client URL for classpath resource org/got5/tapestry5/tapestry.js: The resource path was not within an aliased path. [at classpath:org/apache/tapestry5/corelib/pages/ExceptionReport.tml, line 11] My pom.xml dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-core/artifactId version5.2.2/version /dependency dependency groupIdorg.got5/groupId artifactIdtapestry5-jquery/artifactId version1.1.0-SNAPSHOT/version /dependency ... repository iddevlab722-repo/id urlhttp://nexus.devlab722.net/nexus/content/repositories/releases/url releases enabledtrue/enabled /releases snapshots enabledfalse/enabled /snapshots /repository repository iddevlab722-snapshot-repo/id urlhttp://nexus.devlab722.net/nexus/content/repositories/snapshots/url releases enabledfalse/enabled /releases snapshots enabledtrue/enabled /snapshots /repository Anyone may help me ? Thanks in advance for your time
T5.2.2 Auto reloading of js-file for a mixin
Hi folks, I am starting to develop mixins. As a start I have implemented the Confirm-Mixin exactly as shown in the wiki: http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained. Everything works as expected. Next I wanted to tweak the JavaScript a bit. But after saving the changes and hitting the refresh button in the browser I got 404 NOT_FOUND error from jetty. My first guess was, that the js-file could not be found. But I get this error for every page I try to load after that. And as one strange effect, when i call the root URL of the context (http://localhost:8080/myContext/) jetty tells me /myContext/index.jsp not found. It seems like the TapestryFilter died somehow. In the jetty-Logs no Exceptions nor Errors are reported. I just see the normal GET-requests and the 404 responses. I have set up the project using the maven archetype and start jetty from the console by issueing mvn jetty:run. Does anyone have a hint how to track down the reason for this error? Or do I have an error in my project configuration? Thanks in advance, nillehammer - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: a simple t:if question
On Wed, 10 Nov 2010 19:26:18 -0200, hese 1024h...@gmail.com wrote: ...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? Hi! You pass a parameter to the If parameter (and any other parameter of any other component) using a binding. See http://tapestry.apache.org/tapestry5.1/guide/parameters.html for more information about bindings. If don't specify one, the default binding specified by the parameter is used. For the value parameter of If, the default binding is prop. It supports some expressions described in http://tapestry.apache.org/tapestry5.1/guide/propexp.html. Anyway, follow Inge's advice, which is very wise and based: logic belongs in classes, not in templates. That's a bit of what MVC means. Tapestry 4 uses OGNL as its expression binding, but Tapestry 5 has a deliberately less powerful expression binding due to the approach stated above. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.2.2 Auto reloading of js-file for a mixin
On Wed, 10 Nov 2010 20:27:00 -0200, nille hammer tapestry.nilleham...@winfonet.eu wrote: Hi folks, Hi! Next I wanted to tweak the JavaScript a bit. But after saving the changes and hitting the refresh button in the browser I got 404 NOT_FOUND error from jetty. My first guess was, that the js-file could not be found. But I get this error for every page I try to load after that. And as one strange effect, when i call the root URL of the context (http://localhost:8080/myContext/) jetty tells me /myContext/index.jsp not found. It seems like the TapestryFilter died somehow. In the jetty-Logs no Exceptions nor Errors are reported. I just see the normal GET-requests and the 404 responses. Are you using Windows? If yes, read this: http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: a simple t:if question
On Wed, Nov 10, 2010 at 2:21 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: On Wed, 10 Nov 2010 19:26:18 -0200, hese 1024h...@gmail.com wrote: ...and is it possible to pass parameters into the if evaluating function and receive a boolean/string back? Hi! You pass a parameter to the If parameter (and any other parameter of any other component) using a binding. See http://tapestry.apache.org/tapestry5.1/guide/parameters.html for more information about bindings. If don't specify one, the default binding specified by the parameter is used. For the value parameter of If, the default binding is prop. It supports some expressions described in http://tapestry.apache.org/tapestry5.1/guide/propexp.html. Anyway, follow Inge's advice, which is very wise and based: logic belongs in classes, not in templates. That's a bit of what MVC means. Tapestry 4 uses OGNL as its expression binding, but Tapestry 5 has a deliberately less powerful expression binding due to the approach stated above. Less expressive, but not less powerful. T5's property expressions are type-safe and non-reflective, with no unwanted synchronization logic, so I'd call that a better than even trade! -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com
Re: a simple t:if question
YES... tml t:if test=x x needs boolean java boolean x; if(mystring.equals(tapestry)) x = true else x=false Hope you understand the logic. -- View this message in context: http://tapestry.1045711.n5.nabble.com/a-simple-t-if-question-tp3259452p3259618.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.2.2: The rendered content did not include any elements that allow for the positioning of the hidden form field's element.
Throw a span or div inside your t:zone (or the t:block that is being re-rendered). Tapestry does a lot of work under the covers to place its hidden input fields in valid locations, and when using FormInjector or AjaxFormLoop, you can run into this problem. On Wed, Nov 10, 2010 at 8:48 AM, iberck ibe...@gmail.com wrote: Hi Dear tapestry users I'm migrating an application from T5.1-T5.2 but I throws the next exception: java.lang.IllegalStateException The rendered content did not include any elements that allow for the positioning of the hidden form field's element. Anyone can help me? The full stack trace: 10-11-2010 10:11:17 [ERROR] ReporteProduccion - Render queue error in AfterRender[reportes/ReporteProduccion:zonadetalle]: The rendered content did not include any elements that allow for the positioning of the hidden form field's element. org.apache.tapestry5.ioc.internal.util.TapestryException: The rendered content did not include any elements that allow for the positioning of the hidden form field's element. [at context:reportes/ReporteProduccion.tml, line 153] at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AbstractPhase.invoke(ComponentPageElementImpl.java:194) at org.apache.tapestry5.internal.structure.ComponentPageElementImpl$AfterRenderPhase.render(ComponentPageElementImpl.java:419) at org.apache.tapestry5.internal.services.RenderQueueImpl.run(RenderQueueImpl.java:72) at org.apache.tapestry5.internal.services.PageRenderQueueImpl.render(PageRenderQueueImpl.java:127) at $PageRenderQueue_12c36a07f1e.render($PageRenderQueue_12c36a07f1e.java) at $PageRenderQueue_12c36a07f16.render($PageRenderQueue_12c36a07f16.java) at org.apache.tapestry5.internal.services.MarkupRendererTerminator.renderMarkup(MarkupRendererTerminator.java:37) at org.apache.tapestry5.services.TapestryModule$29.renderMarkup(TapestryModule.java:2089) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$28.renderMarkup(TapestryModule.java:2073) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$27.renderMarkup(TapestryModule.java:2055) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$26.renderMarkup(TapestryModule.java:2040) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$25.renderMarkup(TapestryModule.java:2026) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$24.renderMarkup(TapestryModule.java:2008) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at org.apache.tapestry5.services.TapestryModule$23.renderMarkup(TapestryModule.java:1989) at $MarkupRenderer_12c36a07f20.renderMarkup($MarkupRenderer_12c36a07f20.java) at $MarkupRenderer_12c36a07f1d.renderMarkup($MarkupRenderer_12c36a07f1d.java) at org.apache.tapestry5.internal.services.PageMarkupRendererImpl.renderPageMarkup(PageMarkupRendererImpl.java:47) at $PageMarkupRenderer_12c36a07f1b.renderPageMarkup($PageMarkupRenderer_12c36a07f1b.java) at org.apache.tapestry5.internal.services.PageResponseRendererImpl.renderPageResponse(PageResponseRendererImpl.java:67) at $PageResponseRenderer_12c36a07eb7.renderPageResponse($PageResponseRenderer_12c36a07eb7.java) at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:64) at org.apache.tapestry5.services.TapestryModule$36.handle(TapestryModule.java:2326) at $PageRenderRequestHandler_12c36a07eb9.handle($PageRenderRequestHandler_12c36a07eb9.java) at $PageRenderRequestHandler_12c36a07eb3.handle($PageRenderRequestHandler_12c36a07eb3.java) at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) at org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47) at $ComponentRequestHandler_12c36a07eb4.handlePageRender($ComponentRequestHandler_12c36a07eb4.java) at $ComponentRequestHandler_12c36a07e99.handlePageRender($ComponentRequestHandler_12c36a07e99.java) at org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) at $Dispatcher_12c36a07e9b.dispatch($Dispatcher_12c36a07e9b.java) at $Dispatcher_12c36a07e94.dispatch($Dispatcher_12c36a07e94.java) at
Re: a simple t:if question
On Wed, 10 Nov 2010 20:56:55 -0200, Howard Lewis Ship hls...@gmail.com wrote: Less expressive, but not less powerful. T5's property expressions are type-safe and non-reflective, with no unwanted synchronization logic, so I'd call that a better than even trade! I stand corrected. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry 5.2.2: The rendered content did not include any elements that allow for the positioning of the hidden form field's element.
Thank you for your response Howard, this is my tml that throws the exception body t:form t:id=formBusqueda t:zone=zonaResumen table tr td t:zone t:id=zonaResumen update=show div id=zonaGrid align=center t:grid source=gastos t:row=resumenCosto align=left t:rowClass=prop:evenodd.next t:add=encuestador,gasto,verDetalle t:exclude=gastoTotal width=100% rowsPerPage=5 inplace=true /t:grid /div p/ t:if test=gastos table width=50% align=center tr td div align=center Reporte excel /div /td /tr /table /t:if /t:zone /td /tr tr td t:zone t:id=zonaDetalle update=show t:grid t:id=gridDetalle source=transacciones t:row=transaccion align=center t:rowClass=prop:evenodd.next rowsPerPage=10 t:add=consumo,celular,costoTransaccion,encuestador t:exclude=kbConsumidosRedondeados,precioPesos,mensajeError,success,bytesConsumidosStr t:reorder=encuestador,celular,fechaTransaccion,consumo,tipo,costoTransaccion width=100% inplace=true /t:grid /t:zone /td /tr /table /t:form /body FIX - But the problem is fixed when I modify the tml to: body t:form t:id=formBusqueda t:zone=zonaResumen /t:form table tr td t:zone t:id=zonaResumen update=show div id=zonaGrid align=center t:grid source=gastos t:row=resumenCosto align=left t:rowClass=prop:evenodd.next t:add=encuestador,gasto,verDetalle t:exclude=gastoTotal width=100% rowsPerPage=5 inplace=true /t:grid /div p/ t:if test=gastos table width=50% align=center tr td div align=center Reporte excel /div /td /tr /table /t:if /t:zone /td /tr tr td t:zone t:id=zonaDetalle update=show t:grid t:id=gridDetalle source=transacciones t:row=transaccion align=center t:rowClass=prop:evenodd.next rowsPerPage=10 t:add=consumo,celular,costoTransaccion,encuestador t:exclude=kbConsumidosRedondeados,precioPesos,mensajeError,success,bytesConsumidosStr t:reorder=encuestador,celular,fechaTransaccion,consumo,tipo,costoTransaccion width=100% inplace=true /t:grid /t:zone /td /tr /table /body Anyone knows why this behaviour ? Thanks in advance -- View this message in context:
Re: Re: T5.2.2 Auto reloading of js-file for a mixin
Thiago you Brazilian Genius! Are you using Windows? Hate to admit, yes. I have to use Windows, because it's a company Laptop. If yes, read this: http://docs.codehaus.org/display/JETTY/Files+locked+on+Windows. I have read that. I have copied the hole configuration for the default servlet to my web.xml and -as advised- changed the parameter to false: init-param param-nameuseFileMappedBuffer/param-name param-valuefalse/param-value /init-param Now it works. Thanks a lot and good night (the clock being 01:00am in my time zone). Cheers, nillehammer - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Re: T5.2.2 Auto reloading of js-file for a mixin
On Wed, 10 Nov 2010 21:55:13 -0200, nille hammer tapestry.nilleham...@winfonet.eu wrote: Thiago you Brazilian Genius! I'm Brazilan but I'm not a genius. :) Are you using Windows? Hate to admit, yes. I have to use Windows, because it's a company Laptop. I had the same problem before, so this was an easy answer. ;) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tynamo tapestry-security help
Hi Kalle, Thanks for the extra information, yes I was looking for that type of documentation and the example app has helped my understanding. I still have a couple of questions though... Firstly, I'd like to use a salted hash to match credentials... the booking example application does not do this and the documentation (for shiro) doesn't quite show the complete picture. How can I get a handle to an instance of my CredentialsMatcher and then expose the method of hashing? should I make it a service too? I want to get a handle to it in 2 places: 1. at signup so i can persist the hashed password using the identical hashing mechanism 2. in a database upgrade step so i can convert clear-text passwords into the hashed version Why and how should I implement AuthorizingRealm.doGetAuthorizationInfo(PrincipalCollection principals) ? When would it be called in my basic application? i might have more questions later . ;) cheers, paul. On 11/11/2010 2:29 AM, Kalle Korhonen wrote: Ah you are looking for documentation on Shiro. Maybe I can place the links to it more prominently on tapestry-security page, but see http://shiro.apache.org/core.html (there's more but for now Subject and Realms are the most relevant to you). If you want examples, Christophe's hotel booking demo with Tynamo (https://github.com/ccordenier/tapestry5-hotel-booking/tree/tynamo) is very nice. Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: tynamo tapestry-security help
On Wed, Nov 10, 2010 at 8:44 PM, Paul Stanton p...@mapshed.com.au wrote: Firstly, I'd like to use a salted hash to match credentials... the booking example application does not do this and the documentation (for shiro) doesn't quite show the complete picture. Yeah I bet you are right on that. That should just work in my opinion without end user having to do any extra work. But you are in luck with that, kind of. 1.1.0 Shiro just added built-in support for per-user-salt. tapestry-security 0.3.0-SNAPSHOT integrates with 1.1.0 Shiro and I'm going to cut the release pretty soon. See http://www.mail-archive.com/d...@shiro.apache.org/msg00107.html and http://svn.apache.org/repos/asf/shiro/trunk/core/src/test/java/org/apache/shiro/authc/credential/HashedCredentialsMatcherTest.java for ideas). How can I get a handle to an instance of my CredentialsMatcher and then expose the method of hashing? should I make it a service too? I want to get a handle to it in 2 places: 1. at signup so i can persist the hashed password using the identical hashing mechanism 2. in a database upgrade step so i can convert clear-text passwords into the hashed version I think you should handle all of this as part of your realm implementation with a custom AccountInfo. Not difficult to implement but some amount of API learning to do. I've been fancying myself with the idea of creating a tapestry-security-hibernate module with prefabricated (JPA) entitities because it's just pointless to do the same for every little webapp separately. Why and how should I implement AuthorizingRealm.doGetAuthorizationInfo(PrincipalCollection principals) ? When would it be called in my basic application? It'll be called right after doGetAuthentication() assuming it succeeds if your realm promises to authorize users as well. A simple example is that you could have a realm just to authenticate users against Facebook, Google etc. while another realm would be responsible for *authorizing* users using the permission information (roles etc) stored in the local database. Often for a simpler webapp, you have just a single realm which does both authentication and authorization. Kalle On 11/11/2010 2:29 AM, Kalle Korhonen wrote: Ah you are looking for documentation on Shiro. Maybe I can place the links to it more prominently on tapestry-security page, but see http://shiro.apache.org/core.html (there's more but for now Subject and Realms are the most relevant to you). If you want examples, Christophe's hotel booking demo with Tynamo (https://github.com/ccordenier/tapestry5-hotel-booking/tree/tynamo) is very nice. Kalle - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org