cancel
Showing results for 
Search instead for 
Did you mean: 

login and events

soeursourire
Champ in-the-making
Champ in-the-making
Hi!

I am getting into troubles because I would like the following:

-clicking on the button login of login.jsp I would like to check the username and authentication like done in LoginBean.login but also I would like to access the nodes of the repository to prepare my browse.jsp page. For example I have some nodes person and some nodes functionsOfPerson and I would like to look into the nodes in MySQL to display the function of the person in browse.jsp.

However I guess that I need an action event before accessing the nodes and the login does not allow me to do that:
<h:commandButton id="submit" action="#{MyLoginBean.login}" value="#{msg.login}" />

I would need something like that as well:
<a:actionLink value="#{msg.login}" action="login" actionListener="#{MyBrowseBean.startBrowseBean}" >

Can I call startBrowseBean in login()? How?
Please could you advise me on the best way and how to do this?

Thanks
1 REPLY 1

soeursourire
Champ in-the-making
Champ in-the-making
Plus if I call MyBrowseBean.startBrowseBean from browse.jsp that is working fine although if I call it from login.jsp page that does not work I have troubles with Map<String, Object> props = node.getProperties();
I do not understand why??