ajax - How to just update "rendered" property in JSF -


i've got list of documents , need update @ once. did this:

<ui:repeat id="r_list" value="#{tareacontroller.controlador.documentosindexar}" var="documentos" > 

where documentosindexar list of documents. displays documents , properties fine. have 2 panelgrids, 1 viewer of document , 1 information. @ bottom of information there's list of documents.

i need fill document's information select 1 without losing previous one. i'm trying update whole ui:repeat , renders next document , information ok information of previous 1 lost. tried doing:

<ui:repeat id="r_list">  <p:panelgrid id="pg_document" rendered="#{tareacontroller.controlador.documentoseleccionado.id eq documentos.id}">  <---- document components here ---->  <p:ajax event="rowselect" update=":f_tarea:r_list:pg_document" listener="#{tareacontroller.controlador.reemplazarlista(tareacontroller.documentoseleccionado)}"/> </p:panelgrid> </ui:repeat> 

all components, , well, page inside form called f_tarea, template. when above update panelgrid list, one, , variable in rendered condition changed, panelgrid dissapear. basically, want update rendered condition on panelgrids inside ui:repeat, 1 hides , 1 shown without losing previous one's information.

ok. excuse me i'm completly stupid. tried doing haven't done before: downloading primefaces manual. on ajaxbehavior section there's "process" 1 process component in partial request. fixed doing:

<p:ajax event="rowselect" process=":f_tarea:r_list:pg_documento" update=":f_tarea:pg_doc" listener="#{tareacontroller.controlador.reemplazarlista(tareacontroller.documentoseleccionado)}"/> 

i won't delete question in case helps in future.


Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -