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
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
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
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
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.
--
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
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
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
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() {
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
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
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.
-
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
.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
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
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();
16 matches
Mail list logo