-
1. Re: Login page customization - add new fields
felixb Feb 28, 2012 11:10 AM (in response to felixb)I've decided to by pass this problem and I forward the user to a new page when he has to change his password...
Anyway, informations are welcome to improve my knowledge on this subject
-
2. Re: Login page customization - add new fields
antoine_h Feb 28, 2012 11:45 AM (in response to felixb)Yes, it is better not to touch the login process, when it is possible to forward the user to other dedicated pages.
it will be more clean, easy to code, and stable.
When you will upgrade the version, it will be more simple also this way : with the upgrade to JBoss 7, the login.jsp might be changed, hence, you'll have to redo the code with your customization etc...
****** Login view inside the home page or any page
The other thing I do is to make some LoginProcessPortlet, and add it in the banner of the page.
The user logs in directly on the home page (or any page).
This portlet change it's presentation when the user is logged in : it shows the name, and... propose the links to the user account management or change the password pages.
The view for logging remains small (in the banner) and forward to dedicated pages for the "user profile management" and the change password,... and any other operation on user info and login.
This is convenient... as these pages will usualy be needed anyway : they are used from the regular menu of the portal/business application, and from the Login view.
Then, the login.jsp is used only if the user comes back with a Bookmark, directly in a "private" page.
*******
So, to sum up, for making a login view, you need to build :
- LoginViewAndUserLoggedInShortViewPortlet (both login or view the logged in user)
- a page for user account management (profile info, etc...)
- a page for password change
- customize the login.jsp, (still used sometimes)
And you may want to have a look at this wiki from Julien Viet (if not yet done).
it is very clear and interesting : https://community.jboss.org/wiki/GateInSignIn
Antoine
JBoss Portal and GateIn (JSR-286), JSF, Richfaces, J2EE, Drools, BRMS.
http://www.sysemo.com/Sysemo-expertise-portails-jboss-portal.php
-
3. Re: Login page customization - add new fields
felixb Feb 28, 2012 11:56 AM (in response to antoine_h)Antoine,
Thank you for this clear explaination. This is clearer now!
-
4. Re: Login page customization - add new fields
antoine_h Feb 29, 2012 3:23 AM (in response to felixb)happy it helps.
by the way, you will be able to view all this "login way" on a running portal, with the login window on the top right of the banner etc... at :
the portal will be starting approximatively at the end of march, or may be sooner for the beta test.
Antoine
JBoss Portal and GateIn (JSR-286), JSF, Richfaces, J2EE, Drools, BRMS.
http://www.sysemo.com/Sysemo-expertise-portails-jboss-portal.php
-
5. Re: Login page customization - add new fields
antoine_h Feb 29, 2012 12:52 PM (in response to antoine_h)1 of 1 people found this helpfulyou also have these two wiki, which are related to login and logout processes... and are very interesting.
Monitor login/logout of users in your portal
http://community.jboss.org/wiki/MonitorLoginlogoutOfUsersInYourPortal
Redirect a user to page on login/logout based on role
http://community.jboss.org/wiki/RedirectAUserToPageOnLoginlogoutBasedOnRole
-
6. Re: Login page customization - add new fields
felixb Mar 1, 2012 3:54 AM (in response to antoine_h)Thanks once again for those two very interesting wiki pages!