1 Reply Latest reply on Jun 5, 2008 9:21 AM by hhuber

    a4j:region renderRegionOnly not working with broken img link

    hhuber

      hello,

      i have a a4j:region that is updated with search results.
      the results show a thumbnail image.
      if the link to the image is broken not only the region but the whole page is rerendered.

       <h:form>
       <a4j:region>
       <a4j:outputPanel id="displayFilterList" ajaxRendered="true">
       <h:inputText id="input" value="#{searchBean.userQuery}">
       </h:inputText>
       <a4j:commandButton id="btnTest" value="Test" action="#{searchBean.doSearch}"/>
       <p/>
       <h:dataTable border="1" width="100%" id="mediaResultTable"
       value="#{searchBean.searchContextMedia.resultList}" var="item"
       >
       <h:column>
       Thumbnail:
       <h:graphicImage id="image1" value="#{item.thumbnail}" /> <br/>
       Title: #{item.title} <br/>
       </h:column>
       </h:dataTable>
       </a4j:outputPanel>
       </a4j:region>
       </h:form>
       <hr/>
       #{contentBean.testMethod}
      


      if #{item.thumnail} is a broken link the method #{contenBean.testMethod} is called during the ajax-update.

      is this by design or a bug?