Solved by ignoring the writer passed into the constructor (I'll deprecate that constructor and put in a new one shortly) and instead maintaining a separate freemarker environment for each appendable passed into the renderer using a WeakHashMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932172 13f79535-47bb-0310-9956-ffa450edef68
Solved by ignoring the writer passed into the constructor (I'll deprecate that constructor and put in a new one shortly) and instead maintaining a separate freemarker environment for each appendable passed into the renderer using a WeakHashMap.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932171 13f79535-47bb-0310-9956-ffa450edef68
as services, so that installations can do whatever kind of checking and
promotions that they want, without any modifications to ofbiz.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932108 13f79535-47bb-0310-9956-ffa450edef68
OFBIZ-3609 - XHTML validation errors (product)
XHTML validation errors
* Unclosed INPUT or IMG
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* Uppercase tags or attributes.
* Unencoded ampersands in urls.
Other errors:
EditKeywordThesaurus.ftl
Lines 44-84. When keywordThesauruses is empty the resulting markup will be
<table cellspacing="0" class="basic-table">
</td>
</tr>
</table>
Which is obviously wrong. Added an <#if to guard against wrong table markup when keywordThesauruses is empty.
FindProductPromoCode.ftl
Wrong markup at Line 27. Duplicated </span>
EditProductConfigItemContent.ftl
Wrong markup at line 99. Input can't be directly inside table. In this file the input can be one line before table tag without functional changes
<table cellspacing="0" class="basic-table">
<input type="hidden" name="configItemId" value="${configItemId?if_exists}">
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931700 13f79535-47bb-0310-9956-ffa450edef68
OFBIZ-3607 - XHTML validation errors (order)
XHTML validation errors
* Unclosed INPUT
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* Uppercase tags or attributes.
* Unencoded ampersands in urls.
Other errors:
findOrders.ftl
Wrong markup on line 470. Unrecognized onsubmit attribute in input tag
<input type='submit' value='${uiLabelMap.CommonFind}' onsubmit="javascript:lookupOrders(true);"/>
Wrong markup on line 478. div must be before if and not after. Look at line 138 the if begins with <div><table> it should end with </table></div>
</table>
</#if>
</div>
</div>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931691 13f79535-47bb-0310-9956-ffa450edef68
OFBIZ-3621 - XHTML validation errors (themes)
XHTML validation errors
* Unclosed INPUT
* attributes without values (checked, selected, disabled, etc)
* attribute values without "
* Uppercase tags or attributes.
* Unencoded ampersands in urls.
Other errors:
Header.ftl (tomahawk & droppingcrumbs)
Line 108. Wrong markup. Div can't be inside <a>
<a href="<@ofbizUrl>${logoLinkURL}</@ofbizUrl>" title="${layoutSettings.companyName}"><div> </div></a>
Style.css (tomahawk & droppingcrumbs)
Line 945. The logo is used as the background of the logo area, but because the size of the background image means nothing for dimensioning, it will be clipped.
background: url(../images/ofbiz_logo.png) no-repeat;
Solution: This is a hack to put the logo in the style sheet as the background. If the logo is only in the stylesheet without any trick, the logo will be clipped and disappears.
The logo can be loaded as an image directly in header.ftl and it will appear without clip and without any hack in header.ftl.
appbarOpen.ftl (droppingcrumbs)
Line 99, unclosed <li> and <ul>
header.ftl (bizznesstime)
Line 111. div can't be inside span.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931665 13f79535-47bb-0310-9956-ffa450edef68
OFBIZ-3653 - CSS Style for select wrong in tomahawk theme
The css style of select tag in style.css uses an height which is 1.6em when the height of text input is (1.1em + 0.4em * 2 + 0.1em * 2) = 2.1 em this gives a ugly look and in IE could cut the lower part of the text.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931618 13f79535-47bb-0310-9956-ffa450edef68
shipgroup system. This fixes a bug, where multiple
ProductStoreShipmentMeth are configured, each one using the *same*
carrierPartyId and shipmentMethodTypeId, but have different cost
estimates attached, while making use of include/exclude geos, and other
restrictions. In effect, no matter what specific
ProductStoreShipmentMeth you selected, when updating the total shipping
estimates(for display on a summary cart screen), it would try to do a
find on just the carrierPartyId/shipmentMethodTypeId pair, and basically
choose one at random. So if there were multiple configured estimates on
USPS/FIRST_CLASS, it was unknown which would be chosen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931595 13f79535-47bb-0310-9956-ffa450edef68
match, not an OR. Otherwise, both the original exact entity will be
returned, *and* any others that happen to have the same
carrierPartyId/shipmentMethodTypeId pair. Then, when getFirst is
called, it will effectively be random. This bug shows up with showing
cost estimates for a shipping method picker during checkout.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931594 13f79535-47bb-0310-9956-ffa450edef68
This patch mostly solves this issues and it's clearly a progress: it's operationnal with some drawbacks, so I don't close the issue for now
here are the issues:
* some parts of the calendar are hidden (see screenshots in Jira issue)
* if you 1st click on the button the position is OK (just below) but if you scroll before and then click the position is to low (seems to follow the scroll)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931523 13f79535-47bb-0310-9956-ffa450edef68