Trails

2006-06-06 Thread Carl Pelletier
Hi everyone, I'm looking for feedback here, I planning of using Trails to help 
gain speed with my Tapestry 4.0 development. Somebody use it? Should I ? What 
are the pinfall ? What are your advise...

Thanks for your feedback



Re: Trails

2006-06-06 Thread Carl Pelletier
Ok, thanks, that help. Last question: Is it easy to change the UI after Trails 
generate the page ? Because, we have some specific needs. We won't use the 
simple layout Trails give after the generation. We need to modify the ui to 
reflect our needs.

Thanks !

- Original Message 
From: Peter Svensson [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org; Carl Pelletier [EMAIL 
PROTECTED]
Sent: Tuesday, June 6, 2006 10:19:46 AM
Subject: Re: Trails

I only use trails for my Tapestry-4 development. Mainly because I enjoyed the 
steep initial learning curve of tapestry and needed something to lean on.

The main reason I liked and like trails is because the ant scripts together 
with hibernate tools generate all tables in my MySQL database automatically 
from my POJOs. I just need to grok how to @annotate right, which in itself have 
been interresting, so all lookup tables, collections, relations, etc. gets 
done. 

Another big goodie is that trails have a default list, search and edit page for 
all POJOs, which are plain Tapestry html/page combos.  Also, there are 
ant/maven tasks to generate individual list or edit pages for POJOs. 

Then theres the fairly easy to use acegi security (I use a separate site to the 
same database for unsecure pages out of lazyness), with an ant task to add 
and another to initialize (create default tables for admin, etc.) 

Really, I can't see why you _souldn't_ use trails for everything and then 
changes the bits you need to change. If you need to do heavy whiz-bang end-user 
pages, at least you'll have your administrative pages for free. 

Cheers,
PS

On 6/6/06, Carl Pelletier [EMAIL PROTECTED] wrote: Hi everyone, I'm looking 
for feedback here, I planning of using Trails to help gain speed with my 
Tapestry 4.0 development. Somebody use it? Should I ? What are the pinfall ? 
What are your advise...

Thanks for your feedback 








folder organisation

2006-06-05 Thread Carl Pelletier
Hi everyone, what i'm asking here is a Best pratice question.

I read the documentation about templates, components, .page .html etc... and I 
actually don't understand why Tapestry is build like this.

Well, In big project, it's mandatory I think to have many folders to organise 
pages. Well, with Tapestry,  far as I know, it's hard to do it without 
hardcoding some path somewhere. 

You can put the reference for your components in the .application, but In big 
project, it will quickly be hard to maintain. 

My question is: Did I miss something or that nothing to do for that right now?

little example of structure I will like to have :
WEB-INF/
- gestionContacts/
-components(Related to gestionContacts, not app specific)
-component1/
-.jwc .html
-component2/
   -.jwc .html
- contactCrud.page .html
- contactList.page .html
- etc...
- gestionPartenaires/
- login/
- help/


If I understand, I must register all the path to .application or call the 
folder by specifing the correct path from the root context.

Anyway.. Thanks for any suggestion or link to show that I'm in error.

Carl Pelletier



Border question

2006-06-01 Thread Carl Pelletier
Hi, I'm looking for advise, tips or idea here. I'm beginning the development of a site in Tapestry 4.0 and I don't know how to implement all my levels of menu without creating many border page.What I'm trying to do is implementing component that will render my menu. The problem I have, is that all example I saw like the library example and others just have one level of menu.Us, we got 3. Each page include all the menu and should Highlight the corresponding one when you are in the good section, in the good subsection and in the good page.All menu are genereted server side so no need for _javascript_. The final sites will have many pages, like ~50 to 75 so we don't want to duplicate all the html code of each level menu to display the good menu.For now, The only way I saw I can
 do this is by making a border level3 wich include a border level2 wich include a border level1. The problem with that is that I need to have a border level 3 for each item in the level2 and so one...Don't forget that each item in the menu will be secure, so a logued user will see somes items of all menus but not necessary all items.this site is a admin site and will be bind with Hibernate. I don't use Spring, structs or anything like that...I joint a picture of the design for help.If you can give me some tips, some idea or best pratice on that, It's will be very appreciate. Sorry for bad english!Carl Pelletier-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Best directory stucture

2006-05-25 Thread Carl Pelletier
Hi everyone, I`m starting a project with Tapestry 4.0 and was wondering if 
someone have recommendation on how to structure my project.

I don`t really understand how Tapestry work with directory. It`s like 
everything is in the same folder.

For us, it`s doesnt fit to have juste one directory with all the .page .html 
and component in the same folder.

I know I can specify where are the component by using 
org.apache.tapestry.component-class-packages but it`s just work for the java 
files.

Is there a way to specify all this without adding each page in the .application 
?

For now, we doing something like:
   page name=contactHome specification-path=contact/home.page /
   page name=contactList 
specification-path=contact/gestionContacts/contactList.page /
   page name=contact 
specification-path=contact/gestionContacts/contact.page/
   page name=profilCRUD 
specification-path=contact/gestionContacts/contact.page /
   page name=conjointCRUD 
specification-path=contact/gestionContacts/conjointCRUD.page /
   page name=adjointCRUD 
specification-path=contact/gestionContacts/adjointCRUD.page /
   page name=entrepriseCRUD 
specification-path=contact/gestionContacts/entrepriseCRUD.page /
   page name=consommationCRUD 
specification-path=contact/gestionContacts/consommationCRUD.page /

For each section and sub section. At the end of the project, we will have ~200 
pages. It's we be a real mess in the .application, don`t you think ?

Thanks for any advise, help or recommendation!

Really sorry for the bad english, I`m french.

Carl Pelletier



Re: Best directory stucture

2006-05-25 Thread Carl Pelletier
Thank you very much, that what I looking for. Sorry to ask a stupid question 
like that, I scan the Documentation many times, but english is not my natural 
language and I guess I just never read it like it should be.

Thanks again!

Carl Pelletier

- Original Message 
From: Erik Husby [EMAIL PROTECTED]
To: Tapestry users users@tapestry.apache.org
Sent: Thursday, May 25, 2006 10:34:51 AM
Subject: Re: Best directory stucture

In Tapestry 4, you can put your pages (the .html and .page files) in  
subdirectories that live under WEB-INF. That means that you address  
your pages like contact/home or contact/gestionContacts/contactList

So your directories would be WEB-INF/contact and WEB-INF/contact/ 
gestionContacts


On May 25, 2006, at 10:16 AM, Rui Pacheco wrote:

 I may be wrong, but I think you can put your .page files under WEB- 
 INF and
 your .html under the context. That way you'll have them separated.

 On 5/25/06, Carl Pelletier [EMAIL PROTECTED] wrote:

 Hi everyone, I`m starting a project with Tapestry 4.0 and was  
 wondering if
 someone have recommendation on how to structure my project.

 I don`t really understand how Tapestry work with directory. It`s like
 everything is in the same folder.

 For us, it`s doesnt fit to have juste one directory with all  
 the .page
 .html and component in the same folder.

 I know I can specify where are the component by using
 org.apache.tapestry.component-class-packages but it`s just work  
 for the
 java files.

 Is there a way to specify all this without adding each page in the
 .application ?

 For now, we doing something like:
page name=contactHome specification-path=contact/home.page /
page name=contactList
 specification-path=contact/gestionContacts/contactList.page /
page name=contact
 specification-path=contact/gestionContacts/contact.page/
page name=profilCRUD
 specification-path=contact/gestionContacts/contact.page /
page name=conjointCRUD
 specification-path=contact/gestionContacts/conjointCRUD.page /
page name=adjointCRUD
 specification-path=contact/gestionContacts/adjointCRUD.page /
page name=entrepriseCRUD
 specification-path=contact/gestionContacts/entrepriseCRUD.page /
page name=consommationCRUD
 specification-path=contact/gestionContacts/consommationCRUD.page /

 For each section and sub section. At the end of the project, we  
 will have
 ~200 pages. It's we be a real mess in the .application, don`t you  
 think ?

 Thanks for any advise, help or recommendation!

 Really sorry for the bad english, I`m french.

 Carl Pelletier





 -- 
 Cumprimentos,
 Rui Pacheco

---
Erik Husby
Senior Software Engineer
Broad Institute of MIT and Harvard
Rm. 2192, 320 Charles St, Cambridge, MA 02141-2023
mobile: 781.354.6669, office: 617.258.9227
email: [EMAIL PROTECTED] AIM: ErikAtBroad






Re: best development server for Tapestry

2006-05-23 Thread Carl Pelletier
That look great for me, can you explain a little how you attach it to Eclipse ?
 
For now, I starting it from the prompt. It work great`s but I have to look of 
my debug log4j in the cmd of windows, who`s pretty bad
 
thanks

- Original Message 
From: Mark Stang [EMAIL PROTECTED]
To: Tapestry users [EMAIL PROTECTED] users@tapestry.apache.org; Tapestry 
users users@tapestry.apache.org
Sent: Tuesday, May 23, 2006 11:54:28 AM
Subject: RE: best development server for Tapestry


We use Jetty running standalone.  And then as part of our ant tasks we copy the 
war file over.  It auto-deploys.  I attach to it via eclipse and just let it 
run.  Sometimes when I change the code while debugging, it redeploys the code, 
backs up the jvm a few lines and keeps on running.


-Original Message-
From: Stephane Decleire [mailto:[EMAIL PROTECTED]
Sent: Tue 5/23/2006 1:50 AM
To: Tapestry users
Subject: Re: best development server for Tapestry

I've moved last month from this configuration to Jetty (with the Jetty 
Launcher plugin which permit to avoid Ant too)  and i found that Jetty
is a great server for the developpement process ! I think it's 10x 
faster than Tomcat to relaunch ...

Kristian Marinkovic wrote:

hi,

maybe its off topic but i use tomcat 5.5 with the Sysdeo Eclipse Tomcat
Launcher plugin (free)
for development. This plugin uses a separate classloader to load Tomcat and
all the jar files
on the classpath of my project. IMHO this way of developing is much easier
than using ant :)

btw. the creators of this plugin are french too:
http://www.sysdeo.com/eclipse/tomcatpluginfr

best regards,
kris




   
 Carl Pelletier
 [EMAIL PROTECTED] 
 ahoo.ca   An 
users@tapestry.apache.org  
 22.05.2006 20:00Kopie 
   
 Thema 
  Bitte antworten   best development server for
an  Tapestry   
 Tapestry users  
 [EMAIL PROTECTED] 
pache.org 
   
   
   




hi everyone, I'm just starting a new development projet with Tapestry 4.0
and Hibernate 3.1. I'm looking for the best local server to install on my
computer to make my development.

here are the important point for me:

1- Must be easy to install
2- Easy to deploy with ant and Eclipse.
3- Quick to start and stop.
4- Less configuration possible.
5- Must support JNDI
 6- Not to much memory ungry...

Right now, I use Tomcat 5.5.17 with the service installed and I have some
problems. Use about 90mg of memory and is really long to start and stop.

I'm considaring switching to Jetty 6, is a good idea?

Maybe some theak in tomcat maybe anough..

Please, let me know what you think !

Thanks

Carl Pelletier

P.S Sorry for bad english, i'm french


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  


-- 
Stéphane Decleire

05 56 57 99 20
06 63 78 69 06

Re: about validation error messages

2006-05-23 Thread Carl Pelletier
A quick look at your code and I see that you missing the % before your message 
in the validators:
 
bad:
input jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name
displayName=Name validators=validators:minLength=15[Sorbole]/
 
good:
input jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name
displayName=Name validators=validators:minLength=15[%Sorbole]/

 
Good luck !
 
Carl Pelletier

- Original Message 
From: marcopar [EMAIL PROTECTED]
To: users@tapestry.apache.org
Sent: Tuesday, May 23, 2006 11:32:48 AM
Subject: about validation error messages


Hi, i'm following the EnjoyWebDevWithTapestry book and i'm trying to
display error messages coming from the validators. The only difference is
that i'm trying to do it without using .page files.

- First of all i want to say that i still not had understood clearly the
notation for passing parameters to the components, for example:
form jwcid=[EMAIL PROTECTED] success=doSubmit IS GOOD
and
form jwcid=[EMAIL PROTECTED] success=listener:doSubmit IS GOOD TOO
and
label jwcid=@FieldLabel field=component:nameName/label IS GOOD
but
label jwcid=@FieldLabel field=nameName/label IS NOT GOOD

i can't actually understand what is the correct syntax in all cases

- Now with the error messages problem:
the relevant HTML stuff is:
form jwcid=[EMAIL PROTECTED] success=doSubmit delegate=beans.delegate
input jwcid=[EMAIL PROTECTED] value=ognl:pid/
span jwcid=@Delegator delegate=beans.delegate.firstError/span
table border=1 cellspacing=1 cellpadding=2
tbody
tr
tdlabel jwcid=@FieldLabel field=component:nameName/label/td
tdinput jwcid=[EMAIL PROTECTED] value=ognl:glueSyringe.name
displayName=Name validators=validators:minLength=15[Sorbole]//td
/tr

the relevant JAVA stuff is:
@Bean
public abstract ValidationDelegate getDelegate();

on the @Form line i get the error:
Error converting value for template parameter delegate: No type converter
for type org.apache.tapestry.valid.IValidationDelegate is available.



ciao


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

regular expression in pattern

2006-05-19 Thread Carl Pelletier
Hi everyone, I'm trying to validate a Canadian Postal code in a text field. Can 
somebody point me to the doc where I can find all the type of pattern supported 
by pattern= in the validator ?

I search on the forum and get a look at the online doc, but can't find 
explication on this.

For now, I'm trying to do something like:

input class=postalCode maxlength=8 jwcid=[EMAIL PROTECTED] type=text 
value=ognl:address.postalCode 
validators=validators:pattern=[A-Z][0-9][A-Z][SPACE][0-9][0-9][A-Z][0-9][%postalCode-format]
 displayName=postalCode /

Thanks for any help ! sorry for the bad english...

P.S. I'm thinking of starting a french version of this forum. Please email me 
if your think it's a good idea. 

Carl Pelletier




Calling a page from a renderBlock

2006-05-17 Thread Carl Pelletier
Hi everyone, I'm using a Renderblock component in my page and would like 
when the RenderBlock is called to call a page and not to call a block 
inside the page container. I saw on the Tapestry doc that I can do that 
but they don`t show how. Can someone tell me ?


Thanks for any help!

Sorry for the bad English...


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



listeners in component

2006-05-15 Thread Carl Pelletier
Hi, How can I call the listener of a button in a form when I am in the 
listener of my component ?


Thanks !

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TabPanel component

2006-05-11 Thread Carl Pelletier
Hi everyone, I got a little question.

I have a page, contact, olding a tabs.

I got 2 tabs, Profile and wife.

On each tab I got a form witch I submit and validate. I use a RenderBlock like 
the example on the Tapestry web site to render my tabpanel.

The Tabpanel is a component.

My question is how can I trigger the validation process of the Profil page on 
the click off the wife tab? 

In the Profil panel, I put a button and when I click it, i validate the form 
and everything work fine. But When I click on the tab, I don't know how to 
call the listener of the Container page.

Here are some details:

Page Contact
Old component tabPanel who render the Tabs
Old Block with the code for each tab. (Profil,Wife) (old a form and a 
button 
to send, save end validate de form)  (Other question : Can i put the block 
code in a page? because it's make a pretty long page for each block)


Page Profile:
Old a form and a listener method who validate the form Profil  and save 
it to 
the database

Page Wife:
Old a form and a listener method who validate the form Wife  and save 
it to


It's hard to be clear without code... I hope you understand my problem.

I am verry sorry for the bad english, I'm french...

Thanks for any help

Carl Pelletier

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]