> For the complete documentation index, see [llms.txt](https://avbravo-2.gitbook.io/jakartaee/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://avbravo-2.gitbook.io/jakartaee/view-esquema/detalle-maestro-detallepermiso-view.md).

# Detalle (Maestro-Detalle)\<Permiso> view

**Permiso depende de Agente.**

* **Se agregan \<a:search>\<a:searchDate>\<a:searchBetweenDate>**
* **Se colocan en\<b:row>, con \<b:columnmedium-screen="”>para una mejor distribuciòn de los elementos.**
* **Agregamos la informaciòn del padre y un botòn para regresar.**
* **Viene del formulario agente con el componente.**
* **(Se invoca desde el list Agente)**

![](/files/-Lc1WtnFjjSgC-YlTGsx)

![](/files/-Lc1WtnH6ouhGM__4ZyR)

## **Esquema**

```java
<b:form id=”form”>
    <h:panelGroup id=”content”>    
        <a:messages/>
        <b:panel title="#{app['title.data']}">
            <b:panelGrid id="panel" colSpans="2,10" >
                <p:outputLabel />  {campo llave no se edita}
            <a:inputText/>
                <a:password/>
                <a:email/>
                <a:selectOneMenu/>
            <a:autocompleteEntity/>
             </b:panelGrid>
                <a:view/>
        </b:panel>
    </h:panelGroup>
</b:form>
<a:denegado/>
```

## **Código**

```java
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html>
<ui:composition template="/layout/template.xhtml" 
                xmlns="http://www.w3.org/1999/xhtml"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:b="http://bootsfaces.net/ui"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:a="http://xmlns.jcp.org/jsf/composite/avbravo">
    <ui:define name="content">
        <style>
            .thumbnail { max-width: 100%; }
            img.thumbnail:hover, img.thumbnail:focus {
                border: 1px solid;
                border-color: #428BCA;
            }
        </style>
        <h1>#{msg['titleview.permiso']}</h1>
        <hr/>
         <b:form id="form"  prependId="false"  rendered="#{loginController.loggedIn and applicationMenu.permiso.query}" onkeypress="if (event.keyCode == 13) {
                    return false;
                }">
            <h:panelGroup id="content" layout="block"> 
                <a:messages id="msg"/>
                <b:panel title="#{app['title.data']}">
                    <b:panelGrid id="panel" colSpans="2,10" size="xs" rendered="#{permisoController.writable}"> 
                        <p:outputLabel  value="#{msg['field.idpermiso']}" />
                        <p:outputLabel  value="#{permisoController.permiso.idpermiso}" id="idpermiso"   />

                    <p:outputLabel  value="#{msg['field.idagente']}" />
                    <p:outputLabel value="#{permisoController.agente.idagente}"/>

                    <p:outputLabel  value="#{msg['field.agente']}" />
                    <p:outputLabel value="#{permisoController.agente.nombre}"/>
                   <p:outputLabel  value="#{msg['field.fechainicio']}" />
                   <a:calendar value="#{permisoController.permiso.fechainicio}" 
                                    pattern="dd/MM/yyyy HH:mm:ss" id="fechainicio"  label="#{msg['field.fechainicio']}" />

                         <p:outputLabel  value="#{msg['field.fechafin']}" />
                        <a:calendar value="#{permisoController.permiso.fechafin}" 
                                    pattern="dd/MM/yyyy HH:mm:ss" id="fechafin"  label="#{msg['field.fechafin']}" />

                    </b:panelGrid>
                    <a:view 
                        renderedDelete="#{applicationMenu.permiso.delete and permisoController.writable }"
                        renderedEdit="#{applicationMenu.permiso.edit and permisoController.writable}" 
                        renderedList="#{applicationMenu.permiso.list and permisoController.writable}"
                        edit="#{permisoController.edit()}"
                        delete="#{permisoController.delete(permisoController.permiso,true)}"
                        print="#{permisoController.print()}"
                        url="#{permisoController.prepare('golist',permisoController.permiso)}"
                        />
                </b:panel>
            </h:panelGroup>
        </b:form>
        <a:denegado renderedcondition="#{!loginController.loggedIn or !applicationMenu.permiso.query}" />
        <br/><br/><br/>
    </ui:define>
</ui:composition>
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/jakartaee/view-esquema/detalle-maestro-detallepermiso-view.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.
