Re: what about MVFLEX (replacing ognl)
Hello ! There is also another project : http://howardlewisship.com/tapestry-javaforge/tapestry-prop/ I think Tapestry 5 is going to use it. Here you have a comparation between ognl and prop.: http://howardlewisship.com/blog/2006/11/improve-tapestry-performance-with.html On 11/17/06, xVik [EMAIL PROTECTED] wrote: i just read about new expression language (http://wiki.mvflex.org/index.php?title=MVFLEX_Expression_Language) These words amazed me: MVEL is an LALR parser utilizing a reduce-fast stack algorithm. And at over 1700% faster than OGNL in most applications, we think you'll agree that simpler is better. do you plan to move from ognl? what do you think about these thing? (maybe there are some greate disadvatages) -- View this message in context: http://www.nabble.com/what-about-MVFLEX-%28replacing-ognl%29-tf2649573.html#a7394001 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Robert Ramírez Vique Computer Science Engineer
Ajax, For-Loops and PropertySelections
Hi! I'm trying to use Ajax to update the content of a for-loop containing PropertySelections. The template for the table i want to update looks like this: form jwcid=[EMAIL PROTECTED] async=ognl:true updateComponents=ognl:updateComponents table tr thTest/th thResult/th thTarget/th /tr tr jwcid=@For element=tr source=ognl:dataList value=ognl:data 1) td jwcid=@PropertySelection id=ognl:data.testId model=ognl:testModel value=ognl:data.test/ 2) td jwcid=@PropertySelection id=ognl:data.resultId model=ognl:dynamicResultModel value=ognl:data.result/ 3) td jwcid=@PropertySelection id=ognl:data.targetId model=ognl:dynamicTargetModel value=ognl:data.target/ td jwcid=@Any id=ognl:data.updateBlockId div jwcid=@TextField id=ognl:data.outputId value=ognl:data.output/ /td /tr /table /form id's are uniquely generated and found correctly inside the generated html-code. onchange EventListeners are given for the property selections. EventListeners are name so it is clear which element has caused the event. What i'm trying to accomplish is the following: User changes value of selection 1). This activates EventListener (async=true). This part actually works... that far. Now the PropertyModel of 2) should be changed (note that the table holds more then one line). Changes on 2) have an impact on the selection in 3), changes in 3) manipulate the output-field of the line. All this is working perfectly outside the for-loop. The problem now is that my selection-model goes amoc if change one of the properties a second time (numberFormatException in PropertySelection.translateValue(String s), s is actually null). Additionally not only the addressed selections get updated (e.g. changing the first selection in a line should only have an impact on the second and maybe third selection of the same line), but at least too other selections. The Browser shows a Property Selection with another PropertySelection inside instead of the updated selection. The main problem seems to that i need to address the selections to update uniquely, but how? The data-iterator is firmly on the last value is it is not null already and will be next updated on rewind... Can anyone help me out here? thnx in advance, Patrick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
handle on component's enclosed components
Hi Say I've got the following on a template page where Main and Sub are components.. span jwcid=[EMAIL PROTECTED] . . . phtml/p !-- maybe even a @For here?? -- span jwcid=[EMAIL PROTECTED] . . ./ span jwcid=[EMAIL PROTECTED] . . ./ pmore html/p /span Is there a way to get in Main's class a handle on all the Sub components enclosed by Main without adding an explicit reference in each Sub to Main? Many thanks Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tapestry Dialog Component Problem 4.1.1
Hi.. I have a similar problem.. can anybody lend us a helping hand? greetz Stefon Tine wrote: Hi Guys... I try to use the new Dialog component. I have a directLink which binds to this methood: public void editTime(){ Dialog dialog = ((Dialog)getComponent(addTimeDialog)); dialog.show(); } The dialog.show() execution results in this exception: Exception invoking listener method editTime of component frontend/Taetigkeitserfassung: Binding for parameter hidden (ExpressionBinding[frontend/Taetigkeitserfassung true]) may not be updated. Do I miss something or is there a bug in the current snapshot? Sadly the documentation of this component is not ready at this time. So any hint would be very appreciated! thx Tine -- View this message in context: http://www.nabble.com/Tapestry-Dialog-Component-Problem-4.1.1-tf2650605.html#a7402522 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: handle on component's enclosed components
Look at the API docs http://tapestry.apache.org/tapestry4/tapestry/apidocs/index.html AbstractPage has getNestedComponent AbstractPage extends AbstractComponent that has getComponents() HTH On 11/17/06, Mike Oestereter [EMAIL PROTECTED] wrote: Hi Say I've got the following on a template page where Main and Sub are components.. span jwcid=[EMAIL PROTECTED] . . . phtml/p !-- maybe even a @For here?? -- span jwcid=[EMAIL PROTECTED] . . ./ span jwcid=[EMAIL PROTECTED] . . ./ pmore html/p /span Is there a way to get in Main's class a handle on all the Sub components enclosed by Main without adding an explicit reference in each Sub to Main? Many thanks Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Karthik
RE: Tapestry Dialog Component Problem 4.1.1
Binding for parameter hidden (ExpressionBinding[frontend/Taetigkeitserfassung true]) may not be updated. Generally when that happens, it means that you have bound a constant to the parameter hidden when you defined the component. Try binding hidden to a property instead. For instance @Component(bindings={hidden=true}) would give that error, but @Component(bindings={hidden=dialogHidden}) along with a public abstract boolean getDialogHidden() / public abstract void setDialogHidden(boolean hidden) may work. If you haven't bound the hidden parameter, then I have no idea :-) -- Peter Beshai - Using Tapestry 4.1.1 Pure Mathematics Student University of Waterloo From: Tine [EMAIL PROTECTED] Reply-To: Tapestry users users@tapestry.apache.org To: users@tapestry.apache.org Subject: Tapestry Dialog Component Problem 4.1.1 Date: Fri, 17 Nov 2006 02:15:19 -0800 (PST) Hi Guys... I try to use the new Dialog component. I have a directLink which binds to this methood: public void editTime(){ Dialog dialog = ((Dialog)getComponent(addTimeDialog)); dialog.show(); } The dialog.show() execution results in this exception: Exception invoking listener method editTime of component frontend/Taetigkeitserfassung: Binding for parameter hidden (ExpressionBinding[frontend/Taetigkeitserfassung true]) may not be updated. Do I miss something or is there a bug in the current snapshot? Sadly the documentation of this component is not ready at this time. So any hint would be very appreciated! thx Tine -- View this message in context: http://www.nabble.com/Tapestry-Dialog-Component-Problem-4.1.1-tf2650605.html#a7396866 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Achetez ce que vous voulez, quand vous voulez sur Sympatico / MSN Magasiner http://magasiner.sympatico.msn.ca/content/shp/?ctId=101,ptnrid=176,ptnrdata=081805 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Images aren't showing up if I create my own dojo build and then instruct tapestry to use that.i
Also, fwiw, I'm more than content to just build a custom tapestry edition and modify the dojo thats included in that particular process. That would also solve my issue with making the various tapestry files i use part of the build as well: i can just modify your working profile and modify your dojo build : 2 birds with one pseudo-automated stone. Only thing is, I never did get how I would build tapestry and deploy it to my repository given that I would like to avoid always patching your pom to get it to deploy somewhere else.. That's just another option and any insight is appreciated, Thanks, Josh On 11/17/06, Josh Long [EMAIL PROTECTED] wrote: OK I just got a chance to dig back into this very problematic issue-- unfortunately the issue is still present. No images for the drop down or anything... I svn updated my dojo build and used it to build a new release/profile/edition/blah of dojo. I copied the resulting release directory into a resources/ folder of a maven project and installed that project onto my classpath cuz i cant find a way to just get tpaestry to reference it from a context location (as opposed to a classpath location). I loaded my app (which in turn grabbed the latest and greatest tapestry build) and set the dojoSource/dojoPath params on the shell to the correct value (i know because the code all functions except the buttons/images) and its still not working... . Any help is appreciated, Thanks, Josh On 11/15/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Fixed and deploying now. (I think... ) On 11/15/06, Josh Long [EMAIL PROTECTED] wrote: Oh man, so there _is_ a cure. Wonderful news. I was pulling out my hair(s -- were down to just a few at this point that have the staying power required of a programmers head of hair).. Thanks again Jesse, let me know if there's any more feedback u might need/anything I could (possibly) do.. :/ Thanks, Josh On 11/14/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Almost done, just a couple things to fix up on the dojo side first. (probably the part that will take the longest) On 11/14/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: That doesn't sound like much fun. Sorry :/ p.s. i'm working on it now so it'll likely be fixed today or tomorrow On 11/14/06, Josh Long [EMAIL PROTECTED] wrote: I think... that the original dojo/ in the tapestry jar is shadowing mine and so now whether i use dojoSource = .. and dojoPath or not, the same 204k dojo.js is loaded. (this despite a few cache clearings) Anyway, that's a no-go.. Thanks, Josh On 11/14/06, Josh Long [EMAIL PROTECTED] wrote: Thats an idea! .. lemme give it a go and ill get back to you... Thanks, josh On 11/14/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: HmmI wonder what would happen if you renamed your rrl_dojo_04 directory to dojo ? On 11/14/06, Josh Long [EMAIL PROTECTED] wrote: I... dont see any errors in the logs... and that would be kind of weird because the images in my own custom widgets load just fine... And in fact it would be kind of weird if only because the images in the default dojo distro (the one in the jars themselves) load just fine.. Thanks, Josh On 11/14/06, Jesse Kuhnert [EMAIL PROTECTED] wrote: Contains Errors ? Does your server show any errors? Is it possible that jetty or tomcat are deciding to interfere with the images as well? On 11/14/06, Josh Long [EMAIL PROTECTED] wrote: interesting... my firebug doesnt show the path to the image (nor does it even say its requested it) in either the known-to-work version that comes back when i remove the dojoSource/dojoPath params or in my custom build ) However, I moused over oen fo the images and viewed the properties for the image (that is, i do have a blank square that acts as an image where the image should be) and the source is: http://192.168.2.107:8080/view/assets/static/rrl_dojo_04/src/widget/templates/images/combo_box_arrow.png i went ot that url and got: The image http://192.168.2.107:8080/view/assets/static/rrl_dojo_04/src/widget/templates/images/combo_box_arrow.png cannot be displayed, because it contains errors. Anyway, thanks for your prompt reply, Josh
Re: Dynamic Validator Parameters
Actually it is validators=validators:$maxBean Then in your bean's validate(...), you can access any page property that way: YourPage page = (YourPage) field.getPage(); YourPropertyType value = page.getYourProperty(); 2006/11/17, Jesse Kuhnert [EMAIL PROTECTED]: Define the max validator class as a bean and reference it instead of max=? (ie validators=validators:maxBean i think, maybe it's more complicated than that) On 11/16/06, Daniel Tabuenca [EMAIL PROTECTED] wrote: This may be a very easy question, but I've looked around and can't find the right way to do this. All I want to be able to do is set a validator parameter like max for example to the value of a page property instead of a hard-coded number. So I kinda want to do like max=ognl:maxValue. What's the right way to do this? - 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: Dynamic Validator Parameters
This would work for custom validators. What I want to know is how can I bind values to the standard validators such as specifying the maximum length of a string or the max value of an integer using existing validators but just get the actual numeric constraint from a property rather than hard-coding it. In my opinion there should be some notation within the validators: prefix (similar to using $ for referring to beans) but that refers to an ognl expression or at the very least a simple property name. I just wanted to make sure there is no standard easy way of doing this before I go and write my own validator. On 11/17/06, Christian Dutaret [EMAIL PROTECTED] wrote: Actually it is validators=validators:$maxBean Then in your bean's validate(...), you can access any page property that way: YourPage page = (YourPage) field.getPage(); YourPropertyType value = page.getYourProperty(); 2006/11/17, Jesse Kuhnert [EMAIL PROTECTED]: Define the max validator class as a bean and reference it instead of max=? (ie validators=validators:maxBean i think, maybe it's more complicated than that) On 11/16/06, Daniel Tabuenca [EMAIL PROTECTED] wrote: This may be a very easy question, but I've looked around and can't find the right way to do this. All I want to be able to do is set a validator parameter like max for example to the value of a page property instead of a hard-coded number. So I kinda want to do like max=ognl:maxValue. What's the right way to do this? - 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 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: handle on component's enclosed components
Yes,yes I know Tapestry has an API - I just don't know it that well! I am NOT looking for the nested or the contained components of a page/component. I'm specifically looking for only the components that is in the body part of a surrounding component (rendered by a @RenderBody of Main using my example). On 11/17/06, Karthik N [EMAIL PROTECTED] wrote: Look at the API docs http://tapestry.apache.org/tapestry4/tapestry/apidocs/index.html AbstractPage has getNestedComponent AbstractPage extends AbstractComponent that has getComponents() HTH On 11/17/06, Mike Oestereter [EMAIL PROTECTED] wrote: Hi Say I've got the following on a template page where Main and Sub are components.. span jwcid=[EMAIL PROTECTED] . . . phtml/p !-- maybe even a @For here?? -- span jwcid=[EMAIL PROTECTED] . . ./ span jwcid=[EMAIL PROTECTED] . . ./ pmore html/p /span Is there a way to get in Main's class a handle on all the Sub components enclosed by Main without adding an explicit reference in each Sub to Main? Many thanks Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: handle on component's enclosed components
AbstractComponent#getBody( ) maybe? On 11/17/06, Mike Oestereter [EMAIL PROTECTED] wrote: Yes,yes I know Tapestry has an API - I just don't know it that well! I am NOT looking for the nested or the contained components of a page/component. I'm specifically looking for only the components that is in the body part of a surrounding component (rendered by a @RenderBody of Main using my example). On 11/17/06, Karthik N [EMAIL PROTECTED] wrote: Look at the API docs http://tapestry.apache.org/tapestry4/tapestry/apidocs/index.html AbstractPage has getNestedComponent AbstractPage extends AbstractComponent that has getComponents() HTH On 11/17/06, Mike Oestereter [EMAIL PROTECTED] wrote: Hi Say I've got the following on a template page where Main and Sub are components.. span jwcid=[EMAIL PROTECTED] . . . phtml/p !-- maybe even a @For here?? -- span jwcid=[EMAIL PROTECTED] . . ./ span jwcid=[EMAIL PROTECTED] . . ./ pmore html/p /span Is there a way to get in Main's class a handle on all the Sub components enclosed by Main without adding an explicit reference in each Sub to Main? Many thanks Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why tapestry 4.0.xxx application CANNONT deploy in WEBSPHERE!!!!
hi, My app could deploy in tomcat and resin ,but FAILED in websphere with the following exception: javax.servlet.ServletException: Could not load class org.apache.tapestry.html.BasePage . I don't know why!Could somebody help me? jone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why tapestry 4.0.xxx application CANNONT deploy in WEBSPHERE!!!!
What version of WebSphere are you using? Also are you using just plain WebSphere or are you using RAD/RSA (and which version). On Nov 17, 2006, at 6:27 PM, jone wrote: hi, My app could deploy in tomcat and resin ,but FAILED in websphere with the following exception: javax.servlet.ServletException: Could not load class org.apache.tapestry.html.BasePage . I don't know why!Could somebody help me? jone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Why tapestry 4.0.xxx application CANNONT deploy in WEBSPHERE!!!!
Using RAD with WebSphere 6.0.2.13 I did the following: Create new EAR Select adding support for Java annotations Import J2EE Utility Jars into the EAR (select to link them and select your Tapestry JARs) Do not include commons-logging, its included in the WebSphere Runtime Create a new Dynamic Web Project (with its EAR set to the one previously created) In Java JAR dependencies select all of the JARs Modify your web.xml Create your Home.page and Home.html in your WebContent WEB-INF folder Create your Home.java as a Java resource Build Project Right click your server and click Add/Remove projects Add your EAR At this point WebSphere complained about some classes having a minor version of 49.0 which was unsupported (maybe need to run WebSphere in a Java 5 container, its default is 1.4.2 I believe). Not quite sure what to do from here (I do all of my Tapestry work from JBoss, all of my work for my company using Struts in WebSphere) but maybe someone else can take it from here. Good luck! On Nov 18, 2006, at 2:03 AM, Craig St Jean wrote: What version of WebSphere are you using? Also are you using just plain WebSphere or are you using RAD/RSA (and which version). On Nov 17, 2006, at 6:27 PM, jone wrote: hi, My app could deploy in tomcat and resin ,but FAILED in websphere with the following exception: javax.servlet.ServletException: Could not load class org.apache.tapestry.html.BasePage . I don't know why!Could somebody help me? jone - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]