problem with "mvn jetty:run" from T5 tutorial

2007-03-24 Thread Steve Maring
I'm also have a problem trying to run "mvn jetty:run". I get: : Unable to download the artifact from any repository org.apache.maven.plugins:maven-plugins:pom:8 from the specified remote repositories: central (http://repo1.maven.org/maven2), codehaus.snapshots (http://snapshots.repository.c

T5 - Cancelling a form

2007-03-24 Thread Bogdan Calmac
What is the recommended way to handle a Cancel button on a form? The expected behaviour would be to clear the internal state, bypass validation and move to a different page. I tried: @OnEvent(component="Cancel") String onCancel() { surveySession.setSurvey(null); return "Start"; } wher

Re: T5 - Cancelling a form

2007-03-24 Thread Pablo Ruggia
There was a discussion last week on the same topic. Howard said that the best way was to keep a flag like "cancelSelected" and turn it on on the "selected" event. Then in the form "submit" event look to it and do what it needs to do. I think that it is very incovenient, it's a common use case havi

Re: problem with "mvn jetty:run" from T5 tutorial

2007-03-24 Thread Steve Maring
Perhaps I am wrong in my thinking, the jar itself is not in the directory on the repo. Anybody know of a repo that WOULD have it? Thanks, Steve Maring Steve Maring wrote: I'm also have a problem trying to run "mvn jetty:run". I get: : Unable to download the artifact from any repository o

Re: T5 - Cancelling a form

2007-03-24 Thread Stephan Schwab
Pablo Ruggia wrote: > > There was a discussion last week on the same topic. Howard said that the > best way was to keep a flag like "cancelSelected" and turn it on on the > "selected" event. Then in the form "submit" event look to it and do what > it > needs to do. > I think that it is very inc

Problem with new operator in ognl 2.7

2007-03-24 Thread Shing Hing Man
I am using the latest Tap 4.1.2 snapshot. The following ognl expression used to worked with ognl 2.6. But I have the following exception when I used ognl 2.7. Unable to parse OGNL expression 'new int[nToDefaultBean.basketSize]': Error compiling expression on object [EMAIL PROTECTED]/creditDe

Getting url to tapestry page from acegi filter?

2007-03-24 Thread Phillip Rhodes
I am writing a acegi filter that needs to send a redirect to a specific tapestry page. For now, I will just do a static absolute url (i.e. "/authsumserver/app?page=GroupRegistration&service=page") but knowing that this is a fragile solution, I was wondering if there is a way to call a tapestry

Empty Double TextField causes NPE

2007-03-24 Thread Bogdan Calmac
I have a TextField on a Form which is bound to a Double property. This field is not required so it is OK for the user to leave it empty. But when Tapestry updates the property, a NullPointerException is thrown: Caused by: java.lang.RuntimeException: Coercion of null to type java.lang.Double (via

Re: T5 Action link

2007-03-24 Thread Howard Lewis Ship
I've never thought of this combination; I'm honestly not sure what the web browser does in this situation. Clarification there would be a good idea before guessing what Tapestry should do. On 3/22/07, Anjana Gopinath <[EMAIL PROTECTED]> wrote: Hi, If i add an action link to a plain html button,

Re: problem with "mvn jetty:run" from T5 tutorial

2007-03-24 Thread Howard Lewis Ship
This issue has been driving me crazy, right when I've started with a new client and don't have spare cycles to look into it. I suspect there's an alpha version of some critical Maven plugin that Tapestry is picking up by mistake. The right solution is probably to go find the offending plugin and

Re: T5 - Cancelling a form

2007-03-24 Thread Howard Lewis Ship
How about cancel ? Why should it be necessary to do a form submission, just to discard all the data in the form? If you want, you can use CSS to dress up the link to look like a form submit button. I think having this cancel feature in T4 was a mistake that caused more problems than it solved.

Re: T5: Customizing generation of client id from component id

2007-03-24 Thread Howard Lewis Ship
Have you thought about using a specialized class value for links & etc. that are going to be involved in the test suite, and then selecting by class instead of id? Just an idea ... On 3/23/07, Doug Hauge <[EMAIL PROTECTED]> wrote: Thanks for the response. We are in the process of migrating our

Re: T5 - Cancelling a form

2007-03-24 Thread Stephan Schwab
Howard Lewis Ship wrote: > > How about cancel ? > > Why should it be necessary to do a form submission, just to discard > all the data in the form? > > If you want, you can use CSS to dress up the link to look like a form > submit button. Right. Actually that's pretty smart and more in compl

Re: T5 - Cancelling a form

2007-03-24 Thread Bogdan Calmac
Thanks Howard, The CSS hack would problably work but I'd rather consider other options. I could for instance use some image buttons which have the same look and feel for both "Submit" and "Cancel". Does tapestry provide the equivalent of for form submission? Bogdan. On 3/24/07, Stephan Schwab

Re: T5 - Cancelling a form

2007-03-24 Thread Howard Lewis Ship
No, is not yet supported, but I'm thinking of adding an image parameter to the Submit component (rather than create an ImageSubmit component). On 3/24/07, Bogdan Calmac <[EMAIL PROTECTED]> wrote: Thanks Howard, The CSS hack would problably work but I'd rather consider other options. I could fo

Re: T5: No tag rendered when using enum

2007-03-24 Thread Howard Lewis Ship
This is correct behavior for rendering HTML (as opposed to XHTML). Unlike T4, T5 knows the difference. HTML is a SGML language where open tags are not necessarly balanced with close tags. What's coming is the ability for Tapestry to render XML/XHTML correctly and choose the correct strategy (HTM

Re: Re: Session

2007-03-24 Thread Howard Lewis Ship
That's useful enough that someone should add a JIRA issue suggesting we supply that as a standard component. On 3/22/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote: i think a better strategy is to reduce the sesion-timeout in the web.xml to lets say 2mins and to implement a javascript functio

Re: Re: Session

2007-03-24 Thread Jesse Kuhnert
Don't we already? ;) http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/timeout.html On 3/24/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: That's useful enough that someone should add a JIRA issue suggesting we supply that as a standard component. On 3/22/07, Kristia

Re: .script unique function names

2007-03-24 Thread Jesse Kuhnert
You have to reference it in your .script file somewhere in the content area right? like: ${insertRow} = function() { //even though you can't actually insert a row ie won't let you document.getElementById("someid").appendNode(document.createTextNode("blah")); } On 3/22/07, Tomić Mirko <[EM

Re: "No engine service is available" problem

2007-03-24 Thread Jesse Kuhnert
Trying giving it the binding : instead. (the literal should be the service name of your service as it is defined in your hivemind configuration contribution ) On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I' trying to convert an old, pre 3.0 tapestry application to T4.1. Although i

Re: required fields formatting BEFORE validation

2007-03-24 Thread Jesse Kuhnert
Yep. On 3/23/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: Ok, I reply to myself hoping this would be of any help for somebody else. Is as simple as to make your own IValidationDelegate and override (exemple) this method: public void writeAttributes(IMarkupWriter writer, IRequestCycle cycle

Re: Problem with new operator in ognl 2.7

2007-03-24 Thread Jesse Kuhnert
It probably works now. On 3/24/07, Shing Hing Man <[EMAIL PROTECTED]> wrote: I am using the latest Tap 4.1.2 snapshot. The following ognl expression used to worked with ognl 2.6. But I have the following exception when I used ognl 2.7. Unable to parse OGNL expression 'new int[nToDefaultBe

Re: Tapestry 4.1.1 / dojo broken on IE? - IE freezing!

2007-03-24 Thread Jesse Kuhnert
Sounds un-fun. If you capture a sample request via fiddler / wireshark (plugins / dev utilities for ie) I can at least tell you what is going wrong. I'm less sure I can tell you how to fix it. I'm semi familiar with squid - but this doesn't sound like the same kind of situation. On 3/23/07, Maxi

[T4] Translators and JPA troubles

2007-03-24 Thread Doychi
Hi All, I'm having some problems with JPA and translators. I have been able to set up a number of pages for CRUD, but in one class I am using Joda's Time and Date library (specifically the DateTime class). Now it came as no surprise that this class can't be used directly from the HTML form a