This fix this issue, but I'm not yer sure that it should be generalized...
Checking...
Index: framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java
===================================================================
--- framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java (revision
742291)
+++ framework/widget/src/org/ofbiz/widget/html/HtmlFormWrapper.java (working
copy)
@@ -103,7 +103,7 @@
}
@SuppressWarnings("unchecked")
- public String renderFormString(Object contextStack) throws IOException {
+ public StringWriter renderFormString(Object contextStack) throws
IOException {
if (contextStack instanceof MapStack) {
return renderFormString((MapStack) contextStack);
} else {
@@ -111,18 +111,18 @@
return renderFormString();
}
}
- public String renderFormString(MapStack<String> contextStack) throws
IOException {
+ public StringWriter renderFormString(MapStack<String> contextStack) throws
IOException {
// create a new context with the current context on the bottom
contextStack.push(this.context);
StringWriter buffer = new StringWriter();
modelForm.renderFormString(buffer, contextStack, renderer);
contextStack.pop();
- return buffer.toString();
+ return buffer;
}
- public String renderFormString() throws IOException {
+ public StringWriter renderFormString() throws IOException {
StringWriter buffer = new StringWriter();
modelForm.renderFormString(buffer, context, renderer);
- return buffer.toString();
+ return buffer;
}
/**
Jacques
From: "Jacques Le Roux" <[email protected]>
Yes, this comes from HtmlFormWrapper.renderFormString(MapStack<String>
contextStack) but what to do there is another question...
Jacques
From: "Santosh Malviya" <[email protected]>
Same behavior with me, when I create a purchase order and click on "New shipment for
ship group[00001]" get like this screen.
Thanks and Regards
Santosh Malviya
Vikas Mayur wrote:
When I create an order and click "View / Edit Delivery Schedule Info" under Actions screenlet, the page is not rendered as
desired. Here is the output.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<!-- Begin Form Widget
component://order/webapp/ordermgr/order/OrderDeliveryScheduleForms.xml#UpdateDeliveryScheduleInformation --> <form method="post"
action="/ordermgr/control/createOrderDeliverySchedule" id="UpdateDeliveryScheduleInformation" class="basic-form"
onSubmit="javascript:submitFormDisableSubmits(this)" name="UpdateDeliveryScheduleInformation"> <input type="hidden"
name="orderId" value="WSCO10000"/> <input type="hidden" name="orderItemSeqId" value="_NA_"/> <div class="fieldgroup"
id="_G6_"><div class="fieldgroup-title-bar"><table><tr><td class="collapse"></td><td></td></tr></table></div><div id="_G6__body"
class="fieldgroup-body"> <table cellspacing="0" class="basic-table"> <tr> <td class="label">Estimated Ready Date</td> <td><input
type="text" name="estimatedReadyDate" title="Format: yyyy-MM-dd HH:mm:ss.SSS" size="25" maxlength="30"
id="UpdateDeliveryScheduleInformation_estimatedReadyDate"/><a
href="javascript:call_cal(document.UpdateDeliveryScheduleInformation.estimatedReadyDate,'2009-02-09%2018:38:00.749');"><img
src="/images/cal.gif" width="16" height="16" border="0" alt="View Calendar" title="View Calendar"/></a></td> </tr> <tr> <td
class="label">Cartons</td> <td><input type="text" name="cartons" size="6" id="UpdateDeliveryScheduleInformation_cartons"
autocomplete="off"/> </td> </tr> <tr> <td class="label">Skids Pallets</td> <td><input type="text" name="skidsPallets" size="6"
id="UpdateDeliveryScheduleInformation_skidsPallets" autocomplete="off"/> </td> </tr> <tr> <td class="label">Units Pieces</td>
<td><input type="text" name="unitsPieces" size="25" id="UpdateDeliveryScheduleInformation_unitsPieces" autocomplete="off"/>
</td> </tr> <tr> <td class="label">Total Cubic Size</td> <td><input type="text" name="totalCubicSize" size="25"
id="UpdateDeliveryScheduleInformation_totalCubicSize" autocomplete="off"/> </td> </tr> <tr> <td class="label">Cubic
Measurement</td> <td><select name="totalCubicUomId" id="UpdateDeliveryScheduleInformation_totalCubicUomId" size="1"><option
value="VDRY_cm3">Cubic centimeter</option><option value="VDRY_ft3">Cubic foot</option><option value="VDRY_in3">Cubic
inch</option><option value="VDRY_m3">Cubic meter</option><option value="VDRY_mm3">Cubic millimeter</option><option
value="VDRY_ST">Stere (cubic meter)</option><option value="VDRY_yd3">Cubic yard</option></select></td> </tr> <tr> <td
class="label">Total Weight</td> <td><input type="text" name="totalWeight" size="25"
id="UpdateDeliveryScheduleInformation_totalWeight" autocomplete="off"/> </td> </tr> <tr> <td class="label">Weight
Measurement</td> <td><select name="totalWeightUomId" id="UpdateDeliveryScheduleInformation_totalWeightUomId" size="1"><option
value="WT_dr_avdp">Dram (avdp)</option><option value="WT_gr">Grain</option><option value="WT_g">Gram</option><option
value="WT_kg">Kilogram</option><option value="WT_mg">Milligram</option><option value="WT_oz">Ounce (avdp)</option><option
value="WT_oz_tr">Ounce (troy)</option><option value="WT_dwt">Pennyweight</option><option value="WT_lb">Pound
(avdp)</option><option value="WT_st">Stone</option><option value="WT_lt">Ton (long or British)</option><option value="WT_mt">Ton
(metric)</option><option value="WT_sh_t">Ton (short)</option></select></td> </tr> <tr> <td class="label">Status ID</td>
<td><select name="statusId" id="UpdateDeliveryScheduleInformation_statusId" size="1"><option value="ODS_SUBMITTED">Supplier
Submitted</option><option value="ODS_ACCEPTED">Accepted</option><option value="ODS_APPROVED">Schedule Approved</option><option
value="ODS_ARRANGED">Delivery Arranged</option><option value="ODS_CANCELLED">Delivery Cancelled</option></select></td> </tr>
<tr> <td class="label"> </td> <td colspan="4"><input type="submit" class="smallSubmit" name="submitButton"
value="Update"/></td> </tr> </table> </div></div></form> <!-- End Form Widget
component://order/webapp/ordermgr/order/OrderDeliveryScheduleForms.xml#UpdateDeliveryScheduleInformation -->
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Vikas