using userdefined dojo components in T4.1

2008-05-10 Thread abhilash
Hi all, i have a datepicker which is built using dojo.When i was using T4.0 i used to plug it to my application.Now we have moved to T4.1.5(dojo integrated) .Now i want to make my datepicker as a component.How can i do it? any ideas? Thanks in advance? -- View this message in context: http://www

Re: T5: setupRender (named by convention) not called correctly in hierarchical base classes

2008-05-10 Thread Harald Geritzer
Bill Holloway schrieb: I have two abstract component base classes A and B in the base package. B inherits from A. I have methods literally named "setupRender" in both. I notice that B's setupRender is called but not A's. *However*, if I rename A's setupRender() to some other name and annotate

Re: onActivate

2008-05-10 Thread Mark W. Shead
Nicholas, Would you mind sharing code snippets of what you are doing? Mark On May 9, 2008, at 11:20 AM, nicholas Krul wrote: Thanks, works just fine... so now everything is bundled into a String[] anyway... - To unsubscr

Re: onActivate

2008-05-10 Thread nicholas Krul
Its pretty basic... and I havent put in String[] performPassivate method yet. just a word of warning... it _is_ useful for some pages, and not for others... too many if (context.length > 0) var0 = context[0]; Better would be having a conversion to String[] then I could move it out of the back cla

Page property reset during request

2008-05-10 Thread Toby Hobson
Hi I have a simple problem which is probably due to my lack of understanding about the Tapestry request cycle: I am trying to implement a basic pagination system - I have a form with a textfield called startIndex and a loop component which iterates through a list of values. Basically I am tryi

Re: Page property reset during request

2008-05-10 Thread Toby Hobson
I managed to get around this by using @Persist on the startIndex property but this doesn't seem right - do I need to use the session for a single request? Toby - Original Message From: Toby Hobson <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent: Saturday, 10 May, 2008 1:31:52 PM

Re: Problem with form submission with callback

2008-05-10 Thread Chris Lewis
The issues with JS get harrier when you mix AJAX (zones) and components or mixins that use external JS or CSS. Essentially, they won't be included unless they were already included on the page. A ticket (with a patch) is open for this issue: https://issues.apache.org/jira/browse/TAPESTRY-2390 Josh

Re: Page property reset during request

2008-05-10 Thread Sven Homburg
possible helps: http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/PagedLoop.html 2008/5/10 Toby Hobson <[EMAIL PROTECTED]>: > I managed to get around this by using @Persist on the startIndex property > but this doesn't seem right - do I need to use th

Re: Page property reset during request

2008-05-10 Thread Chris Lewis
T5 does a redirect after form posts, so using persist is probably how one should do this (probably @Persist("flash")). The redirect-after-post removes the danger of things like double posts (from page refreshes, etc). Toby Hobson wrote: > I managed to get around this by using @Persist on the start

Re: Page property reset during request

2008-05-10 Thread Toby Hobson
Thanks Chris ... that makes sense now! - Original Message From: Chris Lewis <[EMAIL PROTECTED]> To: Tapestry users Sent: Saturday, 10 May, 2008 4:34:26 PM Subject: Re: Page property reset during request T5 does a redirect after form posts, so using persist is probably how one should do

T5 setting initial sort order for grid in T5.0.11

2008-05-10 Thread Martin Grotzke
Hi, I'm just upgrading our T5 app from 5.0.10-SNAPSHOT to 5.0.11. Before we specified the initial sort order with this: _grid.setSortColumnId("month"); _grid.setSortAscending(false); With 5.0.11 this is gone. Can anybody tell me how one can specify the initial sort order (coumn and ascending

T5 @Persist with hibernate objects

2008-05-10 Thread Toby Hobson
Hi I have hit an interesting problem: basically I am trying to search for some records and display them in a list - simple stuff. The problem is that Tapestry uses a redirect-after-post design so I have to stick the search results in the session: @Persist("flash") private SearchResults

Re: T5 @Persist with hibernate objects

2008-05-10 Thread Thiago HP
On 5/10/08, Toby Hobson <[EMAIL PROTECTED]> wrote: > But now I'm getting LazyInitialization exceptions from hibernate because the > results have been detached from the session. I guess I'm going to have to re- > attach the object to the session inside my getResults() method but this seems > like a

Re: T5 @Persist with hibernate objects

2008-05-10 Thread Toby Hobson
Yeah I should have thought of that one! Thanks Thiago! Toby - Original Message From: Thiago HP <[EMAIL PROTECTED]> To: Tapestry users ; Toby Hobson <[EMAIL PROTECTED]> Sent: Saturday, 10 May, 2008 8:33:16 PM Subject: Re: T5 @Persist with hibernate objects On 5/10/08, Toby Hobson <[EMA

change persist property value in component

2008-05-10 Thread haipeng du
How could I change Persist property value in component? Which method will be called in component before page is rendered. Thanks. -- Haipeng Du Salt Lake City

Re: change persist property value in component

2008-05-10 Thread Toby Hobson
Do you want to change the value of a persistent property? Many methods are called during the lifecycle of a page, see http://tapestry.apache.org/tapestry5/tapestry-core/guide/rendering.html Toby - Original Message From: haipeng du <[EMAIL PROTECTED]> To: users@tapestry.apache.org Sent:

EventListener and JavaScript function

2008-05-10 Thread Warner Onstine
Hi all, I'm working on getting a Portal implementation working based off of this (http://blog.xilinus.com/2007/9/4/prototype-portal-class-2). So far I have everything working the way it should but am now getting to the stage where I want to start saving the portal layout changes to a db fo

T5 dateField component does not allow specifying format (in 5.0.11)?^

2008-05-10 Thread Martin Grotzke
Hi, I'm just upgrading our app to 5.0.11. I see that the dateField component changed (IIRC because of licensing issues). Is it correct, that this version of dateField does not allow setting the format/localization? If so, is this also the case for 5.0.12-SNAPSHOT? Thanx && cheers, Martin sign

Re: T5 dateField component does not allow specifying format (in 5.0.11)?^

2008-05-10 Thread Geoff Callender
Hi Martin, Perhaps you'd like to vote for "Date formatting global support" https://issues.apache.org/jira/browse/TAPESTRY-2198 Cheers, Geoff On 11/05/2008, at 8:55 AM, Martin Grotzke wrote: Hi, I'm just upgrading our app to 5.0.11. I see that the dateField component changed (IIRC because

Re: T5 dateField component does not allow specifying format (in 5.0.11)?^

2008-05-10 Thread Martin Grotzke
Yes, correct localization is important for us, too. Just voted. Cheers, Martin On Sun, 2008-05-11 at 09:18 +1000, Geoff Callender wrote: > Hi Martin, > > Perhaps you'd like to vote for "Date formatting global support" > https://issues.apache.org/jira/browse/TAPESTRY-2198 > > Cheers, > > Geoff