I have the datatable below being updated as rows are added. Today I added scrollable to this table and as soon as i update the table all style formatting is lost. I'm using the primefaces 1.0.0.RC download. Is there a fix for this?
<p:dataTable id="sale" var="saleDetail" value="#{sale.saleDetails}" selection="#{pos.selectedSaleDetail}" selectionMode="single" width="100%" height="300px" scrollable="TRUE">
<p:column width="50">
<f:facet name="header">
<h:outputText value="#{messages['pos.Column.Quantity']}" />
</f:facet>
<h:outputText value="#{saleDetail.psdqty}" />
</p:column>
<p:column width="150">
<f:facet name="header">
<h:outputText value="#{messages['pos.Column.UPC']}" />
</f:facet>
<h:outputText value="#{saleDetail.pitupc}" />
</p:column>
<p:column width="450">
<f:facet name="header">
<h:outputText value="#{messages['pos.Column.Description']}" />
</f:facet>
<h:outputText value="No description field to display yet" />
</p:column>
<p:column width="125">
<f:facet name="header">
<h:outputText value="#{messages['pos.Column.Item.Price']}" >
</h:outputText>
</f:facet>
<h:outputText value="#{saleDetail.psdrtp}" >
<f:convertNumber type="currency" pattern="#{messages['Currency.Converter.Pattern']}"/>
</h:outputText>
</p:column>
<p:column width="124">
<f:facet name="header">
<h:outputText value="#{messages['pos.Column.Item.Total']}" />
</f:facet>
<h:outputText value="#{saleDetail.totalPrice}">
<f:convertNumber type="currency" pattern="#{messages['Currency.Converter.Pattern']}"/>
</h:outputText>
</p:column>
</p:dataTable>
style lost on scrollable datatable after update
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Can you provide a screenshot?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I see, we'll look into this. Btw you can use http://imageshack.us/ for images.
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Does it work well when scrollable is set to false? Scrollable datatables can be tricky with ajax updates.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 22 guests