Re: closing a javascript window via a form that uses ajax/zone

2010-03-11 Thread Nathan Kopp
So... I just finished a new little utility... MultiZoneUpdateWithScript. It's just a proof of concept (it's not perfect), but basically it takes the concept of a MulitZoneUpdate and also populates the "script" object in the JSON reply so that Tapestry will automatically fire the supplied javascrip

Re: Grid -> Create ActionLink to get details or record

2010-03-11 Thread Chris Mylonas
I'm definitely in need of reading up on the services.AppModule and related stuff (note the vague description) So now that I've got the link working on the selected record, how would I connect to one of the 500 databases in my table the Tapestry way on the fly; or, is this another framework's task?

Re: Grid -> Create ActionLink to get details or record

2010-03-11 Thread Chris Mylonas
Thanks for putting it like that Kalle, I'll read up a bit on these annotations I think. Cheers Chris On Fri, Mar 12, 2010 at 3:48 PM, Kalle Korhonen wrote: > There's no service typed CustData, exactly as the error message says. > You are trying to @Inject CustData but it's not a service, it's y

Re: Grid -> Create ActionLink to get details or record

2010-03-11 Thread Kalle Korhonen
There's no service typed CustData, exactly as the error message says. You are trying to @Inject CustData but it's not a service, it's your data class. What you want is to mark "CustData user" as a @Property. Kalle On Thu, Mar 11, 2010 at 8:07 PM, Chris Mylonas wrote: > Hi, > > I've got a pretty

Re: Grid -> Create ActionLink to get details or record

2010-03-11 Thread Chris Mylonas
Sorry - figured it out looking at JumpStart @Inject//this should be @Property private CustData user ; And it works On Fri, Mar 12, 2010 at 3:07 PM, Chris Mylonas wrote: > Hi, > > I've got a pretty basic problem that has had me stuck for a couple of > days. I have a grid that spits ou

Grid -> Create ActionLink to get details or record

2010-03-11 Thread Chris Mylonas
Hi, I've got a pretty basic problem that has had me stuck for a couple of days. I have a grid that spits out values from a database using hibernate I'm trying to create a link on one of the fields in each row to drill down into further details and getting this exception org.apache.tapestry5.inte

AjaxFormLoop example in JumpStart and JIRA 733

2010-03-11 Thread Greg Pagendam-Turner
Guys, I'm trying to work out how to fix the AjaxFormLoop example in Jump Start. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1 The code recommends that it should use conversations instead of session persistence. I've changed the code to use conversations bu

Generic Graph component

2010-03-11 Thread Greg Pagendam-Turner
Hi Guys, I've added a new article to the T5 wiki about how to create a generic graph component that allows you to pass in a JFreeChart object so you can create any chart. http://wiki.apache.org/tapestry/Tapestry5HowToCreateGenericGraphComponent Might be a good component to add to one of the

Re: Suggestion for JavaOne Tapestry Talk

2010-03-11 Thread Peter Stavrinides
+ 1 for AOP & meta programming in Java (emphasis on Tapestry), sounds like a great topic! -- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.co

Re: Name of application module class too complicated?

2010-03-11 Thread Robert Hailey
On Mar 11, 2010, at 9:45 AM, Massimo Lusetti wrote: On Thu, Mar 11, 2010 at 2:11 AM, Howard Lewis Ship wrote: On Wed, Mar 10, 2010 at 4:42 PM, Josh Canfield > wrote: I've always just used AppModule... How about: look for Module look for AppModule Throw exception "can't find Module or AppM

Re: Name of application module class too complicated?

2010-03-11 Thread Massimo Lusetti
On Thu, Mar 11, 2010 at 2:11 AM, Howard Lewis Ship wrote: > On Wed, Mar 10, 2010 at 4:42 PM, Josh Canfield wrote: >> I've always just used AppModule... >> >> How about: >> look for Module >> look for AppModule >> Throw exception "can't find Module or AppModule" >> > > That's making it more compl

Re: [T5.1] t:hidden + id

2010-03-11 Thread Michael Gentry
If I start using Chenillekit, I'll keep that in mind, Juan. Thanks! mrg On Thu, Mar 11, 2010 at 3:21 AM, Juan E. Maya wrote: > Hi, > Chenillekit has a Hidden component that renders the id.  I had the same > problem just yesterday :) > > On Thu, Mar 11, 2010 at 2:03 AM, Josh Canfield wrote: > >

Re: [T5.1] t:hidden + id

2010-03-11 Thread Michael Gentry
Thanks Josh! Your tip worked perfectly. mrg On Wed, Mar 10, 2010 at 8:03 PM, Josh Canfield wrote: >> Should the Hidden component preserve the id?  In my TML I have: > > Probably, but it doesn't. You can look at the source for Hidden and > it's a very simple component. It doesn't output the id.

Re: Name of application module class too complicated?

2010-03-11 Thread Chris Mylonas
+1 I'm quite new to Tapestry, and each tutorial has a different way of doing something. They all seem to work, but I'm still in a bit of no-mans-land with why it all works. This will come with time though. For instance, three weeks ago I started with the "Tapestry for non-believers" tutorial wh

Re: Name of application module class too complicated?

2010-03-11 Thread Thiago H. de Paula Figueiredo
On Thu, 11 Mar 2010 04:41:17 -0300, Kalle Korhonen wrote: Agree with Igor. Ok, so it might trip up a few new users, but at least it fails fast and the reason is very understandable. It doesn't fails, as no warning or error message is shown when the default module is not found. A middle-of

Re: Suggestion for JavaOne Tapestry Talk

2010-03-11 Thread Robin Komiwes
Christophe is so right about how Tapestry is visionary about some concepts. I just laugh at devoxx spring 3.0 conference when I saw the concept of "AppConfig". :) Of course, speaking about the community and the success stories (seesaw for example) is good, because it is a well known lack for Tapes

Re: Query regarding Tapestry Grid

2010-03-11 Thread Juan E. Maya
Hi Jagadesh, U can hava a java that extends Grid.. Let's say: public class MyGrid extends org.apache.tapestry5.corelib.components.Grid { } The class doesn't have anything inside... For this class u create a template that overrides the Tapestry Grid. Something like this: MyGrid.tml http://tapest

Re: Name of application module class too complicated?

2010-03-11 Thread Piero Sartini
+1 for Josh's suggestion as well. Backward compatibility is a must. If both modules are present, the old behaviour (Module) should take precedence. Piero - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.

Re: Suggestion for JavaOne Tapestry Talk

2010-03-11 Thread Christophe Cordenier
Hi, I remember Howard saying how he get the inspiration from learning other technologies like clojure... I guess it would be nice to show how Tapestry is visionary and should inspire a lot of people and how PMC has made smart choices in the architecture. A few examples : - Tapestry has AppModule

Re: Name of application module class too complicated?

2010-03-11 Thread Joachim Van der Auwera (PROGS bvba)
+1 easier + backwards compatible Josh Canfield wrote: I've always just used AppModule... How about: look for Module look for AppModule Throw exception "can't find Module or AppModule" Josh On Wed, Mar 10, 2010 at 3:47 PM, Howard Lewis Ship wrote: Seems like we keep hitting the error wher

Re: Query regarding Tapestry Grid

2010-03-11 Thread Jagadesh Paladugula
Hi Juan, I tried doing this, but getting some wierd exceptions. Can you please provide me with an example implementation. Regards & Thanks, Jagadesh On Thu, Mar 11, 2010 at 1:48 PM, Juan E. Maya wrote: > U can extend the Grid component. In the tml of the new component u create > the empty blo

Re: [T5.1] t:hidden + id

2010-03-11 Thread Juan E. Maya
Hi, Chenillekit has a Hidden component that renders the id. I had the same problem just yesterday :) On Thu, Mar 11, 2010 at 2:03 AM, Josh Canfield wrote: > > Should the Hidden component preserve the id? In my TML I have: > > Probably, but it doesn't. You can look at the source for Hidden and >

Re: Query regarding Tapestry Grid

2010-03-11 Thread Juan E. Maya
U can extend the Grid component. In the tml of the new component u create the empty block and pass it as a parameter. On Thu, Mar 11, 2010 at 9:08 AM, Jagadesh Paladugula < jagadeshpaladug...@gmail.com> wrote: > Hi Chris, > > If I have 100 grids in my whole application, every where I have to do t

Re: Query regarding Tapestry Grid

2010-03-11 Thread Jagadesh Paladugula
Hi Chris, If I have 100 grids in my whole application, every where I have to do the same. I am looking for a generalized approach, where ever the list is empty grid component should render the grid with "no data message" Regards, Jagadesh On Thu, Mar 11, 2010 at 11:50 AM, Chris Mylonas wrote:

Re: Name of application module class too complicated?

2010-03-11 Thread Inge Solvoll
We're using a different filter name than "app". It would not be a good thing to remove support for this, potentially lots of bad press for T5. It's very important that any upgrade from 5.1 to 5.x can be done in minutes or hours, without frustration. I even found the upgrade from 5.0.18 to 5.1.0.5 t