Re: Tapestry 4.1.2-SNAPSHOT + Tacos 4.1.0-SNAPSHOT syntax error

2007-04-25 Thread Borut Bolčina
Alright! It works again, thanks to all for quick response. 2007/4/24, Andreas Andreou [EMAIL PROTECTED]: Well, this has resulted in a few (perhaps known?) ognl issues - i'm filling some bug reports now. Anyway, try grabbing the new tacos snapshot and retrying... it now works.

RE: Upgrading Tapestry

2007-04-25 Thread Marcus.Schulte
Shit, that looks nice. If I only weren't so fed up with dev-environment changes-upgrades at the moment... -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 24, 2007 2:48 PM To: Tapestry users Subject: Re: Upgrading Tapestry FYI - if you're not

Re: Tap 4.1.2 Snapshot : Unable to parse a validator

2007-04-25 Thread janjonge
Hi Jesse, Did you forget to run a unit test for it? Jan Jessek wrote: https://issues.apache.org/jira/browse/TAPESTRY-1428 Fixed and deploying now - sorry about the regression. On 4/24/07, Shing Hing Man [EMAIL PROTECTED] wrote: I have an application written couple of months ago in

ActionLink Parameter

2007-04-25 Thread Hans Braxmeier
Hello, Considering the Tutorial with the Start and Guess page: On the Start page is an ActionLink (Start guessing) which initialises the number to guess by calling the onAction() Method which calls the guess.setup() Method and passes a random number... Is it possible to pass different

How to trigger an async event when checkbox is (de)selected on BeanForm component?

2007-04-25 Thread Borut Bolčina
Hello, I want to make an async call when a check box is selected or deselected on an automatically generated form (by BeanForm component). What is the best way to achieve this in T4.1.2? -Borut

Where is the Date(java.util.Date) in the grid? T5

2007-04-25 Thread Donyee
I wrote a employee(pojo) with a hiredate (Date type), When it works with a grid, the grid didn't render the hiredate column. Other types(int or string ) work fine! Can anyone explain this? thanks for any help! -- Chinese name:徐 依伟 English name: will

Adding getLink() to ICallback

2007-04-25 Thread Geoff Callender
I'd like to see a getLink() method added to ICallback so we can do redirect-after-post with the callback. public ILink getLink(IRequestCycle cycle); The reason is that I like to keep a callback stack as I descend into the pages. A page can pop its calling page off the stack and

Re: Adding getLink() to ICallback

2007-04-25 Thread Jesse Kuhnert
Something like that sounds reasonable (I think) - at least until I look at the impl code. A jira issue would help us remember. (or if you wanted to patch it and post it to jira it'd be doubly helpful ;) ) On 4/25/07, Geoff Callender [EMAIL PROTECTED] wrote: I'd like to see a getLink() method

Re: Adding getLink() to ICallback

2007-04-25 Thread Geoff Callender
Thanks, Jesse. I've added it to JIRA and included implementation code. https://issues.apache.org/jira/browse/TAPESTRY-1429 Geoff On 25/04/2007, at 10:59 PM, Jesse Kuhnert wrote: Something like that sounds reasonable (I think) - at least until I look at the impl code. A jira issue

How to subclass Tapestry.default_invalid_field_handler ?

2007-04-25 Thread Geoff Callender
In javascript I'm keeping a variable set once a form is submitted as part of a submit once strategy. The only problem is: if client- side validation detects an error then my variable isn't reset. I'm thinking that I need to reset it in the Tapestry.default_invalid_field_handler javascript

Re: How to subclass Tapestry.default_invalid_field_handler ?

2007-04-25 Thread Jesse Kuhnert
This website is surprisingly helpful in this regard, look at the Object and entities section: http://www.javascriptkit.com/javatutors/ That combined with the documentation (and linked source at the top) here should theoretically be enough to get you started:

Re: How to subclass Tapestry.default_invalid_field_handler ?

2007-04-25 Thread Geoff Callender
On a different tack - is there an existing javascript function I can call or variable I can inspect to determine whether a link or submit is currently being processed? On 25/04/2007, at 11:48 PM, Jesse Kuhnert wrote: This website is surprisingly helpful in this regard, look at the Object

T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html

2007-04-25 Thread Alex Fishlock
Can anyone help here? I am just stumped. I have a maven2 app with spring 2, hibernate, and xfire.. the rest works fine. I have also jetty 6.1.1 plugin I do the dependencies for tapestry, and everything is fine in the classpath. However every time I try and do anything tapestry I get the

Session invalidate question

2007-04-25 Thread Peter Stavrinides
Hi Everyone, I want to redirect to a page (other than my home page) and invalidate the session there. After i call invalidate I get an exception that states the session has already been invalidated, even if I invalidate the session on the target page in pageEndRender. The question is how do

Re: T5 Tapestry IoC services as webservices?

2007-04-25 Thread Bill Holloway
Restfully, I would think. T5 can return almost anything to the browser from a URL, even streams. On 4/24/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: It makes some kind of sense as an add-on. SOAP or REST? (I'd choose REST, right off the bat). It gets uglier from there! On 4/24/07, Bill

Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html

2007-04-25 Thread Alex Fishlock
even odder.. when I go to the root of the webapp it actually works.. ie. http://localhost:9000/ works but http://localhost:9000/Start.html does not what on earth have i done wrong.. - Original Message - From: Alex Fishlock [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April

Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html

2007-04-25 Thread Howard Lewis Ship
http://localhost:9000/start would also work start.html is a reference to an action request: page start, component html, event type action (the default) and that's what Tapestry is complaining about. On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: even odder.. when I go to the root of the

Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html

2007-04-25 Thread Jérôme BERNARD
I guess this is because the default page is called Start (T5 convention you can change) and that you should not call http://localhost:9090/start.html but http://localhost:9090/start I hope this helps, Jérôme. On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: even odder.. when I go to the root

Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html

2007-04-25 Thread Alex Fishlock
t5 newbie idiot that was quick. thanks, thats it.. right, I'm off.. one t5 app coming up Looking forward to your talk a javaone howard.. I'll be heckling. - Original Message - From: Howard Lewis Ship [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: 25 April 2007

Re: T5: Component com.bt.oi.scorecard.pages.Start does not contain an embedded component with id 'html

2007-04-25 Thread Howard Lewis Ship
On 4/25/07, Alex Fishlock [EMAIL PROTECTED] wrote: t5 newbie idiot I don't think so; I think the framework may need a couple of special cases for this, since its seemingly obvious (the start page is start.html, right?). that was quick. thanks, thats it.. right, I'm off.. one t5 app coming

InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
I don't know if this should be asked here or in the SpringFramework forum. I have a bean defined and I need to inject it into a property inside a class that extends BasePage. But when I read this property I get a NullPointerException. Before that, I have tried without providing an

Re: Couple OGNL 2.7 questions

2007-04-25 Thread Jesse Kuhnert
For option 1 yes I've done this locally but not checked it in yet, you should be able to control everything via logging categories / levels. I'm still a little worried about turning this off for get operations as they're definitely bad and I'm not sure anyone will ever notice them otherwise. Are

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Santiago Fernández wrote: Hi, mateamargo. The getter @InjectSpring(somebean) public abstract SomeBean getSomething(); works fine... but be careful when you call getSomething()... if you call this getter inside an initialize() method, you will get an exception, because the property

Re: InjectSpring and NullPointerException

2007-04-25 Thread Santiago Fernández
This code works for me: public abstract class Home extends BasePage { ... @InjectSpring(someBean) public abstract SomeBean getSomeBean(); ... Check this code:

Re: InjectSpring and NullPointerException

2007-04-25 Thread Alex Fishlock
I use this with good results: @Inject(spring:somebean) private SomeBean somebean; - Original Message - From: mateamargo [EMAIL PROTECTED] To: users@tapestry.apache.org Sent: 25 April 2007 18:35:21 o'clock (GMT) Europe/London Subject: InjectSpring and NullPointerException I don't know

Re: InjectSpring and NullPointerException

2007-04-25 Thread Santiago Fernández
Hi, mateamargo. The getter @InjectSpring(somebean) public abstract SomeBean getSomething(); works fine... but be careful when you call getSomething()... if you call this getter inside an initialize() method, you will get an exception, because the property isn't injected yet... You must invoque

Re: T5 Tapestry IoC services as webservices?

2007-04-25 Thread Massimo Lusetti
On 4/25/07, Bill Holloway [EMAIL PROTECTED] wrote: Restfully, I would think. T5 can return almost anything to the browser from a URL, even streams. That's idea has crawled my mind a lot of times... -- Massimo http://meridio.blogspot.com

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Alex Fishlock wrote: I use this with good results: @Inject(spring:somebean) private SomeBean somebean; Without getter or setter? Are you using a .page file for each class? -- View this message in context:

Suggested version

2007-04-25 Thread Tony Nelson
Over the last year, we have slowly been converting an internal application from a home brewed infrastructure to Tapestry 4.0. Some of the new functionality we need to add would best be handled with Ajax and I so I started looking at the newer versions of Tapestry. I can't seem to figure out

RE: Couple OGNL 2.7 questions

2007-04-25 Thread Ben Dotte
Great, please let us know how to suppress the stack traces once you have it checked in. As far as I can tell there is no way to control the log output because it is directly calling t.printStackTrace(), sending the output to System.err (HivemindExpressionCompiler.java lines 165 and 212): try {

Re: Tap 4.1.2 Snapshot : Unable to parse a validator

2007-04-25 Thread Shing Hing Man
Thanks Jesse! The exception I mentioned in my orginal email has gone away with today's Tap 4.1.2 snapshot. But I still have another exception. Unable to read OGNL expression 'parsed OGNL expression' of [EMAIL PROTECTED]/creditDer/NToDefault]: source is null for getProperty(null,

Re: T5 Tapestry IoC services as webservices?

2007-04-25 Thread Jesse Kuhnert
Since I'm guessing that the functionality required for proper ajax support web services will probably share almost entirely the same set of code (besides having to render things) it's probably not that far off. On 4/25/07, Massimo Lusetti [EMAIL PROTECTED] wrote: On 4/25/07, Bill Holloway

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Jessek wrote: Where are you getting that local member from ? You can't have anything injected and used as a local member because the method you add the annotation to will likely be replaced...So if you've been trying to set a member and seeing it null that's why - it's not actually using

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Santiago Fernández wrote: Yes, you need a .page file, like every tapestry page. Or set the property org.apache.tapestry.page-class-packages in .application file. Browse into the example:

Re: InjectSpring and NullPointerException

2007-04-25 Thread Jesse Kuhnert
Where are you getting that local member from ? You can't have anything injected and used as a local member because the method you add the annotation to will likely be replaced...So if you've been trying to set a member and seeing it null that's why - it's not actually using your method to inject

Re: Couple OGNL 2.7 questions

2007-04-25 Thread Andreas Andreou
Yep, that jira not sending mails was a huge wtf... I remember seeing that my issues were resolved two weeks after jesse had fixed them! On 4/25/07, Ben Dotte [EMAIL PROTECTED] wrote: Great, please let us know how to suppress the stack traces once you have it checked in. As far as I can tell

Re: T5: No root element has been defined

2007-04-25 Thread Tim Sawyer
Not progress, but a clarification. I get the no root element has been defined error whenever I navigate to a URL that contains a page that exists as an HTML template. For example, I have Start.html and CopyOfStart1.html files in the root of my WAR file. If I go to:

Re: T5: No root element has been defined

2007-04-25 Thread Tim Sawyer
Sorry, my bad - the Start.java and CopyOfStart1.java exist, not the HTML files. Apologies, Tim. On Wednesday 25 April 2007 21:43, Tim Sawyer wrote: Not progress, but a clarification. I get the no root element has been defined error whenever I navigate to a URL that contains a page that

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Alejandro Scandroli wrote: Hi MateAmargo just remove the property from the page definition let the .page empty page-specification class=com.foo.PersonsList /page-specification Saludos. Alejandro. Hi Alejandro, I have just removed the property and now I'm trying to run Jetty...

Re: T5: No root element has been defined

2007-04-25 Thread Tim Sawyer
Sorted - works now. With Start.html inside WEB-INF it works, with it outside it didn't. Thanks, Tim. On Wednesday 25 April 2007 21:47, Tim Sawyer wrote: Sorry, my bad - the Start.java and CopyOfStart1.java exist, not the HTML files. Apologies, Tim. On Wednesday 25 April 2007 21:43,

Re: Session invalidate question

2007-04-25 Thread Matt Larson
Peter, I have encountered a similar problem, and I think that the problem was not in my code, but in where I was doing the session.invalidate(). In trying to remove a cookie on logout, I found that I needed to do the invalidation in an IEngineService. You can then do a redirect to whatever

Re: T5: No root element has been defined

2007-04-25 Thread Howard Lewis Ship
That's the expected, documented behavior (though it is a change from Tapestry 4). Templates go in the WEB-INF folder. On 4/25/07, Tim Sawyer [EMAIL PROTECTED] wrote: Sorted - works now. With Start.html inside WEB-INF it works, with it outside it didn't. Thanks, Tim. On Wednesday 25 April

T5: exception from mvn -Dmaven.test.skip=true site

2007-04-25 Thread Sven Homburg
Hi there, if i call mvn -Dmaven.test.skip=true site to generate the tapestry-site maven throws me follwing exception (i try it also with jdk 1.6.0-b105) some hints ?

Re: Dependent drop down list

2007-04-25 Thread tapuser
Hi Simeon, Could you please provide some sample? I would like to implement dependent drop down list ( partial page rendering)? Thanks. Sri. Simeon Koptelov-2 wrote: Well, I've done this for my project, using tacos:AjaxDirectLink to update dependent select. If you're

Re: InjectSpring and NullPointerException

2007-04-25 Thread Alejandro Scandroli
I have no clue. Are you sure your spring context is ok? and is getting loaded? Have you tried with @InjectObject(spring:personDAObean)? Dough it should produce the same result On 4/25/07, mateamargo [EMAIL PROTECTED] wrote: Alejandro Scandroli wrote: Hi MateAmargo just remove the

Re: InjectSpring and NullPointerException

2007-04-25 Thread mateamargo
Alejandro Scandroli wrote: I have no clue. Are you sure your spring context is ok? and is getting loaded? Have you tried with @InjectObject(spring:personDAObean)? Dough it should produce the same result I know that it is loading fine because if I change something I get a bean error.

T5 LinkSubmit?

2007-04-25 Thread Tim Sawyer
Is there any equivalent in T5 of LinkSubmit? Ta, Tim. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: T5 LinkSubmit?

2007-04-25 Thread Howard Lewis Ship
Not yet; I don't think there's an issue to track this yet, adding one would be most helpful. On 4/25/07, Tim Sawyer [EMAIL PROTECTED] wrote: Is there any equivalent in T5 of LinkSubmit? Ta, Tim. - To unsubscribe, e-mail:

Re: T5: exception from mvn -Dmaven.test.skip=true site

2007-04-25 Thread Howard Lewis Ship
Looks like a bug for Sun or for Maven. Seriously, that doesn't look like it has much to do with Tapestry per-se. I build this all the time with Sun JDK 1.5 on Mac OS X. Do you get the exception without maven.test.skip? Try mvn install site ... that may work better. On 4/25/07, Sven Homburg

Re: Hivemind eager loading of a service which references tapestry services is not possible

2007-04-25 Thread Paul Stanton
Howard, At present this is all the output I'm getting, I haven't enabled Log4j/Logging yet though (haven't decided on the best way to do so). org.apache.hivemind.ApplicationRuntimeException: Unable to construct service tapestry.init.MasterInitializer: Failure invoking constructor for class

Re: Hivemind eager loading of a service which references tapestry services is not possible

2007-04-25 Thread Howard Lewis Ship
One possibility is that the service you are contributing does not implement the correct interface, though I'm pretty sure there should be checks in place for that. I wrote the ChainBuilder code in HiveMind a couple of years back! Basically, your contributions are mixed in with Tapestry's and

Re: Where is the Date(java.util.Date) in the grid? T5

2007-04-25 Thread Howard Lewis Ship
I don't have a date editor yet, so it isn't configured in Tapestry 5 IoC as an visible edittable field. Only such fields are displayed by the BeanEditor and the Grid. The Grid should be a little more flexible, as many more things can be displayed than can be editted, of course! On 4/25/07,

Re: Suggested version

2007-04-25 Thread Sam Gendler
That depends entirely on your requirements. The API for tap 4.1.x is still not entirely stable (or wasn't last time I checked, anyway, and I assume that the fact that it isn't the recommended release is confirmation of this), so not only are you still likely to encounter bugs, but there is also

ResponseBuilder.updateComponent() doesn't render PropertySelection correctly?

2007-04-25 Thread Jammy Yang
Hello there, I just tried tapestry 4.1's EventListener and ResponseBuilder to implement a cascading dropdown list in an ajax way. Here's what I've encountered. Two selects A and B, implemented with PropertySelection. When a value of A is selected, B's contents are fetched from database and

Rendered Time - value stored in property? (Tap 4.0.2)

2007-04-25 Thread Josh Joy
Hi, When I view my generated HTML source, I see info at the bottom such as !-- Render time: ~ 9 ms -- My question, is the value 9ms stored in some Java property that I have access to? All I'm looking to do is to log this property to a log file to track generation time. I would guess somehow I

Re: Rendered Time - value stored in property? (Tap 4.0.2)

2007-04-25 Thread Jesse Kuhnert
No, it's just a standard: long time = System.currentTimeMillis(); // do stuff writer.printComment( ...) sort of thing in the Shell component. The value is local to the method context only. On 4/25/07, Josh Joy [EMAIL PROTECTED] wrote: Hi, When I view my generated HTML source, I see info

T5: Block override for BeanEditForm

2007-04-25 Thread Ki Alam
I've implemented my own BeanModel/PropertyModel to allow my pre-tapestry data model to interact with the BeanEditFrom. I've run into a roadblock. When my beanModel returns a property datatype other than text, checkbox or select, I'm unable to set the BlockOverride in