Re: intermittent stack trace

2013-03-22 Thread Geoff Callender
See http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/Safari-for-example-browser-history-and-form-exception-td4942074.html . Geoff On 23/03/2013, at 5:15 AM, Thiago H de Paula Figueiredo wrote: > On Fri, 22 Mar 2013 14:59:15 -0300, Ken in Nashua wrote: > >> Forms require tha

Re: How do you create a composite form component?

2013-03-22 Thread Geoff Callender
If you'd like to see component writing made simpler, then please vote here: https://issues.apache.org/jira/browse/TAP5-1618 It proposes replacing all that plumbing (store ComponentAction, storeAndExecute ComponentAction) with event handlers (eg. onPrepare, onValidate, onSuccess, etc).

Re: How do you create a composite form component?

2013-03-22 Thread Geoff Callender
This may help: http://jumpstart.doublenegative.com.au/jumpstart/examples/component/subformasafield1 On 23/03/2013, at 1:53 AM, Barry Books wrote: > That's what I tried first and I did not like the path I was headed > down. Perhaps I'm spoiled by how easy it is to create a component > th

graceful exception handling - user interface

2013-03-22 Thread Ken in Nashua
Hi Folks, Well I am about to embark on going public with a hockey league web site and I wanted to reformat these intimidating (well not for developers) for end-users... stack traces when an exception occurs. And its nice to be able to use tapestry in such a fashionable way now and the supported

Re: For Nabble users

2013-03-22 Thread Lance Java
Sorry, wasn't aware of the extra work it was creating. I'm happy for a solution that keeps you guys focused. Thanks for your continued tapestry support. Cheers, Lance

Re: Read only bindings - How do I set their value from a mixin?

2013-03-22 Thread Barry Books
My impression was Thread Local gives you an instance of an Object for each thread. If you run Tomcat with 100 thread pool you will have at most 100 different objects no matter how many connections you have and since a new connection is handled by an existing thread it will pick up the values from t

Re: Read only bindings - How do I set their value from a mixin?

2013-03-22 Thread Lance Java
Hi Barry, I'm not sure you understand a Thread Local, it's guaranteed to be thread safe since it's local to a thread I would appreciate it if a tapestry committer could chime in with their thoughts. Thanks, Lance On 22 Mar 2013 20:52, "Barry Books" wrote: > The method is isInvariant so returni

Re: Read only bindings - How do I set their value from a mixin?

2013-03-22 Thread Barry Books
The method is isInvariant so returning false means the value can change. This is confusing and it seems like a double negative to me. public boolean isInvariant() { return false; } The set method is commented out because setting the value would affect other instances of the component. After th

Re: Read only bindings - How do I set their value from a mixin?

2013-03-22 Thread Lance Java
There are a couple of things wrong with your solution 1. You've implemented a variant binding (isVariant = false) but you have a no-op implemetation of set(Object value) This means that the value is 10 in your mixin, but the the value in the underlying grid component is still 25 (no change) 2. Yo

Re: intermittent stack trace

2013-03-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Mar 2013 14:59:15 -0300, Ken in Nashua wrote: Forms require that the request method be POST and that the t:formdata query parameter have values. Here is, from the error message, the description of what is happening. If this is a public-facing site, your probably have someone c

Re: Read only bindings - How do I set their value from a mixin?

2013-03-22 Thread Barry Books
I overrode the SymbolBindingFactory with the attached MySymbolBindingFactory and it appears to work, but I'd like a second opinion. As I understand it Bindings are cached so my question is will making the set method a no op instead of an error cause any problems? I created this mixin to test it. p

Re: notify embedded components

2013-03-22 Thread Lenny Primak
The CDI has support for events in an elegant way: http://docs.oracle.com/javaee/6/tutorial/doc/gkhic.html FlowLogix library supports CDI as well On Mar 22, 2013, at 11:36 AM, Howard Lewis Ship wrote: > ive tought this woud be a cool feature, but it does not exist yet. > > On Thursday, March 2

Re: For Nabble users

2013-03-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Mar 2013 12:42:14 -0300, Barry Books wrote: I had not looked at that way but I think you are correct. You tried to solve an Apache Foundation mailing list deficiency with Nabble but Nabble has it's own set of problems. Actually, we never tried anything with Nabble: it just started

Re: notify embedded components

2013-03-22 Thread Howard Lewis Ship
ive tought this woud be a cool feature, but it does not exist yet. On Thursday, March 21, 2013, Paul Stanton wrote: > Hi all, > > Is there a way to trigger an event in a container (Page) which notifies > embedded components? > > I'm hoping to do something like this (pseudo code) : > > Page > { >

Re: For Nabble users

2013-03-22 Thread Barry Books
I had not looked at that way but I think you are correct. You tried to solve an Apache Foundation mailing list deficiency with Nabble but Nabble has it's own set of problems. On Fri, Mar 22, 2013 at 10:17 AM, Thiago H de Paula Figueiredo wrote: > On Fri, 22 Mar 2013 11:46:42 -0300, Barry Books w

Re: For Nabble users

2013-03-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Mar 2013 11:46:42 -0300, Barry Books wrote: I understand that which is why I said the Apache policy (not the Tapestry policy) is outdated. If the Apache Foundation had a gateway anyone could post thru then perhaps most of the issues would be resolved. Again this is not a complaint b

Re: How do you create a composite form component?

2013-03-22 Thread Barry Books
That's what I tried first and I did not like the path I was headed down. Perhaps I'm spoiled by how easy it is to create a component that's not used as a form element. I was really just curious if I was missing something obvious.

Re: For Nabble users

2013-03-22 Thread Barry Books
On Fri, Mar 22, 2013 at 8:47 AM, Ulrich Stärk wrote: > On 22.03.2013 13:43, Barry Books wrote: >> Not a complaint about the Tapestry list (or PMC members) but I though >> I voice my opinion about the policy to see if there are others like >> me. I think I understand the reasoning behind the Apache

Re: How do you create a composite form component?

2013-03-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Mar 2013 10:56:25 -0300, Barry Books wrote: I did and I'm using store() to make it work, it just seems messy when all I really want is something like this Have you tried subclassing AbstractField? -- Thiago H. de Paula Figueiredo --

Re: For Nabble users

2013-03-22 Thread Thiago H de Paula Figueiredo
On Fri, 22 Mar 2013 10:47:03 -0300, Ulrich Stärk wrote: 2. There is no real built in archive system which makes web searches a problem. Nabble is considered a hosting site and hosting sites are blocked by my work firewall. tapestry.markmail.org - excellent searching and filtering capabilities

Re: How do you create a composite form component?

2013-03-22 Thread Barry Books
I did and I'm using store() to make it work, it just seems messy when all I really want is something like this DateRange implements Label { @Parameter private String label; @Parameter @Property private Range range; onPrepareFromSubmit() { if ( range == null ) { range = new Range();

Re: For Nabble users

2013-03-22 Thread Ulrich Stärk
On 22.03.2013 13:43, Barry Books wrote: > Not a complaint about the Tapestry list (or PMC members) but I though > I voice my opinion about the policy to see if there are others like > me. I think I understand the reasoning behind the Apache mailing list > policy but I think it's outdated. To me it

Re: How do you create a composite form component?

2013-03-22 Thread Taha Siddiqi
Hi Barry Have you looked at FormSupport particularly store() and storeAndExecute() http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/FormSupport.html#storeAndExecute(T, org.apache.tapestry5.ComponentAction) You can register ComponentActions there. regards Taha On Mar 22

How do you create a composite form component?

2013-03-22 Thread Barry Books
Usually creating Tapestry components is easy but I've run in a problem. I've kinda solved it but I'm wondering if I'm missing something. I'd like to create a component called DateRange which contains two DateFields and takes a parameter of type Range which contains a startDate and endDate. The sol

Re: HashMap as a Grid source - once again

2013-03-22 Thread Barry Books
I use a collection of maps all the time for both form input and grid output. I have a report system that stores sql in the database and uses a beaneditform for query parameters and a grid to display the result set. It's turned out to be extremely useful. I use a PropertyConduit just like you sugges

Re: Read only bindings - How do I set their value from a mixin?

2013-03-22 Thread Barry Books
This has been a source of problems for me also. I'll mess with it today and report back. I think it should be possible to create a new binding then change the default from symbol:SomeSymbol to default:symbol:SomeSymbol would that work for you? --

Re: For Nabble users

2013-03-22 Thread Barry Books
Not a complaint about the Tapestry list (or PMC members) but I though I voice my opinion about the policy to see if there are others like me. I think I understand the reasoning behind the Apache mailing list policy but I think it's outdated. To me it has two problems. 1. I cannot participate in th

Re: For Nabble users

2013-03-22 Thread Bob Harner
Uli, this is the first time I've heard that you had to moderate Nabble posts. Sorry to hear that. I withdraw my objection. On Mar 22, 2013 5:27 AM, "Ulrich Stärk" wrote: > First, Nabble users don't subscribe, meaning I have to moderate Nabble > mails on a daily basis. > Nabble won't or can't forc

Re: For Nabble users

2013-03-22 Thread Ulrich Stärk
First, Nabble users don't subscribe, meaning I have to moderate Nabble mails on a daily basis. Nabble won't or can't force users to subscribe users prior to posting. Second, Nabble eats code listings etc. leaving users to wonder why their emails aren't displayed properly to "normal" users, possi