Component exception : null

2006-06-15 Thread Andreas Pardeike
Hi, I've a strange problem that appears only if my Jetty server was idle for some time. I get the following exception from one of my library calls. Can anyone help me out here since I am having a hard time to debug this (cannot reproduce so easily due to the idle nature of the problem). The comp

Re: Component exception : null

2006-06-15 Thread Andreas Pardeike
I forgot to mention that my catch actually looks like catch(Exception e) { writer.print("Component exception : " + e.getMessage()); ... } so it seems that something is null that I don't expect. I do catch visitObject == null so I wonder if it might be the snippetGetterMethod? On 1

Re: Indicating required fields to user?

2006-06-15 Thread Andreas Bulling
Nice one - thanks for that! ;) Perhaps that's something for the Wiki... Andreas On 14. Jun 2006 - 17:18:28, Bryan Lewis wrote: | Here's what's been working well for us. Our custom ValidationDelegate | extends Tapestry's ValidationDelegate and overrides the | writeAttributes() method, which is do

Re: Indicating required fields to user?

2006-06-15 Thread Bryan Lewis
I checked the wiki. The basic technique is already there, at the bottom of this page: http://wiki.apache.org/tapestry/CheckingForRequiredValidator I learned that the code could be simplified. My isRequired() method -- left over from an earlier Tapestry version -- wasn't needed. The writeAttribu

RE: Setting selected values on Palette

2006-06-15 Thread Schulte Marcus
I'll try: You have an implementation of IPropertySelectionModel, getOption(int) returns some Object from your domain model, say of class A. So the "model" parameter is boud to the IPropertySelectionModel. Then you bind the "selected" parameter to a collection of A (e.g. List). Now Palette determi

To Generate Tapestry Page Class Before 1st Access

2006-06-15 Thread seng kim khong
Hi All, If I not wrong, the page class in tapestry is an abstract class and it will be extends in run time and generate instance based on that class on the fly. But this will let the 1st time loading of tat page become slower. So, I would like to check out is it tapestry got provide any script t

Re: tapestry tab component

2006-06-15 Thread ZedroS Schwart
The link is dead. But I would love to be able to see the demo. On 6/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Oh no, that's all the tacos dev work. Specifically I think Sam Gendler and Andreas worked together to get the tab/grid/etc components in. I'm just working on the "plumbing" port

Re: Can dynamic tapestry be done?

2006-06-15 Thread ZedroS Schwart
Thanks for the precisions, I see better the difference now. Cheers, ZedroS On 6/14/06, James Carman <[EMAIL PROTECTED]> wrote: JSP pages are not really the same type of beast as Tapestry pages. JSP pages are compiled into servlet classes and a single instance (unless otherwise specified) of t

Re: Order of rendering components

2006-06-15 Thread Jean-Eric Cuendet
- enumerating all FaqItem components in the page (or in the body of FaqSummary), and getting the title values from their parameters? This solution is somewhat easier to implement if you do not need fully flexible component hierarchy (I mean for example FaqItems are rendered from multiple page

Injecting Service Error

2006-06-15 Thread Deon Visagie
Hi I am trying to inject a service so that I preview images stored in a blob in the database. I have the following code but it gives me an error that the service can't be found when I view that particular page. hivemodule.xml --

Re: Injecting Service Error

2006-06-15 Thread Andreas Bulling
Well, IMO HiveMind isn't able to find your ImageService service point and defaults to tapestry.ImageService where it can't be found, too. Try to put something like this in your hivemodule.xml hth Andreas On 15. Jun 2006 - 15:08:56, Deon Visagie wrote: | Hi | | I am trying to inject a servic

Re: Injecting Service Error

2006-06-15 Thread Shing Hing Man
Is the following in your hivemodule.xml ? Shing --- Deon Visagie <[EMAIL PROTECTED]> wrote: > Hi > > I am trying to inject a service so that I preview > images stored in a blob in > the database. I have the following code but it gives > me an error that the > service can't b

Re: To Generate Tapestry Page Class Before 1st Access

2006-06-15 Thread Bryan Lewis
I believe the slowness you're seeing at initial page load isn't so much the class enhancement (and not the compilation, of course, since that's already done); it's the parsing and initialization of the component graph. There is a way to trick Tapestry into preloading all the pages on first access.

RE: Injecting Service Error

2006-06-15 Thread Deon Visagie
Hi I already had the following at the top of my hivemodule.xml file And even if I change it to: It still doesn't work - same error. Btw, in my code below, my ImageService package actually is something like mypackagename.tapestry.ImageService and not mypackagename.ImageService so I thought

Re: Remove jsessionid from static resources?

2006-06-15 Thread Jesse Kuhnert
I think Howard mentioned the possibility of doing some portlet work this/next week so hopefully if we ask nicely we might be able to get him to look at it as well.. I've been very hesitant to go in and make changes to this particular section as it seemed to require a lot of background homework in

Re: To Generate Tapestry Page Class Before 1st Access

2006-06-15 Thread Geoff Longman
Trying to do this is a wasted effort regardless of the tool chosen to do it. I mean that even if you hit every page in the application, you are only injecting one instance of each page into the pool. All you buy is a faster response for the first access. Subsequent, concurrent, access of any page

RE: Injecting Service Error

2006-06-15 Thread Deon Visagie
For those who are curious, the fix is... When calling the service I needed to prefix the applicationId as specified in the hivemind.xml file e.g: @InjectObject("service: applicationId .ImageService") I was tearing my hair out with this one!!! Thanks to those who tried to help. Deon -Orig

Re: To Generate Tapestry Page Class Before 1st Access

2006-06-15 Thread John Singleton
This initial hit isn't so much of a problem for Servlet based applications, but for Portlet applications it is, as it's per portlet, and even per portlet instance for some classes of Portlet. It's bad enough for us to have given up trying to use Tapestry for our portlet applications. John

Re: unit test suite for components?

2006-06-15 Thread Rob Dennett
I was wondering if anyone had any examples of tests for a component, perhaps using the code referenced in the link below. Thanks for your help, Rob Jesse Kuhnert wrote: HYPERLINK "http://howardlewisship.com/tapestry-javaforge/tapestry-testng/"http://howardlewisship.com/tapestry-javaforge/ta

Re: custom namespace

2006-06-15 Thread Norbert Sándor
Thanks! This means that I must force the user of my component library to define my library with a fix alias in the .application file. Regards, Norbi Jesse Kuhnert wrote: You mean like contrib or tacos? I think the namespace name can be tied to a .library file via your .application configurat

Re: custom namespace

2006-06-15 Thread Geoff Longman
Yes, that's true. But is that really a problem? Contrib has the same issue. Geoff On 6/15/06, Norbert Sándor <[EMAIL PROTECTED]> wrote: Thanks! This means that I must force the user of my component library to define my library with a fix alias in the .application file. Regards, Norbi Jesse K

Re: custom namespace

2006-06-15 Thread Norbert Sándor
I use many such component libraries which means that because of this issue, many libraries must be specified "by hand". Not a big problem, just tried to avoid it :) Regards, Norbi Geoff Longman wrote: Yes, that's true. But is that really a problem? Contrib has the same issue. Geoff On 6/15/

RE: custom namespace

2006-06-15 Thread James Carman
It would be nice if the component libraries could add themselves to the mix via a HiveMind contribution. Of course, they would allow "users" to override their default namespace via a symbol override contribution or something. That's the way I'd do it. -Original Message- From: Norbert Sán

Re: custom namespace

2006-06-15 Thread Geoff Longman
Good God No! While I love the idea of auto discovery of libraries, every time I see a quick suggestion to use Hivemind I cringe. IMO HM is *required* to do too many everyday things in T4. HM should be relegated to use when the *implementation of the runtime* needs to be changed or enhanced becau

Re: custom namespace

2006-06-15 Thread Jesse Kuhnert
In the context of that suggestion, where would you see this configuration data going ? On 6/15/06, Geoff Longman <[EMAIL PROTECTED]> wrote: Good God No! While I love the idea of auto discovery of libraries, every time I see a quick suggestion to use Hivemind I cringe. IMO HM is *required* to

RE: custom namespace

2006-06-15 Thread James Carman
In this case, HiveMind would only be necessary if you wanted to override the default namespace of the library. Library "authors" should be knowledgeable enough with HiveMind to at least do a contribution... Something like that. -Original Message- From: Geoff Longman [mailto:[EMAIL

Re: image service?

2006-06-15 Thread Dan Adams
I wrote an engine service which we use for dynamic thumbnailing/resizing. It's really great because you simply say the dimensions and it resizes them. Also, we set up short urls for the service so the thumnails are browser cached. If you would like it as a reference you can email me and I'll send i

Re: To Generate Tapestry Page Class Before 1st Access

2006-06-15 Thread Geoff Longman
hmm, I didn't know about the Portlet issues. Sounds like Portlets in general a broken - but of course a statement like that doesn't solve anyone's problem. I know squat about Ptlets so I'm afraid I can't be of much help. Geoff On 6/15/06, John Singleton <[EMAIL PROTECTED]> wrote: This initial

Re: custom namespace

2006-06-15 Thread Geoff Longman
You run the risk of me going into the whole sob story about T4 and how to fix it in T5! :-) Why isn't the .library file enough config? Just put it in the META-INF dir of the jar and have Tapestry autodiscover it. ? Geoff On 6/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: In the context of t

RE: custom namespace

2006-06-15 Thread James Carman
That would work, too. But, HiveMind already has the auto-discovery stuff built in. It's really not that hard to configure stuff via HiveMind. Of course, that's coming from a HiveMind committer. :-) -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Thursday, June

Re: custom namespace

2006-06-15 Thread Norbert Sándor
I would love such an extension. It would be great if the user would not "know" about internal components and pages. Regards, Norbi James Carman wrote: In this case, HiveMind would only be necessary if you wanted to override the default namespace of the library. Library "authors" should be kn

Re: custom namespace

2006-06-15 Thread Geoff Longman
I'm not putting down HM in any way. It is the *enabler* and the *glue* in T4 today. I see resistance here at work to Tapestry 4 and a lot of it has to do with being forced to learn HM to do what appear to be mundane tasks. One example is Services. They were very simple to create and add to an app

Re: custom namespace

2006-06-15 Thread Bryan Lewis
+1 for that rant. Geoff Longman wrote: > Good God No! > > While I love the idea of auto discovery of libraries, every time I see > a quick suggestion to use Hivemind I cringe. > > IMO HM is *required* to do too many everyday things in T4. HM should > be relegated to use when the *implementation

RE: custom namespace

2006-06-15 Thread James Carman
So, you want Tapestry to switch to convention-oriented programming (a la Rails)? -Original Message- From: Bryan Lewis [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 3:20 PM To: Tapestry users Subject: Re: custom namespace +1 for that rant. Geoff Longman wrote: > Good God No!

Re: custom namespace

2006-06-15 Thread Geoff Longman
COP cool acronym. What is wrong with conventions? (I have never used Rails) Geoff On 6/15/06, James Carman <[EMAIL PROTECTED]> wrote: So, you want Tapestry to switch to convention-oriented programming (a la Rails)? -Original Message- From: Bryan Lewis [mailto:[EMAIL PROTECTED] Sent: T

RE: custom namespace

2006-06-15 Thread James Carman
Nothing's wrong with conventions. Tapestry already uses them somewhat (page names map to classnames in the default page package). Rails gets a *lot* done by just using conventions. -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 3:30 PM T

Re: custom namespace

2006-06-15 Thread Geoff Longman
I wonder how hard it is to break from the conventions in Rails. I would expect that with Tapestry+HM it would be pretty easy. Tapestry, in some cases, has too many conventions. Look at the rules for finding pages and components. If you add em all up there are more than 10. (10!!) We, and I'm su

Re: custom namespace

2006-06-15 Thread Geoff Longman
Geez, I need to socialize more here. We have 14 developers. Geoff On 6/15/06, Geoff Longman <[EMAIL PROTECTED]> wrote: I wonder how hard it is to break from the conventions in Rails. I would expect that with Tapestry+HM it would be pretty easy. Tapestry, in some cases, has too many conventions

RE: custom namespace

2006-06-15 Thread James Carman
So, what kind of conventions do you have in mind for Tapestry to enforce? -Original Message- From: Geoff Longman [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 3:48 PM To: Tapestry users Subject: Re: custom namespace Geez, I need to socialize more here. We have 14 developers. G

Re: custom namespace

2006-06-15 Thread Geoff Longman
I don't think it's a matter of enforcement per se. If the right choices are made in development no enforcement is needed to adhere to a convention as it's just the way you do it. Not much enforcement is needed in the custom HM case - it's custom! The developer is stepping out from under the umbrel

Re: custom namespace

2006-06-15 Thread Bryan Lewis
Dunno about that. I haven't tried Rails and am not familiar with the implications of COP. I was agreeing with the sentiment against using HiveMind for everyday things. I had a perfectly good set of applications running in Tapestry3 last year and thought I was one of those lucky developers that d

Re: tapestry tab component

2006-06-15 Thread Sam Gendler
I just clicked on it. It is alive again. --sam On 6/15/06, ZedroS Schwart <[EMAIL PROTECTED]> wrote: The link is dead. But I would love to be able to see the demo. On 6/14/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: > > Oh no, that's all the tacos dev work. Specifically I think Sam Gendler

Table component problem

2006-06-15 Thread Ryan Cuprak
Hello, I am having a extremely weird problem with the sort on contrib table. It worked perfectly fine (as far as I can tell) until I upgraded to Tapestry 4.0.2 from 4.0.1. When I click on sort I get an exception: Either the tableModel parameter or both source and columns parameters must be spe

Re: Table component problem

2006-06-15 Thread Ryan Cuprak
Hello, As is usually the case right after sending the email below I figured out my problem. I had spent over an hour digging and was quiet perplexed. I needed to add a 'Persist' annotation to the 'get' method used by the source. I did call the set method in the pageBeginRender - which do

Re: does anyone try JFreeChart using Tapestry 4 ?

2006-06-15 Thread Peter Dawn
i have it working with 3.0.3. not sure if it would have any changes with 4 or not. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: does anyone try JFreeChart using Tapestry 4 ?

2006-06-15 Thread Dwi Ardi Irawan
i think i've found one http://www.javaeye.com/pages/viewpage.action?pageId=830 CMIIW http://dwiardiirawan.blogs.or.id Peter Dawn wrote: i have it working with 3.0.3. not sure if it would have any changes with 4 or not. - T