hi are there any ways to call backing bean method in h:outputLink
thanks Sunny Mate
hi are there any ways to call backing bean method in h:outputLink
thanks Sunny Mate
Use a h:commandLink instead.
<h:commandLink id="next" action="#{courseBean.submit}">
<h:outputText value="Next Page »" />
</h:commandLink>
That generates a hyperlink that triggers an action when clicked.
Just execute the code in the constructor of the request scoped backing bean associated with the page.
public class Bean {
public Bean() {
// Do your thing here.
}
}