mardi 5 mai 2015

JSF 2 invoke another bean in view and render their view

Following Example:

i have got three Beans:

  1. GeneralBean
  2. SpecificBean1
  3. SpecificBean2

The view of the GeneralBean consists of an accordion that represents a list. Now i would like to invoke the SpecificBean1 if a condition matches:

<c:if test="${condition==true}">
  <ui:include src="SpecificBean1.xhtml" />
</c:if>

The above examples includes the view but does not invoke the bean in the background. Is it possible to achieve that? If yes, how?

Aucun commentaire:

Enregistrer un commentaire