practika-code

learning for coding and coding for learning

View on GitHub

VideoTutorial 4 del Taller Práctico de Java Server Faces. Reglas de Navegación.

  1. Invoke template through welcome file tag
  2. Implicit Navigation
    • <h:commandLink value="" action="inicio">
      • translated to an anchor <a>
      • plus JS <script> + <a> anchor + form post action to same address
    • <h:commandButton value="" action="inicio">
      • translated to a <input> type submit + form post action to same address
    • <h:link value="" outcome="inicio">
      • translated to an anchor <a>
      • direct link to inicio.xhtml
  3. Dynamic Navigation
    • <h:commandLink value="" action="page1">
      • translated to an anchor <a>
      • plus JS <script> + <a> anchor + form post action to page1.xhtml
    • <h:commandLink value="" action="#{bean.method()}">
      • configuration in faces-config.xml for navigation rules
      • configuration in faces-config.xml for managed bean

<hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/> <hr/>