Re: Article on the Tapestry Wiki

2008-03-12 Thread Stephane Decleire
B) pages that in addition to A, it should be visible to the particular logged in user only. maybe we can add a parameter to the @Private? thanks, A.C. Stephane Decleire wrote: Hi, I've just published an article on the Tapestry Wiki on how to implement an access controller based on t

Re: T5 ajax zones example

2008-03-12 Thread Stephane Decleire
I've got the same error in Firefox (v2.0.0.12) when triggering the button ... :-( Stephane Sabine K. a écrit : Hi, this works perfect with the Firefox. With the Internet Explorer it gives by triggering the submit button, the link works: org.apache.tapestry.runtime.ComponentEventException A

Re: T5 ajax zones example

2008-03-12 Thread Stephane Decleire
It doesn't work on Firefox for me ... And i don't think the error returned deals with the client. Ted Steen a écrit : This example only works with 5.0.11. I tried it with Internet Explorer just now and I see that the ajax form is submitted and the form is updated (correct), but the click event a

T5 : RadioGroup Label

2008-03-12 Thread Stephane Decleire
I can't figure out how to show the label of a RadioGroup ... I have tried what i used to do with other form components without success ... t:label="literal:optin-label" t:validate="required"> Any idea ? Stephane

Re: T5 : RadioGroup Label

2008-03-12 Thread Stephane Decleire
I've forgot to give you the result HTML code for the label : Stephane Stephane Decleire a écrit : I can't figure out how to show the label of a RadioGroup ... I have tried what i used to do with other form components without success ... t:label="literal:optin-label"

Re: T5 : RadioGroup Label

2008-03-12 Thread Stephane Decleire
() Has anybody encounter the same behavior ? Should i create a ticket in Jira ? Stephane Stephane Decleire a écrit : I've forgot to give you the result HTML code for the label : Stephane Stephane Decleire a écrit : I can't figure out how to show the label of a RadioGroup ... I have tr

Re: T5 : RadioGroup Label

2008-03-13 Thread Stephane Decleire
I forgot to say that i see this behavior on Tap 5.0.11 (i have not try on previous versions) Stephane Stephane Decleire a écrit : I keep on with my conversation alone ... ... and i have just tried to test the code from Tapestry documentation http://tapestry.apache.org/tapestry5/tapestry

T5 : Using a zone for tips in a form

2008-03-13 Thread Stephane Decleire
I would like to use a zone where tips are shown according to the form element focused by the user (like the right column on the yahoo registration page). Any idea on how to link form element javascript events to the zone ?? Stephane

T5 : How to use the OptGroup in a selection box ?

2008-03-13 Thread Stephane Decleire
I can't find any documentation on how to integrate XHTML OPTGROUP in my selection boxes. Has anybody already done this or know where to find docs or samples on this ? Thanks in advance. Stephane

Re: T5 : RadioGroup Label

2008-03-14 Thread Stephane Decleire
roups with labels in the page results in label nodes with duplicate id attributes. I've filed the issue here: https://issues.apache.org/jira/browse/TAPESTRY-2255 Josh On Thu, Mar 13, 2008 at 1:50 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: I forgot to say that i see this behavior on

Re: T5: Stop current event bubbling but continue processing of other events

2008-03-14 Thread Stephane Decleire
"The event will bubble up the hierarchy, until it is aborted. The event is aborted when an event handler method returns a non-null value." (http://tapestry.apache.org/tapestry5/tapestry-core/guide/event.html) Stephane Dmitry Shyshkin a écrit : Hi, all. Is there a way to stop bubbling of curr

Re: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread Stephane Decleire
You use the id "radio" 2 times in the same tml page. That's not allowed. Stephane [EMAIL PROTECTED] a écrit : Hi! I have a problem to handle a radiogroup having a variable number of radio buttons created within a loop. The 'tml' looks basically like the following code snippet:

Re: [T5] RadioGroup and varible numbers of radio buttons

2008-03-14 Thread Stephane Decleire
No, Tapestry will give different ids to your radio tags inside the loop. In the HTML page, a radio belongs to a radiogroup if it has the same "name" parameter, not the same "id". And Tapestry will give a different id but the same "name" to each radio you put in a radiogroup wether it is in a lo

Re: Redirect on login

2008-03-14 Thread Stephane Decleire
I would recommend to store a Link (which can contain the page name and the context of the request) and return this link in the success method. Stephane Cordenier Christophe a écrit : Why do you not store the page name instead of the request Path and then returning the page name in the success

T5 : FormFragment

2008-03-14 Thread Stephane Decleire
I would like to have a FormFragment but based on what the user has filled before instead of a CheckBox in order to implement things like dependant dropdown boxes. Is that possible with the last version of Tapestry or should i wait for a best integration of Ajax in Tapestry Form ? Stephane.

T5 : Spring/Hibernate - data not updated

2008-03-20 Thread Stephane Decleire
Hi all, In my Tapestry 5 application, i have several services that use Spring to access Hibernate. Those services are declared as transactional in Spring. @Transactional (readOnly = false) public Account signon(String pseudo, Password password) { Account account = accountDao.load(pseudo, pa

Re: T5: tapestery5-components

2008-04-01 Thread Stephane Decleire
Hi, I've cast an eye on tapestry5-components and i get very interested on the OnEvent mixin : 1. that's great that any event (change, clic, focus, ...) of any form component can trigger a call on the server (i don't understand why the TriggerFragment of Tapestry has been limited to CheckBoxes

Is there a way to include a component with fields in a form ?

2008-04-02 Thread Stephane Decleire
Hi, In my application, i have got several forms with the same bunch of fields and other different fields. What i would like is to create a component with the bunch of fields and include it in the forms. But the validateForm event is only managed by the page where my form is declared and i ca

Re: ComponentEventException on Form Submit with Ajax

2008-04-03 Thread Stephane Decleire
I think there's a good sample in the Tap 5 documentation : http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/Delegate.html Stephane Dmitry Shyshkin a écrit : What do you want to achieve by returning Block from onSucess event? As you can read from htt

Coercion error in grid

2008-04-04 Thread Stephane Decleire
Hi all, When i try to show a list of my objects in a grid, i get the following error : "Could not find a coercion from type org.hibernate.collection.PersistentSet to type com.mycompany.MyType" Here is my component code : public class UserAdsList { @Parameter(required = true) private L

Re: Coercion error in grid

2008-04-08 Thread Stephane Decleire
trace (and the exact version of > Tapestry you are using) would be helpful.ß > > On Fri, Apr 4, 2008 at 3:06 AM, Stephane Decleire > <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > When i try to show a list of my objects in a grid, i get the following

T5 : Strange exception ...

2008-04-08 Thread Stephane Decleire
Has anybody already get such a strange exception ? org.apache.tapestry.ioc.internal.util.TapestryException : com.mycompany.components.accounts.ManagerStates cannot be cast to com.mycompany.components.accounts.ManagerStates ??? My ManagerStates class is an enum and here is the stack trace :

Re: T5 : Strange exception ...

2008-04-08 Thread Stephane Decleire
st this is what I think. Maybe we could check this and show a more human readable error message? Hope it helps! /Ted 2008/4/8, Stephane Decleire <[EMAIL PROTECTED]>: Has anybody already get such a strange exception ? org.apache.tapestry.ioc.internal.util.T

T5 : session timeout

2008-04-08 Thread Stephane Decleire
Hi, I would like to know how do you handle session timeout with T5 or if there is a "design pattern" for this case. When a session timeout occurs, a lot of pages won't work because of a lack of data (for example, normaly setted before returning the page). So i need to write a piece of code in

Re: T5 : Strange exception ...

2008-04-08 Thread Stephane Decleire
ackage, such as com.mycompany.data. Anything under the components package is handled specially by Tapestry. On Tue, Apr 8, 2008 at 6:12 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: Sorry Ted but i don't see any non component in my component package ... Ted Steen a écrit :

T5 : Event bubbling

2008-04-10 Thread Stephane Decleire
Hi, I have several components encompassed in each other : say A encompasses B which encompasses C. When someone trigger an eventlink in C, i try to catch the event in B in a handler like this one : @OnEvent (value="action") Object change() { // ... management of the action ...

Re: How to know which sub component trigger an action and also be aware of the action parameters?

2008-04-10 Thread Stephane Decleire
If you want to handle your links in start.java, you could use eventlink instead of actionlink and give each link a different event ... Stephane dhning a écrit : Hi, One case: The page start.tml contains component ParentComponent, and template of ParentComponent contains two action links Lin

Re: T5 : Event bubbling

2008-04-10 Thread Stephane Decleire
Thanks Armand. Returning 'this' works great ! Stephane Francois Armand a écrit : Stephane Decleire wrote: correct behavior of event bubbling in T5 (i mean handlers which returns null values do not catch the event) ? If yes, what is the solution for an handler to both catch the

Re: T5 : session timeout

2008-04-11 Thread Stephane Decleire
data if it becomes large, it gets expensive to carry around in a high volume application, so you loose scalability. Stephane Decleire wrote: Hi, I would like to know how do you handle session timeout with T5 or if there is a "design pattern" for this case. When a se

Re: T5 : session timeout

2008-04-12 Thread Stephane Decleire
x27;s lazy loading of ASO's does the rest. Make sure you DON'T put your base class in the "pages" package - create a new package, eg. "base". Hope this helps. Geoff http://files.doublenegative.com.au/jumpstart/ On 11/04/2008, at 7:57 PM, Stephane Decleire wrote:

Re: T5 : session timeout

2008-04-12 Thread Stephane Decleire
ng to yours. Josh On Fri, Apr 11, 2008 at 2:57 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: I think that i did not explain very well the problem i encounter ... so i will try to explain it better (so hard in a foreign language ...) Suppose i have a page A which call a p

T5: Warning on grid reorder

2008-05-12 Thread Stephane Decleire
Hi all, Each time i reorder a grid by clicking on a column, i get the following warning : [WARN] ResourceCache Alias request of 'file:/F:/Steph/workspace/mailings/src/main/webapp/clients.grid.columns:sort/description' for 'file:/F:/Steph/workspace/mailings/src/main/webapp/clients.grid.colum

T5 : Is it possible to put a zone inside another zone ?

2008-05-13 Thread Stephane Decleire
Hi, I have a template wich look like this one : ... zone="clientZone">${client.name} zone="mailingZone">${mailing.title} ... and the associated code : public class Clients { @Inject@Service("mailingServices") priv

T5: Acegi integration

2008-05-15 Thread Stephane Decleire
I have just made the integration of Acegi in my T5 application but after each authentication attempt, i get the following error : Error invoking service builder method org.apache.tapestry.hibernate.HibernateModule.build(HibernateSessionSource, ThreadCleanupHub) (at HibernateModule.java:74) (fo

Re: T5: Acegi integration

2008-05-15 Thread Stephane Decleire
I use tapestry and tapestry-hibernate 5.0.12-SNAPSHOT (but tried and get the same error with 5.0.11 and 5.0.10) and tapestry5-acegi 1.1.0-SNAPSHOT. Robin Helgelin a écrit : On Thu, May 15, 2008 at 4:02 PM, Stephane Decleire <[EMAIL PROTECTED]> wrote: I have just made the integrat

Re: T5: Acegi integration

2008-05-15 Thread Stephane Decleire
You were right : i had different versions of hibernate and hibernate annotations. Everything works fine now ... Thanks. Stephane Robin Helgelin a écrit : On Thu, May 15, 2008 at 5:54 PM, Stephane Decleire <[EMAIL PROTECTED]> wrote: I use tapestry and tapestry-hibernate 5.0.12-SN

T5.0.12 : MappedConfiguration error in AppModule

2008-05-22 Thread Stephane Decleire
Hi, I've just tried to move an application from T5.0.11 to 5.0.12-SNAPSHOT but get the following error at startup : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tapestry/ioc/MappedConfiguration Looking at my AppModule class, i have : import org.apache.tapestry5.ioc

Re: T5.0.12: java.lang.NoClassDefFoundError: org/apache/tapestry/contrib/services/ImageService

2008-05-23 Thread Stephane Decleire
Same error as mine but on another class ... Tobias Wehrum a écrit : Hi, when I switch to the current T5.0.12-SNAPSHOT, I get the following exception while starting: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tapestry/contrib/services/ImageService at java.lang.

Re: T5.0.12 : MappedConfiguration error in AppModule

2008-05-23 Thread Stephane Decleire
p On 2008-05-23 00:54, Stephane Decleire wrote: Hi, I've just tried to move an application from T5.0.11 to 5.0.12-SNAPSHOT but get the following error at startup : Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tapestry/ioc/MappedConfiguration Looking a

Re: T5.0.12 : MappedConfiguration error in AppModule

2008-05-23 Thread Stephane Decleire
endency to org.apache.tapestry:tapestry5-annotations? -Filip Stephane Decleire skrev: I use Maven and i have forced a refresh of my repository but i get the same error ... Stephane Filip S. Adamsen a écrit : Hi, This is most likely due to classpath conflicts. Make absolutely sure that you

Re: T5.0.12 : MappedConfiguration error in AppModule

2008-05-23 Thread Stephane Decleire
apestry5) is used has shown in the stack trace and the error message refers to the old tapestry package ... Stephane Filip S. Adamsen a écrit : That's weird. Have you changed the org.apache.tapestry:tapestry-annotations dependency to org.apache.tapestry:tapestry5-annotations? -Filip Step

Re: T5.0.12 : MappedConfiguration error in AppModule

2008-05-25 Thread Stephane Decleire
I've just found the problem. I had integrated tapestry-acegi which is not ported under 5.0.12 yet ... Stephane Decleire a écrit : Here is my complete stack trace : 12:57:12.140 INFO [main] org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:198)

Re: T5: Grid in a zone

2008-05-25 Thread Stephane Decleire
nents ? Stephane Filip S. Adamsen a écrit : Hi, If you're on Tapestry 5.0.12-SNAPSHOT you can set the inplace parameter on Grid to true to automatically wrap it in a zone. Does that solve your problem? -Filip Stephane Decleire skrev: I would like to use a grid component in a zone. So how can

T5: zone frustration ...

2008-05-25 Thread Stephane Decleire
I'm really frustrated with tapestry zones, each time i try to use zones in something more complex than simply hide or show a block it doesn't work : - I can't put a zone in another one to build a more complex component (like dependant dropdown boxes). - I can't use a grid in a zone since the lin

Re: T5: Enum value in a context

2008-05-28 Thread Stephane Decleire
t myself in contexts. -Filip Stephane Decleire skrev: Is there a simple way to put an Enum value in the context of link in T5 ? In T4, i used to use ognl ... Stephane - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: About tapestry5 and spring-acegi

2008-05-29 Thread Stephane Decleire
Why don't you have a look at tapestry-acegi ? (http://www.localhost.nu/java/tapestry5-acegi/) Stephane 滕训华 a écrit: > I want to integrate the spring and tapestry and spring-acegi. I have already > integrated the spring and tapestry or tapestry and spring-acegi,but how can > I integrate this three

Re: 答复: About tapestry5 and spring-aceg i

2008-05-29 Thread Stephane Decleire
ing tapestry-acegi,but I > think spring have the good documents and reference.So I hope I can use > spring-acegi. > > -邮件原件- > 发件人: Stephane Decleire [mailto:[EMAIL PROTECTED] > 发送时间: 2008年5月29日 16:03 > 收件人: Tapestry users > 主题: Re: About tapestry5 and spring-ace

Re: T5: ETA for t5-acegi and t5-components to work with SNAPSHOT?

2008-05-30 Thread Stephane Decleire
In wich version ? 0.5.12-SNAPSHOT ? on the usual repository ? Stephane Sven Homburg a écrit : t5components SNAPSHOT reflects the package renaming 2008/5/28 Franz Amador-2 <[EMAIL PROTECTED]>: Unsurprisingly, due to the package-name changes, t5-acegi and t5-components no longer work with t

T5: onPrepare - how to diffrentiate the render phase from the process phase ?

2008-06-04 Thread Stephane Decleire
How can we check in onPrepare if the function is called during the process of the form or during the render phase ? Stephane

Re: T5: onPrepare - how to diffrentiate the render phase from the process phase ?

2008-06-04 Thread Stephane Decleire
Thanks Thiago, didn't know those two events exist. Thiago H de Paula Figueiredo a écrit : On Wed, 04 Jun 2008 10:04:21 -0300, Stephane Decleire <[EMAIL PROTECTED]> wrote: How can we check in onPrepare if the function is called during the process of the form or during the render ph

Mulitple annotations on a property

2006-07-07 Thread Stephane Decleire
Hi all, I need to set a property of a component to be persisted and required together : @Persist("session") @Parameter(required = true) public abstract void setAddress(Address address); public abstract Address getAddress(); But Tapestry send me this exception : Property address ha

global.debugEnabled

2006-09-15 Thread Stephane Decleire
Hi all, I've seen in the VLib Tapestry sample something like that : disabled="ognl:global.debugEnabled"/> but i can't find out where the global.debugEnabled is set to true or false. Any help is welcome ! -- Stéphane Decleire 05 56 57 99 20 06 63 78 69 06

How to send or save into a file a tapestry page

2006-09-19 Thread Stephane Decleire
Hi all, I would like to send or save the HTML content generated by a page. The idea is to mail our team (perhaps by a SMTPAppender in log4j) the Tapestry exception page while showing the user a nice message when an error occured on our website. I've found on the web the solution below but it

Tapestry 4.1 roadmap ?

2006-09-19 Thread Stephane Decleire
Hi Is there a roadmap for the releases of Tapestry 4.1 ? Thanks -- Stéphane Decleire

Re: How to send or save into a file a tapestry page

2006-09-19 Thread Stephane Decleire
Here it is : http://mail-archives.apache.org/mod_mbox/jakarta-tapestry-user/200503.mbox/[EMAIL PROTECTED] - Assuming you are already familiar with the Javamail API, it sounds like all you really need is the Tapestry-rendered data stream. This is actually really easy:

Icons in a library

2006-10-02 Thread Stephane Decleire
Hi All, I've written a simple component that show a small icon next to the new elements in a page based on their postdate. I've packaged this component in a library with the gif file for the icon. Would anybody have an idea in order to keep this icon has a default one but to let the applicatio

User sessions overlapping ....

2007-01-04 Thread Stephane Decleire
Hi, I have implemented a small application using the new possibilites of T4.1.1 (EventListener / ResponseBuilder) but when i made some tests from 2 differents computers, the properties of my session N°2 are impacted by the modifications made on the session N°1 using EventListener and vice ver

Re: User sessions overlapping ....

2007-01-06 Thread Stephane Decleire
your pages? -Original Message- From: Stephane Decleire [mailto:[EMAIL PROTECTED] Sent: Thursday, January 04, 2007 5:00 PM To: users@tapestry.apache.org Subject: User sessions overlapping Hi, I have implemented a small application using the new possibilites of T4.1.1 (EventLis

Recursive component inclusion

2007-01-08 Thread Stephane Decleire
Hi, I wonder if there is a way for a tapestry component to include itself (in a recursive way). Despite I have in my template a condition to exit from this infinite loop, it ends up in a stack overflow error. I suppose tapestry goes in an infinite loop when it tries to instanciate the componen

Re: Recursive component inclusion

2007-01-08 Thread Stephane Decleire
e directly, but there are solutions for different problems like displaying a tree using recursion on the model level - what exactly are you trying to achieve? Cheers, Ron Stephane Decleire wrote: Hi, I wonder if there is a way for a tapestry component to include itself (in a recursive way).

Re: Recursive component inclusion

2007-01-08 Thread Stephane Decleire
te that this implementation has no state, all nodes are always displayed - adding state is however quite straightforward... If this is not enough - take a look at the tacos Tree - I think its not so easy to understand nowadays since its full of ajax functionality, which makes the code not as tran

Updating Dialog in AJAX requests

2007-10-15 Thread Stephane Decleire
Hi, Does anybody has an idea why the content of such dialog boxes is not refreshed when the form in the dialog box is submitted ? Case 1 : ... Case 2 : ... Case 3 : ... I have read the Tapestry Dojo Dialog component documentation and watched out for the got

Re: T4.1.2 and 3: Mysterious stack trace ??

2007-10-17 Thread Stephane Decleire
Same causes, same consequences ... Since our migration from Tap4.1.1 to 4.1.2 (and 4.1.3) we get the same error stack as Malin. I have just parsed our code and found exactly what Malin describes : @Persist("session") public abstract void setSearch(IAlert search); public abstract IAlert getSear

Re: Dialog gotchas ...

2007-10-24 Thread Stephane Decleire
Thanks Andrea for your answer. Yes, I've read the Dialog gotchas and i've test a simple Dialog with a classic Form or PageLink and it works. The problem i've described earlier comes up when i try to load the content of my Dialog (a Form or a PageLink) from a different page using the Tacos Widg

Tapestry IoC error when Jetty is launched

2007-10-26 Thread Stephane Decleire
Here is what i get when i try to launch my Tap 5.0.6 application from Eclipse on Jetty 5.1.12 (by the JettyLauncher). I don't understand at all what that means ... Any idea ? Stephane 18:02:04.968 INFO [main] org.mortbay.log.LogImpl.add(LogImpl.java:109) >16> added [EMAIL PROTECTED] 18:02:04

Re: Tapestry IoC error when Jetty is launched

2007-10-26 Thread Stephane Decleire
Sorry !!! Same problem as described there due to the javassist version : http://mail-archives.apache.org/mod_mbox/tapestry-users/200705.mbox/[EMAIL PROTECTED] Stephane Stephane Decleire a écrit : Here is what i get when i try to launch my Tap 5.0.6 application from Eclipse on Jetty 5.1.12 (by

T5 : Localization of input validation

2007-10-31 Thread Stephane Decleire
Hi, I can't find the way to localize the default messages provided by Tapestry for input validation like : "You must correct the following errors before you may continue" or "You must provide a value for ..." Any help is welcome. Stephane

Callbacks in Tap5

2007-11-08 Thread Stephane Decleire
I'm trying to migrate an application which use ICallback from Tap 4.1.3 to Tap 5.0.6 Is there an equivalent to the callback notion in Tap 5 ? If not, does anybody know a way to implement such a mechanism ? Thanks in advance. Stephane

Re: Callbacks in Tap5

2007-11-08 Thread Stephane Decleire
s fill similar roles to ICallback. There is no exact analog, but that's because you can build your own so easily on top of the passivate and activate events. On Nov 8, 2007 5:40 AM, Stephane Decleire <[EMAIL PROTECTED]> wrote: I'm trying to migrate an application which use ICal

T5 : Event system

2007-11-14 Thread Stephane Decleire
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 only way to get an event on

T5: initial Grid sort column

2008-06-11 Thread Stephane Decleire
Hi, How can i initialize a grid to be displayed with a descending sort order on a column ? Thanks in advance. Stephane

T5.0.13 : Form submit not refreshing page anymore

2008-06-12 Thread Stephane Decleire
It seems that since i've upgraded my app on T5.0.13, an event like the one below doesn't refresh the page anymore : Object onSuccessFromMyForm() { ... return this; } Any clue ? Stephane

Re: T5.0.13 : Form submit not refreshing page anymore

2008-06-12 Thread Stephane Decleire
Don't pay attention to this ... Sometimes, i do really stupid things ... ;-) Stephane Stephane Decleire a écrit : It seems that since i've upgraded my app on T5.0.13, an event like the one below doesn't refresh the page anymore : Object onSuccessFromMyForm() { ... retur

Re: delete confirm

2008-06-14 Thread Stephane Decleire
Just add a javascript confirm function on your delete link. stephane tengxh a écrit: > In list there is a column with the delete funtion,but i want to user confirm > the action,in other word,I want to have a confirm window "do you really > delete this record",in t5,how to do this,give some idea

T5 : page updated instead of zone on form submit

2008-06-26 Thread Stephane Decleire
Hi, When i try to update a zone in a form handler, i get the following warning and the entire page is reloaded : [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement.myaccountzone was returned from an event handler method, but is not a page component. The page containing

Re: T5 : page updated instead of zone on form submit

2008-06-26 Thread Stephane Decleire
OK, solved. I was sending back the zone component itself and not the block to update. Stephane Stephane Decleire a écrit : Hi, When i try to update a zone in a form handler, i get the following warning and the entire page is reloaded : [WARN] ComponentInstanceResultProcessor Component

T5: form zone parameter not taken into account

2008-07-02 Thread Stephane Decleire
I've got a form with a zone parameter but i still get the following warning and the whole page is refreshed when i submit the form. Any idea ? [WARN] ComponentInstanceResultProcessor Component Test:accountmanagement was returned from an event handler method, but is not a page component. The pa

Re: T5: form zone parameter not taken into account

2008-07-03 Thread Stephane Decleire
d for the zone. The request object has the isXHR method which you can use to determine if it's a full or partial request. You can use this info to return something other than the block/component for users that don't have javascript enabled. On Wed, Jul 2, 2008 at 5:23 AM, Stephane Dec

How to trace the content returned by XHR requests ?

2008-07-03 Thread Stephane Decleire
Hi, Which tool do you use to trace the XHTML content returned by an Ajax request ? Stephane

Re: T5: form zone parameter not taken into account

2008-07-03 Thread Stephane Decleire
:11ae8bb5631"});" when the component is initialized. Stephane Lance Java a écrit : How are you returning the AccountManagement? Do you use @InjectComponent or new AccountManagement() ? The latter will not work. 2008/7/3 Stephane Decleire <[EMAIL PROTECTED]>: Thanks Josh,

Re: T5 date localization

2008-07-03 Thread Stephane Decleire
By the time those issues are solved, you can look at the wiki : http://wiki.apache.org/tapestry/Tapestry5OutputLocaleNumber Stephane Ulrich Stärk a écrit : These are known issues which have yet to be adressed. See (and vote for if you want) https://issues.apache.org/jira/browse/TAPESTRY-2198

Re: [T5] Handling an event from an embedded component

2008-07-04 Thread Stephane Decleire
Isn't it the purpose of EventLink ? Stephane Thiago H. de Paula Figueiredo a écrit : Em Fri, 04 Jul 2008 13:42:58 -0300, Thiago H. de Paula Figueiredo <[EMAIL PROTECTED]> escreveu: Say I have a List page. Inside it, I have an ActionLinks component. Inside ActionLinks, I have an ActionLink wi

T5: onSelectedFrom ...

2008-07-07 Thread Stephane Decleire
Hi all, I have a strange behavior when i try to trace which submit button have been used on a form : void onSelectedFromSubmit1() { log.info("submit1"); } void onSelectedFromSubmit2() { log.info("submit2"); } whether i submit the form via the submit1 or submit2 button, the

Re: T5: onSelectedFrom ...

2008-07-07 Thread Stephane Decleire
Hi Marcus, Yes, i'm on 5.0.13 and i've just tried without the zone parameter and it works. The problem is that i need the zone parameter in my app ... Is it a known bug ? Do you know a solution to avoid this behavior ? Thanks in advance Stephane Marcus a écrit : Hi Stephane, Are you on 5.0

Re: T5: onSelectedFrom ...

2008-07-07 Thread Stephane Decleire
I've just submitted an issue on JIRA : TAPESTRY-2505 Stephane Stephane Decleire a écrit : Hi Marcus, Yes, i'm on 5.0.13 and i've just tried without the zone parameter and it works. The problem is that i need the zone parameter in my app ... Is it a known bug ? Do you know a so

T5: how to get the encompassing zone of a component at runtime ?

2008-08-03 Thread Stephane Decleire
Hi all, I need to write a component which includes a Form which has a zone parameter but i don't like the idea to ask the zone to update as a parameter of my component. Is there a way to get the encompassing zone of my component at runtime ? Stephane

Re: T5: form, action, result

2008-08-05 Thread Stephane Decleire
I did the same but as a component, since i use it in several pages. The difficulty shows up when i need to use Ajax calls for a zone which is on the parent page and not on the component ... Stephane Chris Lewis a écrit : Cool, thanks :-) Martijn Brinkers (List) wrote: That's exactly what

Re: T5: Form using Zone with two submits - possible bug?

2008-08-09 Thread Stephane Decleire
Hi Mike, This is a bug tracked in JIRA as TAPESTRY-2324 and TAPESTRY-2505. Stephane Mike Leonardo a écrit : Hello, I have a form that uses the zone parameter so that the submission is handled as an Ajax reload. The problem is that my form has two submit buttons, but Tapestry seems to always t

Re: [T5]How to make indentical validation on the client side.

2008-08-18 Thread Stephane Decleire
I'm not sure at all that the password checking should be done on the client side for security reason Stephane luna_guo a écrit : Confirm password checking is so common. It should happen on the client side,right? So,what should i do ? /luna

Re: T5: Why does the Form component ouputs its own Zone ?

2008-09-11 Thread Stephane Decleire
When the Form is successfully submitted, i want to return my component but with a different view of the data where there is no Form so my success event handler returns the component itself (by returning 'this') but with a different view. And as i said before, despite the generation of 2 zones,

T5: how to fire an event from a component

2008-10-09 Thread Stephane Decleire
Hi, I would like to be able to fire an event from one of my component to tell its parent that a cache should be invalidated. What is the way to do this in the Tapestry spirit ? Thanks in advance. Stephane

Re: Problem updating form using a zone

2008-10-09 Thread Stephane Decleire
Your success event handler should return a block of HTML by returning a Block or a Tapestry Component. If you don't return anything, nothing is shown ... Stephane Toby Hobson a écrit : Can anyone see anything wrong with my code? Publi

Re: T5: how to fire an event from a component

2008-10-09 Thread Stephane Decleire
Exactly what i was looking for ! Thanks Tobias ;-) Tobias Wehrum a écrit : Hi Stephane, ComponentResources.triggerEvent may be what you search for. - Tobias Stephane Decleire schrieb: Hi, I would like to be able to fire an event from one of my component to tell its parent that a cache

T5 : localization of Options in a dropdown list

2008-10-13 Thread Stephane Decleire
Hi, What is the best way to localize the options of a dynamically generated Select component ? Thanks in advance. Stephane

T5 : localization in ComponentClassTransformWorker

2008-10-16 Thread Stephane Decleire
Hi everybody, Is there a way to use Tapestry localization services like Messages in a ComponentClassTransformWorker ? My goal is to localize the component described by Marcelo Lotif in the Tapestry Wiki (http://wiki.apache.org/tapestry/Tapestry5AnotherSelectWithObjects). Thanks in advance

Re: T5 : localization in ComponentClassTransformWorker

2008-10-17 Thread Stephane Decleire
ia the ComponentResources object injected into each class. On Thu, Oct 16, 2008 at 2:48 PM, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi everybody, Is there a way to use Tapestry localization services like Messages in a ComponentClassTransformWorker ? My goal is to localize the componen

Re: T5 : localization in ComponentClassTransformWorker

2008-10-17 Thread Stephane Decleire
ia the ComponentResources object injected into each class. On Thu, Oct 16, 2008 at 2:48 PM, Stephane Decleire <[EMAIL PROTECTED]> wrote: Hi everybody, Is there a way to use Tapestry localization services like Messages in a ComponentClassTransformWorker ? My goal is to localize the componen

Re: Core dump when debugging @OnEvent methods on Page (JDK 1.6.0_10, Eclipse 3.3.2)

2008-10-21 Thread Stephane Decleire
Yes, i've got the same error yesterday on Eclipse 3.3.1.1/jdk1.6.0_03. Joel Halbert a écrit : Hi, Has anyone experienced core dumps when trying to debug T5 Page Event handler methods using a 1.6.0_10 jdk, on eclipse 3.3.2 ? I keep getting the following dump when my breakpoint is hit : # # A

T5 : localization problem

2008-10-22 Thread Stephane Decleire
Hi all, I encounter the following problem : If i include the following code in one of my form, with the appropriate line firstname-label=prenom in my french localized messages file, the result is OK and the firstname label is localized. But with the following piece of code, the result is th

Re: T5 : localization problem

2008-10-22 Thread Stephane Decleire
5.0 release ??? Stephane Thiago H. de Paula Figueiredo a écrit : Em Wed, 22 Oct 2008 06:54:33 -0300, Stephane Decleire <[EMAIL PROTECTED]> escreveu: But with the following piece of code, the result is the hardcoded "Firstname" string. Localization of the string did not occured .

  1   2   3   >