Re: [T5] 5.0.7 - Help with log4j.properties file

2008-01-08 Thread Steph
How do you get your logger in your code ? The injection @Inject private Logger log; is only useable in Tapestry pages, components, ... It will log nothing in your other classes managed by Spring, Hibernate, ... Outside of Tapestry, you should use something like the line below to use slf4j :

T5 : declaration of pages and components packages from a library

2008-01-08 Thread Steph
Hi all, I need to import in my tap5 project a library which includes tap5 pages and components. But when i try to extend a page from the library in my project, i get the following exception : java.lang.RuntimeException: Base class com.mylibrary.pages.FramePage (super class of com.myproject.pages.

T5 : How to get a Page in a Dispatcher ?

2008-02-05 Thread Steph
Hi all, I have implemented a Dispatcher based on the wiki solution provided by Chris Lewis in order to check the authentication of the users on several pages of my application. But instead of check the access rights of a user based on the URL, i would like to check it against the Page instance

Re: how to access components pages ???

2008-02-16 Thread Steph
You just have to inject : @Inject private ComponentResources componentResources; Then, you access page properties like this : componentResources.getPage().get Stephane Mohammad Shamsi a écrit : Hi, i wanna access to a components page, from component code. i wanna to know the pa

Re: Event bubbling

2008-02-16 Thread Steph
the event of my 'detaillink' in the component ? I've tried something like that : @OnEvent(component="the_name_of_my_component_in_the_container.detaillink") without success ... Any advice is welcome Stephane Steph a écrit : Hi, I've got a strange behavior in event bubb

Event bubbling

2008-02-16 Thread Steph
Hi, I've got a strange behavior in event bubbling ... I have an actionlink in a component : Show details ... If I write an event handler in the component, the event is handle correctly : @OnEvent (component="detaillink") Object detailLink(Long id) { ... do the handling based on the id

Re: Event bubbling

2008-02-18 Thread Steph
B onActionFromA onActionFromB On Feb 18, 2008 10:26 AM, Steph <[EMAIL PROTECTED]> wrote: Thanks Howard, But if my event from A is seen as "FromB" in component C, all events from components B are melted and one can't handle a specific event ! Shouldn't we be able to

Re: Event bubbling

2008-02-18 Thread Steph
a component (A or B) may change its structure, including the ids of embedded components, without requiring changes outside the component. On Feb 16, 2008 6:24 AM, Steph <[EMAIL PROTECTED]> wrote: I've achieved to handle the event of my component in its container by changing th

DateField localization

2008-02-18 Thread Steph
How do we set the format of the DateField component ? I can't find any information or sample on that subject ... Thanks in advance ?

Re: Event bubbling

2008-02-18 Thread Steph
avor Hrg a écrit : please say more about your use case, maybe a different approach can help :) Davor Hrg On Feb 18, 2008 10:47 AM, Steph <[EMAIL PROTECTED]> wrote: Thanks Davor for the explanation. I understand the event type is intact but can you confirm me that i can't make a distinc

T5 : Dependant dropdown boxes

2008-02-29 Thread Steph
Has anyone already tried to implement dependant dropdown boxes with the Ajax features of Tapestry 5.0.11 ? I would like to implement a component to get a user address (country, zipcode, city) and i would like to present the user the cities according to the zipcode and the country just filled.

T5 : Form with synchronous Submit and asynchronous components

2008-02-29 Thread Steph
How can a form in Tap 5.0.11 include asynchronous components (select, checkbox, ...) which update the form itself and a synchronous submit which redirects on another page in its onSuccess event ? Stephane

Injection of Spring bean aliases as services in Tapestry pages

2008-03-02 Thread Steph
I can easily inject a service A defined in Spring like that : in my tap pages : @Inject @Service("A") private MyObject a; That works fine. But if i declare in Spring an alias B on my bean A : when i try to inject my bean B in my tap pages : @Inject @Service("B") private

Tristate property (true/false/null)

2008-03-03 Thread Steph
I try to handle a tristate property (true/false/null) with a radiogroup : true false not defined but the selection of "not defined" set my property to true. Is there a specific way to handle null values ? Stephane

Re: T5 : Event system

2007-11-14 Thread Steph
Stephane Decleire a écrit : I've tried without success to add an "onchange" event on a select box without firing the submit of the form. @OnEvent(value="onChange", component="mySelect") private String select() { log.info("new item selected"); return null; } Did i miss something or is the

Re: T5 : Event system

2007-11-15 Thread Steph
Is there a version number or deadline already planned for this functionality ? Thiago H de Paula Figueiredo a écrit : > On Wed, 14 Nov 2007 08:13:53 -0200, Stephane Decleire > <[EMAIL PROTECTED]> wrote: > >> I've tried without success to add an "onchange" event on a select box >> without firing th

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-19 Thread Steph
I've tried this but my WebApplicationContext is null ... Stephane SergeEby a écrit : > Hi, > > Just import and inject the WAC in your page: > > import org.springframework.web.context.WebApplicationContext; > > class Foo { > > ... > @Inject > private WebApplicationContext wac; > > ... > } > >

Re: [T5] tapestry-spring and WebApplicationContext

2007-11-20 Thread Steph
gt; > > And if the application context .xml files aren't in the standard place and > named the standard way you've also included: > > > contextConfigLocation > > > > ? > > Steph <[EMAIL PROTECTED]> wrote: I've tr

Re: What's heartbeat ?

2008-01-07 Thread Steph
Your code Gabriel work as well without heartbeats ... ;-) Stephane Gabriel Landais a écrit : > Michael Courcy a écrit : >> If you look at this exemple : TreeGridComponent >> http://tapestry5-treegrid.googlecode.com/svn/trunk/tapestry5-treegrid/src/main/java/org/codelutin/tapestry/components/Tree