Re: DatePicker error

2006-09-26 Thread Hajaansh
Hi again D&J, I am just looking at the versions I have. I am using Hibernate 3.1.3. Are you using Java 1.5? I saw in the readme for hibernate that I have: xerces-2.6.2.jar (2.6.2) - SAX parser - runtime, required for JDK < 1.4 So maybe the problem could be that I am using JDK 1.5... any though

RE: tapernate NonUniqueObjectException

2006-09-26 Thread Schulte Marcus
Can't you just check in your login listener whether the user already has a valid session? Wouldn't that help? Generally, the problem seems to be, that your code executes before the page-setup involving the merge-back of properties takes place. Do you load your objects in a normal listener? Or in Pa

Re: Components containing dynamic number of component

2006-09-26 Thread Mael Caldas
Hi Jacob, I Think you have to work on a model that represents better your column... With the the For Component, and a little of polymorphism applied to components and its models you can do It easily. I don't think you have to work with AbstractComponent, RenderBody, or that kind of thing... A tip

tapernate NonUniqueObjectException

2006-09-26 Thread Moritz Gmelin
Hi List Members, I am having troubles setting up an application with tapernate. When the user is logging into my application, a Page "ExtPage" is injected, initialized, some persistent objects are loaded and the page is returned to the user. Those persistant object are made persistant with t

Re: Calling a page with parameters from other page

2006-09-26 Thread Daniel Castro
I found a solution, dont know if there is other way to do it but I get the page, set the fields and throw the page inside a PageRedirectException On 9/26/06, Daniel Castro <[EMAIL PROTECTED]> wrote: The idea is to load a page to edit the informations associated with a product. So I have the sea

Re: What does your project directory structure look like?

2006-09-26 Thread Patrick Moore
I have found the Sysdeo plugin works pretty well. I have found some hair pulling moments. But the key seems to have been making sure to have your project sources and projects included in the Tomcat path. In eclipse, look under Windows|Preferences...|Tomcat w.r.t maven I use it a lot but I am alwa

Re: Calling a page with parameters from other page

2006-09-26 Thread Daniel Castro
The idea is to load a page to edit the informations associated with a product. So I have the search page with a link to edit each row of the result on an edit page. If i click this link I will load a page form with the actual informations filling the form. The point is, how to do that? The DTO th

Re: Calling a page with parameters from other page

2006-09-26 Thread D&J Gredler
If I'm understanding the question correctly, you probably want to do: @InjectObject( "engine-service:external" ) public abstract IEngineService getExternalService(); ExternalServiceParameter param = new ExternalServiceParameter( pageName, new Object[] { ... } ); ILink link =

Components containing dynamic number of component

2006-09-26 Thread jake123
Hi, I am pritty new to tapestry and I am working with tapestry 4.0.2. I have a question about custom components. I have a side column in my application that has a few lines of html and then it should contain one or many components depending on where in the application I use it. my question is: How

Calling a page with parameters from other page

2006-09-26 Thread Daniel Castro
Guys, help me again. I have 2 pages. The problem is to call the method activateExternalPage on page B. This is what i have done so far, but no sucess. The page B loads without the values passed on the ExternalCallback. What is missing? - Page A @InjectPage("Edit") public ab

Re: DatePicker error

2006-09-26 Thread D&J Gredler
I'm using Tap4 with Hibernate 3.1.2 without a problem and I see the following XML-related JARS in my lib directory: dom4j 1.6.1, saxpath 1.0FCS, Xerces Impl 2.6.2, XML Parser APIs 2.2.1. Not sure how you would find out what the official dependencies are. On 9/26/06, Hajaansh <[EMAIL PROTECTED]> w

Re: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Patrick Moore
o.k. so it doesn't have to work... It doesn't look like there is any way to get to the Hivemind Registry until it has completely initialized ... which is too late. So I am going to have my stateObjectFactory check to see if it can get to the registry which is a little bit hacky and if it can't the

Re: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Patrick Moore
I have given myself 1 more hour before I use my fallback solution. But it is just one of those things that you say "there *has* to be a way to make it work!" :-) -Pat On 9/26/06, Ben Dotte <[EMAIL PROTECTED]> wrote: I remember spending an afternoon with a coworker once trying to do the same th

Re: DatePicker error

2006-09-26 Thread Hajaansh
Ah, so that is the reason that no one answered :-) That might have been a good tip from you though! I have found a Xerces 2.6.2 jar which came with hibernate and I dont really have a clue if Tapestry (4.0) is using that one. I have also found one which came with my Java 1.5 installation. Any wa

Re: Doubt about implementing Ajax request

2006-09-26 Thread Daniel Castro
I solved the problem. now instead of having two components that intereact each other, I have a single component. Muche easier :D Thanks everyone for the help. We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confide

Re: DatePicker error

2006-09-26 Thread D&J Gredler
I really have no idea, but maybe you have multiple versions of Xerces running around on your classpath, or just a single (wrong) version? These kinds of errors are always hard to debug... On 9/26/06, Hajaansh <[EMAIL PROTECTED]> wrote: No one knows what the problem could be? Each time a restart

RE: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Ben Dotte
I remember spending an afternoon with a coworker once trying to do the same thing, feed a fake request/session to Tapestry for some similar reason. After a few hours we decided it was a silly idea and gave up on it... but good luck! Ben -Original Message- From: Patrick Moore [mailto:[EMAI

Re: DatePicker error

2006-09-26 Thread Hajaansh
No one knows what the problem could be? Each time a restart Tomcat it seems to be fine. Maybe it is so obvious no one is responding? On 9/19/06, Hajaansh <[EMAIL PROTECTED]> wrote: Sorry, the error message was formatted strangely the last time. This time I hope it is better... Any ideas anyone?

Re: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Patrick Moore
Hi Ben -- What I am trying to do is preload some sample data, *as if* a user has entered it. So I want to have a Session object that I am going to programatically configure. Also I will be doing some background processing on behalf of a user so I will need to have a session object for that case a

RE: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Ben Dotte
I hope that works for you, unfortunately I'm out of ideas on this one. I'm not sure what you're trying to do makes sense, if I understand this correctly. It sounds like you are trying to directly access a session-scoped ASO as your eager-loaded service gets created, correct? The problem is you aren

Re: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Patrick Moore
I ran across an email thread that just suggested to create the WebRequest/WebSession objects. So I am going to try that. If anyone has a better idea let me know. On 9/26/06, Patrick Moore <[EMAIL PROTECTED]> wrote: Hi Ben --- thanks for this info. I just tried what I think is your suggestion.

RE: Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
Okay I added some delays in I see what's happening. My border solution does work (although the Shell solution intrigues me, more details anyone?) The thing is, let's say you have an OK button that, per say, saves your entry. That saving wouldn't be included in the next pages render time since y

Re: Timing processing time of a page

2006-09-26 Thread Lutz Hühnken
Oh, I think all the database access and other stuff you mentioned is done in between the begin render end end render. It clearly looks like it from the debugging output, there's a lot more going on than just "rendering". But the whole @Shell think sounds even easier anyway, maybe we should give t

Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread Patrick Moore
O.k. I voted ! On 9/26/06, D&J Gredler <[EMAIL PROTECTED]> wrote: The Maven2 license clickthrough functionality that Jesse mentioned will allow code that integrates with LGPL-licensed projects (like Hibernate) to be distributed under the official Tapestry moniker -- think Tapernate, Cognition,

Re: Ajax Double Combo example?

2006-09-26 Thread Jesse Kuhnert
Hah! I'm glad you got it working.. There was no stupidity on your part. It is my own failing...If I'm going to make dojo be such an integral part of the framework then I need to make sure I'm able to properly report situations where the library may be b0rken by something like this with warning me

Re: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Patrick Moore
Hi Ben --- thanks for this info. I just tried what I think is your suggestion. I added the ApplicationInitializer interface to my demo.Samples service and added this method: public void initialize(HttpServlet arg0) { try { init(); } catch (IOException e) {

Re: Ajax Double Combo example?

2006-09-26 Thread mhelmstetter
Oh boy, do I feel stupid. Well it turns out that I did have javascript errors, "dojo is not defined". Somehow I've managed to ignore the javascript errors becuase I've been getting extraneous errors lately since I started using FoxyProxy. Anyhow, it turns out that I didn't have the servlet-mapp

RE: Timing processing time of a page

2006-09-26 Thread James Carman
I'm on tap4, too. Maybe it's because I'm using a @Shell component? I always just thought it happened automagically. :-) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:32 PM To: users@tapestry.apache.org Subject: RE: Timing pr

RE: Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
But I think renderComponent() would just be the rendering time of the page similar to what I'm doing in the Border component? Maybe I should put some slow down's in to double check. -Original Message- From: Lutz Hühnken [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:38 PM

Re: Timing processing time of a page

2006-09-26 Thread Jesse Kuhnert
I think you just need to use the @Shell component. On 9/26/06, Lutz Hühnken <[EMAIL PROTECTED]> wrote: I believe if your set the log level for tapestry to "debug", as in putting a line like "log4j.logger.org.apache.tapestry=debug" in your log4j.properties, it will output such information. Like

Re: Timing processing time of a page

2006-09-26 Thread Lutz Hühnken
I believe if your set the log level for tapestry to "debug", as in putting a line like "log4j.logger.org.apache.tapestry=debug" in your log4j.properties, it will output such information. Like 19:30:56,135 DEBUG BaseComponent:89 - Begin render Home 19:30:57,807 DEBUG BaseComponent:95 - End render

RE: Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
James, Does this need to be enabled somehow? I don't see it in the HTML source. tap 4. Thanks, Greg -Original Message- From: James Carman [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:25 PM To: 'Tapestry users' Subject: RE: Timing processing time of a page Look at

Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread Jesse Kuhnert
Yes, please everyone if you can spare the time to go there and click on the "vote for it link" we would all be very grateful. Having some of these items as easily accessible Tapestry sub-projects would have to be a good thing for everyone in the community. Go vote! On 9/26/06, D&J Gredler <[EMAI

RE: Timing processing time of a page

2006-09-26 Thread James Carman
Look at the bottom of the generated source. It will spit out the processing time automatically for you. For example: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 1:19 PM To: users@tapestry.apache.org Subject: Timing processin

Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread D&J Gredler
The Maven2 license clickthrough functionality that Jesse mentioned will allow code that integrates with LGPL-licensed projects (like Hibernate) to be distributed under the official Tapestry moniker -- think Tapernate, Cognition, Honeycomb, BeanForm, etc. If you're interested in getting this kind

Timing processing time of a page

2006-09-26 Thread Greg.L.Cormier
Hi. I'm wondering if anyone has done any simple timing of the processing for a page? I've changed my border slightly so at the start it creates a Date, and at the end creates another and determines the difference. However, I think this only works out to be the render time of the page itself, n

Re: Ajax Double Combo example?

2006-09-26 Thread Jesse Kuhnert
Yeah, do a view source on your rendered page. You'll find a section towards the bottom that attempts to do the event connection on your html select list. Do you see any problems in this area? If you have FireBug installed you can do a lot more, even type in javascript into the console that will b

Re: Ajax Double Combo example?

2006-09-26 Thread mhelmstetter
Yeah, my bad, I tried that shortly after posting the message and still...no luck. And yes, it's all lower case "onchange". :-) Any other ideas? Jessek wrote: > > I believe on a native html select element the proper event to listen for > is > "onchange". That's why I've not hard coded any of t

Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread Patrick Moore
oh I understand about posting a patch in JIRA... but its not my code! it is Kent's code. I figure you know him better than I. Or maybe he is on the list?

Re: Ajax Double Combo example?

2006-09-26 Thread Jesse Kuhnert
I believe on a native html select element the proper event to listen for is "onchange". That's why I've not hard coded any of the event names into Tapestry itself...Wayy too much potential for me f-ing things up ;) On 9/26/06, mhelmstetter <[EMAIL PROTECTED]> wrote: Thanks for the pointer Jess

Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread Jesse Kuhnert
I'd like to see a few bits and pieces of different projects make their way into Tapestry directly - or as s sub-project as well. Most of them are currently waiting for Daniel's great work on getting this maven2 click through functionality working so that we can handle the varying licensing issues

Re: Equivalent of JSP Includes?

2006-09-26 Thread Patrick Moore
I would put in a vote for something like the Dynamic Block making it into the main tap release. I have been wondering how to do this myself!

RE: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Ben Dotte
Hi Pat, We ran into a similar situation and found a workable (but not pretty) solution. First, you need to contribute to the ApplicationInitializers contribution point as described in this thread: http://article.gmane.org/gmane.comp.java.tapestry.user/33013 But in this case you'll want to make

Re: request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread D&J Gredler
Watching with interest... On 9/26/06, Patrick Moore <[EMAIL PROTECTED]> wrote: Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing som

request for components to be rolled into the main release...(jumpstart, tacos, contrib, etc)

2006-09-26 Thread Patrick Moore
Hi there -- Please consider this a vote to roll the tacos and contrib components into the main release. Having lots of scattered component libraries around means that newbie developers like me start implementing something that has already been done before. For example, I just found the jumpstart

Re: DropdownDatePicker recently broken (4.1-SNAPSHOT) ?

2006-09-26 Thread Andy Pahne
I also tried a translator: /** * Tapestry-Komponente: Formularfeld Ankunft (Dojo Widget) */ @Component( bindings = { "value=ognl:arrivalDate", "validators=ognl:{beans.required, beans.arrivalDateValidator}", "translator=translator:date,patt

DropdownDatePicker recently broken (4.1-SNAPSHOT) ?

2006-09-26 Thread Andy Pahne
I am playing around with 4.1-SNAPSHOT, trying a few things. I had a DropdownDatePicker that was working just fine but recently stopped working: @Component( bindings = { "value=ognl:arrivalDate", "validators=ognl:{beans.required, beans.arrivalDateValidator}"

Re: Ajax Double Combo example?

2006-09-26 Thread mhelmstetter
Thanks for the pointer Jesse. I managed to get my stuff ported over to Tapestry 4.1, but I'm still having trouble. I basically copied the code from your TimeTracker example and attempted to change the Autocompleter to instead be a PropertySelection. Somehow my listener is still not getting call

problems getting a session state object on start up

2006-09-26 Thread Patrick Moore
Hi there -- I have a hivemind service that loads test data into my app. I use the EagerLoad feature of hivemind to trigger this dataload. However, I get this exception: java.lang.IllegalStateException: The Infrastructure service has not yet been initialized. org.apache.tapestry.services.impl.Inf

Re: dojo 0.3.1/tacos 4 makes ie sick

2006-09-26 Thread Inge Solvoll
Probably not... Haven't changed my djConfig for a while. That's the problem, then? On 9/26/06, andyhot <[EMAIL PROTECTED]> wrote: Inge Solvoll wrote: > Thanks guys! > > I downgraded to tacos 4 beta 1 and the dojo version included there, > and my > system went back to normal page load times. > >

Re: problems getting a session state object on start up (resend ..? )

2006-09-26 Thread Patrick Moore
Hi there --I have a hivemind service that loads test data into my app. I use the EagerLoad feature of hivemind to trigger this dataload. However, I get this exception:java.lang.IllegalStateException: The Infrastructure service has not yet been initialized. org.apache.tapestry.services.impl.Infrastr