Enum.toString() not honored by t:Select component

2009-07-08 Thread Balduran Bu
Hello, When t:Select component generates option labels for enums, the toString() method is not honored at all. It currently generates both labels and values based on Enum.name() method. In my understanding, the labels shall be generated based on toString() method instead. Here is a piece of

Re: T5 Persistence Question

2009-07-08 Thread Norman Franke
So let me be a little clearer: I don't want to run with SUPPRESS_REDIRECT_FROM_ACTION_REQUESTS = false, since that affects the entire application. There are definite benefits to the redirect model with bookmark-able URLs and proper operation of the browser's back button. However, it seems t

Advanced Tapestry Location

2009-07-08 Thread matt22
Hi, is it possible to set a special template(.tml) location for some pages or components? Example: dir/SuperPage.class - has 3 tml: dir/anytmldirA/SuperPageTemplate.tml dir/anytmldirB/SuperPageTemplate.tml dir/anytmldirC/SuperPageTemplate.tml ...whitch template will be used can be in dbs. Is t

Re: T5 Persistence Question

2009-07-08 Thread Norman Franke
That did fix it, and seems to imply that the client strategy is rather useless in all but a very few cases. Is there some way to suppress redirect for a specific action? Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 8, 2009, at 1:30 PM, Robert Zeigler wrote: I t

Re: T5 Persistence Question

2009-07-08 Thread Robert Zeigler
I think the previous reply to this post is correct: the form is correctly submitting w/ the various values stashed as hidden form fields. But on returning null from onSuccess, to re-render the current page, tapestry is sending a client redirect to the url for the page, and that url, of nec

Re: T5.1 components inside loops not getting reset

2009-07-08 Thread Robert Zeigler
You're comparing apples to oranges: The first is a single component instance rendered three times. The second is three separate instances of a particular component type being rendered. Consider the difference between: and The textfield within the loop is clearly the same

Re: How to get a list of Symbol names

2009-07-08 Thread Howard Lewis Ship
There isn't a current API for this; I may have to introduce a SymbolProvider2 and new methods on SymbolSource. On Tue, Jul 7, 2009 at 5:58 AM, wrote: > Hi, > > Is there a way to get at the list of Symbol names from the various providers > (ApplicationDefaults, FactoryDefaults etc.) programmatica

Re: Tapestry5 and Applets

2009-07-08 Thread Walter Botscher
Hi Thiago, this was a really good tip, it works. thank you very much. Walter -- View this message in context: http://n2.nabble.com/Tapestry5-and-Applets-tp3220868p3226618.html Sent from the Tapestry Users mailing list archive at Nabble.com.

Re: Decoration of setupRender, beginRender from a service

2009-07-08 Thread Sergey Didenko
Turned out Mixins are the perfect tool for this problem. They helped me to eliminate super.setupRender() calls in the beginning of every parameterized component setupRender(). Thanks for the clue, Thiago! On Sun, Jul 5, 2009 at 3:45 PM, Sergey Didenko wrote: > Not yet. I needed that to refactor m

Re: T5 Persistence Question

2009-07-08 Thread Norman Franke
How should the client strategy work? Am I misusing it from the onSuccess callback? Norman Franke Answering Service for Directors, Inc. www.myasd.com On Jul 7, 2009, at 7:09 PM, Norman Franke wrote: On my page, it isn't happening. It gets stuck in the URL. My "onSuccess()" method does some

Re: T5 Persistence Question

2009-07-08 Thread Martin Strand
Perhaps the form submission leads to an url without parameters: /yourpage.form.action but then results in a redirect to /yourpage?t:state=... where the state is visible? In T4, if you returned null from a listener it would render the current page. T5 redirects back to the current page before the

T5.1 components inside loops not getting reset

2009-07-08 Thread Jack Nuzbit
Hello, Am I correct in thinking that when a component is acquired from the pool it's state should be reset? I'm asking because I've noticed that when rendering components repeatedly in a loop the state doesn't get reset. Here's the test component I've used: public class Test { @Property