Validation based on condition
Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validation for a text box based on some condition. I tried doing some thing like this t:textfield t:validate=*${validator}*/t:textfield and added the below method in respective java file public String getValidator(){ if(test for validation condition){ return required; }else{ return ; } } I am getting some exception saying *Could not find a coercion from type java.lang.String to type org.apache.tapestry5.FieldValidator.* From the exception, I understood that it is expecting FieldValidator, but I am not getting how to initalize a *required FieldValidator* and return it. I have one more fix (which I didn't like) t:if test=test for validation t:textfield t:validate=*${validator}*/t:textfield t:parameter name=else t:textfield/t:textfield /t:parameter /t:if Please Let me know, if there is a way to initalize a FieldValidator. -- Thanks Regards Jagadesh
Re: Validation based on condition
Hi Try with fielvalidtorsource service to build your conditional constraints. Regards Christophe cordenier Le 18 mars 2010 à 06:59, Jagadesh Paladugula jagadeshpaladug...@gmail.co m a écrit : Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validation for a text box based on some condition. I tried doing some thing like this t:textfield t:validate=*${validator}*/t:textfield and added the below method in respective java file public String getValidator(){ if(test for validation condition){ return required; }else{ return ; } } I am getting some exception saying *Could not find a coercion from type java.lang.String to type org.apache.tapestry5.FieldValidator.* From the exception, I understood that it is expecting FieldValidator, but I am not getting how to initalize a *required FieldValidator* and return it. I have one more fix (which I didn't like) t:if test=test for validation t:textfield t:validate=*${validator}*/t:textfield t:parameter name=else t:textfield/t:textfield /t:parameter /t:if Please Let me know, if there is a way to initalize a FieldValidator. -- Thanks Regards Jagadesh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Validation based on condition
Hi Christophe, Could you please give me a sample implementation. Regards, Jagadesh On Thu, Mar 18, 2010 at 12:39 PM, Christophe Cordenier christophe.corden...@gmail.com wrote: Hi Try with fielvalidtorsource service to build your conditional constraints. Regards Christophe cordenier Le 18 mars 2010 à 06:59, Jagadesh Paladugula jagadeshpaladug...@gmail.com a écrit : Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validation for a text box based on some condition. I tried doing some thing like this t:textfield t:validate=*${validator}*/t:textfield and added the below method in respective java file public String getValidator(){ if(test for validation condition){ return required; }else{ return ; } } I am getting some exception saying *Could not find a coercion from type java.lang.String to type org.apache.tapestry5.FieldValidator.* From the exception, I understood that it is expecting FieldValidator, but I am not getting how to initalize a *required FieldValidator* and return it. I have one more fix (which I didn't like) t:if test=test for validation t:textfield t:validate=*${validator}*/t:textfield t:parameter name=else t:textfield/t:textfield /t:parameter /t:if Please Let me know, if there is a way to initalize a FieldValidator. -- Thanks Regards Jagadesh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards Jagadesh
Re: Order of processing of mixins
Hi, thanks for responses. I'm using 5.1.0.5. Version 5.2 brings me more pain than gain ;-). I think my problem could be somewhere else: both my mixins wired event handlers to same event onclick. I don't know JS very well but could be possible that JS don't keep ordering when notify listeners for particular event. I think in Java (Swing) is the same situation. So mixins are processed in correct order but listeners are not probably notified in the same order in JS. Would you agree? -- View this message in context: http://old.nabble.com/Order-of-processing-of-mixins-tp27933566p27942359.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: Validation based on condition
@Inject private FieldValidatorSource source; @InjectComponent private Field yourField; public FieldValidator getDynamicConstraints() { return source.createValidators(yourField, required, null); } Note that this is how we generally use Tapestry Services by injecting them. Have a look at the API, it is pretty detailed on how to use methods on services. Also, keep in mind that there are two types of services : public (for tapestry users) and internal (for tapestry developers) So if you're looking at something, have a first look into the 'org.apache.tapestry5.services' package, you should find what you need ;) Regards, Christophe Cordenier. 2010/3/18 Jagadesh Paladugula jagadeshpaladug...@gmail.com Hi Christophe, Could you please give me a sample implementation. Regards, Jagadesh On Thu, Mar 18, 2010 at 12:39 PM, Christophe Cordenier christophe.corden...@gmail.com wrote: Hi Try with fielvalidtorsource service to build your conditional constraints. Regards Christophe cordenier Le 18 mars 2010 à 06:59, Jagadesh Paladugula jagadeshpaladug...@gmail.com a écrit : Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validation for a text box based on some condition. I tried doing some thing like this t:textfield t:validate=*${validator}*/t:textfield and added the below method in respective java file public String getValidator(){ if(test for validation condition){ return required; }else{ return ; } } I am getting some exception saying *Could not find a coercion from type java.lang.String to type org.apache.tapestry5.FieldValidator.* From the exception, I understood that it is expecting FieldValidator, but I am not getting how to initalize a *required FieldValidator* and return it. I have one more fix (which I didn't like) t:if test=test for validation t:textfield t:validate=*${validator}*/t:textfield t:parameter name=else t:textfield/t:textfield /t:parameter /t:if Please Let me know, if there is a way to initalize a FieldValidator. -- Thanks Regards Jagadesh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards Jagadesh -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
Re: [Announce] Wooki - Collaborative Writing - version 0.2.0 is here!
Hi You're very welcome. Also, note that we have planned to split wooki into smaller pieces, so tapestry developers here can use reusable parts of wooki in the form of small contribution for their project. We still need to install our maven repository and then try the refactor work, but this is one of our main objective. Best Regards, Christophe Cordenier. 2010/3/18 abangkis abang...@gmail.com Great, i was waiting for this. Congrats ! :) On Wed, Mar 17, 2010 at 9:19 PM, Robin Komiwes odiss...@gmail.com wrote: We are pleased to announce Wooki 0.2.0 release. We have been working more than two months on this major update and we hope you will appreciate our efforts. For newcomers, Wooki is a collaborative writing tool that let users publish and review documents. It is open source and distributed under the Apache 2.0 License. Of course, it is based on Tapestry 5. What's new in Wooki 0.2.0? - PDF generation is now powered by Flying Saucer, which will offer great possibilities for PDF stylization - Redesigned User Interface to provide a more intuitive layout - Editor has been also improved with AJAX autosave, on the fly image upload and a fullscreen mode to make the edition easier - Feeds! Wooki now produces feeds on many pages. This feature is the result of integrating Rome library into Tapestry. - Spring 2.5 has been updated to Spring 3. - Last but not least this new version also includes a bunch of new Tapestry components. A great example is our Twitter like more button. We are looking forward to blog about all thoses technicals asides on spread the source blog. Our demo website has been updated, try Wooki 0.2.0 now at http://http://wookicentral.com/demo wookicentral http://wookicentral.com/demo.com/demo http://wookicentral.com/demo We would like to thanks all our Github bugs reporters, all our followers, everyone who have contributed to this project in some way and everyone who supports it. Next release should focus on providing a REST API, more imports and exports formats and improving our core source code. Regards, - Wooki developpers team -- Christophe Cordenier, Robin Komiwes, Bruno Verachten -- http:// http://wookicentral.comwookicentralhttp://wookicentral.com .com http://wookicentral.com -- Source code : http://github.com/robink/wooki -- http://twitter.com/spreadthesource - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
Re: Order of processing of mixins
Just in general, explicit order of listeners would destroy (current or future) possibilities for implicit parallelism. Problems with listener ordering can be solved with event propagation (by creating a nested element). Kalle On Thu, Mar 18, 2010 at 12:27 AM, LiborGMC l.pre...@gmc.net wrote: Hi, thanks for responses. I'm using 5.1.0.5. Version 5.2 brings me more pain than gain ;-). I think my problem could be somewhere else: both my mixins wired event handlers to same event onclick. I don't know JS very well but could be possible that JS don't keep ordering when notify listeners for particular event. I think in Java (Swing) is the same situation. So mixins are processed in correct order but listeners are not probably notified in the same order in JS. Would you agree? -- View this message in context: http://old.nabble.com/Order-of-processing-of-mixins-tp27933566p27942359.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: Validation based on condition
Thanks Christophe. Its working :) One more doubt, When I don't want to add validation, I am returning null, in this case page is not getting rendered. Should I need to create a new validator Optional, make this as default validator; Regards, Jagadesh On Thu, Mar 18, 2010 at 1:01 PM, Christophe Cordenier christophe.corden...@gmail.com wrote: @Inject private FieldValidatorSource source; @InjectComponent private Field yourField; public FieldValidator getDynamicConstraints() { return source.createValidators(yourField, required, null); } Note that this is how we generally use Tapestry Services by injecting them. Have a look at the API, it is pretty detailed on how to use methods on services. Also, keep in mind that there are two types of services : public (for tapestry users) and internal (for tapestry developers) So if you're looking at something, have a first look into the 'org.apache.tapestry5.services' package, you should find what you need ;) Regards, Christophe Cordenier. 2010/3/18 Jagadesh Paladugula jagadeshpaladug...@gmail.com Hi Christophe, Could you please give me a sample implementation. Regards, Jagadesh On Thu, Mar 18, 2010 at 12:39 PM, Christophe Cordenier christophe.corden...@gmail.com wrote: Hi Try with fielvalidtorsource service to build your conditional constraints. Regards Christophe cordenier Le 18 mars 2010 à 06:59, Jagadesh Paladugula jagadeshpaladug...@gmail.com a écrit : Hi Everyone, I have a form which is getting generated dynamically based on some values in database. I want to add validation for a text box based on some condition. I tried doing some thing like this t:textfield t:validate=*${validator}*/t:textfield and added the below method in respective java file public String getValidator(){ if(test for validation condition){ return required; }else{ return ; } } I am getting some exception saying *Could not find a coercion from type java.lang.String to type org.apache.tapestry5.FieldValidator.* From the exception, I understood that it is expecting FieldValidator, but I am not getting how to initalize a *required FieldValidator* and return it. I have one more fix (which I didn't like) t:if test=test for validation t:textfield t:validate=*${validator}*/t:textfield t:parameter name=else t:textfield/t:textfield /t:parameter /t:if Please Let me know, if there is a way to initalize a FieldValidator. -- Thanks Regards Jagadesh - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards Jagadesh -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com -- Regards Jagadesh
@EventListener on contrib:MultiplePropertySelection (Tapestry 4.1)
Hi. Is it possible to add @EventListener to a contrib:MultiplePropertySelection in Tapestry 4.1 (dojo) and listen to onclick on its checkboxes? I would like to redraw the component everytime I click on a checkbox (as I'm toggling disabled and checked properties on the rest of them then). I would like to achieve this (Java): @EventListener(events = onclick, targets = selectPackages) public void packagesSelected(IRequestCycle cycle) { log.info( packagesSelected); cycle.getResponseBuilder().updateComponent(selectPackages); } HTML: span jwcid=selectpacka...@contrib:MultiplePropertySelection model=ognl:packagesModel selectedList=ognl:selectedPackages / Of course I would like to listen to onClick on all member checkbox elements generated by this component, e.g.: selectPackages.0, selectPackages.1, selectPackages.2, etc... Or is there any other way to achieve the same effect with another set of components? -- Michał Minicki mar...@post.pl - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [Announce] Wooki - Collaborative Writing - version 0.2.0 is here!
hi, just wan't to point out that your download link still point to http://static.spreadthesource.com/wooki-0.1.war cheers, abangkis On Thu, Mar 18, 2010 at 2:37 PM, Christophe Cordenier christophe.corden...@gmail.com wrote: Hi You're very welcome. Also, note that we have planned to split wooki into smaller pieces, so tapestry developers here can use reusable parts of wooki in the form of small contribution for their project. We still need to install our maven repository and then try the refactor work, but this is one of our main objective. Best Regards, Christophe Cordenier. 2010/3/18 abangkis abang...@gmail.com Great, i was waiting for this. Congrats ! :) On Wed, Mar 17, 2010 at 9:19 PM, Robin Komiwes odiss...@gmail.com wrote: We are pleased to announce Wooki 0.2.0 release. We have been working more than two months on this major update and we hope you will appreciate our efforts. For newcomers, Wooki is a collaborative writing tool that let users publish and review documents. It is open source and distributed under the Apache 2.0 License. Of course, it is based on Tapestry 5. What's new in Wooki 0.2.0? - PDF generation is now powered by Flying Saucer, which will offer great possibilities for PDF stylization - Redesigned User Interface to provide a more intuitive layout - Editor has been also improved with AJAX autosave, on the fly image upload and a fullscreen mode to make the edition easier - Feeds! Wooki now produces feeds on many pages. This feature is the result of integrating Rome library into Tapestry. - Spring 2.5 has been updated to Spring 3. - Last but not least this new version also includes a bunch of new Tapestry components. A great example is our Twitter like more button. We are looking forward to blog about all thoses technicals asides on spread the source blog. Our demo website has been updated, try Wooki 0.2.0 now at http://http://wookicentral.com/demo wookicentral http://wookicentral.com/demo.com/demo http://wookicentral.com/demo We would like to thanks all our Github bugs reporters, all our followers, everyone who have contributed to this project in some way and everyone who supports it. Next release should focus on providing a REST API, more imports and exports formats and improving our core source code. Regards, - Wooki developpers team -- Christophe Cordenier, Robin Komiwes, Bruno Verachten -- http:// http://wookicentral.comwookicentralhttp://wookicentral.com .com http://wookicentral.com -- Source code : http://github.com/robink/wooki -- http://twitter.com/spreadthesource - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
tapestry jumpstart without an editor (javax / compile problem)
I'm having some difficulty getting tapestry to compile let alone run in my IDE (IntelliJ IDEA 9) so I reverted to running the ant script from the command line. Ant (1.8.0) works fine for several other projects, as does tomcat (6.0) on my Windows XP machine. My build.properties file ends up looking like this: app.name=jumpstart enterprise.dir=enterprise web.dir=web business.dir=business collapsed.dir=collapsed exploded.dir=exploded maven.repo.root=http://repo1.maven.org/maven2 deployment.server.type=tomcat deployment.persistence.descriptor=openejb-hibernate-hsqldb-persistence.x ml deployment.web.descriptor=web.xml integration.test.server.dir=c:/Program Files/_System/Tomcat 6.0 add.source.to.war= I changed the defaults to use the tomcat settings (and tried several [relative path] variations on the integration.test.server.dir path in addition to the absolute path shown) I am behind a nasty proxy that requires a password so I didn't count on the default target to work, but surely that isn't required for the compile target, right? I would have guessed that the classpath would have been set in the build script, or configured in the properties, but I'm not seeing that. I end up with what is surly a classpath error in that javax is not found (error below). This seems pretty basic so I'm guess this is my oversight, but I didn't find any detailed setup instructions in the wiki or faq section of the webpage nor a similar question already on the mailing list so I thought I'd ask... C:\Projects\jumpstart-4.5.2ant compile Buildfile: C:\Projects\jumpstart-4.5.2\build.xml compile: [echo] ** [echo] Compiling Business module... [echo] ** init: compile: [javac] C:\Projects\jumpstart-4.5.2\business\build.xml:125: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for rep eatable builds [javac] Compiling 71 source files to C:\Projects\jumpstart-4.5.2\business\target\classes [javac] C:\Projects\jumpstart-4.5.2\business\src\main\java\jumpstart\business\co mmons\exception\AuthenticationException.java:3: package javax.ejb does not exist [javac] import javax.ejb.ApplicationException; [javac] ^
T5.2.0-SNAPHOT: newbie exceptions submitting form with BeanEditor
Hi, I'm trying to use the BeanEditor in a t:form which seems to work fine until I use the add parameter. I've read through the documentation and I'm just not sure what i'm doing wrong. The form renders fine but no matter what I do when I submit the form it always throws this exception: Bean editor model for User already contains a property model for property 'confirmPassword'. Thank you for any help or suggestions in advance! Here is my simple test case: Test.tml: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; body t:form t:beaneditor object=user add=confirmPassword t:parameter name=confirmPassword t:label for=confirmPassword / t:passwordField t:id=confirmPassword / /t:parameter /t:beaneditor t:submit / /t:form /body /html Test.java: public class Test { @Property private User user; @Property private String confirmPassword; } User.java: public class User { private String email; private String password; public User() {} public String getEmail() {return email;} public void setEmail(String email) {this.email = email;} public String getPassword() {return password;} public void setPassword(String password) {this.password = password;} } -- View this message in context: http://old.nabble.com/T5.2.0-SNAPHOT%3A-newbie-exceptions-submitting-form-with-BeanEditor-tp27947909p27947909.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.2.0-SNAPHOT: newbie exceptions submitting form with BeanEditor
It looks like what you have should work. This may represent a regression, based on the retooling of the ComponentClassTransformWorker code; it looks like the BeanEditForm (or BeanEditor) is possibly holding onto its instance of BeanModel from one request to the next, rather than starting from scratch on each request. I haven't seen this myself, and it seems like something that would be tested by the Tapestry integration test suite ... but still, this seems odd. On Thu, Mar 18, 2010 at 9:23 AM, Joe Klecko theg0df0d...@gmail.com wrote: Hi, I'm trying to use the BeanEditor in a t:form which seems to work fine until I use the add parameter. I've read through the documentation and I'm just not sure what i'm doing wrong. The form renders fine but no matter what I do when I submit the form it always throws this exception: Bean editor model for User already contains a property model for property 'confirmPassword'. Thank you for any help or suggestions in advance! Here is my simple test case: Test.tml: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; body t:form t:beaneditor object=user add=confirmPassword t:parameter name=confirmPassword t:label for=confirmPassword / t:passwordField t:id=confirmPassword / /t:parameter /t:beaneditor t:submit / /t:form /body /html Test.java: public class Test { �...@property private User user; �...@property private String confirmPassword; } User.java: public class User { private String email; private String password; public User() {} public String getEmail() {return email;} public void setEmail(String email) {this.email = email;} public String getPassword() {return password;} public void setPassword(String password) {this.password = password;} } -- View this message in context: http://old.nabble.com/T5.2.0-SNAPHOT%3A-newbie-exceptions-submitting-form-with-BeanEditor-tp27947909p27947909.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 -- 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: How to order libraries mapping ?
Hi I don't see any way to order your lib contribution, but it would be nice to have an ordered list instead, or maybe we should add a priority level to the LibraryMapping object to keep backward compatibility. Best Regards, Christophe Cordenier. 2010/3/17 Nourredine K. nourredin...@yahoo.com Hello, I want to provide an easy way, for users (developpers), to extend GUI modules (CRUD tapestry pages/components). So we give them a generic module (a component library) that they can extend/override. The constraint is that we don't want to use url rewriting. So, we use the same alias for both mappings (generic and extended modules) and the users have to use the same name for their extended pages and components as the generic ones. The ideal would be to have an ordered list for libraries mapping (I know that the method contributeComponentClassResolver uses an unordered list) Any idea to handle libraries mapping order ? Nourredine. -- Regards, Christophe Cordenier. Developer of wooki @wookicentral.com
Use of eclipse plugin for T5 ?
Hi, Do you use any plugin inside eclipse for T5 ? I've tried loom with 3.4.1 however only the devel version seems to work (but do nothing visible. No completion. No actions) Regards, Mondes_engloutis.
linksubmit doesn't work on localized pages
I have a very strange blocker bug: linksubmit component doesn't work at all on localized pages. I have an AJAX form in a sidebar that processes user login and logout. Basically I'm on 5.1.0.5, but I am using LinkSubmit code from 5.1.0.6 (with a bugfix for working in zone-based forms). To make it work, I've just copypasted the code to local component called LinkSubmit2. So, the AJAX form works perfectly on all the pages that look like my.website.com/page/context But on every page that looks like my.website.com/en/page/context or my.website.com/fr/page/context clicking on the link does nothing. I've debugged JS code and found out that in waitForPage () it checks for Tapestry.pageLoaded and returns if it's true; and it's already set to true at the very beginning of the event handler. Anybody have an idea? Thanks in advance. P.S. Looks like this is a last problem preventing me from deploying a really big project, so any help is very much appreciated. Thanks again. -- Ilya Obshadko
Re: linksubmit doesn't work on localized pages
Do you see the request on the server side? I.e., use FireBug Net panel to see what request is being sent, what response is coming down. There shouldn't be any difference between normal and localized pages. Is it possible that some intermediate server is mangling the query path in some way? On Thu, Mar 18, 2010 at 12:49 PM, Ilya Obshadko ilya.obsha...@gmail.com wrote: I have a very strange blocker bug: linksubmit component doesn't work at all on localized pages. I have an AJAX form in a sidebar that processes user login and logout. Basically I'm on 5.1.0.5, but I am using LinkSubmit code from 5.1.0.6 (with a bugfix for working in zone-based forms). To make it work, I've just copypasted the code to local component called LinkSubmit2. So, the AJAX form works perfectly on all the pages that look like my.website.com/page/context But on every page that looks like my.website.com/en/page/context or my.website.com/fr/page/context clicking on the link does nothing. I've debugged JS code and found out that in waitForPage () it checks for Tapestry.pageLoaded and returns if it's true; and it's already set to true at the very beginning of the event handler. Anybody have an idea? Thanks in advance. P.S. Looks like this is a last problem preventing me from deploying a really big project, so any help is very much appreciated. Thanks again. -- Ilya Obshadko -- 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: linksubmit doesn't work on localized pages
No, the problem is that I don't see any request on the server side. No request is being sent at all. After clicking on linksubmit component it calls waitForPage() which is handling form submit event. Then, inside this function, it terminates right after checking whether Tapestry.pageLoaded is true (and it's really set to true at this point, I've double checked that). So form submit doesn't really happen. See screenshot: http://skitch.com/xfyre/n4iha/developer-tools-http-www.bible-center.ru-18666-en I'm using Google Chrome. On Thu, Mar 18, 2010 at 10:53 PM, Howard Lewis Ship hls...@gmail.comwrote: Do you see the request on the server side? I.e., use FireBug Net panel to see what request is being sent, what response is coming down. There shouldn't be any difference between normal and localized pages. Is it possible that some intermediate server is mangling the query path in some way? On Thu, Mar 18, 2010 at 12:49 PM, Ilya Obshadko ilya.obsha...@gmail.com wrote: I have a very strange blocker bug: linksubmit component doesn't work at all on localized pages. I have an AJAX form in a sidebar that processes user login and logout. Basically I'm on 5.1.0.5, but I am using LinkSubmit code from 5.1.0.6 (with a bugfix for working in zone-based forms). To make it work, I've just copypasted the code to local component called LinkSubmit2. So, the AJAX form works perfectly on all the pages that look like my.website.com/page/context But on every page that looks like my.website.com/en/page/context or my.website.com/fr/page/context clicking on the link does nothing. I've debugged JS code and found out that in waitForPage () it checks for Tapestry.pageLoaded and returns if it's true; and it's already set to true at the very beginning of the event handler. Anybody have an idea? Thanks in advance. P.S. Looks like this is a last problem preventing me from deploying a really big project, so any help is very much appreciated. Thanks again. -- Ilya Obshadko
T5: native component needs asset: effects.js but I want to combine/minify js-files
I've decorated ClientInfrastructure to supply my own set of required js-files. this is only 1 file containing complete prototype and a modified version of scriptaculous (stripped what I dont need, and some overridden controls) This all works well, but there is still a native component that injects effects.js. Is there a way to override which file this component needs to look at? At the moment I haven't got an idea which component is triggering the inclusion of effects.js. I don't recall having any component in use (direct or subclassed) that uses it. of course i could always rename my javascript file to effects.js but this would be a matintenace nightmare: new version of scriptaculous -- overwrite effects.js.. any help appreciated... thanks Geert-Jan -- View this message in context: http://n2.nabble.com/T5-native-component-needs-asset-effects-js-but-I-want-to-combine-minify-js-files-tp4759964p4759964.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
Directory listing error
I have created a project few hours ago with the quickstart archetype. I was able to start it and it was running OK. I created some model classes and annotated them with hibernate to connect them to my database. Now I try to run the application (http://localhost:8081/)and all I get is a directory listing. When I click some of the files it says: HTTP ERROR: 403 URI /Index.tml may not be accessed remotely. I am using Jetty and Eclipse. I know it is a small chance, but does anyone has an idea what is the problem? Thank you -- View this message in context: http://old.nabble.com/Directory-listing-error-tp27950872p27950872.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: Directory listing error
Please have a look at your jetty log, there must be some error message when deploying your t5 application. DH - Original Message - From: Mite mitemeis...@gmail.com To: users@tapestry.apache.org Sent: Friday, March 19, 2010 9:38 AM Subject: Directory listing error I have created a project few hours ago with the quickstart archetype. I was able to start it and it was running OK. I created some model classes and annotated them with hibernate to connect them to my database. Now I try to run the application (http://localhost:8081/)and all I get is a directory listing. When I click some of the files it says: HTTP ERROR: 403 URI /Index.tml may not be accessed remotely. I am using Jetty and Eclipse. I know it is a small chance, but does anyone has an idea what is the problem? Thank you -- View this message in context: http://old.nabble.com/Directory-listing-error-tp27950872p27950872.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: Directory listing error
URI /Index.tml may not be accessed remotely. try http://localhost:8081/index, without the .tml Tapestry by default will look for a /Start page (configurable with [1]), it seems like you have one called index and hence tapestry can't map / to anything and shows you a directory listing. If that still doesn't work, something will probably go wrong on startup like DH suggested. Cheers, Joost [1]: public static void contributeApplicationDefaults( final MappedConfigurationString, String configuration) { configuration.add(tapestry.start-page-name, index);//or any other page name you prefer, defaults to Start } DH wrote: Please have a look at your jetty log, there must be some error message when deploying your t5 application. DH - Original Message - From: Mite mitemeis...@gmail.com To: users@tapestry.apache.org Sent: Friday, March 19, 2010 9:38 AM Subject: Directory listing error I have created a project few hours ago with the quickstart archetype. I was able to start it and it was running OK. I created some model classes and annotated them with hibernate to connect them to my database. Now I try to run the application (http://localhost:8081/)and all I get is a directory listing. When I click some of the files it says: HTTP ERROR: 403 URI /Index.tml may not be accessed remotely. I am using Jetty and Eclipse. I know it is a small chance, but does anyone has an idea what is the problem? Thank you -- View this message in context: http://old.nabble.com/Directory-listing-error-tp27950872p27950872.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: tapestry jumpstart without an editor (javax / compile problem)
Hi Quincy, Looks like you don't have the dependent files. Have you done step 4 of http://jumpstart.doublenegative.com.au/jumpstart4.5/installation.html ? HTH, Geoff On 19/03/2010, at 2:15 AM, Acklen, Quincy L wrote: I'm having some difficulty getting tapestry to compile let alone run in my IDE (IntelliJ IDEA 9) so I reverted to running the ant script from the command line. Ant (1.8.0) works fine for several other projects, as does tomcat (6.0) on my Windows XP machine. My build.properties file ends up looking like this: app.name=jumpstart enterprise.dir=enterprise web.dir=web business.dir=business collapsed.dir=collapsed exploded.dir=exploded maven.repo.root=http://repo1.maven.org/maven2 deployment.server.type=tomcat deployment.persistence.descriptor=openejb-hibernate-hsqldb-persistence.x ml deployment.web.descriptor=web.xml integration.test.server.dir=c:/Program Files/_System/Tomcat 6.0 add.source.to.war= I changed the defaults to use the tomcat settings (and tried several [relative path] variations on the integration.test.server.dir path in addition to the absolute path shown) I am behind a nasty proxy that requires a password so I didn't count on the default target to work, but surely that isn't required for the compile target, right? I would have guessed that the classpath would have been set in the build script, or configured in the properties, but I'm not seeing that. I end up with what is surly a classpath error in that javax is not found (error below). This seems pretty basic so I'm guess this is my oversight, but I didn't find any detailed setup instructions in the wiki or faq section of the webpage nor a similar question already on the mailing list so I thought I'd ask... C:\Projects\jumpstart-4.5.2ant compile Buildfile: C:\Projects\jumpstart-4.5.2\build.xml compile: [echo] ** [echo] Compiling Business module... [echo] ** init: compile: [javac] C:\Projects\jumpstart-4.5.2\business\build.xml:125: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for rep eatable builds [javac] Compiling 71 source files to C:\Projects\jumpstart-4.5.2\business\target\classes [javac] C:\Projects\jumpstart-4.5.2\business\src\main\java\jumpstart\business\co mmons\exception\AuthenticationException.java:3: package javax.ejb does not exist [javac] import javax.ejb.ApplicationException; [javac] ^ - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
@For how to check last element?
when using td jwcid=@For source=ognl:theList how to check for whether the element is last element in the loop? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org