This content has been marked as final. Show 5 replies
custom login page can be created and it can be used in your custom template by simply creating your own login class :o_w_s_l_LoginBackingBean instead of using the default one.
otherwise the second type of solution is :
create a subform and write the following type of code in your jspx/jsff page.
<af:panelFormLayout id="pt_pfl1" >
<af:panelGroupLayout id="pgl1" layout="vertical" >
<af:inputText id="pt_it1" simple="true"
<af:inputText id="pt_it2" simple="true"
<af:spacer width="3" height="3" id="pt_s2"/>
<af:panelGroupLayout id="pt_pgl14" layout="horizontal" halign="end" >
this is a sample code,may be some errors are present.but it should work definity if you mention the login success page in faces-config.xml.
Hope ,it will help you.
Thanks for your reply Hoque......
At this moment the workings of the o_w_s_l_LoginBackingBean are not really the problem.............yet.
I know that when you generate a standard portal app, you get the home and login pages for free.
This login page works. The only problem now is that, at the moment of starting up the application, I want to have the login page displayed first.
After you have entered your username and password, you should be taken to the home page. So in my faces config I have connected the login_success action to my home page. On the home page, when clicking the logout link, you should end up on the login page again. To accomplish this, I have connected the logout_success action to my login page.
The problem here is that when I'm trying to run my application, I'm getting a Error 404--Not Found page. So, my guess is that there is something wrong in the pages.xml file or the jazn-data.xml (or both), but I cannot figure out what. I have tried a lot of different scenario's with these two files, but nothing helps. At this stage, I have not even tried to use the o_w_s_l_LoginBackingBean.
I hope you also have an answer to this......
if you want to show the first page while running the application do the below mentioned steps.
1)there is a file : index.html where you have to mention the first page .index.html is located at /web content folder.
in index.html write the following codes
<meta http-equiv="refresh" content="0;url=./faces/pages_firstpage" />
2)add all the pages in pages.xml.
(provided if you are using pages.xml only.if you use navigation.xml for navigation then change the view-id's according to your navigation.xml).
Hope,it will resolve your problem.
Thanks for your efforts. have found an alternative that works and is acceptable.
I'm now using only one page, so, I'm leaving the initial settings in my faces-config fils as they were when generated.
I have dragged two taskflows to the home page. one with the login fiields and the other is the landing page.
I´m showing them depending on if you are logged in or not. Also, the landing taskflow doesn´t have grants to the public role. The login TF does.