Re: LinkSubmit doesn't work
I'm sorry, I mistook in WAR's URL. the correct is http://www.gapo.cz/download/genusinum.war http://www.gapo.cz/downloads/genusinum.war
Re: LinkSubmit doesn't work
i think you mixed up the email subjects ^ ?? Radek Terber wrote: I'm sorry, I mistook in WAR's URL. the correct is http://www.gapo.cz/download/genusinum.war http://www.gapo.cz/downloads/genusinum.war - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: LinkSubmit doesn't work
try to change onsubmit.call(window.document, event) to onsubmit.call(window.document, event) == undefined -- View this message in context: http://old.nabble.com/LinkSubmit-doesn%27t-work-tp28813499p28814310.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
LinkSubmit doesn't work
Hi, I'm guessing I'm doing something wrong but it's hardly obvious. I have a Form, with a LinkSubmit and a Submit: t:form t:id=myForm t:linksubmit t:id=myLinklink/t:linksubmit t:submit t:id=mySubmit / /t:form public void onSuccessFromMyForm() { LOG.debug(onSuccessFromMyForm); } public void onSelectedFromMyLink() { LOG.debug(onSelectedFromMyLink); } public void onSelectedFromMySubmit() { LOG.debug(onSelectedFromMySubmit); } The form is submitted and the listener(s) are called when I click the submit, however nothing all all happens when I click the link. p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: LinkSubmit doesn't work
After stepping through the javascript, I believe it's because the onsubmit event handler for the form is javascript:Tapestry.waitForPage(event); who's first line is if (Tapestry.pageLoaded) return;. This is the equivalent of if (Tapestry.pageLoaded) return false; when evaluated to a boolean as it is in the LinkSubmit onClick handler: if (onsubmit == undefined || onsubmit.call(window.document, event)) { this.createHidden(); this.form.submit(); } .. and therefore this.form.submit(); is never called. Obviously this is a bug, I'm pretty sure the resolution would be to change Tapestry.waitForPage so that it returns true if the page is loaded and false otherwise, ie: waitForPage : function(event) { if (Tapestry.pageLoaded) return true; ... return false; } This will allow 'waitForPage' to be evaluated to a boolean as it is in LinkSubmit.onClick. p. Paul Stanton wrote: Hi, I'm guessing I'm doing something wrong but it's hardly obvious. I have a Form, with a LinkSubmit and a Submit: t:form t:id=myForm t:linksubmit t:id=myLinklink/t:linksubmit t:submit t:id=mySubmit / /t:form public void onSuccessFromMyForm() { LOG.debug(onSuccessFromMyForm); } public void onSelectedFromMyLink() { LOG.debug(onSelectedFromMyLink); } public void onSelectedFromMySubmit() { LOG.debug(onSelectedFromMySubmit); } The form is submitted and the listener(s) are called when I click the submit, however nothing all all happens when I click the link. p. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: LinkSubmit doesn't work
https://issues.apache.org/jira/browse/TAP5-1180 Paul Stanton wrote: After stepping through the javascript, I believe it's because the onsubmit event handler for the form is javascript:Tapestry.waitForPage(event); who's first line is if (Tapestry.pageLoaded) return;. This is the equivalent of if (Tapestry.pageLoaded) return false; when evaluated to a boolean as it is in the LinkSubmit onClick handler: if (onsubmit == undefined || onsubmit.call(window.document, event)) { this.createHidden(); this.form.submit(); } .. and therefore this.form.submit(); is never called. Obviously this is a bug, I'm pretty sure the resolution would be to change Tapestry.waitForPage so that it returns true if the page is loaded and false otherwise, ie: waitForPage : function(event) { if (Tapestry.pageLoaded) return true; ... return false; } This will allow 'waitForPage' to be evaluated to a boolean as it is in LinkSubmit.onClick. p. Paul Stanton wrote: Hi, I'm guessing I'm doing something wrong but it's hardly obvious. I have a Form, with a LinkSubmit and a Submit: t:form t:id=myForm t:linksubmit t:id=myLinklink/t:linksubmit t:submit t:id=mySubmit / /t:form public void onSuccessFromMyForm() { LOG.debug(onSuccessFromMyForm); } public void onSelectedFromMyLink() { LOG.debug(onSelectedFromMyLink); } public void onSelectedFromMySubmit() { LOG.debug(onSelectedFromMySubmit); } The form is submitted and the listener(s) are called when I click the submit, however nothing all all happens when I click the link. p. - 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: linksubmit doesn't work on localized pages
Thanks Howard, the hint really helped. I've double checkes page initialization and immediately found the problem: for non-Russian locales template logic were hiding one form which was referred from addInit (). Shoudln't be there any kind of console error in such a case? On Sun, Mar 21, 2010 at 5:08 AM, Howard Lewis Ship hls...@gmail.com wrote: I suspect you have some other JavaScript error on your page that is keeping Tapestry from initializing correctly. Use FireBug and debug it. I know you're thinking that's a cop out and it should just work ... but experience has shown that when things don't work for one user that do work for other users, the final analysis almost invariably turns out to be some custom bit of code or JavaScript added by the user and not Tapestry. On Sat, Mar 20, 2010 at 1:41 PM, Ilya Obshadko ilya.obsha...@gmail.com wrote: Any ideas yet? On Fri, Mar 19, 2010 at 12:30 AM, Ilya Obshadko ilya.obsha...@gmail.com wrote: 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.com wrote: 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 -- 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 -- Ilya Obshadko
Re: linksubmit doesn't work on localized pages
Any ideas yet? On Fri, Mar 19, 2010 at 12:30 AM, Ilya Obshadko ilya.obsha...@gmail.comwrote: 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 -- Ilya Obshadko
Re: linksubmit doesn't work on localized pages
I suspect you have some other JavaScript error on your page that is keeping Tapestry from initializing correctly. Use FireBug and debug it. I know you're thinking that's a cop out and it should just work ... but experience has shown that when things don't work for one user that do work for other users, the final analysis almost invariably turns out to be some custom bit of code or JavaScript added by the user and not Tapestry. On Sat, Mar 20, 2010 at 1:41 PM, Ilya Obshadko ilya.obsha...@gmail.com wrote: Any ideas yet? On Fri, Mar 19, 2010 at 12:30 AM, Ilya Obshadko ilya.obsha...@gmail.comwrote: 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 -- 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
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
Re: Component LinkSubmit doesn't work
http://tapestry.apache.org/tapestry5.0/ http://tapestry.apache.org/tapestry5.0/apidocs/ On Wed, Aug 19, 2009 at 2:55 PM, Borut Bolčinaborut.bolc...@gmail.com wrote: By the way, what is the url of T 5.0.18 and its API? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Component LinkSubmit doesn't work
Hi, I am using T 5.0.18 and have problems with LinkSubmit not firing the event. By the way, what is the url of T 5.0.18 and its API? I have two TextField components, one LinkSubmit and one non-tapestry ordinary input submit button. I want to set some variable (varA) in case LinkSubmit is clicked, so I can validate the TextFields differently. In case LinkSubmit is pressed only first TextField is required and in case ordinary submit is pressed, both TextFields are required. I want to do a simple if (based on the varA) in the onValidate method and set the form.recordError accordingly. BUT, the event specified in the LinkSubmit is not triggered so I can not set the varA! Can someone please suggest a workaround or a proper solution. Thanks, Borut 2009/5/13 petkovf f...@startext.de I'm found this problem since in 5.1.0.5 (stable), in 5.0.0.18 LinkSubmit work properly. Linksubmit inside a form didn't fire events while no required property is defined inside the form: if you add @Property @Validate(required) private String somefield; in java and input t:type=TextField t:id=somefield/ in tml your LinkSubmit began event capture This is a huge limitation for the developers, particularly if you want to filter a object (entity) view this behavior doesn't help much. The issue https://issues.apache.org/jira/browse/TAP5-389 describe somthing similar, but not in this tapestry version (5.1.0.5) and is closed in the meantime. -- View this message in context: http://n2.nabble.com/Component-LinkSubmit-doesn%27t-work-tp2879193p2879193.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: Component LinkSubmit doesn't work
Maybe with the example code someone can explain this better why the event onSendPin is not called when LinkSubmit is clicked, but it is when the submit button is clicked: TML === html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titlelinksubmit Start Page/title /head body form t:type=form t:id=form name=lgn class=register_user t:autofocus=true t:clientValidation=false t:errors/ li label for=companyIdCompany ID:/label input t:type=TextField t:id=companyId name=companyId id=companyId value=companyId class=pinclass size=10 maxlength=10/ /li li label for=pinPIN code:/label input t:type=TextField t:id=pin name=pin id=pin value=pin class=pinclass size=10 maxlength=7/ /li li t:linksubmit t:event=sendPinsend PIN/t:linksubmit /li input id=submit type=submit value=CONTINUE/ /form /body /html JAVA === import org.apache.tapestry5.PersistenceConstants; import org.apache.tapestry5.annotations.Log; import org.apache.tapestry5.annotations.Persist; import org.apache.tapestry5.annotations.Property; import org.apache.tapestry5.ioc.annotations.Inject; import org.slf4j.Logger; /** * Start page of application linksubmit. */ public class Index { @Property private String companyId; @Property private String pin; @Property @Persist(PersistenceConstants.FLASH) private String mode; @Inject private Logger logger; @Log void onSendPin() { mode = sendPin; } void onValidateForm() { logger.info(mode: {}, mode); logger.info(companyID: {}, PIN: {},companyId, pin); if(mode != null mode.equals(sendPin)) { logger.info(validate companyID only); if (companyId == null) { logger.error(Company id must not be empty.); } } else { logger.info(validate companyID and PIN); if (companyId == null pin == null) { logger.error(Company id and pin must not be empty.); } } } } Cheers, Borut 2009/8/19 Borut Bolčina borut.bolc...@gmail.com Hi, I am using T 5.0.18 and have problems with LinkSubmit not firing the event. By the way, what is the url of T 5.0.18 and its API? I have two TextField components, one LinkSubmit and one non-tapestry ordinary input submit button. I want to set some variable (varA) in case LinkSubmit is clicked, so I can validate the TextFields differently. In case LinkSubmit is pressed only first TextField is required and in case ordinary submit is pressed, both TextFields are required. I want to do a simple if (based on the varA) in the onValidate method and set the form.recordError accordingly. BUT, the event specified in the LinkSubmit is not triggered so I can not set the varA! Can someone please suggest a workaround or a proper solution. Thanks, Borut 2009/5/13 petkovf f...@startext.de I'm found this problem since in 5.1.0.5 (stable), in 5.0.0.18 LinkSubmit work properly. Linksubmit inside a form didn't fire events while no required property is defined inside the form: if you add @Property @Validate(required) private String somefield; in java and input t:type=TextField t:id=somefield/ in tml your LinkSubmit began event capture This is a huge limitation for the developers, particularly if you want to filter a object (entity) view this behavior doesn't help much. The issue https://issues.apache.org/jira/browse/TAP5-389 describe somthing similar, but not in this tapestry version (5.1.0.5) and is closed in the meantime. -- View this message in context: http://n2.nabble.com/Component-LinkSubmit-doesn%27t-work-tp2879193p2879193.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
Component LinkSubmit doesn't work
I'm found this problem since in 5.1.0.5 (stable), in 5.0.0.18 LinkSubmit work properly. Linksubmit inside a form didn't fire events while no required property is defined inside the form: if you add @Property @Validate(required) private String somefield; in java and input t:type=TextField t:id=somefield/ in tml your LinkSubmit began event capture This is a huge limitation for the developers, particularly if you want to filter a object (entity) view this behavior doesn't help much. The issue https://issues.apache.org/jira/browse/TAP5-389 describe somthing similar, but not in this tapestry version (5.1.0.5) and is closed in the meantime. -- View this message in context: http://n2.nabble.com/Component-LinkSubmit-doesn%27t-work-tp2879193p2879193.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