Re: Keeping the session alive pattern?

2013-02-06 Thread Bård Magnus Kvalheim
If you can do with activation context - then look no further.. I guess though what you're requesting is user data/login persistence. We have been quite happy with storing user 'tokens' in cookies - and transparently logging in users (put in session) prior to any page or component activity. We ha

Re: how to recordError against a form field in a loop

2013-02-06 Thread Shing Hing Man
The following example might be useful. http://lombok.demon.co.uk/tapestry5Demo/test/crossvalidation Shing From: John To: users@tapestry.apache.org Sent: Wednesday, February 6, 2013 9:28 PM Subject: how to recordError against a form field in a loop How do I

Re: [Tapestry4.1] web site links broken

2013-02-06 Thread Thiago H de Paula Figueiredo
On Wed, 06 Feb 2013 17:02:02 -0200, Aaron Kaminsky wrote: Of course! I feel a bit foolish for not having tried that already. Thanks Thiago, you are (as always) immensely helpful. :) I try to be useful. :) I would still like to know if there is a plan to restore the public site, or if it

RE: [Tapestry4.1] web site links broken

2013-02-06 Thread Aaron Kaminsky
Of course! I feel a bit foolish for not having tried that already. Thanks Thiago, you are (as always) immensely helpful. :) I would still like to know if there is a plan to restore the public site, or if it is really dead. Regards, Aaron -Original Message- From: Thiago H de Paula Figu

Re: [Tapestry4.1] web site links broken

2013-02-06 Thread Thiago H de Paula Figueiredo
On Wed, 06 Feb 2013 16:35:59 -0200, Aaron Kaminsky wrote: Thanks for the update. Hopefully someone can fill in a couple of details for me. Is there a plan to repair the Tapestry 4.1 site, or is it going away for good? Either way, you can use the Internet Archive's Wayback Machine: http

RE: [Tapestry4.1] web site links broken

2013-02-06 Thread Aaron Kaminsky
Thanks for the update. Hopefully someone can fill in a couple of details for me. Is there a plan to repair the Tapestry 4.1 site, or is it going away for good? I downloaded the docs, and maybe I am doing something wrong but I only see a few pieces of what was on the web site. Is there a place

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Kevin White
On 2/6/2013 12:13 PM, Lance Java wrote: > Don't use the tag body, use a component parameter instead much like how the > outputraw component works. > > I was able to do it with a parameter. I thought that doing it with the body was more natural, but it looks like maybe not. Thanks. Kevin --

Re: Keeping the session alive pattern?

2013-02-06 Thread Lenny Primak
I wouldn't recommend using spring security. I believe you are using tapestry-security already and it works wonderfully. On Feb 6, 2013, at 9:16 AM, sommeralex wrote: > thx! > > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Lance Java
http://tapestry.apache.org/component-parameters.html -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-6-HTML-encode-text-tp5719795p5719823.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Lance Java
Don't use the tag body, use a component parameter instead much like how the outputraw component works. -- View this message in context: http://tapestry.1045711.n5.nabble.com/t5-3-6-HTML-encode-text-tp5719795p5719821.html Sent from the Tapestry - User mailing list archive at Nabble.com. --

Re: [ANN] JumpStart 6.6.5 get more AJAX

2013-02-06 Thread Muhammad Gelbana
Thank you. Your project is definitely a great resource ! On Wed, Feb 6, 2013 at 12:46 PM, Geoff Callender < geoff.callender.jumpst...@gmail.com> wrote: > Hi all, > > JumpStart 6.6.5 is out, and plenty more examples have been added since the > last announcement: > > * An "AJAX Filtered Gri

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Kevin White
On 2/6/2013 4:02 AM, Lance Java wrote: > I'd just write my own component, SpecialOutput, which splits the input on > CRLF and uses MarkupWriter.write(...) for text you want escaped and > MarkupWriter.writeRaw(...) for text you don't want escaped. > > IMHO I think that using paragraph tags (...) is

Re: Spring injection by interface

2013-02-06 Thread lukaszkaleta
Yes, I am using this library ;) The only difference I am having is own ContextLoaderListener which do something like this: -- View this message in context: http://tapestry.1045711.n5.nabble.com/Spring-injection-by-interface-tp5719810p5719815.html Sent from the Tapestry - User mailing list a

Re: Keeping the session alive pattern?

2013-02-06 Thread sommeralex
thx! -- View this message in context: http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-tp5719771p5719812.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: u

Re: Spring injection by interface

2013-02-06 Thread Nicolas Barrera
Have you read this? http://tapestry.apache.org/integrating-with-spring-framework.html you should be using a tapestry library called tapestry-spring for this: @Inject private MyBeanClass mbc; to work. cheers Nicolás.- On Wed, Feb 6, 2013 at 9:47 AM, lukaszkaleta wrote: > I am using tapestry

Spring injection by interface

2013-02-06 Thread lukaszkaleta
I am using tapestry spring with compatibility mode: This is mine bean definition: I try this: but I got following exception I also try with but no luck. If I @Inject ApplicationContext I can access the bean from it, but I would like to get it directly. I am using tapestry: Tapestry 5.3.

Re: localizationSetter.setLocaleFromLocaleName(...) doesn't work correctly

2013-02-06 Thread René Bernhardsgrütter
I've found a solution. It (only?) works with a ComponentRequestFilter instead the RequestFilter. The code looks like this: AppModule.java: public static void bind(ServiceBinder binder) { binder.bind(LocaleRequestFilter.class).withId("LocaleRequestFilter"); } public static void

[ANN] JumpStart 6.6.5 get more AJAX

2013-02-06 Thread Geoff Callender
Hi all, JumpStart 6.6.5 is out, and plenty more examples have been added since the last announcement: * An "AJAX Filtered Grid" example. * More and better AJAX Select examples. * Better "Putting It All Together" examples, esp. less use of @Persist. * An HTML5 Inpu

Re: Tapestry-Spring: Abstract spring bean produce NPE

2013-02-06 Thread Lance Java
I think you're hitting this issue: https://issues.apache.org/jira/browse/TAP5-1837 The current tapestry-spring integration attempts to add all spring beans to the registry, including abstract beans. A check for BeanDefinition.isAbstract() needs to be added in SpringModuleDef. -- View this mes

Re: Keeping the session alive pattern?

2013-02-06 Thread Lance Java
>From what I can see, the flowlogix library seems to be a clientside (javascript poll) based solution. For a serverside based solution, you might want to look at one of the security frameworks. For instance tapestry-spring-security [1] has the following configuration symbol: spring-security.loginf

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Lance Java
I'd just write my own component, SpecialOutput, which splits the input on CRLF and uses MarkupWriter.write(...) for text you want escaped and MarkupWriter.writeRaw(...) for text you don't want escaped. IMHO I think that using paragraph tags (...) is more semantic than -- View this message in c

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Rural Hunter
cann't you use outputraw? 于 2013/2/6 13:30, Kevin White 写道: I have a chunk of UTF-8 text that came from a database table. It has embedded CRLFs in it, so that if you grab the text out of the table, it breaks up into long lines of text with blank lines in between them. The intention is that a p

Re: [t5.3.6] HTML encode text

2013-02-06 Thread Christian Riedel
Hi Kevin, the component you're looking for is OutputRaw: http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/OutputRaw.html If you prefer to code your own component with MarkupWriter you'd do it like that: public class PlainOutput { @Parameter private String tex

[t5.3.6] HTML encode text

2013-02-06 Thread Kevin White
I have a chunk of UTF-8 text that came from a database table. It has embedded CRLFs in it, so that if you grab the text out of the table, it breaks up into long lines of text with blank lines in between them. The intention is that a program capable of word-wrapping the text would then display it,