posted 10 years ago
Dear Ranchers,
Just need some assistance from you guys with handling login functionality on our eStore. Here's what is required:
1) We already have a sign in module up and running as a separate view. However, we need to provide a ;Sign In' link on the header of the store (available on all pages), clicking on this link will open a small window which will ask of user credentials.
2) I plan on having a hidden <div> block in the header element that contains the signin form. We'll enable this <div> on the 'Sign In' link click.
Here's what I have tried so far:
1) The link for 'Sign In' on the header maps to a page called 'sign-in.ep., that is handled by a controller. In this controller, in the formBackingObject() method, I return the formbean. Something similar to the following:
The Mapping File:
The Controller:
2) I've created a separate file that renders the Sign In form for now. Here's teh controller definition:
3) Now, the problem here is that I need to access the formbean returned from the controller in the header and NOT in the file 'quickSignIn'. Wondering if there is a way I can achieve this getting the formbean in teh header element so that the Login form can be seen across all pages (via the header)?
I'd appreciate any inputs on this.
Thanks.