Re: preventing double submit in tapestry

2006-11-15 Thread Nick Westgate
No argument there. But like any respectable programmer, I am lazy. ;-) I'm using a framework to take the drudgery out of web programming. Do I have to add disabling code for every request-sending widget? If the answer is yes then ... this is why I have not done it! (When a client has requested d

Re: preventing double submit in tapestry

2006-11-15 Thread Jesse Kuhnert
And where exactly does the "user experience" fit in to all of this cool server side trickery? I mean, even in a basic swing application I would disable input on things people aren't allowed to use when I'm doing something that will potentially take a long time to complete. The browser is your fri

Re: preventing double submit in tapestry

2006-11-15 Thread Nick Westgate
IMO, disabling a submit with javascript is a hack. The problem is common, and a natural consequence of using Tapestry to develop a web application. Tapestry should be taking care of it for us. In any case, this can be solved in the same way that the old "locked after a commit()" errors in T3 were

Re: Q: Tapestry 4.0.2 - Component containing a form containing a property selection fails on submit

2006-11-15 Thread Karthik N
erik, from what i understand you have Custom Component -> contains Form -> contains PropSel - when the PropSel changes, then its enclosing Form causes the submit. i have a suspicion this Form might be causing your Custom Component not to rewind and hence probably the Custom Component never

Re: preventing double submit in tapestry

2006-11-15 Thread John Menke
The filter solution does use a unique token on the form and you can disable the filter by not including the token on a form. I did have to add logic to the posted solution to handle errors but even with that code included the code seems to be non-invasive -- all it does is check for form variable

Re: dialog problem in the latest 4.1.1 snapshot

2006-11-15 Thread Karthik N
Jesse, you rock! What I love about tapestry - 2 Books - TIA, EWDT4, and a small forum with experts on it. Just the right recipe for a wonderful framework :-) Thanks, Karthik

Re: Images aren't showing up if I create my own dojo build and then instruct tapestry to use that.i

2006-11-15 Thread Jesse Kuhnert
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,

Q: Tapestry 4.0.2 - Component containing a form containing a property selection fails on submit

2006-11-15 Thread Erik Husby
I've created a component that contains a form that contains a property selection. The property selection item has the submit on change property. The property selection model and value are on the component. The form listener is on the component. The page containing my component does not need

Re: preventing double submit in tapestry

2006-11-15 Thread Sam Gendler
That seems like a complex solution to the problem which does things in a filter, where it might be difficult to predict side effects or override the behaviour in certain circumstances. I'd be more inclined to implement a unique token solution in a base page class so that I could overload it in ce

Re: dialog problem in the latest 4.1.1 snapshot

2006-11-15 Thread Kalle Korhonen
You are certainly not without the credit, but I happen to agree with your Maven2 statement. It has completely changed the way how a lot of Java projects think about and manage the complexity. Kalle On 11/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Thank you for the sentiment. While I do ap

Re: dialog problem in the latest 4.1.1 snapshot

2006-11-15 Thread Jesse Kuhnert
Thank you for the sentiment. While I do appreciate it I have to wonder if what I'm doing is no different than any other os developer, the only major difference I see is that maven2 has made managing/deploying documentation/code changes out to the public an almost completely transparent process for

Re: dialog problem in the latest 4.1.1 snapshot

2006-11-15 Thread Kalle Korhonen
Jesse, you are already acting way faster than anybody's used to in an open source project. Your responsiveness and the short turnaround time for coming up with these fixes others are reporting continue to amaze me. Just thought some patting on the back would be in order so you wouldn't start thin

Re: Images aren't showing up if I create my own dojo build and then instruct tapestry to use that.i

2006-11-15 Thread Josh Long
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.. :/

Re: preventing double submit in tapestry

2006-11-15 Thread John Menke
Is there a non-javascript solution to this problem? I have been experimenting with code based on the forum post below. Has anyone developed a solution for Tapestry? I propose some sort of consensus should be reached as to what the best method is to handle double submits and a patch should be ma

Re: preventing double submit in tapestry

2006-11-15 Thread Denis McCarthy
I was looking for a sledgehammer to crack a nut. That's how I ended up doing it (after spending the day looking for an enterprisey solution!) Thanks Denis Jesse Kuhnert wrote: Why don't you just disable the submit buttons in question when they submit? (set the disabled attribute to true) On 11

Re: preventing double submit in tapestry

2006-11-15 Thread Jesse Kuhnert
Why don't you just disable the submit buttons in question when they submit? (set the disabled attribute to true) On 11/15/06, Denis McCarthy <[EMAIL PROTECTED]> wrote: Hi, I'm encountering a problem in my app where users are double submitting a form, creating a hibernate exception in the back

Re: ASO Injection Question

2006-11-15 Thread Peter Stavrinides
Thanks so much! Richard Kirby wrote: Hi Peter, State objects are not the same as HiveMind services. So reg.getService will return a service you have defined with in a hivemodule.xml. However these are typically equivalent to singletons and therefore shared across all sessions. A state objec

Re: ForBean issues

2006-11-15 Thread Srinivas Yermal
Hi Gabriel, Thanks for the detailed steps. We tried this out, but it didnt work. The observation here was that only the first item in the collection has the user entered value while others in the collection dont have their values set. However I am happy to report that we have solved the issue. W

Re: ASO Injection Question

2006-11-15 Thread Richard Kirby
Hi Peter, State objects are not the same as HiveMind services. So reg.getService will return a service you have defined with in a hivemodule.xml. However these are typically equivalent to singletons and therefore shared across all sessions. A state object is managed by the ApplicationStateMa

Re: ASO Injection Question

2006-11-15 Thread Peter Stavrinides
Thanks Richard, this is truly a bit of magic, one question though regarding the last step: Is there any reason why I would need to use the ApplicationStateManager object, can I rather access a service directly using getService() ? For instance, I get the registry like so: Registry reg = (Regi

preventing double submit in tapestry

2006-11-15 Thread Denis McCarthy
Hi, I'm encountering a problem in my app where users are double submitting a form, creating a hibernate exception in the back end where two sessions are attempting to update the same collection. I've read some posts about preventing form resubmission by using a unique token in the form to det

Re: ASO Injection Question

2006-11-15 Thread Richard Kirby
Hi Peter, One way of doing this is to access the HiveMind Registry object that Tapestry creates, from within your listener class, so that you can then access the ApplicationStateManager, and from that access your ASO. However, you have to use a little magic to access the Registry object: 1.

ASO Injection Question

2006-11-15 Thread Peter Stavrinides
What is the best approach for the following scenario: I have a listener class that listens for session activity, its configured only in my web.xml (not for instance in hivemind) I have a state object that I need to inject into the listener class, but since I cannot make the listener class abstr

Re: dialog problem in the latest 4.1.1 snapshot

2006-11-15 Thread Tine
Hello, I have another problem with my dialog: org.apache.tapestry.BindingException: Binding for parameter hidden default value (ExpressionBinding[... true]) may not be updated. [classpath:/org/apache/tapestry/dojo/html/Dialog.jwc, line 29, column 53] at org.apache.tapestry.binding.Abstra