Link to home
Start Free TrialLog in
Avatar of sigma19
sigma19Flag for United States of America

asked on

Ajax Rich Faces

I am having so many problems with rich:ScrollableDatatable.
1. Sometimes I am able to sort the columns automatically but sometimes not.
2. When I keep Scrollabledatatable inside a ModalPanel  I am not able see the header of my ScrollableDataTable. And the table is not scrolling full down. It is scrolling only till I had data in the table. When I scroll down to the end of the table it is throwing error .
3. Can anyone say How to dynamically add a row and column to the ScrollableDataTable.
<rich:scrollableDataTable height="180px" width="900px" rows="40"  value="#{allocationPickBean.allocationPickDataObj}" var="allocation">
			                
			                           <rich:column id="picklistNo">
											<f:facet name="header"><h:outputText styleClass="headerText" value="PickList #" /></f:facet>
											<h:outputText value="#{allocation.picklistNo}" />
										</rich:column>										
 
										<rich:column id="shipID">
											<f:facet name="header"><h:outputText styleClass="headerText" value="ShipID" /></f:facet>
											<h:outputText value="#{allocation.shipID}" />
										</rich:column>	
										<rich:column id="shipmentorderID">
											<f:facet name="header"><h:outputText styleClass="headerText" value="ShipmentOrderID" /></f:facet>
											<h:outputText value="#{allocation.shipmentorderID}" />
										</rich:column>
										<rich:column id="shipmentlineNo">
											<f:facet name="header"><h:outputText styleClass="headerText" value="ShipmentLine #" /></f:facet>
											<h:outputText value="#{allocation.shipmentlineNo}" />
										</rich:column>
										<rich:column id="locationcode">
											<f:facet name="header"><h:outputText styleClass="headerText" value="LocationCode" /></f:facet>
											<h:outputText value="#{allocation.locationcode}" />
										</rich:column>			                        	
										<rich:column id="movableID">
											<f:facet name="header"><h:outputText styleClass="headerText" value="MovableID" /></f:facet>
											<h:inputText value="#{allocation.movableID}" size="20" maxlength="20" style="font-size: xx-small;"/>
										</rich:column>
										<rich:column id="allocationID">
											<f:facet name="header"><h:outputText styleClass="headerText" value="AllocationID" /></f:facet>
											<h:inputText value="#{allocation.allocationID}" size="20" maxlength="20" style="font-size: xx-small;"/>
										</rich:column>
										<rich:column id="commoditycode">
											<f:facet name="header"><h:outputText styleClass="headerText" value="CommodityCode" /></f:facet>
											<h:outputText value="#{allocation.commoditycode}" />
										</rich:column>	
										<rich:column id="receiptdate">
											<f:facet name="header"><h:outputText styleClass="headerText" value="ReceiptDate" /></f:facet>
											<h:outputText value="#{allocation.receiptdate}" />
										</rich:column>		
										<rich:column id="lot">
											<f:facet name="header"><h:outputText styleClass="headerText" value="Lot" /></f:facet>
											<h:outputText value="#{allocation.lot}" />
										</rich:column>
										<rich:column id="condition">
											<f:facet name="header"><h:outputText styleClass="headerText" value="Condition" /></f:facet>
											<h:outputText value="#{allocation.condition}" />
										</rich:column>
										<rich:column id="allocatedqty">
											<f:facet name="header"><h:outputText styleClass="headerText" value="AllocatedQty" /></f:facet>
											<h:outputText value="#{allocation.allocatedqty}" />
										</rich:column>	
										<rich:column id="pickedqty">
											<f:facet name="header"><h:outputText styleClass="headerText" value="PickedQty" /></f:facet>
											<h:outputText value="#{allocation.pickedqty}" />
										</rich:column>
										<rich:column id="shippedqty">
											<f:facet name="header"><h:outputText styleClass="headerText" value="ShippedQty" /></f:facet>
											<h:outputText value="#{allocation.shippedqty}" />
										</rich:column>	
										<rich:column id="status">
											<f:facet name="header"><h:outputText styleClass="headerText" value="Status" /></f:facet>
											<h:outputText value="#{allocation.status}" />
										</rich:column>	
										<rich:column id="showpick">
											<f:facet name="header"><h:outputText styleClass="headerText" value="ShowPick" /></f:facet>
					                    	 <h:selectBooleanCheckbox title="select" value="#{allocation.showpick}" >
											</h:selectBooleanCheckbox>
										</rich:column>
			                		         
					</rich:scrollableDataTable>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of DaveJappy
DaveJappy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial