Re: Dependent drop down list

2006-05-05 Thread Stephane Decleire
riginal Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Friday, May 05, 2006 7:37 AM To: tapestry-user@jakarta.apache.org Subject: Dependent drop down list Hi, I would like to reload a form to modify the content of a drop down list of cities depending on the zipcode set by the us

Dependent drop down list

2006-05-05 Thread Stephane Decleire
Hi, I would like to reload a form to modify the content of a drop down list of cities depending on the zipcode set by the user in this form. As anybody seen a sample of code to implement such a behavior ? Thanks in advance. -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06

Re: getResponseWriter

2006-05-05 Thread Stephane Decleire
Thanks Andreas. It works. Andreas Andreou wrote: getMarkupWriterSource().newMarkupWriter(pw, new ContentType("text/html")) will do just fine. Simply inject tapestry.markup.MarkupWriterSource in your page Stephane Decleire wrote: getResponseWriter was very usefull to get and

Re: Tapestry to generate mails ?

2006-05-04 Thread Stephane Decleire
Yes, that's it. But what is the advantage of creating a new service in Roger's solution ? Isn't the default service usable in this case like the solution described in the blog http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html Mark wrote: I think what Stephane originally wan

Re: getResponseWriter

2006-05-04 Thread Stephane Decleire
ou want to create IMarkupWriter instances you'll have to inject tapestry.markup.MarkupWriterSource and call newMarkupWriter() on it. Stephane Decleire wrote: Hi, It seems that the function getResponseWriter of the BasePage class no more exists in T4 ... Am i wrong ? Is there an equi

getResponseWriter

2006-05-04 Thread Stephane Decleire
Hi, It seems that the function getResponseWriter of the BasePage class no more exists in T4 ... Am i wrong ? Is there an equivalent function ? Thanks in advance. -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06

Re: Tapestry to generate mails ?

2006-05-04 Thread Stephane Decleire
). It's entitled 'Sending Tapestry-generated email with Spring' and it's at: http://www.behindthesite.com/blog/C1931765677/E2094832857/index.html From Stephane Decleire <[EMAIL PROTECTED]>: Hi, I would like to know if anybody use Tapestry to generate its email

Tapestry to generate mails ?

2006-05-03 Thread Stephane Decleire
Hi, I would like to know if anybody use Tapestry to generate its email ? Indeed, generate mails based on templates is very similar to generate HTML pages ... As an exemple, i would like to implement the famous "I've forgot my password" by sending the user an email based on a template where the

Re: Required field decoration

2006-04-30 Thread Stephane Decleire
legate(); You can also configure both in the page spec, both in the page class, etc. I tend to use the combination above because I usually have a base class for "edit" pages and want to use the same validation delegate for every form (whereas my form component specs may change from

Required field decoration

2006-04-30 Thread Stephane Decleire
Hi, I've tried to reuse in my T4 application the way HLS has implemented required field decoration with an "*" in his book "Tapestry In Action" : My field is set "required" in my registration.page : value="validators:required,maxLength=30"/> And i've subclasse

Re: Spring applicationContext in library

2006-04-25 Thread Stephane Decleire
parse both the jar included applicationContext.xml and the applicationContext.xml file located in you web application WEB-INF directory. Hope it helps. --ERic On Tuesday 25 April 2006 09:48, Stephane Decleire wrote: You've understood my configuration. I've tried to rename the app

Re: Spring applicationContext in library

2006-04-25 Thread Stephane Decleire
into conflicts like this one... MARK Stephane Decleire wrote: Hi, I have a library wich used Spring to link Tapestry component to Hibernate backend. When I use this library in my application which also use Spring, my application applicationContext file is used by the library instead o

Spring applicationContext in library

2006-04-24 Thread Stephane Decleire
Hi, I have a library wich used Spring to link Tapestry component to Hibernate backend. When I use this library in my application which also use Spring, my application applicationContext file is used by the library instead of its applicationContext ... Any idea ??? Thanks in advance. -- Stép

Component call

2006-04-24 Thread Stephane Decleire
Hi, I've got a component which is in a library. And my component needs another component which is not in the library but in the application using the library. How do you make such a trick ? Thanks in advance. -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06

Reusable components in Tapestry ?

2006-04-16 Thread Stephane Decleire
Hi, As a component oriented framework, Tapestry should help developers and architects in producing reusable code ... But i can't see a simple way to package a bunch of pages (wich are a kind of components in Tapestry) implementing a typical functionnality in a reusable package to import in oth

Re: Sharing an application module in multiple Tapestry applications

2006-04-10 Thread Stephane Decleire
lication to define a component with the specified class name. If the component looks for a component called BBShell, then each application could define its own BBShell component. --sam On 4/10/06, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi, I've developped a bulletinboard

Sharing an application module in multiple Tapestry applications

2006-04-10 Thread Stephane Decleire
Hi, I've developped a bulletinboard module in Tapestry that i would share in several Tapestry application. By sharing, i mean the bulltinboard is a rubric in each application so it's the same but the header and the footer are different in each application. Is there a simple approach to do thi

Enumerations in annotations

2006-03-24 Thread Stephane Decleire
Hi all, Is there a mean to use a value of an enum in a @Meta annotation ? I've tried things like this : @Meta( "heading=com.cariboonetworks.entrenounous.ui.Headings.community" ) or without annotations : value="ognl:@[EMAIL PROTECTED]"/> but it doesnt work ... Thanks in advance. -- Stéphan

How to use Java 1.5 enum type in HTML templates

2006-03-23 Thread Stephane Decleire
Hi all, I'm stuck with the problem below : I've created an enum in a separate class (Headings.java) in my project public enum Headings { value1, value2, value3 } And i would like to use this values in an ognl expression in one of my html templates ... condition='ognl:getPage().isHeadingEq

Re: css background-image

2006-01-09 Thread Stephane Decleire
shell component to be insufficiently elegant? It's the usual approach. --- Pat -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Monday, January 09, 2006 6:42 AM To: tapestry-user@jakarta.apache.org Subject: css background-image Hi, Is the

css background-image

2006-01-09 Thread Stephane Decleire
Hi, Is there an elegant way to use css background-image like "background-image: url(images/fond1.gif)" in Tapestry ? Thanks in advance. -- Stéphane Decleire [EMAIL PROTECTED]

Re: [DISCUSS] Moving beyond the "rewind cycle" in Tapestry 4.1

2005-12-20 Thread Stephane Decleire
That's a great idea ! We could have a continuous upgrade process instead of a huge amount of modifications on Q3 2006. Stephane Leonardo Quijano Vincenzi wrote: Howard, can't these major changes be wrapped up in single point releases? 4.1: Delete the rewind cycle 4.2: Rework component inter

Re: Slightly OT - Hibernate Lazy Loading with Spring and Tapestry

2005-12-19 Thread Stephane Decleire
Could you explain your custom SqueezeAdaptor approach a bit more ? It seems very interesting ! Stephane Paul Cantrell wrote: open and close the Hibernate session using a servlet filter, keep the session on a ThreadLocal while it's open, and never keep persistent objects in the session (kee

Re: can information stored in the page be cleaned after user leave these page automatically?

2005-12-15 Thread Stephane Decleire
cases where a page has persistent state but is * being renderred "for the last time". * * @since 2.0.2 * **/ public void discardPage(String name); On 12/15/05, Stephane Decleire <[EMAIL PROTECTED]> wrote: cycle.discardPage() is the solution where there i

Re: can information stored in the page be cleaned after user leave these page automatically?

2005-12-15 Thread Stephane Decleire
(and any recorded changes are lost). * This is used in certain rare cases where a page has persistent state but is * being renderred "for the last time". * * @since 2.0.2 * **/ public void discardPage(String name); On 12/15/05, Stephane Decleire <[

Re: can information stored in the page be cleaned after user leave these page automatically?

2005-12-15 Thread Stephane Decleire
cycle.discardPage() is the solution where there is a listener (as in DirectLink) but what is the right way to discard persistent properties when a page is left using an ExternalLink ? Stephane Geoff Longman wrote: The short answer is no, there is no automatic cleanup. cycle.discardPage() w