Re: T5: New Validators and server side validation

2007-05-15 Thread Bill Holloway
In implementing an e-mail validator myself, one thing I notice in all this is a Javascript error that reads Error: Tapestry.Field.email is not a function... I did some digging and found in org/apache/tapestry/tapestry.js the building up of the Tapestry object has in it a section involving "Colle

Re: T5 - Which is the better approach?

2007-05-15 Thread Howard Lewis Ship
It depends on whether you want to test or not. If you inject UserAuthenticator as a class, you're locked into one implementation of UserAuthenticator. You forgoe the ability to unit test using EasyMock (or jMock) because you aren't coding to an interface, but to a class. Sure, EasyMock has an ex

Re: [T5]where can I find the latest source code

2007-05-15 Thread Howard Lewis Ship
Have you even looked on the site? The Maven documentation is very consistent and describes exactly how to get the latest code from SVN. The downloads of the most recent preview release include source. On 5/15/07, John Lee <[EMAIL PROTECTED]> wrote: Dear List, Could anyone tell me how to get

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
Hi Marcus. Here are the classes: Email.java package com.dodo.community.web.validators; import static org.apache.tapestry.TapestryUtils.quote; import java.util.regex.Pattern; import org.apache.commons.lang.StringUtils; import org.apache.tapestry.Field; import org.apache.tapestry.MarkupWriter; i

Re: T4: Broken date picker or something else?

2007-05-15 Thread William Keller
Actually, it words in Firefox, but not IE. I can't get the DOM to format right and it's probably to large to paste here. There indeed seems to be an 'includescript' with the Calendar script there, but it doesn't work. Bah! Thanks for your help On 5/16/07, Jesse Kuhnert < [EMAIL PROTECTED]> wro

[T5]where can I find the latest source code

2007-05-15 Thread John Lee
Dear List, Could anyone tell me how to get it somewhere? Thanks john

Re: Why not release T4.0.3?

2007-05-15 Thread Jesse Kuhnert
Probably never. You can of course build it yourself if you like. On 5/15/07, Jun Tsai <[EMAIL PROTECTED]> wrote: hi, I find some bug fixed,I want to use T4.0.3. When release ? Thanks Jun Tsai -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net ---

T5 - Which is the better approach?

2007-05-15 Thread Marcus
Hi, Which is the better approach, or which is the main difference? Have a service to do Login validation, like: in AppModule.java public static IUserAuthenticator buildUserAuthenticator() { return new UserAuthenticatorImpl(); } IUserAuthenticator.java package org.example.hilo

Re: T5: New Validators and server side validation

2007-05-15 Thread Marcus
Juan, I'm trying, but having a lot of compilation errors. If you post all code added to AppModule.java and Email class, maybe i can help you. Marcus

Why not release T4.0.3?

2007-05-15 Thread Jun Tsai
hi, I find some bug fixed,I want to use T4.0.3. When release ? Thanks Jun Tsai -- Welcome to China Java Users Group(CNJUG). http://cnjug.dev.java.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
I think i am starting to be annoying but i found out that inside a component the first form will not execute server side validation. In the following code the the validators will be executed fine. However the validators will not be executed if i change the code t

Re: T4: Broken date picker or something else?

2007-05-15 Thread Jesse Kuhnert
Are you using FireBug on the client side? If so it would be good to know what a sampling of the entire xml response looks like. There should be a block of "includescript" that includes the necessary external js package that contains the Calendar object definition. On 5/15/07, William Keller <[

Re: Exception on the IBM WebShpere

2007-05-15 Thread Jesse Kuhnert
Maybe websphere is causing some other version of javassist to be used? On 5/15/07, Denis Burlaka <[EMAIL PROTECTED]> wrote: Hi. I attempted to run my application on the IBM WebSphere 6.1.0.7, but the next exception occurres: [15.05.07 13:38:28:812 MSD] 001e SystemErr R org.apache.hive

Re: Problem about deprecated methods

2007-05-15 Thread Jesse Kuhnert
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/PageRenderSupport.html On 5/15/07, Kushan Jayathilake <[EMAIL PROTECTED]> wrote: Hi All Can anyone support me on this PageRenderSupport pageRenderSupport = TapestryUtils getPageRenderSupport(cycle, this); GetTapMapScript().exe

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
I found out my problem. For some reason i added an id parameter to the form component and this was causing the problem. Sorry :S On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Really? That's a surprise and a bug if true. On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote: > > But none

T5: JavaOne BOF Source

2007-05-15 Thread Alex Fishlock
Howard, Is there any way you could release some/all of the source that you presented at Javaone. I am stuck with grid, and you did something in your session that would fix it for me. Alex. - To unsubscribe, e-mail: [EMAIL PROT

Re: T5: Flash persistence strategy

2007-05-15 Thread Howard Lewis Ship
It works and is tested; perhaps there's a bug when the property being persisted is inside a component and not a page (but I really doubt it). On 5/15/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: Thanks Howard. I figured I didn't need it on the currentMessage field, but I didn't want the flex re

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
Hi Marcus. I am doing exactly the same but using a tapestry validator so it handles server and client validation. the code is something like: public class Email implements Validator { public void validate(Field field, Void constraintValue, MessageFormatter formatter, Object value) throws Validat

Re: T5: New Validators and server side validation

2007-05-15 Thread Marcus
Hi Juan, If u do it, may u share the code with us? On server side, we're using this regular expression. import java.util.regex.Pattern; public class EmailValid { public static boolean isValid(String email) { return Pattern.matches( "([A-Za-z0-9]+[._-]*)+[A-Za-z0-9]+@([A-Za-z0-9-]+\\

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
It doesn't work for me. I am using tapestry 5.0.4. On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Really? That's a surprise and a bug if true. On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote: > > But none of the basic implementors are executing server side validation. > (i > tried re

Re: T5: New Validators and server side validation

2007-05-15 Thread Howard Lewis Ship
Really? That's a surprise and a bug if true. On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote: But none of the basic implementors are executing server side validation. (i tried required and minLength) On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > > Yes, but the magic is built into

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
But none of the basic implementors are executing server side validation. (i tried required and minLength) On 5/15/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Yes, but the magic is built into the validator implementation. On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote: > > I Howard, > Tha

RE: T5: Flash persistence strategy

2007-05-15 Thread Joel Wiegman
Thanks Howard. I figured I didn't need it on the currentMessage field, but I didn't want the flex response from someone saying I should try adding it. ;-) Either way, the "messages" field is still sticking around past a single page load. The pertinent java code that uses it is: @Component pr

Re: T5: New Validators and server side validation

2007-05-15 Thread Howard Lewis Ship
Yes, but the magic is built into the validator implementation. On 5/15/07, Juan Maya <[EMAIL PROTECTED]> wrote: I Howard, Thank u for the answer. That was what i did. I followed the pattern but i didn't see how to add easily new Javascript. I could modify tapestry.js but i think that's not th

Re: T5: Flash persistence strategy

2007-05-15 Thread Howard Lewis Ship
You don't need the @Meta, you can: @Persist("flash") private List messages = new ArrayList(); Also, you don't need the @Persist on the currentMessage field. On 5/15/07, Joel Wiegman <[EMAIL PROTECTED]> wrote: Greetings all, I attempted to expand upon the T5 "FlashDemo" found here: http

Re: Re: dojo problem

2007-05-15 Thread Julian Wood
That fixed it (not the cache, which I had already cleared). Thanks. J On 14-May-07, at 4:41 PM, Jesse Kuhnert wrote: Dojo was upgraded to 0.4.2 over the weekend, it may very well be the case that your browser cache just hasn't picked up the changes yet - but I did just notice that I'm miss

T5: Flash persistence strategy

2007-05-15 Thread Joel Wiegman
Greetings all, I attempted to expand upon the T5 "FlashDemo" found here: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-core/src/ test/app1/WEB-INF/ I'm attempting to write a "Messages" component that can be included anywhere and show a group of messages to a user. But for some

RE: I'm missing something obvious

2007-05-15 Thread Marcus.Schulte
In our setup, the problem will only occur with numbers with more than 3 digits. As far as I can see, dojo guesses the grouping from the locale when no grouping-character is given. To me, it seems as if the flag groupSize in the call to "dojo.i18n.number.isReal" should be explicitly set to zero. >

Re: Eclipse User Libraries and Tapestry 4.0.2

2007-05-15 Thread #Cyrille37#
#Cyrille37# a écrit : Stephane PAQUET a écrit : Look at http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-865.html LibCopy plugin is doing this job for Maven project. I guess you can have a look at the way it is working and just do the same in your project. Regards, SP

Re: Eclipse User Libraries and Tapestry 4.0.2

2007-05-15 Thread #Cyrille37#
Stephane PAQUET a écrit : Look at http://www.eclipseplugincentral.com/Web_Links-index-req-viewlink-cid-865.html LibCopy plugin is doing this job for Maven project. I guess you can have a look at the way it is working and just do the same in your project. Regards, SP Thanks, but I've found

Re: Eclipse User Libraries and Tapestry 4.0.2

2007-05-15 Thread Stephane PAQUET
Look at http://www.eclipseplugincentral.com/Web_Links-index-req- viewlink-cid-865.html LibCopy plugin is doing this job for Maven project. I guess you can have a look at the way it is working and just do the same in your project. Regards, SP On May 15, 2007, at 4:33 PM, #Cyrille37# wrote:

Re: expert needed

2007-05-15 Thread Ben Acker
I am using a similar approach to Phillip, but using the same method name for each page. We have the method implemented in a base page that is extended by the pages implementing the component. Anytime we need the method to do something different, we just overwrite it in that page. On 5/14/07, Ph

Re: T4.1 - Exceptions handling

2007-05-15 Thread Andreas Andreou
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/error/ExceptionPresenter.html http://tapestry.apache.org/tapestry4.1/tapestry-framework/cobertura/org.apache.tapestry.error.ExceptionPresenterImpl.html On 5/15/07, Martino Piccinato <[EMAIL PROTECTED]> wrote: I think you can jus

Re: Eclipse User Libraries and Tapestry 4.0.2

2007-05-15 Thread #Cyrille37#
#Cyrille37# a écrit : Hello, For every Tapestry project I've to copy all Tapestry libraries in the WEB-INF/lib folder. Like I'm using Windows I could not using symbolic links. By that way, each project are heavy. I'd tried to define Tapestry as a Eclipse User Library but jars are not deployed

Re: T4.1 - Exceptions handling

2007-05-15 Thread Martino Piccinato
I think you can just configure your and let the page decide which other page to use for different sets of exceptions. On 5/15/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: Andreas Andreou wrote: > like > http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html > ?

Eclipse User Libraries and Tapestry 4.0.2

2007-05-15 Thread #Cyrille37#
Hello, For every Tapestry project I've to copy all Tapestry libraries in the WEB-INF/lib folder. Like I'm using Windows I could not using symbolic links. By that way, each project are heavy. I'd tried to define Tapestry as a Eclipse User Library but jars are not deployed at runtime so the tape

Re: Tomcat class reloading and the development cycle

2007-05-15 Thread Davor Hrg
I posted a comment decribing the general approach half a year ago on user list. here's the text ... here is something I haven't seen on the mailing list, and it speeds up Hibernate Actualy it saves SessionFactory in a static variable which has lifecycle of the tomcat server instaead th

Re: T4.1 - Exceptions handling

2007-05-15 Thread Wojtek Ciesielski
Andreas Andreou wrote: like http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html ? Btw - no, not like this. The page you've provided show how to change handling page for a given set of predefined exceptions (if I understand it well). I need to handle my own application

Re: T4.1 - Exceptions handling

2007-05-15 Thread Wojtek Ciesielski
Andreas Andreou wrote: like http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html ? Mea culpa. I thought that "development" part is for people who want to contribute to Tapestry Thanks anyway, Wojtek ---

Re: 4.1 and "do it once" components

2007-05-15 Thread Geoff Callender
Thanks, Jesse, but I couldn't get it to work, possibly because it's kind of self-referencing? On 05/05/2007, at 2:01 AM, Jesse Kuhnert wrote: Sure ...I think you can generally do something like: -) Use http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry- framework/src/js/tapestry

Re: T5: New Validators and server side validation

2007-05-15 Thread Juan Maya
I Howard, Thank u for the answer. That was what i did. I followed the pattern but i didn't see how to add easily new Javascript. I could modify tapestry.js but i think that's not the best way to do it. I thought the validators were able to execute server and client side validation. According to

T4: Broken date picker or something else?

2007-05-15 Thread William Keller
Hi all, I'm trying to build a page which has a few basic components, and a few EventListeners that update 'select' components etc etc. Recently, I've been trying to add a @DatePicker, but I get horrible errors. Stack trace is attached: ERROR: 11:51:47 PM: Error evaluating script: // TypeError :

Re: T4.1 - Exceptions handling

2007-05-15 Thread Andreas Andreou
like http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html ? On 5/15/07, Wojtek Ciesielski <[EMAIL PROTECTED]> wrote: Hi there, Is there any document describing how to customize handling of application exceptions (using hivemind I suppose) with Tapestry 4.1? Thanks in ad

Re: T5: New Validators and server side validation

2007-05-15 Thread Howard Lewis Ship
On 5/14/07, Juan Maya <[EMAIL PROTECTED]> wrote: Hi all, I am trying to contribute a new Email Validator that would check if an email is valid or not. To do it i created a class Email that implements Validator. Then i contributed the Validator in My AppModule: public static void contributeFiel

T4.1 - Exceptions handling

2007-05-15 Thread Wojtek Ciesielski
Hi there, Is there any document describing how to customize handling of application exceptions (using hivemind I suppose) with Tapestry 4.1? Thanks in advance, Wojtek

Exception on the IBM WebShpere

2007-05-15 Thread Denis Burlaka
Hi. I attempted to run my application on the IBM WebSphere 6.1.0.7, but the next exception occurres: [15.05.07 13:38:28:812 MSD] 001e SystemErr R org.apache.hivemind.ApplicationRuntimeException: Unable to create class ognl.ASTConst2544146341.0Accessor: by java.lang.ClassFormatError: (ogn

AW: Tomcat class reloading and the development cycle

2007-05-15 Thread Holger Stolzenberg
It would be very nice if you could provide this session factory implementation for us! Mit lieben Grüßen aus dem eWerk | Holger Stolzenberg | Softwareentwickler | | Geschäftsführer: | Frank Richter, Erik Wende, Hendrik Schubert | | eWerk IT GmbH | Markt 16 | Leipzig 04

Re: Tomcat class reloading and the development cycle

2007-05-15 Thread Davor Hrg
The class reloading feture in T5 is a great productivity gain, for a T4 project I myself created an hibernateSessionFactory implementation that resides in tomcat's class loader so I don't need to wait for hibernate to initialize. this was small improvement but not near to desired speedup. Questio

RE: [ANN] Tapestry 4 Tutorial, issue 9

2007-05-15 Thread Kolesnikov, Alexander GNI
I am returning the thanks, Howard :) I am just amazed how you guys managed to create such a fabulous framework. The more I work with it, the more I like it. All I am doing is trying to tell the world about Tapestry. -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] S

Re: [ANN] Tapestry 4 Tutorial, issue 9

2007-05-15 Thread Massimo Lusetti
On 5/14/07, Kolesnikov, Alexander GNI <[EMAIL PROTECTED]> wrote: Please have a look: Docs and tutorial are really a big plus for open source project, well actually for all kind of projects, and this really shine. Thanks. -- Massimo http://meridio.blogspot.com ---

Re: Tomcat class reloading and the development cycle

2007-05-15 Thread Inge Solvoll
Thanks anyway, Matt! I've done some experimenting, what actually works (most of the time) is to recompile a class without structural changes. If you change a method name or parameter, you have to reload the application. Some people say Jetty have better performance and better support for configu