Wrong context for submit button in loop

2009-09-15 Thread Stephan Windmüller
Hello! I am creating multiple submit buttons in a loop component, each of them has its own context. But when I submit the form, I always get the context of the last submit button. Is this a bug in Tapestry or did I misunderstand the submit context? TIA Stephan -

Re: Problem overriding service ValidationMessagesSource

2009-09-15 Thread P . Stavrinides
Hi Inge, I have never tried, but looking at this code in TapestryModule, perhaps an idea could be to try and contribute your own update listener, see: public ValidationMessagesSource buildValidationMessagesSource(List configuration,

Re: t5: Snow Leopard upgrade?

2009-09-15 Thread Peter Stavrinides
I have noticed that Tapestry has stabalized in this regards, so with a relatively new version of Javassist (3.8 onwards) Tapestry will work fine and without any workarounds (that I am aware of), the workarounds applied to older versions... I have been running on Java 6 (even in production) since

ChenilleKit InPlaceEditor

2009-09-15 Thread Mats Andersson
Is it possible to override the text strings in an InPlaceEditor? I would like to set localized values for the following values, found in InPlaceEditor.properties. savebutton : Save cancelbutton : Cancel saving : Saving ... empty : Click to Edit title : Click to Edit savefailed : Failed to Save

Re: ChenilleKit InPlaceEditor

2009-09-15 Thread Massimo Lusetti
On Tue, Sep 15, 2009 at 12:20 PM, Mats Andersson wrote: > Is it possible to override the text strings in an InPlaceEditor? I would > like to set localized values for the following values, found in > InPlaceEditor.properties. > > savebutton : Save > cancelbutton : Cancel > saving : Saving ... > em

[ANNOUNCE] New ChenlleKit home a the Haus

2009-09-15 Thread Massimo Lusetti
Hi everyone, I'm very happy to announce that the ChenilleKit has moved from Tapestry360 to Codehaus.org and you can find it here http://chenillekit.codehaus.org. This new home will let us focus more on code then management. We would like to thank Howard and Formos for letting us use the Formos in

Re: ChenilleKit InPlaceEditor

2009-09-15 Thread Mats Andersson
Many thanks, it works now! The problem was that I put the file in my component package. Mats Andersson Ronsoft AB - Fridhemsvägen 8 - 372 25 Ronneby Tel. 073-368 79 82 http://www.ronsoft.se Massimo Luset

Re: Wrong context for submit button in loop

2009-09-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Sep 2009 04:33:48 -0300, Stephan Windmüller escreveu: Hello! Hi! I am creating multiple submit buttons in a loop component, each of them has its own context. But when I submit the form, I always get the context of the last submit button. Please post your code so we can try to

Re: Wrong context for submit button in loop

2009-09-15 Thread Stephan Windmüller
Thiago H. de Paula Figueiredo wrote: >> I am creating multiple submit buttons in a loop component, each of them >> has its own context. But when I submit the form, I always get the >> context of the last submit button. > Please post your code so we can try to help you. Here is a simplified versio

Re: First try with chenilleKit.

2009-09-15 Thread Madtyn
Sorry for the late answer. Thanks for the advice, Jose Luis. I did this although the app was working OK, but it's better preventing. It works anyway. PD Muchas gracias ;-) 2009/9/14 jose luis sanchez : > There's a lib dependency problem between chenillekit and tapestry. > You should add and ex

Re: Wrong context for submit button in loop

2009-09-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Sep 2009 10:45:33 -0300, Stephan Windmüller escreveu: I'm not sure, but maybe we can't use the Submit component this way. Take a look at the generated HTML (specially the submit buttons and hidden fields) and post it here please. I've been using ActionLinks or EventLinks

Re: Wrong context for submit button in loop

2009-09-15 Thread Stephan Windmüller
Thiago H. de Paula Figueiredo wrote: >> >> >> > I'm not sure, but maybe we can't use the Submit component this way. Take a > look at the generated HTML (specially the submit buttons and hidden > fields) and post it here please. For a loop over two objects, the submit buttons look like thi

Re: Wrong context for submit button in loop

2009-09-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Sep 2009 12:12:41 -0300, Stephan Windmüller escreveu: What I need is a button which does some change to an object. I do not want the user to lose data he entered for other objects, so I decided to use a form submit. If you don't need to submit a form, just to fire an event in the

Best hook to intercept a form submission

2009-09-15 Thread Massimo Lusetti
Which is the best hook where to place code for acting and then firing a form submission without intefere with tapestry.js code? I mean... have you tried to submit a form from javascript when the form has the zone parameter? It is ignored and a full redirect-after-post cycle is done instead of an X

Mapping org.acegisecurity.AccountExpiredException

2009-09-15 Thread Mats Henricson
Hi! I need to map three Acegi exceptions to specific pages: org.acegisecurity.AccountExpiredException org.acegisecurity.CredentialsExpiredException org.acegisecurity.LockedException I can't see how to do it in contributeApplicationDefaults(), since there doesn't appear to be configurati

Securing a the form submission, but no the page.

2009-09-15 Thread Richard Bolkey
Hi all, Been trying to figure out the best way to hook up a means to secure the action of a form without securing the page itself (weird requirement I know, but alas). Overriding RequestSecurityManager doesn't seem to be the right approach because getBaseUrl() lacks any context other than the act

Re: Securing a the form submission, but no the page.

2009-09-15 Thread Carl Crowder
Perhaps you could move common stuff into a base class and have two pages - the first form page, and the submission page. Set the action to point at the secure one. There's probably a better way though. Richard Bolkey wrote: Hi all, Been trying to figure out the best way to hook up a means to

Simulating the humanizing label generation

2009-09-15 Thread ross.efi
Rather than using a BeanDisplay to show a few fields from a bean, what if I want a table with a few th and td tags. The td tag would just contain the field referenced as ${bean.property}. Is there a way to auto generate a nice label for the th tag without adding a bunch of message catalog entri

Re: Simulating the humanizing label generation

2009-09-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Sep 2009 14:58:13 -0300, ross.efi escreveu: Rather than using a BeanDisplay to show a few fields from a bean, what if I want a table with a few th and td tags. The td tag would just contain the field referenced as ${bean.property}. Is there a way to auto generate a nice label

user input validation and field dependencies

2009-09-15 Thread Ilya Obshadko
If form fields are dependent on each other, and I have to check other fields' values to decide if current field input is valid or not, how could I check other fields' values inside the Validator implementation? I couldn't find a way to do that, so maybe writing a mixin would be better? Thanks in

Re: Simulating the humanizing label generation

2009-09-15 Thread Norman Franke
I've wanted the same thing. Seems common things like that should have a public interface. Norman Franke Answering Service for Directors, Inc. www.myasd.com On Sep 15, 2009, at 2:17 PM, Thiago H. de Paula Figueiredo wrote: Em Tue, 15 Sep 2009 14:58:13 -0300, ross.efi escreveu: Rather th

Re: [ANNOUNCE] New ChenlleKit home a the Haus

2009-09-15 Thread Alejandro Scandroli
Ciao Massimo Welcome to the Haus!! Here is your welcome gift: http://jira.codehaus.org/browse/CHEN-1 ;-) Saluti! -- Alejandro Scandroli - http://weblog.amneris.es/ Amneris: We build process-driven web applications. http://www.amneris.es On Tue, Sep 15, 2009 at 12:35 PM, Massimo Lusetti wrote:

[T5.1] PageDocumentGenerator Broken?

2009-09-15 Thread xfile80303
Hello all, My ultimate goal is to have a portion of a page render into a string so I can email this rendered HTML. In trying to do this, I decided the best (only?) approach is to use the PageDocumentGenerator in the onSuccess method of the page form (the form is used to capture the email address

Re: [T5.1] PageDocumentGenerator Broken?

2009-09-15 Thread Thiago H. de Paula Figueiredo
Em Tue, 15 Sep 2009 18:56:40 -0300, xfile80303 escreveu: Hello all, Hi! http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"; xmlns:p="tapestry:parameter"> It may be not related to your problem, but shouldn't your template have a head tag? -- Thiago H. de Paula Figueiredo Inde

Example for ApplicationContextCustomizer

2009-09-15 Thread Ralf Edmund Stranzenbach
Hi, i've tried to get an idea on how to use the ApplicationContextCustomizer to change the way Spring's bean factory gets constructed. But i mus admit, that i have no idea on the way i should provide my customization into a tapestry based application. Is there any example that might show