not preserved
Hi, I discovered that is not preserved, and the resulting html has plain space. This is a problem for my site. Example: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; xmlns="http://www.w3.org/1999/xhtml"; xml:space="preserve"> This is Test produces in html: This is Test Thank you. RS. -- View this message in context: http://www.nabble.com/-nbsp--not-preserved-tp21865953p21865953.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
RE: tapestry-spring-security: how to set ASO on successful login?
Off topic: is there a way of instructing spring-security not to create a session before authentication (kind of 'no role at all' rather than ROLE_ANONYMOUS)? I am thinking about a web site with big traffic - creation of too many sessions for public pages will really slow it down... Jonathan Barker wrote: > > IIRC, the default configuration for tapestry-acegi resulted in > ROLE_ANONYMOUS being given to unauthenticated users. That resulted in the > creation of the session. > -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20888633.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tapestry-spring-security: how to set ASO on successful login?
Why do you expect that the session already exists so that you have to invalidate it? Does spring-security create it automatically? > Session s = _request.getSession(false); > s.invalidate(); > s = _request.getSession(true); -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20888463.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-spring-security: how to set ASO on successful login?
I was using tapestry-spring-security. -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20885666.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tapestry-spring-security: how to set ASO on successful login?
Thank you Jonathan, My login page is 'user/login', and this is what i have in configuration of spring-security: configuration.add("spring-security.loginform.url", "/user/login"); configuration.add("spring-security.failure.url", "/user/login/failed"); Then spring-security hijacks all submits from login page. I did not do any custom filter creation in addition to that. In your application, what is the 'loginform.url'? Does it point to the actual tapestry login page? Assuming that in your case spring-security does *not* hijack the submits from the login page, does it still redirects to login page if a user tries to access some other secured page without being authenitcated? Thank you. R. -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20885230.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry-spring-security: using custom AuthenticationProcessingFilter
I am trying to use my custom implementation of org.springframework.security.ui.webapp.AuthenticationProcessingFilter with tapestry-spring-security. By looking at the source of tapestry-spring-security i see this in SecurityModule: public static void contributeHttpServletRequestHandler( OrderedConfiguration configuration, @InjectService("AuthenticationProcessingFilter") HttpServletRequestFilter authenticationProcessingFilter, ...) How can I tell tapestry-spring-security to use my own implementation of AuthenticationProcessingFilter without modifying tapestry-spring-security code? Thank you. R. -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-using-custom-AuthenticationProcessingFilter-tp20877071p20877071.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tapestry-spring-security: how to set ASO on successful login?
Thank you. "You could work with the ASO in the relevant onSuccess method." - i wish i could - my onSuccess method for my Login page is *not* being called b/c tapestry-spring-security filter hijacks the request to that url. Once spring-security's filter (and it is not a Tapestry's filter) start processing the request, i need to be able to do something with the ASO. Currently I am planning to subclass org.springframework.security.ui.webapp.AuthenticationProcessingFilter and overwrite onSuccessfulAuthentication method to create ASO. In order to do that I need reference to ApplicationStateManager. However, i can't figure out a way of how to get it except for a very ugly one: 1. I create a TapestryExposer eager service, which on construction, remembers ApplicationStateManager passed to the constructor and set itself into a Spring-defined bean called 'TapestryExposerHolder' 2. in my custom spring-security filter's (non-tapestry filter) onSuccessfulAuthentication method I lookup TapestryExposerHolder, and from it get TapestryExposer, and from that I get ApplicationStateManager. ugr. I anyone can come up with a cleaner way of doing something with ASO after successful authentication by spring security, it is really appreciated. R. -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20874204.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tapestry-spring-security: how to set ASO on successful login?
sorry, instead of "and my Index java page in never called" i meant "and my Login java page is never called". -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20865881.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry-spring-security: how to set ASO on successful login?
Hi, I would like to create and set ASO on successful login. Without using tapestry-spring-security my Login page looked like this: public class Login { Object onSuccess() { boolean authResult = authenticate(); if (authResult) { // create and set ASO 'myState' } } @ApplicationState(create=false) private MyState myState; } after integrating with tapestry-spring-security, spring security intercepts submits from the login form, and my Index java page in never called. I was thinking about providing my own AuthenticationProcessingFilter and there setting new instance of ASO in http session manually, but it is very ugly because I will have to invoke this method from SessionApplicationStatePersistenceStrategy (which is private, so I will need to use reflection tricks to overcome, and you get the picture - it becomes really ugly): private String buildKey(Class asoClass) { return PREFIX + asoClass.getName(); } Any help is appreciated. R. -- View this message in context: http://www.nabble.com/tapestry-spring-security%3A-how-to-set-ASO-on-successful-login--tp20865863p20865863.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Multi-select list
I saw palette, but I would like to have just one list from which users can highlight several rows - not have to move them around from 'available' to 'selected' (which requires two lists) Thank you. Roman. -- View this message in context: http://www.nabble.com/Multi-select-list-tp20533280p20538365.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Multi-select list
Hi, I could not find multi-select list in the list of T5 components. Appreciate if you can point me to right place of how to use/get it. Thank you. Roman. -- View this message in context: http://www.nabble.com/Multi-select-list-tp20533280p20533280.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: subpackages under .pages
i was using http://localhost:8080/app/customer/CustomerData instead of http://localhost:8080/customer/CustomerData. Thank you very much for your help! Onno Scheffers-3 wrote: > >> >> pages->customer->CustomerData.java >> pages->manager->Manager.java >> >> webapp->customer->CustomerData.tml >> webapp->manager->Manager.tml >> >> is it possible? How to refer to these pages in the url? >> .../customer/CustomerData did not work... > > > > That's pretty much how I do it and it works just fine. > > Have you tried accessing the url /customer/Data in your browser? Tapestry > might just try and clean the duplication away to keep your urls tidy and > short. > > > regards, > > Onno Scheffers > > -- View this message in context: http://www.nabble.com/subpackages-under-.pages-tp19662554p19680437.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
subpackages under .pages
Hi, I am trying to figure how how to structure my templates and pages into dedicated sub-packages like: pages->customer->CustomerData.java pages->manager->Manager.java webapp->customer->CustomerData.tml webapp->manager->Manager.tml is it possible? How to refer to these pages in the url? .../customer/CustomerData did not work... Thank you. -- View this message in context: http://www.nabble.com/subpackages-under-.pages-tp19662554p19662554.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]