2 Replies Latest reply on Nov 27, 2007 9:38 AM by Jan Blankenhorn

    rich:datatable adds <br/> after refreshing

    Jan Blankenhorn Newbie

      Hi,

      I got the following problem. I have a <rich:datatable> which displays some data.

      Everything works quite fine.

      The problem is, that when i refresh the table, all cells in the second row are filled with a leading

      Here is the same cell before and after refresh:

      <td class="dr-table-cell rich-table-cell immocell immobeschreibung" id="j_id85:resultList:0:j_id106">
      Ort: Aidlingen
      <br/>
      Landkreis: Böblingen</td>


      <td class="dr-table-cell rich-table-cell immocell immobeschreibung" id="j_id85:resultList:0:j_id106">
      <br/>
      Ort: Aidlingen
      <br/>Landkreis: Böblingen</td>
      


      Here is the JSF Code:
      <rich:dataTable id="resultList" rows="6"
       var="record" styleClass="immotabelle" value="#{immoSearchBean.searchResultList}"
       headerClass="immoheader" footerClass="immofooter"
       binding="#{immoSearchBean.resultTableData}" columnClasses="immocell"
       renderd="#{resultCount} > 0">
      
       <f:facet name="header">
       <rich:columnGroup >
       <rich:column styleClass="immoheadercell">
       <rich:spacer />
       </rich:column>
       <rich:column styleClass="immoheadercell">
       <h:outputText value="#{bundle.sr_tabHeaderNameOrt}" />
       </rich:column>
       <rich:column styleClass="immoheadercell">
       <h:outputText value="#{bundle.sr_tabHeaderFlachePreis}" />
       </rich:column>
       <rich:column styleClass="immoheadercell">
       <h:outputText value="#{bundle.sr_tabHeaderGeaendert}" />
       </rich:column>
       </rich:columnGroup>
       </f:facet>
      
       <rich:column styleClass="bild" rowspan="2">
       <h:commandLink action="#{immoSearchBean.openDetail}"> <h:graphicImage value="/images/immo01.jpg"></h:graphicImage></h:commandLink>
       </rich:column>
       <rich:column colspan="2" styleClass="immoheadline">
       <h:selectBooleanCheckbox id="checkd_3f" style="float: left; margin-right: 5px;" title="Dieses Objekt auswählen"/><h2><h:commandLink value="#{record.objectDescription}" action="#{immoSearchBean.openDetail}"></h:commandLink></h2>
       </rich:column>
       <rich:column styleClass="immoheadline">
       <span><h:outputText value=""></h:outputText></span>
       </rich:column>
       <rich:column breakBefore="true" styleClass="immobeschreibung">
       <h:outputText value="#{bundle.sr_ort}: "></h:outputText>
       <h:outputText value="#{record.city}"></h:outputText>
       <br/>
       <h:outputText value="#{bundle.sr_landkreis}: "></h:outputText>
       <h:outputText value="#{record.county}"></h:outputText>
       </rich:column>
       <rich:column>
       <h:outputText value="#{record.useOpportunities}"></h:outputText>
       <strong>
       <h:outputText value="#{record.mainAreaFrom}"></h:outputText>
       <h:outputText value=" - "></h:outputText>
       <h:outputText value="#{record.mainAreaTo}"></h:outputText>
       </strong>
       <h:outputText value="#{bundle.sr_flaecheEinheit}"></h:outputText>
      
       <h:panelGroup rendered="#{record.useOpportunitiesBeside}">
       <br/>
       <h:outputText value="#{record.useOpportunitiesBeside}" ></h:outputText>
       <strong>
       <h:outputText value="#{record.besidesAreaFrom}"></h:outputText>
       <h:outputText value=" - "></h:outputText>
       <h:outputText value="#{record.besidesAreaTo}"></h:outputText>
       </strong>
       <h:outputText value="#{bundle.sr_flaecheEinheit}"></h:outputText>
       <br/>
       </h:panelGroup>
       <h:panelGroup rendered="#{record.mainAreaRent > 0}">
       <strong><h:outputText value="#{record.mainAreaRent} "></h:outputText></strong>
       <h:outputText value="#{record.mainAreaRentUnit}"></h:outputText>
       <br/>
       </h:panelGroup>
      
       </rich:column>
       <rich:column>
       <h:outputText value="#{record.lastModification}"></h:outputText>
       <br/>
       <div class="details">
       <h:commandLink value="Details" action="#{immoSearchBean.openDetail}" styleClass="weiter"></h:commandLink>
       </div>
       </rich:column>
      
       <f:facet name="footer">
       <rich:datascroller align="left" for="resultList" tableStyleClass="immoResultScroller" />
       </f:facet>
       </rich:dataTable>
      


      Thanks in advance, Jan