Commit Graph
27737 Commits
Author SHA1 Message Date
Scott Gray 80804f0931 Removed usage of the deprecated macro renderer constructors
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932174 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:23:33 +00:00
Scott Gray 5796fe94d7 Deprecated the form and screen macro renderer constructors and added new ones that don't take an Appendable as an argument
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932173 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:23:25 +00:00
Scott Gray a255f30b29 Fixed a bug in the macro form renderer where the writer being passed in to the render* methods was being ignored and the writer supplied in the constructor was being used instead, this causes problems when multiple writers are being used to render a page.
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
2010-04-08 23:14:17 +00:00
Scott Gray 1f29264b91 Fixed a bug in the macro screen renderer where the writer being passed in to the render* methods was being ignored and the writer supplied in the constructor was being used instead, this causes problems when multiple writers are being used to render a page.
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
2010-04-08 23:14:12 +00:00
Scott Gray ffb067d933 Applied patch from Jacopo Cappellato, switched the content rendering logic over to using the macro renderers rather than the soon to be deprecated html renderers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932170 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:14:07 +00:00
Scott Gray 6a48871974 Remove an unnecessary null assignment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932169 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:14:02 +00:00
Scott Gray 6c4c6ce197 Remove some unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932168 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:58 +00:00
Scott Gray 06be6c89c0 Removed an unused delegator variable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932167 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:53 +00:00
Scott Gray ef95f80dbf Removed some unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932166 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:49 +00:00
Scott Gray c47c48d412 Removed an unnecessary null check
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932165 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:44 +00:00
Scott Gray 44e130fc03 Removed an unused import and a couple of unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932164 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 23:13:33 +00:00
Adam Heath ab933d2be7 Add new features, the ability to have promo conditions and actions both
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
2010-04-08 20:47:56 +00:00
Adam Heath 7e636766a7 Add missing final newline.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932106 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:47 +00:00
Adam Heath a9a3b1058c When rolling back a transaction, and there is already an exception
available, then don't bother logging a new temporary exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932104 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:42 +00:00
Adam Heath 8bfe0b1b51 Reduce excessive service error exception logging, removes 2 cases of the
logged exception.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932103 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:36 +00:00
Adam Heath c279273652 Don't specify java.io.Serializable fully, import it instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932102 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:30 +00:00
Adam Heath 1922547f81 Fix bad exception logging pattern, now you actually get an exception
trace.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932101 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:47:24 +00:00
Erwan de Ferrieres 87ec7593ff Adding tabButtonItem for FindInvoices screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932088 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:22:24 +00:00
Erwan de Ferrieres 3bb3e10014 A decorator was forgotten for OFBIZ-3641. This should be the last one. Thanks Blas for noticing !
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932083 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 20:01:51 +00:00
Jacques Le Roux 671756c121 This one was missing in r931854 ("Using Widgets html form templates in FTL file"). It's one of the 2 cases where the hidden field is shared (note the FIXME)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@932005 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 16:58:42 +00:00
Scott Gray bc0607b0c8 Remove some unused view-maps that point to a non-existent screen def
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931987 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 16:01:09 +00:00
Erwan de Ferrieres e9ef17a182 Correcting decorators' names, as some screens were used in AR and AP components. This is closing OFBIZ-3641
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931956 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 14:29:28 +00:00
Erwan de Ferrieres 6862bacabb Adding a specific CSS for displaying Gantt charts in project manager. Tables are now aligned.
Next step is to make weekends apparent !

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931925 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 13:14:22 +00:00
Vikas Mayur dd824fb551 Removed unnecessary comments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931898 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 12:06:29 +00:00
Jacques Le Roux 52594dddde A patch from Bob Morley "Resolve java warnings exposed in Eclipse (specialpurpose - hhfacility part of OFBIZ-3100)" https://issues.apache.org/jira/browse/OFBIZ-3598 - OFBIZ-3598
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931892 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 11:43:51 +00:00
Jacques Le Roux c7b353d3e8 Closes "Using Widgets html form templates in FTL files" (https://issues.apache.org/jira/browse/OFBIZ-3541) - OFBIZ-3541
This concerns the lookups which are now rendered the same in ftl files and widget forms

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931854 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 10:19:38 +00:00
Jacques Le Roux d7e25e5a42 A patch from Ankit Jain "In Tomahawk the calendar button is actually the same than the lookup button" https://issues.apache.org/jira/browse/OFBIZ-3657 - OFBIZ-3657
Previously the background: cal.png was overriden by the fieldlookup.png in the css 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931825 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 07:55:26 +00:00
Ashish Vijaywargiya 60903cc17f Minor fix. Existing service will create problem if we have created EFT account for party. So its good to filter the record for type "CREDIT_CARD" and then get the first one from the list.
Thanks Rishi for the patch!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931823 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 07:49:24 +00:00
Scott Gray cce3a162fb Fix wrong location path
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931791 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:48 +00:00
Scott Gray af90db7432 Removed an unused view-map
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931790 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:45 +00:00
Scott Gray ef173c1e47 Correct some wrong location paths
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931789 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:43 +00:00
Scott Gray bdb8aa094b Removed a service definition for an implementation that was removed quite some time ago.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931788 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:39 +00:00
Scott Gray 1c39f04adb Service definition was pointing to the wrong implementation location, strange that they're in different components
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931787 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 05:52:37 +00:00
Scott Gray 6e6e78c569 Fix copy/paste error (incorrect property default), good thing I review my one commits :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931779 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:12:40 +00:00
Scott Gray eb4e287b9e Switch some classpath style xml service locations to component style
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931776 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:53 +00:00
Scott Gray b2e06c24b6 Increase the transaction timeout for rendering the artifact info screen
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931775 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:50 +00:00
Scott Gray 7263531123 I can never remember if the timeout is seconds or milli-seconds, so I've added documentation to remind me.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931774 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:47 +00:00
Scott Gray 7bd3330fc6 Remove some unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931773 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:44 +00:00
Scott Gray f97e54b11f dispatcherName wasn't being retrieved from the container config, causes a warning in the logs about the default dispatcher being assumed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931772 13f79535-47bb-0310-9956-ffa450edef68
2010-04-08 04:08:38 +00:00
Bruno Busco 0f1a38a343 A patch from Blas Rodriguez Somoza
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
2010-04-07 21:50:56 +00:00
Bruno Busco b9c1022e54 A patch from Blas Rodriguez Somoza
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
2010-04-07 21:15:53 +00:00
Bruno Busco 8b376fce8f A patch from Blas Rodriguez Somoza
OFBIZ-3606 - XHTML validation errors (marketing)
XHTML validation errors

    * Unclosed INPUT
    * attributes without values (checked, selected, disabled, etc)
    * attribute values without "
    * Uppercase tags or attributes.
    * Unencoded ampersands in urls.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931680 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 20:47:17 +00:00
Bruno Busco 3a923700e8 A patch from Blas Rodriguez Somoza
OFBIZ-3605 - XHTML validation errors (manufacturing)
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:

EditProductBom.ftl
Wrong markup at line 67, 79, 113, 121. Nonmatching "
<img src="<@ofbizContentUrl>/images/fieldlookup.gif"</@ofbizContentUrl>"

finInventoryEventPlan.ftl
Wrong markup at line 69. Duplicated </a>
<img src='/images/fieldlookup.gif' width='15' height='14' border='0' alt="${uiLabelMap.CommonClickHereForFieldLookup}"/></a>
Wrong markup at line 86. Unclosed empty <td>, size don't match with previous row.
<td width="25%" align="center" valign="top">
Wrong markup at line 87. size don't match with previous row. (lacks %)
<td width="5"> </td>
Wrong markup at lines 145,148,221,224 Entity lacks final ;
<td align="center">&nbsp</td>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931678 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 20:42:38 +00:00
Bruno Busco ebf50131f0 A patch from Blas Rodriguez Somoza
OFBIZ-3603 - XHTML validation errors (commonext)
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:

CommonScreens.xml
Ampersands in links needs double encoding


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931671 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 20:33:17 +00:00
Bruno Busco f97b63ac6e A patch from Blas Rodriguez Somoza
OFBIZ-3584 - XHTML validation errors (accounting)
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:

CommisionRun.ftl
Wrong markup at line 638. (td outside row and table.)
<td colspan='4'><h3>${uiLabelMap.AccountingNoInvoicesFound}</h3></td>

BatchPayments.ftp
Wrong markup at line 675 (opened h2 and closed h3)
<h2>${uiLabelMap.AccountingNoRecordFound}</h3>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@931670 13f79535-47bb-0310-9956-ffa450edef68
2010-04-07 20:27:41 +00:00
Bruno Busco ddd826e52c A patch from Blas Rodriguez Somoza
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
2010-04-07 20:15:21 +00:00
Bruno Busco ef91c3ad44 A patch from Blas Rodriguez Somoza
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
2010-04-07 16:49:13 +00:00
Adam Heath a0a7abfc58 Make ShoppingCart.getProductStoreShipMethId() work with the multiple
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
2010-04-07 15:47:34 +00:00
Adam Heath 1e703c557a If an exact productStoreShipMethId is requested, then do an exact AND
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
2010-04-07 15:47:27 +00:00
Jacques Le Roux dc8327dbb9 A patch from Ankit Jain related to 'Allow to open a layered calendar from a layer lookup' https://issues.apache.org/jira/browse/OFBIZ-3580 - OFBIZ-3580
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
2010-04-07 12:32:11 +00:00