tapestry live grid functionality announcement
I've built a nifty component which uses a vertical scrollbar to transition between pages on a table which is then updated asynchronously to show the new page. It looks something like the liveGrid thing from Rico, although mine still needs a lot of polish before it works quite as well. It still needs to do things like row level scrolling instead of just transitioning between entire pages, but to do that will also likely require some amount of caching in the client and possibly a modification to the ITableModel interface. It also needs general look and feel touches like giving indication that work is occuring, updating an element with the current page number during the scroll, various and sundry other little details. But the core functionality is there. Currently, it is only verified to work on Firefox. My test app doesn't work in IE for reasons that aren't related to the grid (IE and Safari aren't doing async updates correctly in the version of tap 4.1 I'm using, which is a couple of weeks old), but it probably needs some tweaking to work everywhere. It uses the native scrollbar of the browser by just setting up a tall div inside a height constrained div, so there will probably be look and feel issues, initially. I'm still just starting to play around with Tap 4.1, so if there is someone else out there who would like to help me with this thing, I'd sure appreciate it. I'll get it posted to sourceforge or somewhere in the next day or two. It is surprisingly little code, currently. A tiny dojo widget, a wrapper component similar to contrib:table, which wraps TableView, TableColumns, etc, and a Scrolling component which replaces the TablePages component. Currently, it is only about 300 lines of code for everything. And Jesse, Tap 4.1 really is an enormous leap forward for Tapestry's usability in a (forgive me for saying it) 'web 2.0'/rich-client environment. I'm not finding a lot lacking in functionality, but there is still some work necessary getting some things documented and providing simpler api access to some things (I'll be writing up some docs on adding an external dojo module sometime this week). The biggest difficulty, for me, seems to be when dealing with components that have a client id that doesn't match the component id. I am still not quite sure how to go about setting things up correctly when that circumstance occurs. I usually just wind up wrapping the misbehaving component in an @Any div and using the id of that div, but if that were in a loop, I'm still not sure how it would work. Some mechanism for specifying a different client id for the javascript side of the update would be really handy. Maybe its there and I didn't spot it. The other question that I haven't answered for myself yet is how to go about instantiating dojo widgets correctly in the Tapestry way. I usually just put a div in the html body, then use dojo.widget.createWidget to replace that div with the widget. Unfortunately, using tapestry.synchronizeWidgetState doesn't seem to make this possible. I don't want to do the node replacement after the create, since then any dynamically sized components won't be the correct size when postCreate() or fillInTemplate() are called. Oh, and it sure would be cool to be able to pass parameters to an EventListener, but I'm pretty sure I'm not going to be the first person to say that ;-) Then I'd be able to attach an EventListener directly to the onPageChange event of my dojo widget, rather than having to falsify a DirectLink. --sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: @DropdownDatePicker not working in IE with lastest snapshot
I still have the same problem with IE and DropdownDatePicker using today's latest snapshot. I noticed some changes though. djConfig is different on IE or firefox: IE6: locale:fr FF2: locale:fr-fr Still works fine with FF, still broken on IE. 2006/11/9, Christian Dutaret [EMAIL PROTECTED]: I changed the locale to en-us in IE, and still the same (no render and still the same error message) In FF, I changed the locale to en-us too, and the DropdownDatePicker is displayed in english as expected The djConfig is the same in IE and FF About the TAPESTRY-1136 issue, it was working for me in french (until today in IE), although I always get the warning in my logs: WARN Asset - Classpath resource '/dojo/src/widget/nls/fr/DropdownDatePicker.js' does not exist. WARN Asset - Classpath resource '/dojo/src/widget/nls/fr-/DropdownDatePicker.js' does not exist The warnings are also displayed for en-US: WARN Asset - Classpath resource '/dojo/src/widget/nls/en/DropdownDatePicker.js' does not exist. WARN Asset - Classpath resource '/dojo/src/widget/nls/en-us/DropdownDatePicker.js' does not exist Do you think this new problem is somehow related to the 1136 fix? Can anyone reproduce this on IE or is it just me? 2006/11/9, andyhot [EMAIL PROTECTED]: Could be something similar to http://issues.apache.org/jira/browse/TAPESTRY-1136 Can you change the default language to en-us in IE and see what happens? In FF, is the djConfig identical? Christian Dutaret wrote: sure djConfig = {isDebug:false,debugAtAllCosts:false,debugContainerId:debug,baseRelativePath: http://localhost:8080/ha/assets/static/dojo/ ,preventBackButtonFix:false,parseWidgets:false,locale:fr-} 2006/11/9, andyhot [EMAIL PROTECTED]: Christian Dutaret wrote: I use the defaults generated from the Shell component, except for some logging setup (logging disabled), and I load dojo js through the asset service using standard friendly urls. Forgot to say I'm using 4.1.1, not tacos. There's no dropdowndatepicker in tacos :) Is it possible to show those defaults that got generated for djConfig ? 2006/11/8, andyhot [EMAIL PROTECTED] : Christian Dutaret wrote: the widget is not rendered at all under IE6. I get the error message : could not locate implementation for dropdowndatepicker in dojowidget registered to namespace dojo. Works OK with firefox 2.0 Anyone experiencing the same? what's your djConfig ? -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Steven M Appelhans is out of the office.
I will be out of the office starting 11/13/2006 and will not return until 11/27/2006. I will respond to your message when I return. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: @DropdownDatePicker not working in IE with lastest snapshot
Just crossed my mind this could be a problem with some older version cached in the browser. So I cleared IE cache and... everything works fine... Sorry about all that noise 2006/11/13, Christian Dutaret [EMAIL PROTECTED]: I still have the same problem with IE and DropdownDatePicker using today's latest snapshot. I noticed some changes though. djConfig is different on IE or firefox: IE6: locale:fr FF2: locale:fr-fr Still works fine with FF, still broken on IE. 2006/11/9, Christian Dutaret [EMAIL PROTECTED]: I changed the locale to en-us in IE, and still the same (no render and still the same error message) In FF, I changed the locale to en-us too, and the DropdownDatePicker is displayed in english as expected The djConfig is the same in IE and FF About the TAPESTRY-1136 issue, it was working for me in french (until today in IE), although I always get the warning in my logs: WARN Asset - Classpath resource '/dojo/src/widget/nls/fr/DropdownDatePicker.js' does not exist. WARN Asset - Classpath resource '/dojo/src/widget/nls/fr-/DropdownDatePicker.js' does not exist The warnings are also displayed for en-US: WARN Asset - Classpath resource '/dojo/src/widget/nls/en/DropdownDatePicker.js' does not exist. WARN Asset - Classpath resource '/dojo/src/widget/nls/en-us/DropdownDatePicker.js' does not exist Do you think this new problem is somehow related to the 1136 fix? Can anyone reproduce this on IE or is it just me? 2006/11/9, andyhot [EMAIL PROTECTED] : Could be something similar to http://issues.apache.org/jira/browse/TAPESTRY-1136 Can you change the default language to en-us in IE and see what happens? In FF, is the djConfig identical? Christian Dutaret wrote: sure djConfig = {isDebug:false,debugAtAllCosts:false,debugContainerId:debug,baseRelativePath: http://localhost:8080/ha/assets/static/dojo/ ,preventBackButtonFix:false,parseWidgets:false,locale:fr-} 2006/11/9, andyhot [EMAIL PROTECTED]: Christian Dutaret wrote: I use the defaults generated from the Shell component, except for some logging setup (logging disabled), and I load dojo js through the asset service using standard friendly urls. Forgot to say I'm using 4.1.1, not tacos. There's no dropdowndatepicker in tacos :) Is it possible to show those defaults that got generated for djConfig ? 2006/11/8, andyhot [EMAIL PROTECTED] : Christian Dutaret wrote: the widget is not rendered at all under IE6. I get the error message : could not locate implementation for dropdowndatepicker in dojowidget registered to namespace dojo. Works OK with firefox 2.0 Anyone experiencing the same? what's your djConfig ? -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr Tapestry / Tacos developer Open Source / J2EE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with AjaxForm
Hi, I'm trying to compute a value at the moment my formi s submitted, in this way head script type=text/javascript function getMessage() { document.myForm.myHidden.value=Pizzicone } /script /head Edoardo Campagnano
Ajax form
Sorry for the other mail, this is the complete one Hi, I'm trying to compute a value at the moment my formi s submitted, in this way head script type=text/javascript function getMessage() { document.myForm.myHidden.value=myComputedValue } /script /head body form jwcid=[EMAIL PROTECTED]:AjaxForm onSubmit=javascript:getMessage(); span jwcid=[EMAIL PROTECTED] value=ognl:myHiddenField/ submit jwcid=@tacos:AjaxSubmit listener=listener:testMethod/ /form /body The idea i sto assign at submit time the value myComputedValue to the hidden field and pass it to the server, but it doesn't work. Any idea? Edoardo Campagnano
RE: Ajax form that updates itself destroys the ajaxy-goodness of said form
What version of the code has these fixes? Matt -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Sunday, October 15, 2006 6:54 PM To: Tapestry users Subject:Re: Ajax form that updates itself destroys the ajaxy-goodness of said form No need for thanks. I'm having the time of my life doing this stuff. I've never had access to learning so much from so many smart people. Each line of code written or change made brings me a great amount of joy. The only way things could possibly get better is if I could spend ~more~ time working on Tapestry or have access to some of the annoyances I've run into with the current architecture. (the latter wish has literally already been granted by work Howard's already accomplished in T5, so now I just need more Tap time ; ) ) On 10/15/06, Josh Long [EMAIL PROTECTED] wrote: Yah it works! Wonderful job (as usual), Jesse! Thank you s much. If -- one day -- I ever ascend to the position of one of the leading innovativing forces in the cutting edge iteration of a framework on which you're happily and critically reliant, take heart in the knowledge that I would happily give my saturday (maybe not as happily or as frequently as you have, of course, SOME of us do need sleep.. !) to try and fix a bug for you buddy! In the meantime, I definitely owe you a beer or something. :-) Thanks again Jesse! Josh On 10/14/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Ah. Damnit, next time josh...next time... Fixed and deploy(ing/ed) ;) On 10/14/06, Josh Long [EMAIL PROTECTED] wrote: Hiya Jesse, OK, the page you linked me to does indeed work while the page I presented in a previous email continues to not work.. According to the src for the tapestry-examples app (Last Changed Date: 2006-10-14 19:52:26 -0700 (Sat, 14 Oct 2006) by jkunhert) Dates.html that I have the form is updating a component 'dateDisplay' whcih is outside of the form (ie, form starts and closes before the div for dateDisplay ever begins). But I'm confident that the problem would not show even if you had dateDisplay INSIDE the form tags, too. It manifests itself when the component that the form is updating _wraps_ or contains the form that is updating it such that the form itself is recreated/rerendered. div jwcid=[EMAIL PROTECTED] form jwcid=@Form async =ognl:true updateComponents =ognl:{'container'} listener=listener:foo input type =submit jwcid=@Submit //form /div Sooo... If you would be kind enough to try the latest example code I sent (its free standing, no context needed), I'm reasonably confident that you'll see the behavior I'm describing.. Thanks again, Josh /// - the code for the Dates.html that im seeing form jwcid=@Form delegate=bean:delegate clientValidationEnabled=ognl:clientValidationEnabled async=ognl:true updateComponents=ognl:{'dateDisplay'} table valign=middle tr td/td tdinput type=checkbox jwcid=@Checkbox value=ognl:includeWeek onclick=javascript:this.form.submit();/ Include weeks in DatePicker UI. /td /tr tr tdspan jwcid=@FieldLabel field=component:startDate/:/td tdinput jwcid=[EMAIL PROTECTED] includeWeek=ognl:includeWeek value=ognl:startDate displayName=Start Date validators=ognl:{beans.required,beans.maxDate}//td /tr tr tdspan jwcid=@FieldLabel field=component:endDate/:/td tdinput jwcid=[EMAIL PROTECTED] includeWeek=ognl:includeWeek value=ognl:endDate displayName=End Date validators=ognl:{beans.required,beans.minDate}//td /tr tr td/td tdinput jwcid=@Submit value=Submit / /td /tr /table /form div jwcid=[EMAIL PROTECTED] uSubmitted Dates/ubr/ table valign=middle tr thStart date:/th td span jwcid=@Insert value=ognl:startDate//td /tr tr thEnd date:/th td span jwcid=@Insert value=ognl:endDate/ /td/tr /table /div /// -- On 10/14/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Yep.. In fact, I just updated the demo pages yesterday, so if you can get this page to do the same thing I'll believe you ;) : http://opencomponentry.com:8080/workbench/Home,$Border.pageLink.sdirect?sp=SDates The submission happens through a Form with async=true updateComponents=itself as well and it is working fine for me in IE moz. On 10/14/06, Josh Long [EMAIL PROTECTED] wrote: No luck there, sad to report.. I flushed the browser session and everything (which in turn logged me out of gmail!) and the same problem persists: one ajax request for free and then its all hard
PropertySelection
Hi, I've created my own flavour of PropertySelection called PropertySelectionWithHint that may display a choose an option below in the first option of the list. When there are no elements in the list the components render method just returns nbsp;. When this happens I'd like the associated TextField label component to also not display. So I added this @If to the template: span jwcid=@If condition=ognl:components.ProductComponentSelect.renderable div class=formLine div class=colLabel span jwcid=topicDetailLabelTopic Detail/span /div div id=productComponentFilter select id=selComponent jwcid=ProductComponentSelect tabindex=2 onchange=displayProductComponentChangeWaitMessage(); this.form.events.refresh ()/ /div div id=productComponentWait class=hide Please wait... /div /div I've added this method to the component: public Boolean isRenderable() { IPropertySelectionModel model = getModel(); if (model == null) { throw Tapestry.createRequiredParameterException (this, model); } int count = model.getOptionCount(); // we only render anything if there are some items to actually chose from return new Boolean(count 0); } How do I access the method or a property so that my @If will work please? I tried adding abstract methods but can't see how I invoke them when required. For example putting the property set in the constructor seems no good: public PropertySelectionWithHint() { setRenderable(isRenderable()); } TIA John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry-prop
Hi I am using Tomcat with Tapestry 4.1. Has anyone tried using tapestry-prop with 4.1? What do I need to do to use it, and how do I configure it? Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-prop
Just add the jar to your classpath, you don't need to do anything else. On Mon, 13 Nov 2006 17:28:50 +0100, Peter Stavrinides [EMAIL PROTECTED] wrote: Hi I am using Tomcat with Tapestry 4.1. Has anyone tried using tapestry-prop with 4.1? What do I need to do to use it, and how do I configure it? Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
bypassing the normal exception handling
I have a page where if there is an exception I actually want it to bubble up all the way to the container so that a 500 error is displayed. Anyone know how to do that? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [announce] BeanForm 0.6
Daniel, Why does the POJO used by beanform need to be persisted? As per component reference: The Java bean to be displayed by the component; any old POJO. The bean specified must be marked persistent in the page specification. Carlos -Original Message- From: DJ Gredler [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 6:29 PM To: Tapestry users Subject: [announce] BeanForm 0.6 Hi all, The latest release of BeanForm, the single-line POJO editor component, is now available for download. Below is a list of changes since the last version. I made a special trip to Spain to get the Spanish translation strings (my wife thought it was a vacation), so I hope someone finds them useful ;-) Special thanks to Grzegorz Mrówka and Andreas Andreou for translations and suggestions! Happy hacking, Daniel Gredler Changes: - When moving values from submitted form to properties, only instantiate null elements of recursive properties when values submitted are not null. - Base input field ids on property names. - Add pseudo properties as a way of mixing custom fields with bean fields. - Make it easier for multi-field binding overrides using OGNL to refer to the current property. - Remove non-threadsafe use of SimpleDateFormat in the Hibernate Validator integration code. - Add support for @Pattern Hibernate Validator annotation. - Use PropertySelection component for enum bean properties. - Add Polish translation. Thanks to Grzegorz Mrówka. - Add Greek translation. Thanks to Andreas Andreou. - Add French translation. - Add Spanish translation. Homepage: http://beanform.sourceforge.net/ Component Reference: http://beanform.sourceforge.net/component-reference.html Change History: http://beanform.sourceforge.net/changes-report.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tapestry live grid functionality announcement
Need link to online demo :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Sam Gendler Sent: Monday, November 13, 2006 3:03 AM To: Tapestry users Subject:tapestry live grid functionality announcement I've built a nifty component which uses a vertical scrollbar to transition between pages on a table which is then updated asynchronously to show the new page. It looks something like the liveGrid thing from Rico, although mine still needs a lot of polish before it works quite as well. It still needs to do things like row level scrolling instead of just transitioning between entire pages, but to do that will also likely require some amount of caching in the client and possibly a modification to the ITableModel interface. It also needs general look and feel touches like giving indication that work is occuring, updating an element with the current page number during the scroll, various and sundry other little details. But the core functionality is there. Currently, it is only verified to work on Firefox. My test app doesn't work in IE for reasons that aren't related to the grid (IE and Safari aren't doing async updates correctly in the version of tap 4.1 I'm using, which is a couple of weeks old), but it probably needs some tweaking to work everywhere. It uses the native scrollbar of the browser by just setting up a tall div inside a height constrained div, so there will probably be look and feel issues, initially. I'm still just starting to play around with Tap 4.1, so if there is someone else out there who would like to help me with this thing, I'd sure appreciate it. I'll get it posted to sourceforge or somewhere in the next day or two. It is surprisingly little code, currently. A tiny dojo widget, a wrapper component similar to contrib:table, which wraps TableView, TableColumns, etc, and a Scrolling component which replaces the TablePages component. Currently, it is only about 300 lines of code for everything. And Jesse, Tap 4.1 really is an enormous leap forward for Tapestry's usability in a (forgive me for saying it) 'web 2.0'/rich-client environment. I'm not finding a lot lacking in functionality, but there is still some work necessary getting some things documented and providing simpler api access to some things (I'll be writing up some docs on adding an external dojo module sometime this week). The biggest difficulty, for me, seems to be when dealing with components that have a client id that doesn't match the component id. I am still not quite sure how to go about setting things up correctly when that circumstance occurs. I usually just wind up wrapping the misbehaving component in an @Any div and using the id of that div, but if that were in a loop, I'm still not sure how it would work. Some mechanism for specifying a different client id for the javascript side of the update would be really handy. Maybe its there and I didn't spot it. The other question that I haven't answered for myself yet is how to go about instantiating dojo widgets correctly in the Tapestry way. I usually just put a div in the html body, then use dojo.widget.createWidget to replace that div with the widget. Unfortunately, using tapestry.synchronizeWidgetState doesn't seem to make this possible. I don't want to do the node replacement after the create, since then any dynamically sized components won't be the correct size when postCreate() or fillInTemplate() are called. Oh, and it sure would be cool to be able to pass parameters to an EventListener, but I'm pretty sure I'm not going to be the first person to say that ;-) Then I'd be able to attach an EventListener directly to the onPageChange event of my dojo widget, rather than having to falsify a DirectLink. --sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message, including any attachments, is intended only for the recipient(s) named above. It may contain confidential and privileged information. If you have received this communication in error, please notify the sender immediately and destroy or delete the original message. Also, please be aware that if you are not the intended recipient, any review, disclosure, copying, distribution or any action or reliance based on this message is prohibited by law. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-prop
Well, and then you do a global search and replace of ognl: into prop: in your .page, .html and .jwc files. Well, *almost* global ;-) On 11/13/06, Martin Strand [EMAIL PROTECTED] wrote: Just add the jar to your classpath, you don't need to do anything else. On Mon, 13 Nov 2006 17:28:50 +0100, Peter Stavrinides [EMAIL PROTECTED] wrote: Hi I am using Tomcat with Tapestry 4.1. Has anyone tried using tapestry-prop with 4.1? What do I need to do to use it, and how do I configure it? Thanks Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [announce] BeanForm 0.6
Hi Carlos, If the bean is not marked persistent, it will be null on form rewind when the BeanForm tries to set its property values. Another option may be to implement PageBeginRenderListener and ensure the bean is initialized inside the pageBeginRender(PageEvent) method (I've never tried it though). Let me know if you experiment with alternate solutions. Take care, Daniel On 11/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Daniel, Why does the POJO used by beanform need to be persisted? As per component reference: The Java bean to be displayed by the component; any old POJO. The bean specified must be marked persistent in the page specification. Carlos -Original Message- From: DJ Gredler [mailto:[EMAIL PROTECTED] Sent: Sunday, November 12, 2006 6:29 PM To: Tapestry users Subject: [announce] BeanForm 0.6 Hi all, The latest release of BeanForm, the single-line POJO editor component, is now available for download. Below is a list of changes since the last version. I made a special trip to Spain to get the Spanish translation strings (my wife thought it was a vacation), so I hope someone finds them useful ;-) Special thanks to Grzegorz Mrówka and Andreas Andreou for translations and suggestions! Happy hacking, Daniel Gredler Changes: - When moving values from submitted form to properties, only instantiate null elements of recursive properties when values submitted are not null. - Base input field ids on property names. - Add pseudo properties as a way of mixing custom fields with bean fields. - Make it easier for multi-field binding overrides using OGNL to refer to the current property. - Remove non-threadsafe use of SimpleDateFormat in the Hibernate Validator integration code. - Add support for @Pattern Hibernate Validator annotation. - Use PropertySelection component for enum bean properties. - Add Polish translation. Thanks to Grzegorz Mrówka. - Add Greek translation. Thanks to Andreas Andreou. - Add French translation. - Add Spanish translation. Homepage: http://beanform.sourceforge.net/ Component Reference: http://beanform.sourceforge.net/component-reference.html Change History: http://beanform.sourceforge.net/changes-report.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with AjaxForm
I think you forgot to list what your problem was. On 11/13/06, Edoardo Campagnano [EMAIL PROTECTED] wrote: Hi, I'm trying to compute a value at the moment my formi s submitted, in this way head script type=text/javascript function getMessage() { document.myForm.myHidden.value=Pizzicone } /script /head Edoardo Campagnano -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: tapestry live grid functionality announcement
On 11/13/06, Payne, Matthew [EMAIL PROTECTED] wrote: Need link to online demo :) I'm working on it. Anyone know a good servlet hosting company? --sam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: problem with AjaxForm
Probably to inject some before advice into the form submission so that he can set the value before it submits. When I've had this problem in the past, I have just used my own submit button instead of tapestry submit component. Then I just have my submit button call a javascript method instead of submitting the form. Then, at the end of the javascript method, call the appropriate submit method for the form. This varies depending on if you are in Tap4 + tacos or Tap 4.1. In either case, however, it is pretty easy to figure out by just using a submit component in the page and then taking a look at the javascript that executes. I imagine that the sophisticated way to do this would be to use dojo to inject some before advice into the form submit event. But to learn how to do that, you will have to read the dojo book (which actually has useful material in it these days!) at http://manual.dojotoolkit.org/WikiHome/DojoDotBook (although the section that looks most useful to you is here: http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book10) and/or consult with someone who has much more knowledge of the tapestry specific form submission process than I have. --sam On 11/13/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: I think you forgot to list what your problem was. On 11/13/06, Edoardo Campagnano [EMAIL PROTECTED] wrote: Hi, I'm trying to compute a value at the moment my formi s submitted, in this way head script type=text/javascript function getMessage() { document.myForm.myHidden.value=Pizzicone } /script /head Edoardo Campagnano -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bypassing the normal exception handling
Throw a RuntimeException instead of ApplicationRuntimeException ? On 11/13/06, Dan Adams [EMAIL PROTECTED] wrote: I have a page where if there is an exception I actually want it to bubble up all the way to the container so that a 500 error is displayed. Anyone know how to do that? -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Re: Making Home page implement IExternalPage problem.
Oops, Color me dorky, I wasn't calling the page using the external service ;) Good to go! Leo Sakhvoruk wrote: Hi, I'm trying to make the Home page in my application implement the IExternalPage interface and am running into an issue where the public void activateExternalPage(Object[] parameters, IRequestCycle cycle) doesn't get called when the Home page loads. Is there a known limitation where the Home service doesn't allow for the page which uses to implement the IExternalPage interface? I'm using Tap-4.1.1-SNAPSHOT. Thanks, Leo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax form
Here's my response from the other thread: When I've had this problem in the past, I have just used my own submit button instead of tapestry submit component. Then I just have my submit button call a javascript method instead of submitting the form. Then, at the end of the javascript method, call the appropriate submit method for the form. This varies depending on if you are in Tap4 + tacos or Tap 4.1. In either case, however, it is pretty easy to figure out by just using a submit component in the page and then taking a look at the javascript that executes. I imagine that the sophisticated way to do this would be to use dojo to inject some before advice into the form submit event. But to learn how to do that, you will have to read the dojo book (which actually has useful material in it these days!) at http://manual.dojotoolkit.org/WikiHome/DojoDotBook (although the section that looks most useful to you is here: http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book10) and/or consult with someone who has much more knowledge of the tapestry specific form submission process than I have. On 11/13/06, Edoardo Campagnano [EMAIL PROTECTED] wrote: Sorry for the other mail, this is the complete one Hi, I'm trying to compute a value at the moment my formi s submitted, in this way head script type=text/javascript function getMessage() { document.myForm.myHidden.value=myComputedValue } /script /head body form jwcid=[EMAIL PROTECTED]:AjaxForm onSubmit=javascript:getMessage(); span jwcid=[EMAIL PROTECTED] value=ognl:myHiddenField/ submit jwcid=@tacos:AjaxSubmit listener=listener:testMethod/ /form /body The idea i sto assign at submit time the value myComputedValue to the hidden field and pass it to the server, but it doesn't work. Any idea? Edoardo Campagnano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Making Home page implement IExternalPage problem.
Hi, I'm trying to make the Home page in my application implement the IExternalPage interface and am running into an issue where the public void activateExternalPage(Object[] parameters, IRequestCycle cycle) doesn't get called when the Home page loads. Is there a known limitation where the Home service doesn't allow for the page which uses to implement the IExternalPage interface? I'm using Tap-4.1.1-SNAPSHOT. Thanks, Leo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Making Home page implement IExternalPage problem.
activateExternalPage(...) won't be invoked unless the ExternalService is used to access the page. Which service is used for a certain url depends on which ServiceEncoders are in use. If you're using the standard friendly urls ServiceEncoders, the correct url would be: http://localhost:8080/your-site/external.svc?page=Home or with params: http://localhost:8080/your-site/external.svc?page=Homesp=xsp=y You can configure your ServiceEncoders any way you want so that all urls look just like you want them to. There's a good example on the bottom of this page: http://tapestry.apache.org/tapestry4.1/usersguide/friendly-urls.html Martin On Tue, 14 Nov 2006 00:07:03 +0100, Leo Sakhvoruk [EMAIL PROTECTED] wrote: Hi, I'm trying to make the Home page in my application implement the IExternalPage interface and am running into an issue where the public void activateExternalPage(Object[] parameters, IRequestCycle cycle) doesn't get called when the Home page loads. Is there a known limitation where the Home service doesn't allow for the page which uses to implement the IExternalPage interface? I'm using Tap-4.1.1-SNAPSHOT. Thanks, Leo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry ofbiz project?
Anyone wish to work with me to implement a shopping cart in tapestry using the ofbiz project as the backend? http://incubator.apache.org/ofbiz/ Thanks. Phillip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Text rotator component
I wish I had a tapestry component that would read a text file and randomly output one of the rows. Like a quote rotator... does anyone know if it exists out there or will I have to write it myself? If I'd write it myself... how would I do - any suggestions? I suppose I'd wan't to read the file (which is small) in a static variable so I only need to do this once per class loader? How do I specify the asset file and how will my component find it...hmmm Any help highly appreciated! Malin