Problem with rich:modalPanel
semen_up Aug 9, 2010 8:30 AMHi all!,
I have a problem that I don´t manage to solve ... so any help will be welcome!
In my application I need to show a modal panel in which I can consult information. The problem is that I open the modal panel and does not do anything; I try to do some consultation but in my bean the information of filter that I have informed does not exist (the attributes of the bean always are null).
The invocation to the modal panel (to try I have made a .jsp that only has a button):
<a4j:include viewId="../helpers/helperAgentes.jsp"/>
<a4j:commandButton value="Abrir pop up" type="button" oncomplete="#{rich:component('confirmacion')}.show()" styleClass="boton" style="cursor:hand" />
My modal panel is in an individual .jsp because I need to use it in the whole application:
<body>
<rich:modalPanel id="confirmacion" left="100" top="100" height="465" width="850" rendered="true">
<rich:panel id="busqueda" header="Búsqueda" style="width: 830px; height:150px;" rendered="true">
<table id="filtros" border="0" cellpadding="0" cellspacing="0" width="70%">
.... Filters of the query ....
</table>
<br>
<a4j:commandButton type="button" id="btnConsultar" value="Consultar" action="#{helperAgentes.consultarAgente}" styleClass="boton" style="cursor:hand" reRender="idTablaConsulta,tabla"/>
</rich:panel>
<rich:simpleTogglePanel switchType="client" label="Listado" id="idTablaConsulta" width="830px" >
<rich:extendedDataTable
value="#{helperAgentes.tablaConsulta}"
var="agente" id="tabla"
width = "798px" height="200px"
sortMode="single"
selectionMode="single"
selection="#{helperAgentes.selection}"
style="width: 1129px">
... results ....
</rich:extendedDataTable>
</rich:simpleTogglePanel>
<br>
<a4j:commandButton id="btnCerrar" value="Cerrar" onclick="javascript:Richfaces.hideModalPanel('confirmacion');" styleClass="boton" style="cursor:hand"/>
</rich:modalPanel>
</body>