Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Hi All:
I needed your help when you have time!!
I am using JSF 1.1, facelets,Icefaces 1.82 and Weblogic, Internet Explorer or Google Chrome.
Any help, suggestion or hint would be greatly appreciated it!!
When I click on "Add Row" it adds a new row but it keep the values of the previous row. Do you get the same problem?
I have this problem testing on "Internet Explorer 9, Google Chrome and Firefox 11". The new row with the previous row values seemed to disappear if I click the browser's refresh button.
Java source:
public String addRow()
{
List shipmentDetailsList = this.opportunitiesBB.getShipmentDetailsList();
ShipmentDetailsBB shipmentDetails = new ShipmentDetailsBB();
int uiID = shipmentDetailsList.size() + 1;
shipmentDetails.setUiId(Integer.toString(uiID));
List nameValueObjectList = new ArrayList();
shipmentDetails.setSelectedDimensionType("inches");
NameValueObject nameValueObject1 = new NameValueObject();
nameValueObject1.setCode("inches");
nameValueObject1.setTitle("inches");
nameValueObjectList.add(nameValueObject1);
NameValueObject nameValueObject2 = new NameValueObject();
nameValueObject2.setCode("cms");
nameValueObject2.setTitle("cms");
nameValueObjectList.add(nameValueObject2);
shipmentDetails.setDimensionTypeList(Utility.ConvertNVListToSelectItem(nameValueObjectList));
shipmentDetailsList.add(shipmentDetails);
opportunitiesBB.setShipmentDetailsList(shipmentDetailsList);
return "success";
}
The source of the jspx file. The UI namespace is for Facelets. I get the same problem even if I change the "" to "".
L
x W
x H