works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
Hi all. I'm fighting a little weird problem. I've got a component that works fine when I run my project in Jetty. But when I attempt to use the same component (in the same application) in Tomcat, I'm getting a NullPointerException. Here's the component: https://gist.github.com/1496826 And this

Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
passed to toClient() is null. - hugi On 19.12.2011, at 12:24, Thiago H. de Paula Figueiredo wrote: On Mon, 19 Dec 2011 09:46:56 -0200, Hugi Thordarson h...@karlmenn.is wrote: Hi all. Hi! I'm fighting a little weird problem. I've got a component that works fine when I run my project

Re: works in Jetty, not in Tomcat 6?

2011-12-19 Thread Hugi Thordarson
I hesitate to post it, since it's just an ugly hack meant to save us until tapestry5-cayenne works with 5.3 :). But here goes: https://gist.github.com/1497082 I don't think the error is there though—the NullPointerException there is just an artifact of the fact that the object passed to

Re: Tapestry 5.1.0.5 vs Prototype 1.7 and Scriptaculous 1.9

2011-12-19 Thread Hugi Thordarson
Thank you, Dmitriy! Works like a charm! Now I'm chasing a non-related IE-specific JavaScript bug (sigh). Hugi, please pay the beers you owe me to Dmitriy! :D Sure — just have him contact me next time he's here in Reykjavik, Iceland (yes: that's how I can afford to promise beer to everyone,

Re: prototypejs is dead - time to bring t5-jquery in?

2011-12-14 Thread Hugi Thordarson
As a new Tapestry user with no legacy code whatsoever… +1 ;-) - hugi On 14.12.2011, at 18:30, Lenny Primak wrote: I would say it's better to favor better functionality rather than backwards compatibility in this case. On Dec 14, 2011, at 1:27 PM, Howard Lewis Ship wrote: We are

Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Hi all. Quick newbie question: How do I return an instance of a page whose class I do not know until at runtime? Example: I have a list page, listing objects of various types. when I click an object, I want to return a page class based on the class of the object I select (UserDetailPage for

Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Yes, that would work for returning the page, but I need to initialize it (with the object). In pseudocode, what I'm looking for wouls be something along the lines of: Object onActionFromSelect() { Class? extends DetailPage detailPageClass = determineDetailPageClass(

Re: Returning an instance of a page

2011-12-09 Thread Hugi Thordarson
Thank you, exactly what I was looking for! Cheers, - hugi On 9.12.2011, at 10:58, Thiago H. de Paula Figueiredo wrote: ROn Fri, 09 Dec 2011 07:48:46 -0200, Hugi Thordarson h...@karlmenn.is wrote: Yes, that would work for returning the page, but I need to initialize it (with the object

Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hi again. Another noob question: I've been trying to google this one for quite some time, but I still can't figure out how I can pass a CayenneDataObject to a component using a binding. I have registered a Type Coercer from String to CayenneDataObject, and it's getting invoked when I read the

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
On 9.12.2011, at 11:54, Thiago H. de Paula Figueiredo wrote: On Fri, 09 Dec 2011 09:08:13 -0200, Hugi Thordarson h...@karlmenn.is wrote: Hi again. Hi! Another noob question: I've been trying to google this one for quite some time, but I still can't figure out how I can pass

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
the value of currentObject.name. However, if I use the object binding in an action method (onActionFromSelect) the object parameter is always null? Code for ObjectLink here: https://gist.github.com/1451368 Any ideas? Cheers, - hugi On 9.12.2011, at 12:02, Hugi Thordarson wrote: Oh dear

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
Hmm, interesting. Doesn't seem to work even if I send the object as a context parameter, the object is still null in the action method :-/ - hugi On 9.12.2011, at 12:50, Thiago H. de Paula Figueiredo wrote: On Fri, 09 Dec 2011 10:38:07 -0200, Hugi Thordarson h...@karlmenn.is wrote

Re: Another newbie question: Type coercions not working for me

2011-12-09 Thread Hugi Thordarson
(just ignore the commented out code, it's what I'm using to work around the problem until I find a solution) What's the rendered HTML? Well, if I disable the ValueEncoder I made for CayenneDataObjects, it will look like this:

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-07 Thread Hugi Thordarson
using this gets me? -Seamus - Original Message - From: Hugi Thordarson h...@karlmenn.is To: Tapestry users users@tapestry.apache.org Cc: Sent: Monday, December 5, 2011 7:55 AM Subject: Re: Tapestry 5.3 and tapestry5-cayenne Hi Dragan. Thank you, this will definitely

Building large projects, based around the same framework

2011-12-06 Thread Hugi Thordarson
Good morning everyone. I'd like to seek a little advice from the community. I've just spent a couple of days using Tapestry, and as a longtime WebObjects-user I'm feeling right at home with the Tapestry+Cayenne combination. I recently started working at a web development shop where most of the

Tapestry 5.3 and tapestry5-cayenne

2011-12-05 Thread Hugi Thordarson
Hi all! First time Tapestry user here, just started coding this weekend and liking it so far. Now, for my first question: I'm using Cayenne (3.0.2) so I just downloaded the tapestry5-cayenne extension (0.5-snapshot) and installed it. Now, when I start my application, I get the following

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-05 Thread Hugi Thordarson
Great to hear, thank you so much :). Cheers, - hugi On 5.12.2011, at 12:50, Robert Zeigler wrote: Hi Hugi, 0.5-snapshot works with 5.2. I'll be updating tapestry5-cayenne for 5.3 compatibility in the next couple of weeks. Robert On Dec 5, 2011, at 12/54:31 AM , Hugi Thordarson

Re: Tapestry 5.3 and tapestry5-cayenne

2011-12-05 Thread Hugi Thordarson
with tapestry, if you like to browse it and see how cayenne is used in this project. https://github.com/bobharner/Tapestry-finder Hope it helps. Cheers, Dragan Sahpaski On Mon, Dec 5, 2011 at 11:31 AM, Hugi Thordarson h...@karlmenn.is wrote: Hi all! First time Tapestry user here

Re: Wanted: New title for the Tapestry book

2011-12-05 Thread Hugi Thordarson
+1 for the unicorns. Tapestry 5: Farting rainbows - hugi On 5.12.2011, at 20:28, Daniel Jue wrote: How about naming it after a famous tapestry? I Googled 'famous tapestry' and found this one, and it even has a UNICORN! http://en.wikipedia.org/wiki/The_Lady_and_the_Unicorn On Mon, Dec