Re: jquery
You can also our own implementation of the Autocomplete mixin, using jquery. t:textfield t:value=foo t:id=foo t:mixins=jquery/Autocomplete t:minChars=0/ Which version do you use ? Which jquery does not work ? Do you have a JavaScript error ? Manu 2012/1/2 csckid testnowsh...@gmail.com With this code configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, false); the mixin is working. However, simple jquery code is not working. p id=pelementIf you click on me, I will disappear./p p id=showidshow/p p id=hideidhide/p -- View this message in context: http://tapestry.1045711.n5.nabble.com/jquery-tp5113334p5113973.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 -- Emmanuel DEMEY Ingénieur Etude et Développement ATOS Worldline +33 (0)6 47 47 42 02 demey.emman...@gmail.com http://emmanueldemey.fr Twitter : @gillespie59
Why Components in Loop are the only one instance? What should I do?
I put a Component in a Loop, and when I call System.out.println(this); I found that there are only one instance of the component. If I have some persist value in this Components they can't work well. Why this happened? What should I do if I want to put a Complex Component with persist value into a Loop? Thanks -- Bo Gao eli...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: [ANN] JumpStart upgraded to Tapestry 5.3.1
As always, a really useful resource :-) Many thanks Geoff for your work! Laurent -Message d'origine- De : Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] Envoyé : lundi 2 janvier 2012 05:38 À : Tapestry users Objet : [ANN] JumpStart upgraded to Tapestry 5.3.1 Hi all, JumpStart has been upgraded from Tapestry 5.2.6 to 5.3.1. There are some new examples for some new components: - Kaptcha - Tree Browse - Checklist (in Core Input Components example) and AjaxResponseResponder is used everywhere instead of MultiZoneUpdate. To get this upgrade out we had to depend on a snapshot version of ChenilleKit - I'll drop another release when ChenilleKit 1.3.3 goes final into the repos. The new JumpStart version is 5.6.1 and it is running in the usual place: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [t5.3.1] Tapestry encodes br / to lt;br /gt;
Yea when I started searching for a solution I looked into the Component templates page for a solution I think your choice to add it to the Expansions section is the best I can think of. Thank you for the follow up. On Mon, Jan 2, 2012 at 3:52 AM, Bob Harner bobhar...@gmail.com wrote: You're right, more documentation is needed for this. I'm updating the Expansions section of http://tapestry.apache.org/component-templates.html now. Is there anywhere else you think this information should go? (Where do you think it would have been the most helpful for you to find it?) On Sun, Jan 1, 2012 at 1:12 PM, Muhammad Gelbana m.gelb...@gmail.com wrote: Just tried it and it works perfectly. Thanks a lot :) td style=text-align: left;t:OutputRaw value=pingResponseSummary.output//td Shouldn't this be mentioned in the documentation ? Or is it somewhere ?! Should I open a minor jira issue for this to act as a reminder ? On Sun, Jan 1, 2012 at 4:51 PM, Bob Harner bobhar...@gmail.com wrote: I think you'll just want to use the OutputRaw component there. http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/OutputRaw.html Bob Harner On Jan 1, 2012 9:40 AM, Muhammad Gelbana m.gelb...@gmail.com wrote: Hi everyone, First thanks to whoever participated to develop the latest version :) Now to the problem. I have a table with more than one column. A loop component loops over a list of objects to fill that table with rows. One of the columns should be filled with a string value obtained from that object. The string value is expected to have br / in it to produce new lines in the html page when rendered but after upgrading to 5.3.1, the br / is encoded to lt;br /gt; ! table tr t:type=loop source=0 .. cmdResponsesSize value=cmdResponsesIndex bgcolor=${responseRowColor} ... ... td style=text-align: left;${pingResponseSummary.output}/td *br / encoded lt;br /gt;* ... ... /tr /table I bet this is explained somewhere in the docs but I can't find a page discussing similar issues or a symbol to disable the functionality of encoding html entities. Thanks in advance :) -- *Regards,* *Muhammad Gelbana Java Developer* -- *Regards,* *Muhammad Gelbana Java Developer* - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- *Regards,* *Muhammad Gelbana Java Developer*
Re: [ANN] JumpStart upgraded to Tapestry 5.3.1
I consider it the second home for tapestry :) Thanks a lot Geoff :) On Mon, Jan 2, 2012 at 10:36 AM, Guerin Laurent lgue...@sopragroup.comwrote: As always, a really useful resource :-) Many thanks Geoff for your work! Laurent -Message d'origine- De : Geoff Callender [mailto:geoff.callender.jumpst...@gmail.com] Envoyé : lundi 2 janvier 2012 05:38 À : Tapestry users Objet : [ANN] JumpStart upgraded to Tapestry 5.3.1 Hi all, JumpStart has been upgraded from Tapestry 5.2.6 to 5.3.1. There are some new examples for some new components: - Kaptcha - Tree Browse - Checklist (in Core Input Components example) and AjaxResponseResponder is used everywhere instead of MultiZoneUpdate. To get this upgrade out we had to depend on a snapshot version of ChenilleKit - I'll drop another release when ChenilleKit 1.3.3 goes final into the repos. The new JumpStart version is 5.6.1 and it is running in the usual place: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- *Regards,* *Muhammad Gelbana Java Developer*
Re: [ANN] JumpStart upgraded to Tapestry 5.3.1
Hi Geoff, Thank you for your contribution. Jumpstart is so useful. Best François 2012/1/2 Geoff Callender geoff.callender.jumpst...@gmail.com: Hi all, JumpStart has been upgraded from Tapestry 5.2.6 to 5.3.1. There are some new examples for some new components: - Kaptcha - Tree Browse - Checklist (in Core Input Components example) and AjaxResponseResponder is used everywhere instead of MultiZoneUpdate. To get this upgrade out we had to depend on a snapshot version of ChenilleKit - I'll drop another release when ChenilleKit 1.3.3 goes final into the repos. The new JumpStart version is 5.6.1 and it is running in the usual place: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: jquery
I am using tapestry5-jquery version 2.6.1 When I wrote this line *configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, false);* Mixin is working but simple jquery isn't working. This is the error message for simple jquery method *$(document).ready is not a function* about.tml html t:type=layout title=About tapestryHiber xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; xmlns:p=tapestry:parameter p id=pelementIf you click on me, I will disappear./p p id=showidshow/p p id=hideidhide/p /html When I omited this line *configuration.add(JQuerySymbolConstants.SUPPRESS_PROTOTYPE, false);* mixin gives two error Error: uncaught exception: controls.js requires including script.aculo.us' effects.js library Error: $T is not defined Source File: http://localhost:8080/medical/assets/1.0-SNAPSHOT/core/corelib/mixins/autocomplete.js Line: 17 -- View this message in context: http://tapestry.1045711.n5.nabble.com/jquery-tp5113334p5114790.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
Missing step in Tutorial
Issue in http://tapestry.apache.org/using-tapestry-with-hibernate.html 1. Tutorial does not say explicitly that needs to be created by reader. 2. After creating this file manually, running with Jetty from Eclipse does not include libraries. I get the error JDBC Driver class not found: org.h2.Driver. Before running, go to command prompt and do mvn war:war while being inside the root directory of the Eclipse project; now run with jetty.
Class reloading
Hello folks recently a Customer asked me to do some stuff with Tapestry. Being a Struts user for a good while and trying out many other frameworks, Tapestry impressed me lots. One of the things which made me eyes pop out of their holes is the automatic class reloading you guys have implemented. It is amazing! Now I am wondering how this is done... any pointers here? Thanks Christian -- http://www.grobmeier.de https://www.timeandbill.de - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Missing step in Tutorial
On Sat, Dec 31, 2011 at 9:11 PM, noidso...@gmail.com wrote: Issue in http://tapestry.apache.org/using-tapestry-with-hibernate.html 1. Tutorial does not say explicitly that needs to be created by reader. 2. After creating this file manually, running with Jetty from Eclipse does not include libraries. I get the error JDBC Driver class not found: org.h2.Driver. Before running, go to command prompt and do mvn war:war while being inside the root directory of the Eclipse project; now run with jetty. Tapestry use Confluence (a wiki) as the engine behind the documentation site. Everyone can fix issues, doing that is a great way to help improve Tapestry itself. 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: Class reloading
Yes, I like the idea of your stakeholder seeing you build and change the app live. The reloading stuff dates back to 2006; it's just a matter of dealing with Java ClassLoader objects ... customizing how they load classes and monitoring .class files for changes. When a .class file changes, Tapestry throws away the ClassLoader and creates a new one; it may have to reload dozens or more classes and reconstruct large numbers of objects, but Tapestry and Java are fast, so you don't notice. There's some Leaky Abstractions (you really have to be careful about what classes are stored in what packages) but in the context of Tapestry most would agree that it works well ... and it's impossible to go back. On Mon, Jan 2, 2012 at 8:37 AM, Christian Grobmeier grobme...@gmail.com wrote: Hello folks recently a Customer asked me to do some stuff with Tapestry. Being a Struts user for a good while and trying out many other frameworks, Tapestry impressed me lots. One of the things which made me eyes pop out of their holes is the automatic class reloading you guys have implemented. It is amazing! Now I am wondering how this is done... any pointers here? Thanks Christian -- http://www.grobmeier.de https://www.timeandbill.de - 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 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T5.3.1 mongodb?
I think it's still open. First, I'd like to concentrate on providing basic integration. Maybe we can come up with a simple interface comparable to ValueEncoder and the user would implement it using any mapper library. I think this is a topic for the developer's list. On Thu, Dec 29, 2011 at 3:00 PM, Christian Riedel cr.ml...@googlemail.comwrote: Hi Igor, what mapper are you planning to integrate? There are several mappers out there. After using morphia[1] for some time I'm now with mongo-jackson-mapper[2] from vz.net. Cheers Christian [1] http://code.google.com/p/morphia/ [2] http://github.com/vznet/mongo-jackson-mapper Am 29.12.2011 um 11:39 schrieb Igor Drobiazko: Spring Data - MongoDB is great, but I'm going to add a native MongoDB/Tapestry integration in 5.4. I have already an internal API which needs to be generalized before committing to Apache's SVN. On Thu, Dec 29, 2011 at 4:24 AM, angelochen angelochen...@yahoo.com.hk wrote: Hi, hibernate and t5 really goes very well, now got a need to use mongodb, seems no mongodb native support for t5, found one in Spring: SPRING DATA - MONGODB, anybody have tried this? thanks. Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-mongodb-tp5106689p5106689.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 -- Best regards, Igor Drobiazko http://tapestry5.de http://twitter.com/drobiazko - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Best regards, Igor Drobiazko http://tapestry5.de http://twitter.com/drobiazko
Re: Why Components in Loop are the only one instance? What should I do?
This is by design. Tapestry pages/ components have static structure so no matter how many times you g through the loop you only get one instance of the component. What specifically are you trying to do? Maybe someone can offer some design tips. Josh On Jan 2, 2012 12:17 AM, Bo Gao eli...@gmail.com wrote: I put a Component in a Loop, and when I call System.out.println(this); I found that there are only one instance of the component. If I have some persist value in this Components they can't work well. Why this happened? What should I do if I want to put a Complex Component with persist value into a Loop? Thanks -- Bo Gao eli...@gmail.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [ANN] JumpStart upgraded to Tapestry 5.3.1
Thanks Geoff for keeping jumpstart up to date, it's a fantastic resource. Happy New Year! On 02/01/2012, at 8:30 PM, François Facon wrote: Hi Geoff, Thank you for your contribution. Jumpstart is so useful. Best François 2012/1/2 Geoff Callender geoff.callender.jumpst...@gmail.com: Hi all, JumpStart has been upgraded from Tapestry 5.2.6 to 5.3.1. There are some new examples for some new components: - Kaptcha - Tree Browse - Checklist (in Core Input Components example) and AjaxResponseResponder is used everywhere instead of MultiZoneUpdate. To get this upgrade out we had to depend on a snapshot version of ChenilleKit - I'll drop another release when ChenilleKit 1.3.3 goes final into the repos. The new JumpStart version is 5.6.1 and it is running in the usual place: http://jumpstart.doublenegative.com.au/jumpstart/ Cheers, Geoff - 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: development with eclipse+tomcat
I think I may have one outstanding issue with this configuration regarding classloaders... ComponentResources cr = container.getComponentResources(); Component comp = cr.getEmbeddedComponent(zoneClientId); log.debug(Zone.class.getName() + == + comp.getClass().getName()); log.debug(Zone.class.getClassLoader() + == + comp.getClass().getClassLoader()); Zone zone = (Zone) comp; // -- ClassCastException Output: DEBUG org.apache.tapestry5.corelib.components.Zone == org.apache.tapestry5.corelib.components.Zone DEBUG WebappClassLoader context: /myapp delegate: false repositories: -- Parent Classloader: org.apache.catalina.loader.StandardClassLoader@63b660 == org.apache.tapestry5.internal.plastic.PlasticClassLoader@6d1fa2 ... Caused by: java.lang.ClassCastException: org.apache.tapestry5.corelib.components.Zone cannot be cast to org.apache.tapestry5.corelib.components.Zone So the object returned from ComponentResources.getEmbeddedComponent is from the tapestry classloader, while the Zone class is from the default classloader. Is there a way to resolve this? Thanks, p. On 24/12/2011 8:37 PM, Paul Stanton wrote: I solved the problem .. it seems my changes to the 'tomcat' settings for the project were not persisting or changing the .tomcatplugin file which was still referencing the old maven dependencies... after simplifying the pom, deleting .tomcatplugin and re-applying the settings in the tomcat settings page, I have it all working!! very nice, this will save me + team much time in the near future. thanks for the advice and all the best in the new year. cheers, Paul. On 24/12/2011 8:23 AM, Paul Stanton wrote: Thanks Kalle, That document is great, much better than what I could find last time around. The only step which I had to go searching elsewhere to solve was finding where the DevLoader was! 7. Install devloader for Tomcat (for Tomcat 7.x use devloader from version 3.3). Unzip and copy the org folder and its contents to TOMCAT_HOME/lib I figured out (google) that the devloader package is actually within the Sysdeo plugin (as a zip) and that you need to: 1. extract Devloader.zip from the Sysdeo tomcat plugin archive 2. rename Devloader.zip to Devloader.jar 3. move Devloader.jar to tomcat/lib adding this to the document might save the next guy 15 minutes ;) Other than that, I think I am almost there, except I am getting then exception when tomcat starts: ClassCastException org.apache.tapestry5.TapestryFilter cannot be cast to javax.servlet.Filter .. as per the Troubleshooting section. I've commented out the 'servlet-api' dependency from my pom - as well as the 'jetty' stuff which is in there by default, however I the problem persists. I can see although I've run maven install and maven clean multiple times (and restarted eclipse etc) the maven dependencies still includes servlet-api-2.5.jar, and jetty-servlet-7.0.0...jar - as well as other jetty jars and tomcat jars such as servlet-api-6.0.30.jar and coyote-6.0.30.jar (which I'm guessing were added when I tried out the maven tomcat plugin). I've also made sure all of these jars are unchecked within the devloader window, but the ClassCast problem persists... I have no idea why maven insists on including these jars when there is no remaining dependency. Any advice anyone? Thanks, Paul. On 23/12/2011 7:24 PM, Kalle Korhonen wrote: On Thu, Dec 22, 2011 at 11:51 PM, Paul Stantonp...@mapshed.com.au wrote: For productivity, live class reloading, the ability to step through code and being able to start and stop the container are all required. We ended up compiling into webapp/WEB-INF/classes and copying all dependencies into webapp/WEB-INF/lib. This allowed us to achieve all of the above, except for live class and template reloading. Without live class and template reloading, all of the above seems to leave you just debugging. You are missing most of it. Are there any improvements in this space since Tapestry 5.1? Has anyone come up with an easy to follow formula for configuring tapestry+tomcat+eclipse for development? This page is up-to-date: http://tynamo.org/Developing+with+Tomcat+and+Eclipse. Many people have successfully followed the instructions on it to set their environment. 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: Why Components in Loop are the only one instance? What should I do?
I have a zone in my component. And an event link to refresh the zone. So I need to use a persists value to store the zone's client id, and I persist some value that will show inside the zone. I have changed all the values I want to persist to context values and it works for me now. Is this the only way to solve this problem? Sent from my iPad On 2012-1-3, at 4:08, Josh Canfield joshcanfi...@gmail.com wrote: This is by design. Tapestry pages/ components have static structure so no matter how many times you g through the loop you only get one instance of the component. What specifically are you trying to do? Maybe someone can offer some design tips. Josh On Jan 2, 2012 12:17 AM, Bo Gao eli...@gmail.com wrote: I put a Component in a Loop, and when I call System.out.println(this); I found that there are only one instance of the component. If I have some persist value in this Components they can't work well. Why this happened? What should I do if I want to put a Complex Component with persist value into a Loop? Thanks -- Bo Gao eli...@gmail.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
ajax improvements in 5.3
Hi all, I've started using T5.3 for the latest project and am migrating some of the ajax api 'extensions' I had to write in order to become productive. I've noticed that much has improved since T5.1 and am eager to make sure that I am not missing out on further improvements by re-implementing my old hacks! I used to rely heavily on there being a dummyZone - an empty zone on every page used to wire up miscellaneous functionality. Specifically, 1. Is there a better way to invoke ajax requests (similar to eventlink) direct from javascript than the method detailed here: https://issues.apache.org/jira/browse/TAP5-1405 ? 2. Is there a way to construct an ajax callback (ie eventlink, directlink, form etc) without a specifying a zone? - ie, is the 'zone' parameter still the only way to transform an eventlink into an async-eventlink and if a non-existant zone is specified, does it fail? (this would be handy when the ajax callback returns only javascript commands or when zone updates are generated dynamically and there is no definitive zone to update). - i think i logged a jira for this, but can't find it. Thanks, Paul. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
How to export maven poms from gradle for tapestry
I use NetBeans and I wanted to look something up in the Tapestry source tree. NetBeans has pretty decent Maven support, so in the past, I was able to just check out the source tree and then open the projects. Now, w/ the build moved to Gradle, there are no more pom files that I can open. I have a vague recollection that there was some way to generate the poms from gradle; however, looking around I didn't find a way to do so. Can someone point me to how I can generate POMs from the current projects if that is possible ? Cheers, Alex K
Re: ajax improvements in 5.3
Hi, Here's what I do to do to raise an arbitrary AJAX event on a component: 1. Inject ComponentResources into the component (let's say the variable is named resources). 2. In the component's setupRender handler, call resources.createEventLink and store the returned Link in a field. You can bake or curry values into the returned Link (using the second argument) so it will always call the event handler with those values. 3. Pass link.toUri() to client javascript you write using JavaScriptSupport. I usually prefer to use addInitializerCall (in the afterRender handler) and create an object in the Tapestry.Initializer namespace in a separate JS file, passing a single configuration object made with JSONObject in the component. 4. In the JavaScript, execute new Ajax.Request or Tapestry.ajaxRequest on the URI (see prototype docs and/or tapestry.js for details). 5. The event handler onXyzzy gets executed (assuming you passed xyzzy to createEventLink). Hope this helps, Les Baker On Tue, Jan 3, 2012 at 1:08 AM, Paul Stanton p...@mapshed.com.au wrote: Hi all, I've started using T5.3 for the latest project and am migrating some of the ajax api 'extensions' I had to write in order to become productive. I've noticed that much has improved since T5.1 and am eager to make sure that I am not missing out on further improvements by re-implementing my old hacks! I used to rely heavily on there being a dummyZone - an empty zone on every page used to wire up miscellaneous functionality. Specifically, 1. Is there a better way to invoke ajax requests (similar to eventlink) direct from javascript than the method detailed here: https://issues.apache.org/jira/browse/TAP5-1405 ? 2. Is there a way to construct an ajax callback (ie eventlink, directlink, form etc) without a specifying a zone? - ie, is the 'zone' parameter still the only way to transform an eventlink into an async-eventlink and if a non-existant zone is specified, does it fail? (this would be handy when the ajax callback returns only javascript commands or when zone updates are generated dynamically and there is no definitive zone to update). - i think i logged a jira for this, but can't find it. Thanks, Paul. - 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