[T5] How to add JavaScript in a component used in a layout

2008-03-29 Thread Julien HENRY
Hi, I'm using a custom JAR-packaged component in a template. When I use the component directly in a page (Start.tml) I have both JavaScript and CSS file included in the HTML. But when I try to put the component in my application layout (Layout.tml), there is only the CSS file. No JavaScript. In

Re : [T5] How to add JavaScript in a component used in a layout

2008-03-29 Thread Julien HENRY
-- De : Julien HENRY <[EMAIL PROTECTED]> À : users@tapestry.apache.org Envoyé le : Samedi, 29 Mars 2008, 15h23mn 34s Objet : [T5] How to add JavaScript in a component used in a layout Hi, I'm using a custom JAR-packaged component in a template. When I use the component directly in a pa

Re : Re : [T5] How to add JavaScript in a component used in a layout

2008-03-29 Thread Julien HENRY
at the scripts haven't been added. I think I made a Jira for this a couple months ago. -mike On Mar 29, 2008, at 6:03 AM, Julien HENRY wrote: > In fact, it could be a bug. I tried to add a beaneditform component > in the Start page, and I have JavaScript (for client side > val

Re : T5: Layout question

2008-04-02 Thread Julien HENRY
Hi Onno, You don't need to do anything else. Everything outside of Page content will be discarded and the Layout component will be used instead. Is it not the case? Regards, Julien - Message d'origine De : Onno Scheffers <[EMAIL PROTECTED]> À : Tapestry users Env

Re : Re : T5: Layout question

2008-04-02 Thread Julien HENRY
Item 1Item 2 My content regards, Onno 2008/4/2, Julien HENRY <[EMAIL PROTECTED]>: > > Hi Onno, > > You don't need to do anything else. Everything outside of > > >

Re : T5 actionlink, ajax zone and user onclick handler

2008-04-16 Thread Julien HENRY
Hi, Instead of trying to deal with onclick html attribute you should use DOM lvl 2 events: http://www.prototypejs.org/api/event/observe The following JavaScript should work (not tested): Event.observe($('deleteLink'), 'click', function(event) {confirm('are you sure to delete this record ?')});

Re : T5 actionlink, ajax zone and user onclick handler

2008-04-20 Thread Julien HENRY
Hi Chris, Just a little suggestion. Because confirm.js depends on prototype I think you should add @IncludeJavaScriptLibrary("prototype.js") to your Confirm mixin. Thanks for this article Julien - Message d'origine De : Luca Fossato <[EMAIL PROTECTED]> À : Tapestry users Envoyé le :

Mistake in Tapestry tutorial

2007-07-20 Thread Julien HENRY
Hi everybody, I'm new to Tapestry world, and I'm following the tutorial (http://tapestry.apache.org/tapestry5/tutorial1/first.html) I just want to point out a little mistake: because artifactId is tapestry-tutorial1, the Jetty context will be tapestry-tutorial1 and not tutorial1. You should then

[T5] Simple CRUD application with Hibernate : Relations

2007-07-22 Thread Julien HENRY
Hi, I'm learning Tapestry 5, and I would like to know how to do the following simple example : I have an object called Person and an object called Group. Person(id, name, group_id) Group(id, name) I would like to create a simple CRUD application. I'm following T5 tutorial (using beaneditform) t

RE : Re: T5: date picker component

2007-08-16 Thread Julien HENRY
Hi, As I said on google bug tracker, a good idea would be to put the date format in a localizable property file. Typically, date format will depend on the user locale. But I don't know how to do this... sorry. Julien --- Ted Steen <[EMAIL PROTECTED]> a écrit : > This is something we will work

[T5] Annotations are too static

2007-10-03 Thread Julien HENRY
Hi, I really like the way you can configure beaneditform and grid with annotations in T5 (Validation, Column ordering, ...). Therefore, for the kind of projects I have to deal with, I think it will be too static. Exemple: I have a page with a big form allowing user to create/update a card. The f

RE : Re: [T5] Annotations are too static

2007-10-04 Thread Julien HENRY
It's not really client-side validation. Is the onValidate called by an AJAX request? IMHO checking if a field is filled when a checkbox is checked should not require a full page refresh. --- Robin Helgelin <[EMAIL PROTECTED]> a écrit : > On 10/4/07, Julien HENRY <[EMAIL PROTECT

RE : tapestry5 without maven is ok ?

2007-10-15 Thread Julien HENRY
Hi, The first time you get tapestry, simply go in a sample project and hit: mvn dependency:go-offline This will download all required dependencies in your local repo. Then, when you will be offline, just use Maven with -o flag to tell it to use only local artifacts. Regards, Julien --- MavenM

RE : Re: RE : tapestry5 without maven is ok ?

2007-10-16 Thread Julien HENRY
yes, you can. Just copy ~/.m2/repository --- MavenMan <[EMAIL PROTECTED]> a écrit : > > you are right ,thanks a lot . > but my notebook is never connect Internet ,so can I > transfer(copy) my local > repository from one not offline computer to my > notebook ? >

Re : T5: Palette and JWebUnit

2008-08-11 Thread Julien HENRY
Hi Michael, I'm in holidays so I won't have the time to fully answer you (should not stay too long on a computer ;)) but here are some tips: 1) Are you really talking about httpunit in your post? I hope you wanted to say HtmlUnit, because don't expect JavaScript support with HttpUnit. 2) Conce