Re: tapestry-security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 11:31 PM, angelochen wrote: > One more question, when you go to a @RequiresAuthentication page, it will > show the login page, that's good, then, the url in the browser does not > change, seems it just do a forward, is there a way to do a redirect instead > so the url got c

Re: tapestry-security

2011-12-29 Thread angelochen
Hi, One more question, when you go to a @RequiresAuthentication page, it will show the login page, that's good, then, the url in the browser does not change, seems it just do a forward, is there a way to do a redirect instead so the url got changed in the browser? thanks, Angelo -- View this mes

Re: xhr requests and thread safety

2011-12-29 Thread Paul Stanton
Thanks josh and howard, After my initial realisation it all makes more sense now. p. On 27/12/2011 9:25 AM, Howard Lewis Ship wrote: For example, rather than directly creating and manipulating an entity object inside a page or component event handler method, you might move the logic into a ser

Re: tapestry-security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 7:23 PM, angelochen wrote: > so we can do something like this: > configuration.add(factory.createChain("/admin/**").add(factory.authc()).build()); > the entire admin package should be protected, right? Exactly. Kalle --

Re: tapestry-security

2011-12-29 Thread angelochen
so we can do something like this: configuration.add(factory.createChain("/admin/**").add(factory.authc()).build()); the entire admin package should be protected, right? I like that reverse annotation approach, or probably something like https in tapestry5, once set, everything should be https un

Re: tapestry-security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 5:32 PM, angelochen wrote: > tried tynamo's tapestry-security just a few hours, it's really a very handy > framework. Thanks. > got a question, T5's annotation @Secure can be placed in a Index > page of a package that makes all the pages @Secure, can > @RequiresAuthentica

Re: tapestry-security

2011-12-29 Thread Lenny Primak
I don't believe so but you can do it very easily programmatically via auth().build() methods like it says in the guide. On Dec 29, 2011, at 8:32 PM, angelochen wrote: > Hi, > > tried tynamo's tapestry-security just a few hours, it's really a very handy > framework. got a question, T5's annota

tapestry-security

2011-12-29 Thread angelochen
Hi, tried tynamo's tapestry-security just a few hours, it's really a very handy framework. got a question, T5's annotation @Secure can be placed in a Index page of a package that makes all the pages @Secure, can @RequiresAuthentication do something similar? thanks, Angelo -- View this message in

Re: T5.3.1 a simple security

2011-12-29 Thread angelochen
hi, This works, thanks, however, it seems I can't catch the exception: @OnEvent(EventConstants.SUCCESS) Class succcess() { AuthenticationToken authenticationToken = new UsernamePasswordToken(email, password, false); try { SecurityUtils.getSubject().login(authentic

Re: CSS -> a:active

2011-12-29 Thread Chris Mylonas
Thanks Bob - I didn't think there was anything to do in Tapestry, just wanted to confirm. HomeLiveCallsByHourByDayByWeekByCLI I was trying to get the same nav bar happening as this template: http://livedemo00.template-help.com/drupal_35527/ Got everything but the a:active going :( I'll give it

Re: T5.3.1 a simple security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 9:09 AM, angelochen wrote: > thanks, that works. now I use my own login page, what needed to be set in > that log in page? Something like this: AuthenticationToken authenticationToken = new UsernamePasswordToken(username, password, rememberme);

Re: CSS -> a:active

2011-12-29 Thread Bob Harner
I'm pretty sure this is a pure HTML/CSS issue (not Tapestry-specific). Also, you didn't post your HTML, or whether your horizontal menu is updated upon selection via custom javascript, ajax refresh, or whole page refresh. Regardless, I don't believe the "active" pseudo-class is what you want here.

Re: T5.3.1 a simple security

2011-12-29 Thread angelochen
hi, thanks, that works. now I use my own login page, what needed to be set in that log in page? currently I use a sessionState data to flag as logged in, with this tapestry-security, how to change? thanks. angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-a-si

Re: Got5-JQuery - Tapestry.Zone_Updated_Event

2011-12-29 Thread Emmanuel DEMEY
When the content of a zone is updated, tapestry-jquery.js trigger an event ( Tapestry.ZONE_UPDATED_EVENT ) for this current zone. Then, you can catch this event for this zone, and execute a specific function. Here an example, $("id of your zone").bind(Tapestry.ZONE_UPDATED_EVENT, function(){

Re: T5.3.1 a simple security

2011-12-29 Thread Kalle Korhonen
On Thu, Dec 29, 2011 at 5:12 AM, angelochen wrote: > I follow the guide and added this to AppModule: > > public static void contributeWebSecurityManager(Configuration > configuration) { >                ExtendedPropertiesRealm realm = new > ExtendedPropertiesRealm("classpath:shiro-users.properties

Re: shiro authentication

2011-12-29 Thread Kalle Korhonen
On Wed, Dec 28, 2011 at 11:01 PM, csckid wrote: > I am stuck with authenticating user from database table. > In this function doGetAuthenticationInfo() don't we need to set the Subject? > What is the purpose of SimpleAuthenticationInfo? No better source for answers than [Shiro's javadoc][1]. doGe

Alert Control

2011-12-29 Thread Todd Orr
I've been playing with the alerts component and while I love the idea in general, it is not obvious how to extend it. For example, when using transient messages it just pops up and the pops out when it's done. I'd like to override this and add in a nice slide-in/out behavior. I've tried setting the

Re: T5.3.1 a simple security

2011-12-29 Thread Lenny Primak
I would just write a simple realm. I never used the Shiro.ini authentication so I can't help you there. There is also Shiro mailing list. A sample of a unix authenticating realm in in the examples (hope project) in the FlowLogix library. It's really I easy to do. On Dec 29, 2011, at 8:12 AM

Re: Got5-JQuery - Tapestry.Zone_Updated_Event

2011-12-29 Thread George Christman
Hi Manu, Thanks for the reply, would you help me to understand what I'm binding? I don't quit understand this just yet. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Got5-JQuery-Tapestry-Zone-Updated-Event-tp5103466p5107794.html Sent from the Tapestry - User mailing li

Re: T5.3.1 mongodb?

2011-12-29 Thread angelochen
Hi Christian, The two mappers you pointed out, morphia seems more Hibernate like, what's the reason you switch to Jacson? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-mongodb-tp5106689p5107779.html Sent from the Tapestry - User mailing list archiv

Re: T5.3.1 mongodb?

2011-12-29 Thread Massimo Lusetti
On Thu, Dec 29, 2011 at 11:39 AM, Igor Drobiazko wrote: > Spring Data - MongoDB is great, but I'm going to add a native > MongoDB/Tapestry integration in 5.4. I have already an internal API which > needs to be generalized before committing to Apache's SVN. I've coded an integration module too fo

Re: T5.3.1 mongodb?

2011-12-29 Thread Christian Riedel
Hi Igor, what mapper are you planning to integrate? There are several mappers out there. After using morphia[1] for some time I'm now with mongo-jackson-mapper[2] from vz.net. Cheers Christian [1] http://code.google.com/p/morphia/ [2] http://github.com/vznet/mongo-jackson-mapper Am 29.12.201

Re: T5.3.1 a simple security

2011-12-29 Thread angelochen
Hi, I follow the guide and added this to AppModule: public static void contributeWebSecurityManager(Configuration configuration) { ExtendedPropertiesRealm realm = new ExtendedPropertiesRealm("classpath:shiro-users.properties"); configuration.add(realm); }

CSS -> a:active

2011-12-29 Thread Chris Mylonas
To my fellow Tapestry aficionados, (Sorry if it made it the first time - i got a message not delivered back from my mail server (gmail)) I've been plugging away with a mock up but made a bigger effort with the CSS than normal because it's been a while. I have a little niggle though.. The a:hov

Re: T5.3.1 mongodb?

2011-12-29 Thread angelochen
Hi, Native one will be nice, is that available somewhere for me to try it now? Thanks, Angelo -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-3-1-mongodb-tp5106689p5107517.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

Re: T5.3.1 mongodb?

2011-12-29 Thread Igor Drobiazko
Spring Data - MongoDB is great, but I'm going to add a native MongoDB/Tapestry integration in 5.4. I have already an internal API which needs to be generalized before committing to Apache's SVN. On Thu, Dec 29, 2011 at 4:24 AM, angelochen wrote: > Hi, > > hibernate and t5 really goes very well, n