Re: Rendering a method once when entering a page

2006-01-30 Thread Daniel Lydiard
http://jakarta.apache.org/tapestry/UsersGuide/events.html PageAttachListener/PageBeginRenderListener seem to be the choices. Or even @InitialValue. Be careful with PageBeginRender, since it's called twice on form submittal, so depending on your situation you might need to check getRequestCy

Re: Rendering a method once when entering a page

2006-01-30 Thread Jesse Kuhnert
PageBeginListener interface with pageBeginRender() method? On 1/30/06, Joseph Faisal Nusairat <[EMAIL PROTECTED]> wrote: > > Kind of like an external link. I want to go into the page, and i want a > method called to basically set up some things. > > In this case i want to set up stuff pulled from

Rendering a method once when entering a page

2006-01-30 Thread Joseph Faisal Nusairat
Kind of like an external link. I want to go into the page, and i want a method called to basically set up some things. In this case i want to set up stuff pulled from the session. However i dont really want to use an external link, since its really not one. Its not passing any parameters to it.

Re: Injecting session-stored object: Duplicate method

2006-01-30 Thread Howard Lewis Ship
I'd need to see your java code to figure out why there was a problem. On 1/30/06, Martin Carel <[EMAIL PROTECTED]> wrote: > Hi! > > Thanks for the feedback Raul. It worked fine with the @InjectState > annotation. I still don't understand why I got this "duplicate method" > error in the first place

RenderBlock / ValidField Labels

2006-01-30 Thread Mike . Barber
Ok, so I've headed down the RenderBlock path for dynamic components. I'm getting some success, and I'm beginning to see the light, but I'm not sure how to handle the issue of setting the label for a ValidField. How do you change the label? In my page's .java file I have a method that returns t

Re: Rendering form submit response with the same page.

2006-01-30 Thread Daniel Lydiard
Does TestPage.page exist? I've accidentally used the InjectPage annotation with the Java class name instead of the .page name. But I'm pretty sure you get an exception, can't remember off hand. I'm using InjectPage with no problems in my app, so I'm just throwing out guesses :P. - Or

Re: Rendering form submit response with the same page.

2006-01-30 Thread Jesse Kuhnert
Hmm,Are you referencing the same exact page in both instance, ie is it logically the same page and you're just hoping for a seperate instance? I've not had an opportunity to do anything fancy like page injection yet to be honest. Only been using IRequestCycle.getPage(String name), but the inje

Re: unexpected exception

2006-01-30 Thread Howard Lewis Ship
"Parameter parameter is of type java.lang.String which is not compatible with org.apache.tapestry.engine.DirectServiceParameter." The third parameter to the getLink() method (for the direct service) must be a DirectServiceParameter, not a string. I'm not sure how Tapestry could phrase it any clea

Re: Rendering form submit response with the same page.

2006-01-30 Thread Aj Gregory
Yep, listener is getting called and watching in debugger shows that getTestPage() == "this" instead of getting a new page. -Aj Mat Gessel wrote: Your code looks like a typical, valid use case. It would seem that doSubmit() is returning null, causing the originating page to be redisplayed. a)

RE: Using LinkSubmit to update a required field's property

2006-01-30 Thread Mark Stang
If the field is required, then why is it empty. What property are you trying to set? I am way confused -Original Message- From: Aj Gregory [mailto:[EMAIL PROTECTED] Sent: Mon 1/30/2006 3:37 PM To: Tapestry users Subject: Using LinkSubmit to update a required field's property I ha

Re: Using LinkSubmit to update a required field's property

2006-01-30 Thread Jesse Kuhnert
There probably is a workaround for it, I don't personally know what it is though.. I do know it's a feature that will/should be available in tapestry 4.1(along with a whole crapload of others I'm sure if everything works out ) j On 1/30/06, Aj Gregory <[EMAIL PROTECTED]> wrote: > > I have a form

Using LinkSubmit to update a required field's property

2006-01-30 Thread Aj Gregory
I have a form with a required field, but I'd also like to use LinkSubmit to set the property associated with the field and submit the form... When I click on the link the property is updated correctly and the form is submitted, but the validation on the field fails since the field is empty...

Re: tapestry not really component based?

2006-01-30 Thread Mind Bridge
Hi, Just to mention that I have been using this approach for a long time. An application created by my current company is now implemented like this, for example. That includes both read-only and read-write (form) views of the various objects. But by all means, do share any issues that you enc

Re: Rendering form submit response with the same page.

2006-01-30 Thread Mat Gessel
Your code looks like a typical, valid use case. It would seem that doSubmit() is returning null, causing the originating page to be redisplayed. a) verify that your listener is being called b) verify that getTestPage() is not returning null -= Mat On 1/30/06, Aj Gregory <[EMAIL PROTECTED]> wrote

Re: tapestry not really component based?

2006-01-30 Thread Leonardo Quijano Vincenzi
Ha... you're right! RTFM I guess ;) Of course when I need to implement it I'll tell people if there are any problems ;). -- Ing. Leonardo Quijano Vincenzi DTQ Software Mind Bridge wrote: What's wrong with having your object returning an IRender and then either rendering it in code or via th

Re: tapestry not really component based?

2006-01-30 Thread Mind Bridge
What's wrong with having your object returning an IRender and then either rendering it in code or via the Delegator component? I believe it does exactly what you describe, only in a better way. Leonardo Quijano Vincenzi wrote: You do have an argument on that kind of Swing development. But usual

Re: tapestry not really component based?

2006-01-30 Thread Jesse Kuhnert
Don't get me wrong. I think I can see how Block/RenderBlock may not be quite as obvious to use based on recent mailing list posts I've responded to. I just don't have time to gather requirements/use cases. Ie, is this a matter of documentation, or is there something else missing that is required t

Re: tapestry not really component based?

2006-01-30 Thread Robert Zeigler
Interesting; I'm already doing this with tapestry 3.0.3. I have entire pages and varying-length forms, the contents of which are highly dynamic and determined at runtime based on the type of object being rendered (upload fields, multiple text fields, text, radio buttons, checkboxes, date picker

Re: tapestry not really component based?

2006-01-30 Thread Jesse Kuhnert
Hmm well...I could agree that doing things like what are done with Block and RenderBlock could be a little easier, but it's not on my radar screen. I'm mostly coding exactly what I need to build my own employers products and nothing more.. ..(maybe a little bit more, but not too much..) Of course

Re: tapestry not really component based?

2006-01-30 Thread Leonardo Quijano Vincenzi
You do have an argument on that kind of Swing development. But usually dynamic component generation is used when you need to do some kind of reflection-based page generation. For example, if I want to do a simple-CRUD app (like the Trails guys are doing, I think), I might need to present differ

Re: tapestry not really component based?

2006-01-30 Thread Jesse Kuhnert
This argument can really drive you nuts sometimes :) I don't think Howard needs to blog about this, but I think I have a good example that I can use against the very frameworks that purport to be more like swing mvc Basically, tapestry is as close as you can get to a real component model, at

Re: tapestry not really component based?

2006-01-30 Thread Moshiul Shovon
I am interested in this feature: load components dynamically. In the same page, I need to load diff sets of components for diff users. Thanks ... Shovon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: tapestry not really component based?

2006-01-30 Thread Leonardo Quijano Vincenzi
Ok, some issues that concern me currently with Tapestry related to this: 1) Component IDs. They're still not clear. Using "idPath" to uniquely identify a component still seems like a hack, and using fixed literals such as "" doesn't work when reusing components. There are no ids for looped com

Re: tapestry not really component based?

2006-01-30 Thread Jesse Kuhnert
Hehehe. Quite right...I just have to manage my time a lot closer these days and don't see a direct benefit (to myself) of trying to debate or discuss complicated internal tapestry design aspects unless it's with people that are already very familiar with the overall picture...Not trying to be an as

RE: tapestry not really component based?

2006-01-30 Thread Patrick Casey
That was my understanding as well, although the last time I got into a discussion about the topic with the Tacos crew there was a degree of "wait and see ... we may be more clever than you think". --- Pat > -Original Message- > From: Leonardo Quijano Vincenzi [mailto:[EMA

Re: Images from DB

2006-01-30 Thread Jason L. Buberel
Skydiver- Lemme put together a quite blog entry on this - I just put the finishing touches on such a system - based on generated images (jfreechart), hibernate + postgres - that uses a customer IEngineService to do it. See the output here: http://www.altosresearch.com/altos/app?s=median&ra=c&q=a

Re: tapestry not really component based?

2006-01-30 Thread Leonardo Quijano Vincenzi
Jesse, correct me if I'm wrong, but an Ajax request involves a whole page render, right? From that page, the updated components are retrieved and sent through HTTP. That's whole page rendering, but partial update. Right? (by the way, I'm in the Tacos crew :P - just haven't been for such a lon

Re: Rendering form submit response with the same page.

2006-01-30 Thread Aj Gregory
Thanks for the suggestion! I gave it a shot but the result was the same. -Aj Jesse Kuhnert wrote: What about using IRequestCycle to set the page instead? Ie public void doSubmit(IRequestCycle cycle) { cycle.activate(getTestPage()); ? } On 1/30/06, Aj Gregory <[EMAIL PROTECTED]> wrote:

Re: tapestry not really component based?

2006-01-30 Thread Jesse Kuhnert
Maybe what you are looking for is a way to interact with hivemind services instead of directly through the web layer? I've had something for this for a while now but can't bring myself to add it into tacos until I'm ready to support it. We're also sort of debating some of the efficiencies of json/

unexpected exception

2006-01-30 Thread Gerald Schöffel
Hi ! While doing some research to solve this nasty https/http-switching problem I have, I got to a point where a 'strange' exception is thrown. MyBasePage implements PageValidateListener: public void pageValidate(PageEvent event) { String url = event.getRequestCycle().getService().getLink

Re: tapestry not really component based?

2006-01-30 Thread Howard Lewis Ship
If partial rendering was not possible, Tacos would not exist. But it does, which indicates that rendering partial pages is possible. It's all just objects that implement methods, so partials are completely doable. The Tacos crew, including Jesse, have that working for 4.0. Jesse is working on i

Re: tapestry not really component based?

2006-01-30 Thread Leonardo Quijano Vincenzi
Maybe I'm just too new on the list, but why the flyweight pattern is not applicable in this case ? My main concern is of Tapestry not having a runtime component model. That way you don't have to render the whole page to get a single AJAX component. Am I wrong ? -- Ing. Leonardo Quijano Vincenz

fValidate for Tapestry

2006-01-30 Thread Jimmi Dyson
I have just started a project on java.dev.net to integrate fValidate with Tapestry, fValidate being a great client-side JavaScript validation library. It is in the process of being approved, but if anyone is interested in the source code its in CVS. The project URL is http://tapestryfvalidate.dev.

RE: Schedule a task when servlet loads on server.

2006-01-30 Thread Gentry, Michael \(Contractor\)
You can use Quartz (http://www.opensymphony.com/quartz/) for scheduling. To be notified with the servlet loads, add a listener in your web.xml file: com.foo.ApplicationListener Also, you probably want your application to startup on load in web.xml: YourName org.apache.tapestr

Re: Rendering form submit response with the same page.

2006-01-30 Thread Jesse Kuhnert
What about using IRequestCycle to set the page instead? Ie public void doSubmit(IRequestCycle cycle) { cycle.activate(getTestPage()); ? } On 1/30/06, Aj Gregory <[EMAIL PROTECTED]> wrote: > > I have a page which I want to use to display a form and some results > after the form is submitted. >

Re: tapestry not really component based?

2006-01-30 Thread Geoff Longman
I know why the LOLs came. I and many others have seen this discussion rise and fade many times over the last 5 years or so. So many times that I don't have the energy to join the debate anymore. I personally don't (need/want/care about) this behaviour. Things like bugs/enhancements posted on the l

Rendering form submit response with the same page.

2006-01-30 Thread Aj Gregory
I have a page which I want to use to display a form and some results after the form is submitted. After the form listener does some work I want to set a value on the page and show the same page again. To do this I created a listener on the page class and inject a page of the same type as the

Re: tapestry not really component based?

2006-01-30 Thread Mike . Barber
I don't know why LOLs got dropped on you, but maybe this has something to do with it. Howard Ship posted this about a week ago. I'm still scratching my head over it... "The scalability that Tapestry gets because of its rigid page and component structure is one of its clear differentiators; som

Re: Strange exception in Tomcat log file. Probably related with HiveMind

2006-01-30 Thread Howard Lewis Ship
Obviously something related to class loading inside Tomcat; beyond that, can't say. On 1/28/06, Tsvetelin Saykov <[EMAIL PROTECTED]> wrote: > Hi All, > > I have received the following exceptions in Tomcat log file in my Tapestry > 4.0 application. I think it is related with HiveMind registry but d

RE: Announcement: condense.it - a tapestry-based website - goes live

2006-01-30 Thread Joe Trewin
Thanks Andreas We did actually write a custom exception reporter to handle this, and then helpfully forgot to enable it in production. Thanks for pointing it out. -Original Message- From: Andreas Andreou [mailto:[EMAIL PROTECTED] Sent: 27 January 2006 19:14 To: Tapestry users Subject: R

RE: Announcement: condense.it - a tapestry-based website - goes live

2006-01-30 Thread Joe Trewin
Hi Alan, Thanks for the information - we'll look into it (seems to be Konquerer not correctly parsing the CSS). -Original Message- From: Alan Chandler [mailto:[EMAIL PROTECTED] Sent: 28 January 2006 17:58 To: tapestry-user@jakarta.apache.org Subject: Re: Announcement: condense.it - a ta

RE: DatePicker in IE: operation aborted

2006-01-30 Thread Schabek Łukasz
It is an IE bug only, reported and solved here: http://issues.apache.org/jira/browse/TAPESTRY-788 Just replace writeInitializationScript method. -Original Message- From: Martin Carel [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 5:02 PM To: Tapestry users Subject: DatePicker

RE: DatePicker in IE: operation aborted

2006-01-30 Thread Schabek Łukasz
This is an IE bug only, reported here http://issues.apache.org/jira/browse/TAPESTRY-788 Replace org.apache.tapestry.util.PageRenderSupportImpl.class with file in zip. -Original Message- From: Martin Carel [mailto:[EMAIL PROTECTED] Sent: Monday, January 30, 2006 5:02 PM To: Tapestry us

Re: Schedule a task when servlet loads on server.

2006-01-30 Thread Jesse Kuhnert
I've been using quartz in hivemind very happily for a while. It's pretty darn easy to add it in with hivemind's builderFactory ;) On 1/30/06, Steve Shucker <[EMAIL PROTECTED]> wrote: > > I like Spring's handling of timers. > > > http://static.springframework.org/spring/docs/1.2.x/reference/schedul

Re: DatePicker in IE: operation aborted

2006-01-30 Thread Jesse Kuhnert
I'd be very interested in hearing more about the DatePicker issues. If you have the time, microsoft has a "script debugger" program you can install (you can find it on a standard microsoft office installer disk), that will give you a debugging environment for the page in question, and hopefully pro

Re: Images from DB

2006-01-30 Thread Raul Raja Martinez
Is there a repository for the sources or not yet? Ron Piterman wrote: By the end of februar we are planning to release (opensource, apache license) a tapestry library for handling files, both up- and downloads), which takes care of many things, and even enables some (basic) image manipulation

DatePicker in IE: operation aborted

2006-01-30 Thread Martin Carel
Hi ! I have issues with the DatePicker component using Tap4. Works fine in Firefox, but I got the "operation aborted" popup in IE, which prevents from showing the page. Thus, this is critical for our application. When I have only the DatePicker component in my page, it works fine. But when I

IllegalStateException

2006-01-30 Thread Bryan Lewis
After upgrading our Tap3 apps to Tap4, I'm seeing an "IllegalStateException: setAttribute: Session already invalidated". (Stack trace below.) It happens whenever a user manually logs out, when we call getRestartService().service(getRequestCycle()). It's not really a problem because it's only

Re: Tapidea release 0.2

2006-01-30 Thread Frank
I do not think I disabled it. Attached is the log. Thanks Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tapidea release 0.2

2006-01-30 Thread Hugo Palma
I think i see what the problem is. Did you disable the web.xml deployment descriptor when running the wizard ? There's a bug in the plugin that shows exactly that error when you disable the web.xml descriptor. It will be corrected in the next release of course. In the mean time just don't disable i

RE: Schedule a task when servlet loads on server.

2006-01-30 Thread Steve Shucker
I like Spring's handling of timers. http://static.springframework.org/spring/docs/1.2.x/reference/scheduling.htm l They handle both TimerTask and quartz. I've only used TimerTask myself, but it works flawlessly. -Steve -Original Message- From: Detlef Schulze [mailto:[EMAIL PROTECTED]

Re: Tapidea release 0.2

2006-01-30 Thread Hugo Palma
Ok, the appender FILE configures the log file location among other things. So you should find an idea.log file in your $SYSTEM_DIR$/log/ directory. On 30/01/06, Frank <[EMAIL PROTECTED]> wrote: > > Yes, here is the contents > > > > > > > > > > > > > >

Re: Tapidea release 0.2

2006-01-30 Thread Frank
Yes, here is the contents At 10:21 AM 1/30/2006, you wrote: Do you have a log4.xml file in your $ID

Re: Tapidea release 0.2

2006-01-30 Thread Hugo Palma
Do you have a log4.xml file in your $IDEA_HOME/bin directory ? On 30/01/06, Frank <[EMAIL PROTECTED]> wrote: > > I just tried installing on my windows amchine and it works fine. > It does not work on my Mac. > I am thinking that maybe there is a permission problem. > I have not been able to find t

Re: Tapidea release 0.2

2006-01-30 Thread Frank
When I tried to create a Tapestry app in windows xp. I get this error. Thanks Frank Error creating Tapestry module java.lang.NullPointerException at org.intellij.tapestry.module.TapestryModuleBuilder.createWebXml(TapestryModuleBuilder.java:127) at org.intellij.tapestry.module.TapestryModule

Re: Tapidea release 0.2

2006-01-30 Thread Frank
I just tried installing on my windows amchine and it works fine. It does not work on my Mac. I am thinking that maybe there is a permission problem. I have not been able to find the idea.log file. Thanks Frank At 06:43 PM 1/29/2006, you wrote: You should have an idea.log file in you system dir.

Re: [OT] Schedule a task when servlet loads on server.

2006-01-30 Thread Christian Haselbach
Quoting Eric Schneider <[EMAIL PROTECTED]>: > Check out TimerTask. > > http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimerTask.html > > If you need something more sophisticated (cron like) check out Quartz. > > http://www.opensymphony.com/quartz/ Both are nicely integrated in Spring. http://s

Re: JSF & Seam vs Tapestry & HiveMind

2006-01-30 Thread Leonardo Quijano Vincenzi
I think probably Hivemind/Tapestry can do it if we strengthen its session model. For example, including "conversation-scoped" ASOs, another way of building ASOs rather than the StateObjectFactory, etc. -- Ing. Leonardo Quijano Vincenzi DTQ Software Ivano wrote: AFAIK Seam's mission is to "fil

RE: Schedule a task when servlet loads on server.

2006-01-30 Thread Detlef Schulze
You can modify the init() method of the servlet and use something like Quartz (http://www.opensymphony.com/quartz/) to schedule the jobs. Hth, Detlef -Original Message- From: Frank [mailto:[EMAIL PROTECTED] Sent: Montag, 30. Januar 2006 15:45 To: tapestry-user@jakarta.apache.org Subjec

Re: Schedule a task when servlet loads on server.

2006-01-30 Thread Eric Schneider
Check out TimerTask. http://java.sun.com/j2se/1.4.2/docs/api/java/util/TimerTask.html If you need something more sophisticated (cron like) check out Quartz. http://www.opensymphony.com/quartz/ Cheers, Eric On 1/30/06, Frank <[EMAIL PROTECTED]> wrote: > Hi, > > How do I make a scheduled task, t

Schedule a task when servlet loads on server.

2006-01-30 Thread Frank
Hi, How do I make a scheduled task, that starts when the servlet loads and run ex. every hour ? Cheers

Re: JSF & Seam vs Tapestry & HiveMind

2006-01-30 Thread Ivano
AFAIK Seam's mission is to "fill the gap" between the EJB3 container persistence layer and the JSF presentation layer. The idea is that both EJB's entities and JSF's model objects are beans, so why should one want to write session-beans to link those objects. Seam should be this "linker" that tie

Re: Tapestry 3 - dynamic event listener problem

2006-01-30 Thread sean gao
Thanks Kent, > class YourPageClass { > void dispatch(IRequestCycle cycle) { > String listenerName = (String)cycle.getServiceParameters()[0]; > ... > } > } But what do I do after String listenerName = (String)cycle.getServiceParameters()[0]; Use reflection to invoke the Method that

Re: betterpetshop question

2006-01-30 Thread sean gao
Reposting I am posting this here because betterpetshop seems dead. Was looking betterpetshop's spring configuration file and noticed the settings below. If "petshopService" bean references "petshopServiceTarget" directly, what is the purpose of setting "poolTargetSource" and "businessObject"

Fw: property persistence strategy q.

2006-01-30 Thread Norbert Sándor
Hello, I'd like to create my own implementation of PropertyPersistenceStrategy but I don't understand what "stored changes" are good for. Could someone give me a short explaination what they are and for what they are used? Thanks in advance, Norbi -

Re: Injecting session-stored object: Duplicate method

2006-01-30 Thread Martin Carel
Hi! Thanks for the feedback Raul. It worked fine with the @InjectState annotation. I still don't understand why I got this "duplicate method" error in the first place, but I need to move on... It's so nice to have such an active mailing-list. /M Raul Raja Martinez wrote: If you can use Java

Re: Images from DB

2006-01-30 Thread Ron Piterman
By the end of februar we are planning to release (opensource, apache license) a tapestry library for handling files, both up- and downloads), which takes care of many things, and even enables some (basic) image manipulation on both up- and downloaded images, so if you can bare the wait... Che

Re: Best practice, Links in components.

2006-01-30 Thread Markus Eberle
Hi, Building a very similar component in my last project, we created external links from the "MonthDay" to the View- and EditEvent pages. This has the advantage, that you are able to bookmark the link and send it via email. Cheers, Markus > Hi i'm a newbie to Tap and need some advice of what

Best practice, Links in components.

2006-01-30 Thread Stefan Hagström
Hi i'm a newbie to Tap and need some advice of what is the best practice for displaying links in components! Here is what i'm trying to do: A calendar displaying a month, each day in a square box, similar to outlooks month view. I've created a MonthDay component that displays information for each

Re: [NewBe] Tapestry4 Sample Application

2006-01-30 Thread Raul Raja Martinez
Buy the book, it really makes things easier. I have both the pdf and hard copy versions. Raul Raja. ZedroS Schwart wrote: Thanks Mat, I've found it in between and I am at the chapter 3, seriously wondering whether to buy the whole book. The explanation are just really good and deep, explaining

Validation and ognl?

2006-01-30 Thread Rudolf Baloun
Hi comunity, when i use this code (in my *.page) all works fine: class="org.apache.tapestry.form.validator.Required" lifecycle="render"> But if i try this with ognl, it fails: value="validators:required[ognl:my.package.ErrorMsg]"/>