0 Replies Latest reply on Aug 30, 2007 5:03 AM by pawel pietrasz

    t:popup and ajax problem

    pawel pietrasz Newbie

      I have code like this:

      <a4j:form>
      <a4j:outputPanel ajaxRendered="true">
      <t:dataTable id="data" var="requests"value="#{requestslist.requestsList}" rows="20">

      <t:column style="width:8%;">
      <f:facet name="header"><t:outputText value="#{msg2.column1}" /></f:facet>
      <t:popup styleClass="popup" displayAtDistanceX="12" displayAtDistanceY="12">
      <h:commandLink action="#{singlerequest.getSingleRequest}" styleClass="link2">
      <h:outputText value="#{requests.symbolNumber}" />
      <f:param name="id" value="#{requests.id}" />
      </h:commandLink>
      <f:facet name="popup">
      <h:panelGroup>
      <h:panelGrid columns="1" columnClasses="bigColumn2">
      <h:outputText value="#{requests.description}" styleClass="text1"/>
      </h:panelGrid>
      </h:panelGroup>
      </f:facet>
      </t:popup>
      </t:column>

      <t:column style="width:20%;" >
      <f:facet name="header"><t:outputText value="#{msg2.column2}" /></f:facet>
      <h:outputText id="col2" value="#{requests.subject}" styleClass="text1"/>
      </t:column>

      </a4j:outputPanel>
      <a4j:poll id = "refreshId" reRender = "data" interval = "1000" />
      </a4j:form>

      and it is fine, but when I'm reading sth from popup then after refresh my popup changes and I have to open it again, how can I change my code to avoid
      this problem ?