jsf - Primefaces lightBox problem -


i have created page primefaces use lightbox component.

i use in dynamic matter create tumbnails on fly servlet call.

the first page shows nice , lightbox works expected when load new set of pictures next page pictures shown when click on it, shows original picture in new page, when return previous button , click on a thumbnail works expected.

this jsf code:

<h:outputlabel id="curpage" value="#{picturebean.currentpage}" /> <h:commandbutton value="next" action="#{picturebean.nextpage}" id="next">  <f:ajax render="lightbox curpage" /> </h:commandbutton>  <br/>  <p:lightbox height="500px" id="lightbox">     <ui:repeat value="#{picturebean.pictures}" var="pic">         <h:outputlink value="#{pic.url}" title="#{pic.description}">            <h:graphicimage value="#{pic.urlthumb}" style="width:100px;height:75px;"/>         </h:outputlink>     </ui:repeat> </p:lightbox> 

i fixed myself :-) forgotten add tags between form tags.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -