div block ID name collisions with 3rd party libraries
Folks, I am operating a tapestry web app. I have my own web app specific layout which defines a myriad of DIV blocks that use ID for "header", "content", "page", "main", etc and I operate these ID definitions heavily within my own CSS. But then along comes a third party library that promotes usage of their component implementations. But I dont know what they are operating for DIV block ID names. I guess I was able to get the source code I could see. Lets just say a component library decides to release a dozen components while operating DIV blocks and coincidentally decides to use the ID's for the DIV's "header", "content", "page", "main", etc and they also decide to operate these ID definitions heavily within their own CSS. Is there going to be a problem here ? Specifically collision ? Can anyone comment on this ? Should web app developers be appending the two letters "My" in front of their DIV block ID's if such a component library existed and does operate ID's for the DIV's "header", "content", "page", "main", etc and they also decide to operate these ID definitions heavily within their own CSS. Thanks for your input to this subject
RE: logout taking me to home instead of login
George, Thanks friend... that worked terrific. I used both annotations @RequiresAuthentication @RequiresUser
Re: multiple select
Take a look at Checklist and Palette http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Palette.html http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/components/Checklist.html
Re: logout taking me to home instead of login
Do you have security associated with the home page? That might be needed to force the redirection and eliminate your NP. I have the following configuration, @RequiresUser added to my index page. App Module configuration.add(SecuritySymbols.LOGIN_URL, "/login"); Logout Action Class onActionFromLogout() { // Need to call this explicitly to invoke onlogout handlers (for remember me etc.) SecurityUtils.getSubject().logout(); try { // the session is already invalidated, but need to cause an exception since tapestry doesn't know about it // and you'll get a container exception message instead without this. Unfortunately, there's no way of // configuring Shiro to not invalidate sessions right now. See DefaultSecurityManager.logout() // There's a similar issues in Tapestry - Howard has fixed, but no in T5.2.x releases yet request.getSession(false).invalidate(); } catch (Exception e) { } return Index.class; } On Thu, Apr 25, 2013 at 10:10 AM, Ken in Nashua wrote: > The logout handlers are virtually identical for HOME and LOGIN pages > > Here is the HOME one... > http://localhost:9011/pphl/home.layout.loginlink.tynamologoutlink > > Here is the LOGIN one for the URL on my browser bar > http://localhost:9011/pphl/login.tynamologoutlink > > Can anyone explain why the HOME link keeps bringing me home instead of > back to LOGIN ? > > Thank You > -- George Christman www.CarDaddy.com P.O. Box 735 Johnstown, New York
RE: logout taking me to home instead of login
The logout handlers are virtually identical for HOME and LOGIN pages Here is the HOME one... http://localhost:9011/pphl/home.layout.loginlink.tynamologoutlink Here is the LOGIN one for the URL on my browser bar http://localhost:9011/pphl/login.tynamologoutlink Can anyone explain why the HOME link keeps bringing me home instead of back to LOGIN ? Thank You
RE: multiple select
It will help you https://wiki.apache.org/tapestry/Tapestry5MultipleSelectOnObjects -Original Message- From: John [mailto:j...@quivinco.com] Sent: Thursday, April 25, 2013 4:37 PM To: users@tapestry.apache.org Subject: multiple select Hi, Is there a neat way to have a multiple select componenet in Tapestry 5? I see that t:multiple="true" (or ="false") seems to allow multi selection. Is this a deprecated function, or how does it work with the page class? John - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
logout taking me to home instead of login
Hi Folks, I believe my webapp is wired up properly. But not so when I click logout link. Here is my logout link handler. @InjectPage("Login") private Login loginPage; Object onActionFromTynamoLogoutLink() { // Need to call this explicitly to invoke onlogout handlers (for // remember me etc.) SecurityUtils.getSubject().logout(); try { // the session is already invalidated, but need to cause an // exception since tapestry doesn't know about it // and you'll get a container exception message instead without // this. Unfortunately, there's no way of // configuring Shiro to not invalidate sessions right now. See // DefaultSecurityManager.logout() // There's a similar issues in Tapestry - Howard has fixed, but no // in T5.2.x releases yet request.getSession(false).invalidate(); } catch (Exception e) { } return loginPage; } I have yet to see it take me to Login on clicking my logout link on my home page. USE CASE: So... if while the app is up and running at Home page... I click logout link, it takes me to Home page and I get NPE for referring to what become null structures in my home template. USE CASE: But... if while the app is up and running at Home page... I click the URL http://localhost:9011/pphl/login i am brought to login page in its inverted form which shows the same logout link Logout and when I click that same structured link as the same one in my home page, this one takes me back to the login page like its suppose to. I have these configured configuration.add(SecuritySymbols.LOGIN_URL, "/" + PATH_PREFIX + "/login"); configuration.add(SecuritySymbols.SUCCESS_URL, "/home"); configuration.add(SecuritySymbols.UNAUTHORIZED_URL, "/" + PATH_PREFIX + "/unauthorized"); Is there a deficiency in tapestry preventing me from gracefully operating the first USE CASE ? Thanks for any tips. Ken
multiple select
Hi, Is there a neat way to have a multiple select componenet in Tapestry 5? I see that t:multiple="true" (or ="false") seems to allow multi selection. Is this a deprecated function, or how does it work with the page class? John