Re: t5: force display of zone

2008-09-30 Thread Weisu
Hi Angelo, This is the way I do it. ${currentAdUser.firstName} The Zone is like ... Angelo Chen wrote: > > Hi, > > I have actionlinks in the grid, and a display zone at top of the page, > when act

[T5] Lost HTML javadoc in tapestry-component-report

2008-09-30 Thread Thiago H. de Paula Figueiredo
Hi! I have just noticed that tapestry-component report strips all HTML tags from the javadoc. Example: /* * Component that only shows a message if a given text is not null and not empty. * It puts the message inside a div with class t-crud-message. * One example can be found in * hr

[T5] tapestry-component-report fails

2008-09-30 Thread Thiago H. de Paula Figueiredo
Hi! I'm just finishing some libraries (that I hope to release this week) and I'm trying to use the Maven Tapestry Component Report plugin v5.0.15, but it always fails with the following message: Javadoc exit code: 1 - javadoc: error - Cannot find doclet class org.apache.tapestry.mojo.Para

Re: T5: ApplicationState keep throwing InternalComponentResources exception

2008-09-30 Thread djohnjimmy
Thanks that helpmed me. ronaldlee wrote: > > Hi, > > I am using 5.0.13. For some reason when my ApplicationState object is > being accessed, it will throw a runtime exception > "No service implements the interface > org.apache.tapestry5.internal.InternalComponentResources." > > My applicatio

Re: T5: spring integration question

2008-09-30 Thread Lutz Hühnken
I'm just taking a guess here, but I think it won't. As far as I know the tapestry spring integration was always limited to singleton beans. I think the "prototype" variant is maybe difficult to handle since tapestry ioc (and hivemind in the past) have a somewhat different approach on object creatio

Re: pass list of string/object between Tapestry pages

2008-09-30 Thread Thiago H. de Paula Figueiredo
Em Tue, 30 Sep 2008 14:58:03 -0300, Alex Kotchnev <[EMAIL PROTECTED]> escreveu: I didn't quite realize that a value in a page persisted in flash scope was not accessible to other pages ( although now that you mention it, it seems to make sense) . It makes sense when you remember the mess

Re: pass list of string/object between Tapestry pages

2008-09-30 Thread Alex Kotchnev
I didn't quite realize that a value in a page persisted in flash scope was not accessible to other pages ( although now that you mention it, it seems to make sense) . That's an interesting fact that seems to significantly reduce the usefulness of flash scope, as in a "traditional" web app, this is

[T3] Spindle for Tapestry 3 and Eclipse 3.4

2008-09-30 Thread Geoff Longman
(assuming this will make it through moderation!) [T3] Spindle for *Tapestry 3* and Eclipse 3.4 A build (3.4.1) of Spindle for Tapestry 3 that works correctly in Eclipse 3.4.X has been published. Please read the release notes as it is *not* available from the old update site. Eventually the old u

T5 integration with spring webflow

2008-09-30 Thread Patrick Munis
Does anyone know if T5 supports spring webflow? If not, is there a timeline on when to expect this integration.? Thank PM -- Sent from Gmail for mobile | mobile.google.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

Re: T5: CMS Integration

2008-09-30 Thread Lutz Hühnken
Dear Mr. Mason, > Tapestry features so I can't us a conventional CMS like Magnolia. Has > any one else had any success with this sort of integration. yes, we had. If you look for example at "www.go7seas-kreuzfahrten.de", you will see a "hybrid". The cruises, the booking process, ship and journey

T5: actionlink calls onActivate twice: detecting first time

2008-09-30 Thread Britske
as part of onActivate I do some processing: - user validation - parsing of params - DAO / repository calls etc. I want to avoid as much of this work as possible obviously. When this counts a lot is when actions are used. In that case the flow is like: click --> onActivate --> onAction --> onA

RE: T5: t:select how to disable and re-enable

2008-09-30 Thread Ulrich Stärk
Have a look at the FormFragment component and the TriggerFragment mixin for the Radio and Checkbox components. This is basically what you want. It just hides the fragment of the form completely from the user instead of disabling it. Uli Am Di, 30.09.2008, 16:27, schrieb Russell Brown: > > Thanks

t5: force display of zone

2008-09-30 Thread Angelo Chen
Hi, I have actionlinks in the grid, and a display zone at top of the page, when actionlink is clicked, the zone will be displayed. sometimes the grid has many rows so when user click, he can't see the zone at top. is there a way to force the zone to go into the view when actionLink is clicked? Th

RE: T5: t:select how to disable and re-enable

2008-09-30 Thread Russell Brown
Thanks guys, Like I said in the initial post: I am doing this on the client side, because I have to. Doing it on the clientside involves jumping through some hoops. Namely, inject the component to get its id and then add some javascript to the page using RenderSupport. No problem. It iss done.

Re: T5: t:select how to disable and re-enable

2008-09-30 Thread Kristian Marinkovic
it is not enough to enable the select box only on the client site. because if you render a select component with disabled="true" tapestry wont even "register" the necessary event handler to process the submission. in tapestry 5 words: no ProcessSubmission component event will be serialized into

RE: T5: t:select how to disable and re-enable

2008-09-30 Thread Russell Brown
>Maybe it's possible that you disable your select only clientside? >If you do so there won't be any problems if you later on enable it again. . >Andy Thanks Andy: like I said >> Thanks in advance for your ideas, I have resorted to adding a little >> javascript that sets it so on load but tha

Re: T5: t:select how to disable and re-enable

2008-09-30 Thread Andy Pahne
Maybe it's possible that you disable your select only clientside? If you do so there won't be any problems if you later on enable it again. Andy Russell Brown schrieb: Hi, I am using a T5 select component. When the form renders I wish the select to be disabled so I use disabled="true" paramet

T5: t:select how to disable and re-enable

2008-09-30 Thread Russell Brown
Hi, I am using a T5 select component. When the form renders I wish the select to be disabled so I use disabled="true" parameter. However, some javascript causes the field to become enabled. If this happens however the value selected does not get sent into the property of the component. I am ass

Tapestry and Grizzly

2008-09-30 Thread Dragan Djuric
Hi, Has anyone tried to use Tapestry without a classic Servlet container + war setup? I am thinking of using Tapestry with Grizzly, where Tapestry IoC or Spring is used as a container that configures and instantiates Grizzly and supplies it with a light Tapestry application preferably packaged as

Re: pass list of string/object between Tapestry pages

2008-09-30 Thread Thiago H. de Paula Figueiredo
Em Tue, 30 Sep 2008 06:16:05 -0300, Tuan <[EMAIL PROTECTED]> escreveu: Beside activate & passivate way, you can pass parameters (objects or string) between pages by using Persit data with Flash option. Ex: @persist (value="flash") User user; @Persist field values are local to a given page an

RE: Available locales

2008-09-30 Thread Blower, Andy
I think that you need to inject the symbol as an argument to your service's constructor using a build method in your module. > -Original Message- > From: José Paumard [mailto:[EMAIL PROTECTED] > Sent: 30 September 2008 10:10 > To: users@tapestry.apache.org > Subject: Available locales > >

Re: Available locales

2008-09-30 Thread Ulrich Stärk
You can't just use @Inject on a service's field. Instead pass the symbol to your service's constructor. E.g. in AppModule.java: public MyLocaleService buildLocaleService(@Inject @Symbol("tapestry.supported-locales") final String supportedLocales) { return new MyLocaleServiceImpl(supportedLocal

Problem injecting ApplicationStateManager into service implementing commons-upload ProgressListener

2008-09-30 Thread Pierre-Alain RIVIERE
Hello, I'm trying to add upload progress support to tapestry-upload. That why I've hack a bit tapestry-upload (5.0.15) to allow injection of a org.apache.commons.fileupload.ProgressListener implementation. You can find my modifications here (diff from 5.0.15) : http://pastebin.com/m500a4293 Then

Re: pass list of string/object between Tapestry pages

2008-09-30 Thread José Paumard
Wesley, I think you have 3 ways of doing that : 1) if the data you pass from one page to another is simple (a short string, of an integer for instance), you can get a ref on that page, put this value in it, and use the onPassivate / onActivate mecanism to store it, something like that : Page

Re: pass list of string/object between Tapestry pages

2008-09-30 Thread Tuan
Hi wesley, Beside activate & passivate way, you can pass parameters (objects or string) between pages by using Persit data with Flash option. Ex: @persist (value="flash") User user; Reference link: http://tapestry.apache.org/tapestry5/tapestry-core/guide/persist.html Regards Tuan wesley wr

Available locales

2008-09-30 Thread José Paumard
Hello all, I defined a set of available locales in my AppModule class, and it works fine. In a component or a page class, when I use : @Inject @Symbol("tapestry.supported-locales") private String supportedLocales ; the string I get is correct. Now what I would like to get is a List rat

Re: Access final static fields from template

2008-09-30 Thread Hugo Palma
Is this planned for 5.1 ? Any issue for it so i can follow ? Howard Lewis Ship wrote: Currently, I add otherwise useless getter methods to "expose" those constants to the template. It's ugly but it works. On Tue, Sep 30, 2008 at 12:37 AM, Francois Armand <[EMAIL PROTECTED]> wrote: Hugo Palm

Re: Access final static fields from template

2008-09-30 Thread Howard Lewis Ship
Currently, I add otherwise useless getter methods to "expose" those constants to the template. It's ugly but it works. On Tue, Sep 30, 2008 at 12:37 AM, Francois Armand <[EMAIL PROTECTED]> wrote: > Hugo Palma wrote: >> >> Is this possible in T5 without having to provide a getter method ? >> > I th

Re: Access final static fields from template

2008-09-30 Thread Francois Armand
Hugo Palma wrote: Is this possible in T5 without having to provide a getter method ? I think not for the time being, and if I remember a thread in the ml, it's the kind of feature that would be added into the template language enhancement predicted with T5.1. But if you find a solution, I'm