Single OGNL expression evaluated several times – is it normal?

2007-12-01 Thread Kaspar Fischer
Hi, My Page.html contains a single Tapestry component: Title Why is my page's method getTitle() executed several times? 15:23:11,106 User:admin DEBUG [knowledgecenter.pages.NodePage] NodePage.pageBeginRender(). 15:23:11,188 User:admin DEBUG [knowledgecenter.pages.NodePage] NodePage.g

T4: From the client side, how do you programmatically update a component?

2007-12-01 Thread Kalle Korhonen
I have a use case where I need to "click on" a directllink to updatecomponents with async=true or do an equivalent action in Javascript. I know I can do tapestry.bind('') and it makes some sense, but looks rather ugly. Any cleaner way to accomplish this? Kalle

Re: possible bug: onActivate/onDeactivate and ComponentActions

2007-12-01 Thread Fernando Padilla
Yeah, they were public. Making all my variables private is one of those things I do without thinking, and I forgot to check that in this case. Funny. I don't remember reading about tapestry setting all private variables to null (or their default values) in the docs. Maybe I skimmed that part

Re: possible bug: onActivate/onDeactivate and ComponentActions

2007-12-01 Thread Howard Lewis Ship
Tapestry generates warnings about any non-private fields it finds in a component class, so you might want to keep an eye on the console as well. Sometimes I think console warnings are useless as no one ever seems to see them, only by being "in your face" with a hard exception can you catch the dev

Re: T4: From the client side, how do you programmatically update a component?

2007-12-01 Thread Ulrich Stärk
I can't follow you. You want a component to update itself asynchronously upon a user's click on a DirectLink? Why don't you just use DirectLink's updateComponents parameter with async="true"? Uli Kalle Korhonen schrieb: I have a use case where I need to "click on" a directllink to updatecompo

Re: T4: From the client side, how do you programmatically update a component?

2007-12-01 Thread Kalle Korhonen
No - I want to trigger the update programmatically via Javascript, not from a user's click. Kalle On 12/1/07, Ulrich Stärk <[EMAIL PROTECTED]> wrote: > > I can't follow you. You want a component to update itself asynchronously > upon a user's click on a DirectLink? Why don't you just use DirectL

Re: Single OGNL expression evaluated several times ­ is it normal?

2007-12-01 Thread Kevin Menard
This is a known issue and is pending resolution. On 12/1/07 9:29 AM, in article [EMAIL PROTECTED], "Kaspar Fischer" <[EMAIL PROTECTED]> wrote: > Hi, > > My Page.html contains a single Tapestry component: > >Title > > Why is my page's method getTitle() executed several times? > >15:23

Re: possible bug: onActivate/onDeactivate and ComponentActions

2007-12-01 Thread Andy Huhn
I think console warnings are a great thing, and I hope you're not thinking about doing away with them! Maybe it's just because I'm a newbie, but I comb through those logs looking for problems if I get any unexpected behavior. Thanks, Andy On Sat, 2007-12-01 at 11:54 -0800, Howard Lewis Ship wrot

T5: fixed-width Grid?

2007-12-01 Thread Andy Huhn
All, Is there a way to make a Grid fixed-width? That is, if it's more than x number of pixels, a scroll bar is rendered attached to the HTML table? (Not attached to the entire viewport). Thanks, Andy - To unsubscribe, e-mail: [

Re: possible bug: onActivate/onDeactivate and ComponentActions

2007-12-01 Thread Fernando Padilla
The problem is that we develop with debug. And in tapestry it prints out the full generated source of the page as debug, basically making the first few requests on the webapp totally useless as far as debug goes... is there any way to make that source easier for us to parse out? move it to T

Re: T5: fixed-width Grid?

2007-12-01 Thread Angelo Chen
Hi Andy, I can't quite understand your question, I use css to made grid fixed-width, usually I use only one cell from the grid: .id-header { width:780px; } then in the grid I can include other fields in the cell, this will not work if you want to have sortable columns: ${row.id} ${row

T5: Select's model

2007-12-01 Thread Angelo Chen
Hi, I use a TreeMap for the 'Select' component, it works but it is always sorted in the key order, not the name of country when showing to the user, i read somewhere it can be a list, any suggestions, sample codes? thanks. A.C. public TreeMap getCountryList() {return ...} -- View this mes

Re: T5: Tapestry-Hibernate, do we have to save()?

2007-12-01 Thread lasitha
On Nov 19, 2007 5:42 PM, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote: > On Mon, 19 Nov 2007 07:17:32 -0200, lasitha <[EMAIL PROTECTED]> > wrote: > > [ a long descpription on the 'unintended save' problem ...] > > > On Oct 31, 2007, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wro