Re: How to set actionlink id dynamically

2009-02-23 Thread Ville Virtanen
Tapestry automatically assigns unique id to every object in the page. it is created something along the lines of id underscore number (id, id_0, id_1, id_2). However, if the event handler that handles the actionlink click should receive the actionId then it should be the context. context="item.act

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread Ulrich Stärk
Using the @Property annotation will make Tapestry add getters and setters for this property during class transformation that will override your supplied ones. Leave out the @Property annotation and specify your own getters and setters and you should be fine. Uli inyokoyoko-deve...@yahoo.co.jp

Chenille Kit components inside a Zone - Request/Guidance

2009-02-23 Thread Juan E. Maya
Hi All, I am using a lot of the Chenille Kit components to build my applications and they are great! But i am having a lot of issues with them when i try to use them inside of a Zone. If i position a Chenille Component (so far this has happened with Window, Slider, Rating) inside a zone i get a ja

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread inyokoyoko-develop
Hi, I have already known a solution. It seems to be a bug. Don't you think so? osamuo Using the @Property annotation will make Tapestry add getters and setters for this property during class transformation that will override your supplied ones. Leave out the @Property annotation and specif

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread Ulrich Stärk
No, it's not. This is expected behaviour. Uli inyokoyoko-deve...@yahoo.co.jp schrieb: Hi, I have already known a solution. It seems to be a bug. Don't you think so? osamuo Using the @Property annotation will make Tapestry add getters and setters for this property during class transforma

t5: Filter and Session conflict?

2009-02-23 Thread Angelo Chen
Hi, I use the code at end of this message to strip the Jsessionid, it works very well, however it started to have error when I call this in my T5 app: Session session = request.getSession(false); if (session != null) { session.invalidate(); } cookies.rem

Re: Disabling onBlur field validation

2009-02-23 Thread Borut Bolčina
2009/1/22 scott russell > > Hi all, > > I have just started with Tapestry 5 (having previously used versions 3 and > 4), and have found that while I like the new client-side validation bubbles, > they are very distracting and annoying when they appear for every focus > change between form fields.

Re: Chenille Kit components inside a Zone - Request/Guidance

2009-02-23 Thread Massimo Lusetti
On Mon, Feb 23, 2009 at 11:47 AM, Juan E. Maya wrote: > Hi All, > I am using a lot of the Chenille Kit components to build my applications and > they are great! But i am having a lot of issues with them when i try to use > them inside of a Zone. > > If i position a Chenille Component (so far this

Re: Chenille Kit components inside a Zone - Request/Guidance

2009-02-23 Thread Juan E. Maya
Oh i am sorry :) i didnt' know there was a mailing list! Great! thanks On Mon, Feb 23, 2009 at 2:57 PM, Massimo Lusetti wrote: > On Mon, Feb 23, 2009 at 11:47 AM, Juan E. Maya > wrote: > > > Hi All, > > I am using a lot of the Chenille Kit components to build my applications > and > > they are

RE: [T5-OSGi] Javassist

2009-02-23 Thread Robert, Brice
Just in cas someone wanted to know, our relay team in India found a solution adding javassist.runtime.Desc.useContextClassLoader = true in AppModule did the trick. /** * This module is automatically included as part of the Tapestry IoC Registry, it's a good place to * configure and extend Tapes

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread Robert Zeigler
I haven't tested this behavior, but I would consider it a bug for two reasons: 1) write = false is specified for @Property. So tapestry really shouldn't be creating any setters for this property during the class transformation. 2) From Osamuo's text, it sounds like that if you don't have @

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread Howard Lewis Ship
I suspect that setName() isn't being called because the input destined for the property fails validation. On Mon, Feb 23, 2009 at 8:35 AM, Robert Zeigler wrote: > I haven't tested this behavior, but I would consider it a bug for two > reasons: > 1) write = false is specified for @Property. So ta

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread Markus Lux
I set up a fresh application from the maven quickstart archetype and added the sample code posted earlier by osamuo. I also added one sysout to see if the setter is called. I cannot confirm that the setter isn't called when @Validate( "required") is added to the property and you type at least one

Re: 5.1.0.0 upgrade issues.

2009-02-23 Thread alex_yt_cheung
Any chance the PageTester's contributeApplicationDefaults() issues (... should use FactoryDefaults instead of ApplicationDefaults...) will be fixed in 5.1.0.0-GA? thanks - alex Howard Lewis Ship wrote: > > Thanks for the input; I definitely changed a few things in PageTester > to simplify the

http error on exception

2009-02-23 Thread Thomas Clavier
Hello All, I search a solution to launch an http error (500) when tapestry throw an Exception. I have found documentation on how to override tapestry Exception ... but that launch a "200 OK" have you a solution ? -- Thomas Clavier http://www.tcweb.org Argia Engineering

Re: [T5.0.18] Setter method was not called when '@Validate' was set.

2009-02-23 Thread Ulrich Stärk
I rather meant @Property adding getters and setters in general. And like Markus, this is working fine for me (just tested it with 5.0.18). page class: @Property(write=false) @Validate("required") private String foo; public void setFoo(String foo) { this.foo = foo; System.out.println("s

Re: http error on exception

2009-02-23 Thread Ulrich Stärk
Never tested it but you should be able to inject Response, call response.setStatus(500) and response.sendRedirect(Link/String). Uli Thomas Clavier schrieb: Hello All, I search a solution to launch an http error (500) when tapestry throw an Exception. I have found documentation on how to o

Re: 5.1.0.0 upgrade issues.

2009-02-23 Thread Howard Lewis Ship
Oh yes; 5.1.0.0 is just an alpha release (that hasn't even been fully voted up yet). I hope to address glaring bugs in it in a follow on release in a couple of weeks, and progress quickly to a final release. Thanks for checking it out so early! On Mon, Feb 23, 2009 at 10:13 AM, alex_yt_cheung wr

AJAX Events

2009-02-23 Thread Davor Miku
Hi! I've found some tutorials for AJAX in Tapestry, but there all about action event, fired form actionlink component. My questions is how to define custom events, i.e.. when some is dropped. Thanks!

T5 : optional parameters in tml

2009-02-23 Thread Stephane Decleire
I would like to know what's the "best" way to manage optional parameters in the tml template ? For example, if i have to write a tag like : or based on the value of a property. In one hand, i would rather avoid tags in the template but in the other hand, something simple like validate="${myval

Re: [T5.1] Running on Glassfish?

2009-02-23 Thread xfile80303
Thanks Alex. Are you using Tapestry 5.1? Cheers, Levi akochnev wrote: > > I had tested my app on Glassfish v. 2 and v. 3 prelude and didn't have any > issues. > > Cheers, > > Alex K > -- View this message in context: http://n2.nabble.com/-T5.1--Running-on-Glassfish--tp2362542p2374812.h

Re: [T5.1] Running on Glassfish?

2009-02-23 Thread xfile80303
Hi Howard, Does Tapestry set any of these system properties: javax.xml.stream.XMLEventFactory javax.xml.stream.XMLInputFactory javax.xml.stream.XMLOutputFactory and if so, to what values? Thanks, Levi Howard Lewis Ship wrote: > > 5.1 parses templates using the Woodstock STaX parser ... and

Re: T5 : optional parameters in tml

2009-02-23 Thread Stephane Decleire
I've found that the "inherit:" parameter binding makes quite a good job in this case ! Stephane Stephane Decleire a écrit : > I would like to know what's the "best" way to manage optional parameters > in the tml template ? > > For example, if i have to write a tag like : > validate="required" />

Providing service mocks for integration tests

2009-02-23 Thread Hugo Palma
I'm implementing my user interface tests using selenium and the provided AbstractIntegrationTestSuite class. Everything is working fine. Still, i'd like to replace my DAO services implementation with some mock ones when i run the tests. The problem is that the services are declared in the applicat

Grid: multiple within grid row

2009-02-23 Thread Jason Tan
Hi, I'd like to render multiple elements within the same grid row. Searching this mailing list seems to come up with a combination of subclassing Grid and GridRows (i.e. http://tapestry.markmail.org/search/?q=override+gridrows#query:override%20gridrows+page:1+mid:ztjjoksxggnbkstv+state:results_)

t:beandisplay

2009-02-23 Thread Luther Baker
Using the t:beandisplay I noticed a subtle bug? Normally, empty fields get a label on the left and a   on the right. This keeps the spacing correct. E.g., my Hibernate Entity has two java.util.Date classes, createdOn and modifiedOn. When I display the Entity via t:beandisplay, the outer brown ba

Re: Providing service mocks for integration tests

2009-02-23 Thread dhning
What I do is, for test, to create a new application module almost the same as the one used in production, and then replace with mock dao if necessary. So the mock dao can be put in the test sources. Thanks! DH - Original Message - From: "Hugo Palma" To: "Tapestry users" Sent: Tuesd

Re: App Block

2009-02-23 Thread Thiago H. de Paula Figueiredo
On Sun, Feb 22, 2009 at 8:17 PM, Luther Baker wrote: > I have written an application property block (per the BeanEditForm tutorial) > for a custom type. Is there a ideal event in the block component when I can > assign the property to the PropertyEditContext? You don't assign values to PropertyEd

Re: @Validate a user defined property

2009-02-23 Thread Thiago H. de Paula Figueiredo
On Sun, Feb 22, 2009 at 6:48 PM, Luther Baker wrote: > Now, I'd like to add @Validate("required") to this entity - only it isn't > having any effect. I guess it only works for types Tapestry know how to handle (DefaultDataTypeAnalyzer, DataTypeAnalyzer). Maybe this could be expanded to handle any

Re: Providing service mocks for integration tests

2009-02-23 Thread Robert Zeigler
One thing I've done is to create a test module that @SubModule's the application module, and then uses alias/alias overrides to spot- override services from the sub-module (the application module) with test-specific services. Works pretty well. Robert On Feb 23, 2009, at 2/236:06 PM , Hugo

[T5.0.18] event method of actionlink was called twice

2009-02-23 Thread osamuo
Hello, The event method of ActionLink seems to be called twice. Is this expected behavior? If yes, is there any way to let the event method to be called only once? osamuo -- View this message in context: http://www.nabble.com/-T5.0.18--event-method-of-actionlink-was-called-twice-tp22176003p22