1 Reply Latest reply on Oct 8, 2008 10:22 AM by supersango

    DataGrid and ModalPanel

    supersango

       

      <rich:dataGrid
       value="#{objectList.objectsMatched}" var="item" align="center"
       columns="4" elements="120" width="600px">
       <rich:panel id="thumb">
       <h:outputLink value="#" id="link">
       <h:graphicImage id="wadoImg"
       url="#{item.wadoUrl}&rows=200&columns=200" />
       <rich:componentControl for="BigImagePopup" attachTo="link"
       operation="show" event="onclick" />
       </h:outputLink>
       </rich:panel>
       <!-- popup con l'immagine grande -->
       <rich:modalPanel id="BigImagePopup" width="800" height="800" >
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Image"></h:outputText>
       </h:panelGroup>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/img/close.png" style="cursor:pointer"
       id="hidelink" />
       <rich:componentControl for="BigImagePopup" attachTo="hidelink"
       operation="hide" event="onclick" />
       </h:panelGroup>
       </f:facet>
      
      
       <h:graphicImage id="wadoBigImg"
       url="#{item.wadoUrl}&rows=600&columns=600" /><br>
       <h:outputText id="test" value="#{item.windowWidth}"/>
       <rich:inputNumberSlider
       id="windowWidtha" value="#{item.windowWidth}" width="500" maxValue="255" step="1"
       showToolTip="false">
       <a4j:support event="onchange" reRender="test" />
       </rich:inputNumberSlider>
       </rich:modalPanel>
       </rich:dataGrid>


      objectList.objectsMatched is an array of object

      if i put this code:
      <h:outputText id="test" value="#{item.windowWidth}"/>
       <rich:inputNumberSlider
       id="windowWidtha" value="#{item.windowWidth}" width="500" maxValue="255" step="1"
       showToolTip="false">
       <a4j:support event="onchange" reRender="test" />
       </rich:inputNumberSlider>

      outside the datagrid (using a single istance of item) it work. but if i put this in the modalPanel that i open from the cell of datagrid, it don't work...
      someone can say me why?

      thanks for the advices,
      SaNGo