Re: named page context parameters ?

2008-10-09 Thread Ivan Dubrov
Joel Halbert wrote: Hi, Is it possible to have named page context parameters? (along the lines of Wicket PageParameters). I would like to be able to have bookmarkable URLs but rather than indexing page context parameters (in onActivate) by ordinal in a list I would rather key them by name.

Re: Loops in Form - where are my serialized

2008-10-09 Thread Edouard sur edouardmercier.fr
Hello. I'm not sure to quite understand your problem, but in case your concern is to retrieve the values of the checkboxes, please take a look at a previous thread at

Re: named page context parameters ?

2008-10-09 Thread Joel Halbert
Hi Ivan, I'm trying out your extension, thanks, one question though: The following class seems to be missing from the zip you linked to below (http://wfrag.org/files/tapext.zip): ru.nsc.ict.catalogue.annotations.QueryParameter can i get it anywhere? Thx Joel Ivan Dubrov wrote: Joel

Construction of service 'MasterObjectProvider' has failed due to recursion

2008-10-09 Thread Joachim Van der Auwera
Anybody know what the cause/solution for this error is (see exception below). I am trying to integrate tapestry-sping-acegi and this exception occurs. I have already assured all methods in AppModule are static, but that hasn't helped. Any ideas? Thanks, Joachim ERROR

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

2008-10-09 Thread Tobias Wehrum
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 should be invalidated. What is the way to do this in the Tapestry spirit ?

Re: [T5] Change validation message key

2008-10-09 Thread Tobias Wehrum
Hi Julien, may I ask where the problem was and how you solved it? - Tobias Julien schrieb: Hi, Thanks for your reply, and sorry for my bad english (i'm french) ;) Using the app.properties file isn't really a good solution for me, since I replaced the default MessagesSource to used a

Custom URL Encoding strategy ?

2008-10-09 Thread Joel Halbert
Hi, Is it possible to register your own url encoding strategy for T5 ? i..e I would like to be able to encode T5 URL's (say in links) to a particular format, and then decode these on the way back in to T5 format. Much appreciated, Joel -- SU3 Analytics Ltd 61b Oxford Gardens W10 5UJ London

Re: get browser url link at action listener

2008-10-09 Thread János Jarecsni
Is this method an action handler in your page class? Then return the Page which you'd like to reload. 2008/10/8 mike [EMAIL PROTECTED] in my action listener. how to i use cycle to get current browser url ? i need this url so that i can reload the same page again ex. url :

Re: Problem updating form using a zone

2008-10-09 Thread Toby Hobson
Thanks for clarifying that hugo ... all is working well now 2008/10/9 Hugo Palma [EMAIL PROTECTED] The event listener method has to return the component or block that you want to render inside the block. If the method returns nothing like your example than the whole contents of the zone will

Re: named page context parameters ? - using a Custom ValueEncoder

2008-10-09 Thread Joel Halbert
Hi, I think I found a simple way of passing named context parameters between pages and this is to create a custom ValueEncoder for map objects. I created a MapValueEncoder, and my intention was for it to do the following : Encode a Map of String/Object pairs to a string of the following

Re: named page context parameters ? - using a Custom ValueEncoder

2008-10-09 Thread Thiago H. de Paula Figueiredo
Em Thu, 09 Oct 2008 08:06:09 -0300, Joel Halbert [EMAIL PROTECTED] escreveu: Encode a Map of String/Object pairs to a string of the following form: key1/value1/key2/value2 etc... (and of course decode said string back to a map that can be passed to the context) Instead of encoding to a

Re: named page context parameters ? - using a Custom ValueEncoder

2008-10-09 Thread Joel Halbert
Hi Thiago, How would that work? The ValueEncoder.toClient method must return a String...something like this: import org.apache.tapestry5.ValueEncoder; public class MapValueEncoder implements ValueEncoder { private static final String DELIM = /; @Override public String

Re: named page context parameters ? - using a Custom ValueEncoder

2008-10-09 Thread Thiago H. de Paula Figueiredo
Em Thu, 09 Oct 2008 10:57:31 -0300, Joel Halbert [EMAIL PROTECTED] escreveu: Hi Thiago, Hi, Joel! How would that work? The ValueEncoder.toClient method must return a String...something like this: Oops, of course it wouldn't wok with a ValueEncoder. I'm sorry. :( Instead of using a

Re: Registering a custom ValueEncoder with ValueEncoderSource

2008-10-09 Thread Joel Halbert
I figured it out: public static void contributeValueEncoderSource(MappedConfigurationClass, ValueEncoderFactory configuration) { configuration.add(Map.class, new GenericValueEncoderFactoryMap(new MapValueEncoder())); } thx Joel Halbert wrote: Hi, I would like to

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? t:zone t:id=formzone h3

Re: Problem updating form using a zone

2008-10-09 Thread Hugo Palma
The event listener method has to return the component or block that you want to render inside the block. If the method returns nothing like your example than the whole contents of the zone will be empty, like you say. That's just how the zone works, it renders the returned component/block and

Re: named page context parameters ?

2008-10-09 Thread Ivan Dubrov
Hi, I’ve put an updated version of ZIP, with missing QueryParameter annotation. Note that you need to add TapExtModule as a submodule of your application module (use @SubModule( { TapExtModule.class } annotation) or simply copy its contents into your module. Joel Halbert wrote: Hi Ivan, I'm

Registering a custom ValueEncoder with ValueEncoderSource

2008-10-09 Thread Joel Halbert
Hi, I would like to register my own custom ValueEncoder (to be used by the ContextValueEncoder) for specific types. Are there any examples of registering a custom ValueEncoder with ValueEncoderSource? Thanks, Joel -- SU3 Analytics Ltd 61b Oxford Gardens W10 5UJ London Tel: +44 20 8960 2634

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: Access Page context from sub component

2008-10-09 Thread Russell Brown
Hi, When I have an action link in a sub component I notice that the query string ?t:ac=some/context/stuff/from/the/page is appended to the link target. I'd like to manipulate that very context in my component and so far I have been passing its elements down through a nest of components. Is there

Re: Treating a Component Like a Form Field

2008-10-09 Thread Thiago H. de Paula Figueiredo
Em Wed, 08 Oct 2008 16:26:30 -0300, Keith Bottner [EMAIL PROTECTED] escreveu: Do you have an example of this working. I have been going around and around and have not been able to get this to work, so I was hoping there was some code you wouldn't mind sharing that demonstrates this

NPE when trying to store an ASO

2008-10-09 Thread Ulrich Stärk
I'm decorating one of my services in order to store the result of a method call as an ASO. I therefore inject the ApplicationStatemanager service into my decorator implementation and call applicationStateManager.set(UserDetails.class, (UserDetails) o);, but I always get the NullPointerException

Drop down list Error on Refresh

2008-10-09 Thread ViceGripX
Hi everyone, I'm having a problem with an array out of bounds exception after a user selects entries from a list drop down and then presses submit and I'm not sure what the cause is... The drop down list is populated by entries in a database which can be changing at any time. This means once

Re: NPE when trying to store an ASO

2008-10-09 Thread Ulrich Stärk
Ok, I think I know what's going on. I think the service I'm decorating is being called before the terminator of the HttpServletRequestHandler pipeline makes the Request available. In a mail from december 2007 Peter Stavrinides seems to have stumbled over the same issue:

Re: Drop down list Error on Refresh

2008-10-09 Thread Ulrich Stärk
I don't quite understand why you need two arrays. Anyways, try to just use a List as your model for the select component. Uli ViceGripX schrieb: Hi everyone, I'm having a problem with an array out of bounds exception after a user selects entries from a list drop down and then presses submit

T5: SlidingPanel

2008-10-09 Thread superoverdrive
I am looking for a SlidingPanel (Accordion) component. I found one on: http://code.google.com/p/tapestry5-component but unfortunately it is only useful for pure text inside of the SlidingPanel. I am looking for one that uses CSS class names instead so that you can also put other components...