Re: Custom validator not called when value is empty?

2006-12-02 Thread fdegrassi
Well, ok, i expressed myself rather poorly. I did not mean that it is not possible to do cross-field validation with validators, but rather that it is not the more "traditional" approach. I do not like it very much, because it blurs the separation (and location) of the two kinds of validation ru

Re: Custom validator not called when value is empty?

2006-12-02 Thread andyhot
fdegrassi wrote: > AFAIK, validators do just that, validate the syntax of values > submitted. (field level validation) > Validation logic that involves multiple fields (form level validation) > should go into the form/submit listener. Not quite true... Take a look at http://issues.apache.org/jira/

Re: Custom validator not called when value is empty?

2006-12-02 Thread fdegrassi
AFAIK, validators do just that, validate the syntax of values submitted. (field level validation) Validation logic that involves multiple fields (form level validation) should go into the form/submit listener. Regards Francesco Degrassi Malin Ljungh wrote: Good evening! I have written my o

Re: Number translator message in 4.1

2006-12-02 Thread Ryan Holmes
I agree with Sam's points. The new default messages will be more confusing to end users and should be reverted, for all of the reasons Sam mentions. -Ryan On Dec 1, 2006, at 6:06 PM, Sam Gendler wrote: +1 for new extended default messages! It is worth wading through a sea of PMs to save d

Custom validator not called when value is empty?

2006-12-02 Thread Malin Ljungh
Good evening! I have written my own validator which works excellent - as long as a value is submitted in the field to be validated. Have I missed something here? What should I do? To add a required validator may seem to be the obvious solution but the thing is that the field is not always requir

Re: getting .page and .html from a database

2006-12-02 Thread Steve Shucker
I've got this working for pages and components, but it's probably a bit different than what you want. I have a template table in my database and I'm looking up content by a numeric PK rather than a name because I have a requirement to let users version some templates. I'm also leaving out my

Re: using Tapestry to send mails

2006-12-02 Thread Bill Holloway
I've used JavaMail (http://java.sun.com/products/javamail) successfully in a few projects. One thought is to inject the javax.mail.Session object into an application state object for easier access via Tapestry. Cheers, Bill On 11/26/06, Cyrille37 <[EMAIL PROTECTED]> wrote: Hello all, I still

tapestry4.1.1 ajax issue

2006-12-02 Thread sun quanzhi
hi My english is not well,so i write simplely,hope you can understand. I edit the TimeTracker example. I change the updateComponent content (For example set descriptionField),but not have effect. If I not change ,it work good. Can you tell me ,what's the proplem? Thanks. Error Info: DEBUG: 18:31

RE: Popup window with parameter

2006-12-02 Thread Istvan Szucs
The question is wrong. The problem is solved. I found this: http://lombok.demon.co.uk/tapestry4Demo/TestPopupSource.html Stef > Hello! > > I have a page, with a javascript: > function openPopup(startValue){ > var win2=window.open("./app/ListValues&startValue="+startValue,"Listed > Values","width

Popup window with parameter

2006-12-02 Thread Istvan Szucs
Hello! I have a page, with a javascript: function openPopup(startValue){ var win2=window.open("./app/ListValues&startValue="+startValue,"Listed Values","width=600px, height=600px, resizable=yes, center=yes, menubar=no, scrollbars=yes, status=yes, minimize=no, maximize=no, help=no") win2.creator=

Re: Commit PersistPropertys on Submit with Error

2006-12-02 Thread Skorpien126
After searching a while ... using a mass of "searchWords" I found this. http://www.nabble.com/Validatable-fields%3A-should-bound-property-be-updated-if-in-error--tf247395.html#a691248 This describes what I want... but not how I activate or if it´s still builded in!?!! Skorpien126 wrote: > >

replace @InjectPage by a page specification

2006-12-02 Thread Cyrille37
Hello, It's me again ... I'm searching how to replace an @InjectPage annotation by a page specification like The java code is : @InjectPage("Login") public abstract Login getLoginPage(); And I would like to remove the annotation and replace it by a page specification like : But i