t5: errors

2009-12-30 Thread Angelo Chen
Hi, I'd suggest that t:errors should have an option to display only one message instead of all the messages returned from the server, this make the page cleaner, of course this can be achieved by setting only one error in the validation event. for now, i just copied Errors.java and make a SingleE

Re: Best server for development and for production?

2009-12-30 Thread Howard Lewis Ship
On Wed, Dec 30, 2009 at 3:26 PM, Alex Kotchnev wrote: > Juan, > > > If you use the latest NetBeans (6.8) it support compile-on-save/copy-on-save > for both standard and maven based projects, which works perfectly > (equivalent and better than the deploy on save w/ other app servers) w/ > Jetty and

Re: Unit testing components with @Parameter annotation

2009-12-30 Thread Stephan Schwab
Thanks for mentioning TestBase. I like the set() method to push values into private fields. You are certainly right about that @Parameter is about the interaction with the container of the component and should be tested via an integration test. Thanks again. Stephan - -- http://www.caimit

GAE & T5 : Passing a request to the T5 pipeline from a servlet

2009-12-30 Thread Alex Kotchnev
I've been struggling a bit w/ getting the GAE blobstore API to upload files into a GAE T5 based app. All of the examples include using the blobstore service to create a URL to which the file is uploaded, after which the blobstore passes the control to a URL provided by user, e.g. : url = blobstore

Re: Best server for development and for production?

2009-12-30 Thread Alex Kotchnev
Juan, If you use the latest NetBeans (6.8) it support compile-on-save/copy-on-save for both standard and maven based projects, which works perfectly (equivalent and better than the deploy on save w/ other app servers) w/ Jetty and T5's live class reloading. For Tomcat & Glassfish NetBeans suppor

Re: T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
Correction: putting the @Script solved the null pointer but the generated javascript was incorrect. I had to put it before the end of the Form. You were right Andreas Ivano Luberti ha scritto: > I have wrote the solution I have found before reading this. > Actually It was enough to put it after th

Re: T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
I have wrote the solution I have found before reading this. Actually It was enough to put it after the form. The null component was the text field component not the Form. You almost got it because sure the position of @Script matters. It seems that getForm returns something even if the form has al

T4: including javascript in a component (solved)

2009-12-30 Thread Ivano Luberti
Actually the error was in the html template of the component: The @Script refers to the text field component barCode but it is written before the the component itself. Hence when the file is parsed the the text field component doesn't exist yet. I have put the Scrtp declaration after the tag and i

Re: T4: including javascript in a component

2009-12-30 Thread Andreas Andreou
You don't specify which object you've found to be null... but anyway, let me try... looking at the FormFocus.script code from http://tapestry.apache.org/tapestry4.1/components/general/script.html i see ${component.form.name} and ${component.name}, so either component or component.form is null (acc

Re: T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
Thanks Andreas , the problem is that everything works until I insert the javascript. In fact the exception is thrown inside the Script implementation. Down here you'll find the init part of the srtack trace. I was wondering if not using the @Body in the component html template is correct, given the

Re: Unit testing components with @Parameter annotation

2009-12-30 Thread Howard Lewis Ship
My thoughts are that @Parameter annotation represents an integration between the component and its immediate container or other part of the system. @Parameter(required=true) failures will show up in integration tests. In the rare event that I unit test an individual component, I just use the faci

Re: T4: including javascript in a component

2009-12-30 Thread Andreas Andreou
Hi, The error message says that something.getName() is trying to get evaluated but something is null Finding where exactly the error is thrown will show you which object is null... On Wed, Dec 30, 2009 at 20:51, Ivano Luberti wrote: > Hello, I'm trying to include some simple javascript in a comp

Re: demo aplication

2009-12-30 Thread based2
a) You may improve and contribute to http://tapestry.apache.org/tapestry5.1/quickstart/ b) B1 - You may have to focus on more demo-ing service data easy integration (Tapestry-hibernate). B2 - Authentication and Role management (Application goal) (B3 - Suggestion: A demo for each component, li

Re: demo aplication

2009-12-30 Thread based2
http://github.com/jhulten/autoblog http://appfuse.org/display/APF/AppFuse+QuickStart http://code.google.com/p/shams/downloads/list http://wiki.apache.org/tapestry/TapestryTutorials ref:http://thread.gmane.org/gmane.comp.java.tapestry.user/77265/focus=77447 Alfonso Quiroga wrote: > > I know abo

Unit testing components with @Parameter annotation

2009-12-30 Thread Stephan Schwab
Is there any recommended way of unit testing components that have @Parameter annotations? Of course I can add a setter to provide the parameter in my test but that kind of defeats the purpose of @Parameter(required=true). I can call the setter or not do it. If I don't call the setter, the test sh

T4: including javascript in a component

2009-12-30 Thread Ivano Luberti
Hello, I'm trying to include some simple javascript in a component in my T4 application. I want my only textfield to get focus when is displayed. I'm following the instructions provided at: http://tapestry.apache.org/tapestry4.1/components/general/script.html The template of the page including t

Re: demo aplication

2009-12-30 Thread Alfonso Quiroga
I know about jumpstart, but that's like different solutions for specifics things, not a complete app. I think it would be fine to have a complete demo app, maybe using hibernate + hsqldb, some custom component, etc, for a begginer On Wed, Dec 30, 2009 at 12:42 PM, Ashwanth Kumar wrote: > Well, Do

Re: Help with using DWR with Tapestry

2009-12-30 Thread Vangel V. Ajanovski
On 30.12.2009 17:27, Ashwanth Kumar wrote: > No offense, just wanted to learn some things.. at a rapid pace.. thats it.. > :) > No offense taken, I was just curious because I had never heard about DWR and was just curious where it fits. smime.p7s Description: S/MIME Cryptographic Signature

Re: Help with using DWR with Tapestry

2009-12-30 Thread Ashwanth Kumar
Hello Guys, Okay, i give up! I'm very new here! And i'm just a 2nd year college student! I'm learning java only now! And more-over when i hunter the WWW for some good framework to build my WebApp in J2EE. I had to keep my hands on many things. Its during that, i actually got in Tapestry and DWR. T

Re: Help with using DWR with Tapestry

2009-12-30 Thread Thiago H. de Paula Figueiredo
Em Wed, 30 Dec 2009 14:14:12 -0200, Vangel V. Ajanovski escreveu: OK let me see if I get the point. If I build user registration for me it's a simple form, username and email and such and for example I bind javascript code on the username that will check if it already exists, before I even fi

Re: Help with using DWR with Tapestry

2009-12-30 Thread Vangel V. Ajanovski
On 30.12.2009 11:06, Ashwanth Kumar wrote: > Well, My use here is a typical example of User Registration and User > authentication! I'm trying to extend the entire app of Tapestry to be AJAX > driven, with all the pages served through AJAX. > > Imagine u can use sought of AJAX capabilities with DWR

Re: demo aplication

2009-12-30 Thread Ashwanth Kumar
Well, Do we need a Demo app?? I mean, we already've one: JumpStart( http://jumpstart.doublenegative.com.au:8080/jumpstart/) hosted, so.. Do u wish to re-consider ur idea?? - Ashwanth Kumar On Wed, Dec 30, 2009 at 9:09 PM, Alfonso Quiroga wrote: > Hi! going back again to the idea of publishing

demo aplication

2009-12-30 Thread Alfonso Quiroga
Hi! going back again to the idea of publishing demo aplication for starters (always is easier to see something working and copy from that, than building an app from scratch, looking for docs, etc). Is there some idea of how the demo app should be? I'm NOT a T5 expert but I can do it if it's simple

Re: Passing object as paramters to component

2009-12-30 Thread Thiago H. de Paula Figueiredo
Em Wed, 30 Dec 2009 10:17:14 -0200, Captain Cid escreveu: I want to pass an object to component. Components renders from data from this object. Just use @Component as Ville suggested. I tried doing an environment push of component but tapestry gives error "java.lang.ClassNotFoundExceptio

Re: Passing object as paramters to component

2009-12-30 Thread Ville Virtanen
Hi, define private YourObjectType param; variable to your component class and use it. Annotate it with @Parameter annotation. Then use your component like this: Or read the documentation: http://tapestry.apache.org/tapestry5/guide/parameters.html - Ville Captain Cid wrote: > > I want to p

Passing object as paramters to component

2009-12-30 Thread Captain Cid
I want to pass an object to component. Components renders from data from this object. I tried doing an environment push of component but tapestry gives error "java.lang.ClassNotFoundException: caught an exception while obtaining a class file" . It seems only component classes can be pushed into

RE: About T5 integration modules

2009-12-30 Thread Newham, Cameron
Interesting. I'd hardly call myself even an advanced-intermediate Tapestry user (some of the stuff you guys talk about is way over my head!) but really, is it that difficult to create a Dispatcher and custom page annotations?! I included simple security with roles very early on in my webapp by g

Re: Help with using DWR with Tapestry

2009-12-30 Thread Ashwanth Kumar
Well, My use here is a typical example of User Registration and User authentication! I'm trying to extend the entire app of Tapestry to be AJAX driven, with all the pages served through AJAX. Imagine u can use sought of AJAX capabilities with DWR and Tapestry! - Ashwanth Kumar On Tue, Dec 29, 2