Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread Chris Poulsen
I know you can use them on the same field in pages/components, I was trying to offer an alternate way of getting the instance of the service setup correctly (by using IoC) instead of using a getter with side-effects as suggested in an earlier post. ;) -- Chris On Wed, Jan 23, 2013 at 12:59 AM,

Re: form method="GET"

2013-01-22 Thread trsvax
I'd write a mixin that just changes the method from POST to GET on the form element. You might need to put in a different URL if Tapestry gets confused about the form URL being a GET. Then just attach that mixin to the form component. I've thought about this for searches but I just put @ActivationR

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread Thiago H de Paula Figueiredo
On Tue, 22 Jan 2013 20:43:15 -0200, Chris Poulsen wrote: One could also @Inject CelebrityService into a @Property i suppose? (Using Tapestry IoC to manage the licecycle of the service). Yep. You can use @Inject and @Propert in the same field just fine. Of course, @Property will only work

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Thiago H de Paula Figueiredo
You said: When rendering the AJAX response, Tapestry tries to evaluate an expression on 'child' (*), but 'child' is null.Why does Tapestry need the value of 'child'? How is it supposed to know? The stack trace says the problem is elsewhere: [ERROR] batch.ViewBatch Render queue error in B

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Peter Farkas
Ok. There are more nested components than necessary, though. ExecutableRowPair.tml: ExecutableRowPair.java: Stack trace (actually the null pointer exception is in ExecutableRowPair): -- View this message in context: http://tapestry.1045711.n5.nabble.com/Null-pointer-exception-when-updat

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread Chris Poulsen
One could also @Inject CelebrityService into a @Property i suppose? (Using Tapestry IoC to manage the licecycle of the service). -- Chris On Tue, Jan 22, 2013 at 10:14 PM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > setupRender() doesn't get called in an AJAX request. > > >

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread Geoff Callender
setupRender() doesn't get called in an AJAX request. http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/whatiscalledandwhen so celebrityService was null. You can either: - @Persist it. That makes the page stateful, which is best avoided. - use Firebug or Web inspector to f

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread mwrohde
Ok, I got it working and my sanity is returning. I'm not sure I've done it the best way and I welcome any comments. My previous suppositions were on the right track. Tapestry wasn't getting the correct GridDataSource. In fact, it wasn't finding one at all, so was using NullGridDataSource. In t

Re: Null pointer exception when updating a component in a loop

2013-01-22 Thread Thiago H de Paula Figueiredo
Full stack trace and ExecutableRowPair code component please. On Tue, 22 Jan 2013 16:58:05 -0200, Peter Farkas wrote: I'm try to show a list of components with AJAX zones in a table: An 'ExecutableRowPair' consists of a header row (that's always visible) and a details row, that's load

Null pointer exception when updating a component in a loop

2013-01-22 Thread Peter Farkas
I'm try to show a list of components with AJAX zones in a table: An 'ExecutableRowPair' consists of a header row (that's always visible) and a details row, that's loaded through AJAX. The request is triggered by an event link in the header row. In ExecutablePair.java, I'm injecting the compon

form method="GET"

2013-01-22 Thread Lance Java
I have a search form in my application and I'd like to use a since the form does not change serverside state. This is perfectly legal in normal (non-tapestry) HTML. The tapestry form component (and related field components) require that the form submits via "POST" and also causes a redirect-after

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread mwrohde
It's not working at all and I'm getting close to running screaming from the building. Following is more code. It is the current state of affairs. With the code as displayed I get this error: > Failure reading parameter 'model' of component > misc/DataTableDemo:datatable: Unable to determine the

Re: Persistant properties, singletons and concurrent users

2013-01-22 Thread Matías Blasi
Sorry guys, I was not sure where to post. My applogies. Matías. Saludos, Matias. On Tue, Jan 22, 2013 at 12:22 PM, Matías Blasi wrote: > Hi everybody! > > I was just wondering how is Tapestry handling concurrent users asking for > the same page (which I understand, is a singleton) where each u

Re: Persistant properties, singletons and concurrent users

2013-01-22 Thread Lenny Primak
Please, don't cross-post to both users and developers list. This is a user-list questions. Here is your answer: http://tapestryjava.blogspot.com/2010/07/everyone-out-of-pool-tapestry-goes.html On Jan 22, 2013, at 10:22 AM, Matías Blasi wrote: > Hi everybody! > > I was just wondering how is Ta

Persistant properties, singletons and concurrent users

2013-01-22 Thread Matías Blasi
Hi everybody! I was just wondering how is Tapestry handling concurrent users asking for the same page (which I understand, is a singleton) where each user has a different value for a single persistent property (@Persist) As far as I debbuged, I saw a PropertyConduit in the middle, I suppose it is

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread mwrohde
Thank you for the reply. I've looked at the first one extensively, and stolen . . . . er, borrowed . . . . code from it. I think the second one may be the magic I'm looking for, though. I'll try to implement something like it in my environment today. Thanks again. I'll let you know how it goes

Re: [ANN] JumpStart gets jQuery DataTables example

2013-01-22 Thread Nourredine
Hi, Just follow the sample described here : http://tapestry5-jquery.com/components/docsdatatables (see snippets in "Example with Ajax Mode" tab). You don't need to provide your own /datatableModel /nor the /hitThisMethod/ method For the dataSource, you can take your inspiration from the jumpst

T5.2.6 AJAX Select with 3 select lists

2013-01-22 Thread resign
hi, i have a problem to build following example page. i have 3 select lists, which contains "COUNTRY", "CAR-BRAND", "CAR-MODEL". With AJAX i want to build a kind of dynamic select. * user selects "COUNTRY" - in the select list "CAR-BRAND" are some car brand loaded. * user selects "CAR-BRAND" - in