Re: [WARNING] Latest Tapestry 5 Screencast

2007-03-05 Thread Peter Stavrinides
Thanks for the screencasts Howard, its a great way to get productive quickly, a real time saver!!! Weisu wrote: Great work Howard, just wonder where can I find the source code of this Screencast and all the other Screencasts. Thanks! Massimo Lusetti wrote: On 3/1/07, Howard Lewis Ship

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-05 Thread Richard Kirby
Hi Christian, Assuming your LinkSubmit subcomponent extends the org.apache.tapestry.form.LinkSubmit class, just override the public void renderBody(IMarkupWriter writer, IRequestCycle cycle) method and put in whatever code you like. Cheers Richard Christian Haselbach wrote: On Sun, Mar

Re: T5 binding problem

2007-03-05 Thread Howard Lewis Ship
Two problems here: 1) Not well formed XML. That inside the test attribute isn't allow. Use lt; 2) OGNL isn't supported in T5. For anything more complicated than a property access, you do the work in Java code as a synthetic property. On 3/5/07, Davor Hrg [EMAIL PROTECTED] wrote: Hi, maybe

RE: Trying to use StateObjectFactory...

2007-03-05 Thread Ben Dotte
Hi Alexander, The way I have done this is to make the factory a service as well. contribution configuration-id=tapestry.state.ApplicationObjects state-object name=security scope=session invoke-factory object=service:MyFactory/ /state-object /contribution

Re: Trying to use StateObjectFactory...

2007-03-05 Thread Richard Kirby
Hi Alexander, You need to define a service that you then reference in the invoke-factory: service-point id=SecurityBeanFactory interface=org.apache.tapestry.engine.state.StateObjectFactory invoke-factory construct class=com.test.util.SecurityBeanFactory !-- Any config you need

RE: Trying to use StateObjectFactory...

2007-03-05 Thread Kolesnikov, Alexander GNI
Thank you, Richard, Are there any docs on what I can do in construct? Say, I want to obtain HttpRequest? Alexander -Original Message- From: Richard Kirby [mailto:[EMAIL PROTECTED] Sent: 05 March 2007 14:44 To: Tapestry users Subject: Re: Trying to use StateObjectFactory... Hi

AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Andrea Chiumenti
Hello, I've the following problem in Tapestry 4.1.1: I've a component that conditionally renders other components. With default components like TextField I've no problems, while if I try to ad an Autocompleter it seems that when the component is rendered no tapestry.widget.synchronizeWidgetState

Re: AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Jesse Kuhnert
My memory isn't able to retain state knowledge of 4.1.1 reliably enough to have a clue on this, but if you try it on 4.1.2-SNAPSHOT and run into the same problem + file a jira issue I can probably fix whatever it is. On 3/5/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: Hello, I've the following

Re: AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Andrea Chiumenti
Thank you very much Jasse On 3/5/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: My memory isn't able to retain state knowledge of 4.1.1 reliably enough to have a clue on this, but if you try it on 4.1.2-SNAPSHOT and run into the same problem + file a jira issue I can probably fix whatever it is.

RE: Trying to use StateObjectFactory...

2007-03-05 Thread Kolesnikov, Alexander GNI
Thanks a lot, Richard, that was REALLY instructive :D And here is the configuration that I managed to get working: construct class=com.test.util.SecurityBeanFactory set-object property=request value=service:tapestry.globals.HttpServletRequest / /construct Cheers, Alexander -Original

Re: AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Andrea Chiumenti
Sorry Jasse, but I have in my pom: dependency groupIdorg.apache.tapestry/groupId artifactIdtapestry-framework/artifactId version4.1.2-SNAPSHOT/version /dependency and repository idapache.snapshots/id

Jasse:--- Ajax request and init script (Tapestry 4.1.2-SNAPSHOT)

2007-03-05 Thread Andrea Chiumenti
Jasse, well sorry again, the 4.1.2-SNAPSHOT didn't fixed the problem. I'm developing edit grid for Tapestry 4.1.x, and the component is in final status so in a couple of days I'll make an official announcement. Sadly the component will not work with Autocompleter and other tapestry/dojo

Re: Jasse:--- Ajax request and init script (Tapestry 4.1.2-SNAPSHOT)

2007-03-05 Thread Jesse Kuhnert
I'm happy to help but I'll need you to do just a ~little~ more work for me to maintain a certain level of bug fixing efficiency. If you can create a tiny self contained maven2 based application with one simple page that'll allow me to run mvn jetty:run on the app and see the bug first hand you're

Re: Jasse:--- Ajax request and init script (Tapestry 4.1.2-SNAPSHOT)

2007-03-05 Thread Andrea Chiumenti
Ok Jasse, I'll do this tomorow morning, and I hope to have the new web site up and running :) In the meanwhile you can checkout the svn and run 'mvn jetty:run' from JFlyDemo just for today ;-P Thanks for help, kiuma On 3/5/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: I'm happy to help but

Re: T4 -- Filter in WebRequestServicerPipeline Issue

2007-03-05 Thread Johan Maasing
Check out http://issues.apache.org/jira/browse/TAPESTRY-695 It might be the same problem and has a work around. I include requestGlobals.store(request, response); in my filter and that works fine. On 3/5/07, Tim Downey [EMAIL PROTECTED] wrote: Hi, I'm trying to implement a pattern that

Re: T4 -- Filter in WebRequestServicerPipeline Issue

2007-03-05 Thread Tim Downey
Thanks Johan, I ended up doing the same thing. On 3/5/07, Johan Maasing [EMAIL PROTECTED] wrote: Check out http://issues.apache.org/jira/browse/TAPESTRY-695 It might be the same problem and has a work around. I include requestGlobals.store(request, response); in my filter and that

Re: method name of listener

2007-03-05 Thread Jesse Kuhnert
Isn't the name of a listener known by the very definition? I mean, when ~don't~ you know the name of it? On 2/19/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: hi all, is there a way to obtain the method name of a listener? I need it to generate a javascript function with the same name.

Re: Upgrade to 4.1.1 or wait to 4.12

2007-03-05 Thread Jesse Kuhnert
Go with 4.1.2. It's better than 4.1.1. On 2/19/07, Chris Chiappone [EMAIL PROTECTED] wrote: I am about to upgrade from 4.0.1 to 4.1.1 but would like to know if 4.1.2 will be considered stable soon or not. If so I may as well just wait for 4.1.2. -- ~chris

Re: getting messages in Tapestry 4.1.1

2007-03-05 Thread Jesse Kuhnert
Which messages were these? If they are validation messages I'm not sure. I think this gets controlled internally currently. (Though there's a ticket open to make it more configurable via hivemind) On 2/20/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: Hello, I need to get tapestry messages into

Re: Update Tapestry 3 to 4.1.1

2007-03-05 Thread Jesse Kuhnert
La tapisserie 4.1.2 est très bonne, mais vous pouvez courir dans des problèmes ici et là. Les chemins de mise à niveau les plus durs sont ceux qui impliquent des services faits sur commande d'IEngineService, tout autrement devraient être beaucoup moins douloureux. Si pas alors je devine vous

Popup windows and redirect URL

2007-03-05 Thread wong wayne
Dear all Not sure is it proper post this question here. I'm using Tapestry version of JSCookMenu and would like to popup a new windows and redirect to another site. I can redirect to another site with throw a RedirectException(http://tapestry.apache.org/;) and use PopupLinkRenderer for popup new

Re: Programmatic DirectLink with updateComponents and parameter

2007-03-05 Thread Jesse Kuhnert
I'm not sure what all of this search/replace/sweep stuff is but basic updates should work . .. Maybe if you try again with an example I can understand easier I can help. p.s. You can use updateComponents=basket_container or updateComponents=basket_container, another_container now if you

Re: tapestry 4 to focus on specified field

2007-03-05 Thread Jesse Kuhnert
You can also just call tapestry.form.focusField('yourFieldId') directly via javascript at the bottom of your page. (if you felt like being dirty about it...) http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js?view=markup On 3/3/07, andyhot [EMAIL

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-05 Thread Jesse Kuhnert
Yes. What Richard says. This is how the Shell component renders javascript includes for instance... On 3/5/07, Richard Kirby [EMAIL PROTECTED] wrote: Hi Christian, Assuming your LinkSubmit subcomponent extends the org.apache.tapestry.form.LinkSubmit class, just override the public void

Re: Using EventListener to submit unknown form

2007-03-05 Thread Jesse Kuhnert
I've been meaning to add this in. It would be trivial but just haven't done it yet. Creating a jira issue will be a good reminder. On 2/21/07, Daniel Tabuenca [EMAIL PROTECTED] wrote: I have a component that is meant to be used inside a form. I would like to have an eventListener that submits

Re: Putting hivemind configuration files outside the WAR

2007-03-05 Thread Jesse Kuhnert
Subclass ApplicationServlet (or replace it).. There's not very much code there to manage so it shouldn't be too bad. On 2/21/07, Tapestry User List [EMAIL PROTECTED] wrote: Hi, I have configuration data (hivemind.xml) which may change reasonably often, and which I'd like to be able to change

Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Leffel, Daniel
Am I doing something wrong? I can't get any components nested within a dialog to update using DirectLink. If I move the very same components outside of the dialog, everything updates correctly using async or json. It doesn't matter whether the dialog is hidden or not. Inside the dialog, nothing

Re: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Jesse Kuhnert
That's odd. I have some pretty complicated components being updated inside of a dialog, though admittedly I normally just specify the dialog as being the thing to update. I can take a look tomorrow to see if there's anything obvious I've missed...Did you have something more specific as an

Re: Autocompleter Questions

2007-03-05 Thread Jesse Kuhnert
No idea, but a working example always helps me: http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/TimeTracker/src/ On 2/22/07, Chris Chiappone [EMAIL PROTECTED] wrote: I am trying to get the autocompleter component to work with tap 4.1.1 I used to have tacos:Autocompleter

Re: Variable number of rows with JSON - grid component

2007-03-05 Thread Jesse Kuhnert
Looks cool! I wish I had more time to look but I'm busy busy busy... On 2/23/07, Justin Walsh [EMAIL PROTECTED] wrote: Hi, I've put together a small demo of a grid like html component which makes use of a JSON string in a hidden input field (tapestry component) to convey state between the

Re: Problem with assignment of variables between pages

2007-03-05 Thread Jesse Kuhnert
This may have been the case with a previous 4.1.2-SNAPSHOT version that was doing some ~things~ with cglib and properties but I doubt it... If your properties aren't persistent there is no magic happening, they just get set on the object. Perhaps you are doing this in some kind of page loading

Re: T4: AJAX request from a page with a dojo editor causes exception

2007-03-05 Thread Jesse Kuhnert
There's probably more exception stuff hidden down in there but there are certain states where moz components will throw exceptions like these when it is handling event bubbling sort of scenarios. If you literally want to know what the problem is you can look it up at http://lxr.mozilla.org/

Re: getting messages in Tapestry 4.1.1

2007-03-05 Thread Andrea Chiumenti
Jesse, they where validation messages, but after some attempts, I've been able to get messages from application (of course the validator is a custom one) kiuma On 3/6/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: Which messages were these? If they are validation messages I'm not sure. I think

Re: T4: render empty Ajax response

2007-03-05 Thread Jesse Kuhnert
Don't specify which components to update? Or make it a json render and return some meta protocol between your client and server? On 3/1/07, Kristian Marinkovic [EMAIL PROTECTED] wrote: hi, how do i render an empty ajax response? i'm sending an ajax request to synchronize the model with the

RE: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Leffel, Daniel
So simply updating the entire dialog worked perfectly. This suits my needs because the response is small, so I haven't debugged more. I'll check it out tomorrow and see if I can find out what's going on when trying to update components within the dialog. Thanks, Danny -Original

Re: Tapestry 4.1.1 Hidden field truncates characters

2007-03-05 Thread Jesse Kuhnert
Yeah...I'm sure 'c' is claimed by one of the DataSqueezer implementations for encoding data. On 3/1/07, Julian Wood [EMAIL PROTECTED] wrote: Have you tried setting encode to false on the hidden field? J On 1-Mar-07, at 5:41 AM, Peter Stavrinides wrote: Hi all, In my page I use a hidden

Re: EventListener and DatePicker

2007-03-05 Thread Jesse Kuhnert
The actual bug in this instance was the value= attribute not being carried over on the input field being managed by the DatePicker. ...I've implemented a more robust general solution for all scenarios that ensures all properties (whether formal or made up ) are properly carried over on xhr

Re: Alternative for Shell parameter parseWidgets

2007-03-05 Thread Jesse Kuhnert
No that's my fault. I banished it from core because I was worried it would behave unexpectedly (a worry seen to be true by the jira issues created from it existing in Tacos alone) and cause too many overall headaches... If I can help it it will never see the light of day in core. :) On 3/2/07,

Re: getting messages in Tapestry 4.1.1

2007-03-05 Thread Jesse Kuhnert
Ah yes...I was just annoyed by this on a project today as well, so your chances of seeing a fix for it soon are extremely good. ;) On 3/6/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: Jesse, they where validation messages, but after some attempts, I've been able to get messages from application

Re: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Jesse Kuhnert
Damnit...I don't know how I let something that obvious slip through. I'll test this out tomorrow either way. On 3/6/07, Leffel, Daniel [EMAIL PROTECTED] wrote: So simply updating the entire dialog worked perfectly. This suits my needs because the response is small, so I haven't debugged more.

Re: Alternative for Shell parameter parseWidgets

2007-03-05 Thread Jesse Kuhnert
On second thought that makes it sound like a bad component somehow. It's not that at all. I'm actually jealous of the more liberal freedom enjoyed in Tacos land..It's a good component, just too precarious for tap core. On 3/6/07, Jesse Kuhnert [EMAIL PROTECTED] wrote: No that's my fault. I