Good I am trying to print in label
the name when selecting an item in a selectOneMenu
but I do not capture it the menu works well shows me all the cedulas available in my tables so my selectOneMenu
is defined %:
<p:selectOneMenu value="#{cargarArchivo.ticket.chofer}" style="width: 100%" converter="choferConverter" filter="true" filterMatchMode="contains">
<f:selectItem itemLabel="" itemValue=""/>
<f:selectItems value="#{cargarArchivo.listCho}" var="tipo" itemLabel="#{tipo.cedula}" itemValue="#{tipo}"/>
</p:selectOneMenu>
and this is the label
in which I want it to be displayed.
<p:outputLabel value="#{cargarArchivo.ticket.chofer.nombre}" />