Re: t5: clear cookie when browser closes

2012-10-25 Thread sub
I also have the problem to set a so called "session cookie" with tapestry. org.apache.tapestry5.services.Cookies Interface is missing (among others) this method: public void writeCookieValue(String name, String value, String path, int maxAge) So if you want to write a Cookie with a custom path a

Re: t5: clear cookie when browser closes

2012-10-26 Thread sub
Well I ended up injecting the HttpServletResponse and use HttpServletResponse.addCookie directly. I really would liked to use the methods provided by Tapestry to keep the code clean of any workarounds, but I don't think this is possible for this issue. Thanks, Tim -- View this message in contex

Re: t5: clear cookie when browser closes

2012-10-26 Thread sub
Thiago, there already is a ticket: https://issues.apache.org/jira/browse/TAP5-1394 I voted for it. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-clear-cookie-when-browser-closes-tp3380592p5717292.html Sent from the Tapestry - User mailing list archive at Nabble.c

Extra closing tag for input elements fails html5 validation

2013-02-13 Thread sub
Hi, I have a template with a Html5 doctype: In this template, I've defined this textfield: which renders as this: This does not validate against the doctype, as the input element must be self-closing or not closed at all: How can I get Tapestry to render the textfield in this way? Tha

Re: Extra closing tag for input elements fails html5 validation

2013-02-13 Thread sub
I'm using the latest Tapestry Version 5.3.6 -- View this message in context: http://tapestry.1045711.n5.nabble.com/Extra-closing-tag-for-input-elements-fails-html5-validation-tp5720005p5720007.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: Extra closing tag for input elements fails html5 validation

2013-02-13 Thread sub
Hi Taha, thanks for your reply. I opened a issue: https://issues.apache.org/jira/browse/TAP5-2071 Regards, Tim -- View this message in context: http://tapestry.1045711.n5.nabble.com/Extra-closing-tag-for-input-elements-fails-html5-validation-tp5720005p5720016.html Sent from the Tapestry - Use

"message:" binding with dynamic param in template

2012-01-23 Thread sub
tput. What's the correct syntax to get this working? Or do I need a complete different approach? Cheers, sub -- View this message in context: http://tapestry.1045711.n5.nabble.com/message-binding-with-dynamic-param-in-template-tp5166481p5166481.html Sent from the Tapestry - User mail

Re: [T5.1] Cookies.removeCookieValue issue

2012-03-30 Thread sub
I found this old thread, since I also have the problem, that I want to remove a cookie with a custom path and there is no method to do that. Will there be a fix for this in the future? -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-1-Cookies-removeCookieValue-issue-tp24

Enum with Values in Select

2012-03-30 Thread sub
I have a enum with values: public enum Duration { ONE_HOUR(3600), TWO_HOURS(7200), FOUR_HOURS(14400), EIGHT_HOURS(28800); private final int value; private Duration(int value) { this.value = value; } public int getValue() {

Re: Enum with Values in Select

2012-04-02 Thread sub
Thiago H de Paula Figueiredo wrote > > On Fri, 30 Mar 2012 10:22:32 -0300, sub <b4679016@> wrote: > >> what I want is: >> >> >> One Hour >> Two Hours >> Four Hours >> Eight Hours >> > > Why? > I'm passing the for

How to use messages without @Inject?

2012-04-23 Thread sub
I get the message resource? I couldn't find any example on this. Thx sub -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-messages-without-Inject-tp5658897p5658897.html Sent from the Tapestry - User mailing lis

Re: How to use messages without @Inject?

2012-04-27 Thread sub
Thank you soo much Beat, this is exactly what I needed! -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-use-messages-without-Inject-tp5658897p5669692.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: T5: ValidationException from validate event leads to ERROR level logger statement

2012-04-27 Thread sub
I tried to use: @Environmental private ValidationTracker tracker; inside a custom validator class: public class MyPasswordValidator extends AbstractValidator unfortunately it is null. Did I miss something? I'm using cracklib inside my validator and there are quite a few validation steps and

Component cannot be cast to Page?

2012-05-25 Thread sub
.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662) What is going on? How can I access this method? Thanks, sub -- View this message in context

Select component and sorting order

2012-07-16 Thread sub
Hi all, I have a Country class with two-letter ISO3166 country codes, together with a select component in a form. The problem now is the sort order of these countries, default is the order within the enum, but that doesn't work very well within a multi-language site. I want the sort order alphabet

Re: Select component and sorting order

2012-07-18 Thread sub
Thanks Thiago, it is working now. Here is what I did: -- Page.java: -- @Property private Country country; @Property @SuppressWarnings("unused") private SelectModel countryModel; private Country[] getSortedCountries() { SortedMap map = new TreeMap();