AnsweredAssumed Answered

login and events

Question asked by soeursourire on Mar 28, 2006
Latest reply on Mar 28, 2006 by soeursourire

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?