# \<b:navCommandLink/>

En algunas ocasiones necesitamos invocar un metodo desde el menu mediante \<b:navCommandLink/> para que este realice el salto a la pagina indica y procesar algunos aspectos necesarios.

Por ejemplo

Al dar clic en la opcion Mis Solicitudes

![](https://2578941663-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lc1Wg6ze2c8GK7mFBZX%2F-Ljw6b0o9ZFqCHkCt1VT%2F-Ljw713bWi78yCd2u1ZH%2Fmissocl.png?alt=media\&token=9c5a5cd6-e784-4ce5-ba9e-754f5b755b5a)

Invoca al método

```java
public String goList(){
        JmoordbContext.put("solicitud", "golist");
       return "/pages/solicituddocente/list.xhtml";
   }
```

Debemos agregarlo dentro de un form

```markup
 <h:form >
   <b:navCommandLink value="#{msg['menu.misolicituddocente']}" action="#{solicitudDocenteController.goList()}" rendered="#{p:ifGranted('DOCENTE')}"  iconAwesome= "fa-book" />                   
 </h:form>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://avbravo-2.gitbook.io/trucosjakartaee/overview/java-server-faces/menu/less-than-b-navcommandlink-greater-than.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
