Commit Graph
8242 Commits
Author SHA1 Message Date
Adrian Crum 8254c6930a Fix capitalization on CommonSelected UI label.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059424 13f79535-47bb-0310-9956-ffa450edef68
2011-01-16 00:08:21 +00:00
Adrian Crum de0ac1ce2e Named some of the GlobalDecorator sections so they're easier to find in markup.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059391 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 19:00:04 +00:00
Jacques Le Roux e77b9d2468 Removes an empty useless function. 1st step for https://issues.apache.org/jira/browse/OFBIZ-1319
I will also see if regrouping all OFBIz js functions loaded in framework commonscreen in a sole file is not interesting. By and large I will follow/adapt advices in http://www.ibm.com/developerworks/web/library/wa-aj-jsajaxperf/index.html

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059382 13f79535-47bb-0310-9956-ffa450edef68
2011-01-15 18:00:48 +00:00
Adrian Crum 3045d7d83c Corrected English spelling on Work Effort and Web Tools UI labels.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1059066 13f79535-47bb-0310-9956-ffa450edef68
2011-01-14 16:41:30 +00:00
Jacques Le Roux 673804eb6c As requested by Jacopo on dev ML, moves setPriceRulesCondEventJs.ftl from framework to product/catalog
Also fix an orthograph error in a related French labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058719 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 19:55:07 +00:00
Jacopo Cappellato 674a4f8e1c Another missing license header
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058597 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 15:06:14 +00:00
Jacopo Cappellato c4ff3a401c Another group of missing licence heders.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058590 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:51:38 +00:00
Jacopo Cappellato 0ed73fe64c Added a bunch of missing license headers.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058580 13f79535-47bb-0310-9956-ffa450edef68
2011-01-13 14:25:38 +00:00
Jacques Le Roux 29458f23a8 Remove unrelated changes that slipped in with r1058197
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058198 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 15:43:04 +00:00
Jacques Le Roux 2bfcc945e3 A patch from Martin Kreidenweis "Adding content in CMS using add long text (right mouse click) doesn't work" (https://issues.apache.org/jira/browse/OFBIZ-4079) - OFBIZ-4079
Fixes some bugs in CMS introduced in svn r1036195 when migrating from dojo to jQuery:
* reverted accidental logic change in callDocument() that broke the "new ..." context menu items
* making elRTE "save" toolbar button work: same behavior as the regular "Save" button
* using regular form submit instead of ajax for new content for now
  o ajaxSubmitForm() can't handle new content, it won't reload the form because it doesn't know the new contentId
    + some controller changes would probably be necessary to make that work (return new contentId as JSON)
  o nav tree is not updated with ajax submit currently
* now always creating editor if corresponsing html element exists
  o editor was not initialized when WebSiteCMSContent screen was loaded by non-ajax call


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058197 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 15:39:29 +00:00
Jacopo Cappellato 8564cd8125 Removed unused handler from controller files; replaced handlers that were still using the old ScreenWidgetViewHandler with the current MacroScreenViewHandler; deprecated compress.HTML property with output specific properties like screen.compress; this fixes a rather important issue happening when the compress.HTML setting is set to true: non html output screens like for example tab delimited exports were messed up.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058056 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:44:35 +00:00
Hans Bakker 338a2456e3 service 'performFindItem' got sometimes unwanted output parameter 'listSize' from parent findList service: removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1058041 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:06:19 +00:00
Jacques Le Roux 0e5dec72c6 Only to ease test/exchange with date-time picker author for now...
I think i18n does not work as well as datepicker

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057892 13f79535-47bb-0310-9956-ffa450edef68
2011-01-11 22:17:40 +00:00
Jacques Le Roux bd207e8eac Fix a small typo in comment
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057155 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 11:37:21 +00:00
Jacques Le Roux bfa23d2ff8 A patch from Sascha "The variants case does not work in product lookups" (https://issues.apache.org/jira/browse/OFBIZ-4100) - OFBIZ-4100
All cases are now fixed

Also replace all tabs by spaces

JLR: I have fixed another related bug at r1057153 (the 1st one I crossed and is the summary of OFBIZ-4100). It was introduced by r1040908 and I'm afraid there are more unwanted side effects

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057154 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 11:36:19 +00:00
Hans Bakker d696e3547b When a load balancer is in front of the ofbiz system and takes care of the ssl certificate, ofbiz is now reading the Header[X-Forwarded-Proto] parameters to check if the request was secure or not. It still works the old way if these request parameters are not present
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1057115 13f79535-47bb-0310-9956-ffa450edef68
2011-01-10 08:26:04 +00:00
Jacques Le Roux 461278703f Resolves "The online help navigation panel is too narrow" (https://issues.apache.org/jira/browse/OFBIZ-4066) - OFBIZ-4066
But in Flat Grey, even when you had the content of the bluelight/help.css in flatgrey/help.css...

I have set the default lookup_popup2 size to width=900 height=700, now that anyway OFBiz is designed to be used with at least a 1024*768 screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056986 13f79535-47bb-0310-9956-ffa450edef68
2011-01-09 17:55:04 +00:00
Jacques Le Roux bc0fc07a9b We have decided to use only one HTML editor and it's elrte jQuery plugin.
So WhizzyWig is not needed anymore. I removed also WhizzyWig Notice and while at it Scriptaculous Notice (which should have been removed when we merged jQuery branch)

BTW, is CoolTips Notice still needed?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056984 13f79535-47bb-0310-9956-ffa450edef68
2011-01-09 17:37:38 +00:00
Jacques Le Roux 509711c04d A patch from Leon "i18n problem in auto-completed dropdown box: display not correct characters but html entities" (https://issues.apache.org/jira/browse/OFBIZ-4101) - OFBIZ-4101
If there're chinese characters contained in a description field of a lookup textbox with auto-complete feature enabled, then what I can get from auto-completed dropdown box is not unstandable chinese but messed html entities such as "氨" blah blah.


Thanks to Dukian for quick testing!

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056977 13f79535-47bb-0310-9956-ffa450edef68
2011-01-09 16:57:32 +00:00
Jacques Le Roux 65ab7533f0 A patch from Jeroen van der Wal "When audit log is enabled it creates log transactions even when there are no changes" (https://issues.apache.org/jira/browse/OFBIZ-4076) - OFBIZ-4076
The createEntittyAuditLogSingle function creates a record in the AuditLog entity even when there's no change. This patch only logs new, changed and deleted values. Also, all changes in the same transaction will get the same change date.

After applying this patch the overhead of the AuditEntityLog is recuded from 32% to 25%.

There's even more room for performance increase: a findOne search for the previous entity is done for every field that's enabled.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056973 13f79535-47bb-0310-9956-ffa450edef68
2011-01-09 16:36:40 +00:00
Marco Risaliti 0f2f2c473e Remove most of the java compilation warning (generics markup, unused code/import) (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056964 13f79535-47bb-0310-9956-ffa450edef68
2011-01-09 15:39:27 +00:00
Jacques Le Roux 6fc5e54c79 Fixes the last issue related to "Ajax example creation has somme issues" (https://issues.apache.org/jira/browse/OFBIZ-1994) - OFBIZ-1994
The issues already fixed were
* A Save File dialog box pop up to save a json file     
* Creation did not update the list
* You can't edit the column "Name" content
* Sometimes it worked on an instance, not another (both with same configuration)
* Sometimes the same instance, which did not work before, worked

I found another issue, the line
<on-event-update-area event-type="submit" area-id="EditExampleAjax" area-target="CreateExampleFormOnly"> 
was duplicating the list and hiding the create section. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056824 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 22:34:50 +00:00
Jacques Le Roux 63c46c446f Since anyway we rely on a form name in renderLookupField, I changed the way Sascha fixed OFBIZ-4068 (see r1056701)
Two reasons to this: 
# we are not sure the descriptionFieldName is alwayd of the form formName_descriptionFieldName
# anyway we need a form name for call_fieldlookup3 and call_fieldlookup2 just above in htmlFormMacroLibrary.ftl. 

While at it, I also removed all question marks in ${uiLabelMap.ProductIncludeSubCategories}? occurrences, it's already in the labels

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056731 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 16:30:15 +00:00
Jacques Le Roux cc3939cca4 A patch from Sascha Rodekamp "Find button is not working in the 'googlebase' application" (https://issues.apache.org/jira/browse/OFBIZ-4068) - OFBIZ-4068
Rohit reported a bug in the jQuery implementation (ecommerce):
The find button is not working in the 'googlebase' application. The 'googlebase' application has a page using which u can to search for product to be submitted to google base. the find button is not submitting the page at all.

Sascha: This issue was related to the Lookup Call. The Form in Google Base hadn't a 'name' tag, so the form could not be found. I changed the target by name to a target by Id call (which is better anyways).

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056701 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 13:14:19 +00:00
Jacques Le Roux b63a07c03d A patch from Sascha Rodekamp "Fix Portal Drag'n'Drop" (https://issues.apache.org/jira/browse/OFBIZ-4062) - OFBIZ-4062
During the last works on the my portal module, the Drag'n'Drop functionality was lost. Here is a fix which enables the Drag'n'Drop again. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056670 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 09:13:17 +00:00
Adrian Crum 55dc6b2256 Removed unused constant from TemporalExpressions.java. No functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056626 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 05:22:09 +00:00
Adrian Crum fe81944986 Remove duplicate Brazilian Portuguese translations in framework/common. Patch provided by Luis Alfredo Harriss Maranesi - https://issues.apache.org/jira/browse/OFBIZ-4097.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056625 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 05:07:51 +00:00
Adrian Crum 800797bdca Updated WidgetFactory.java JavaDoc - no functional change.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056623 13f79535-47bb-0310-9956-ffa450edef68
2011-01-08 05:05:35 +00:00
Jacques Le Roux 0a72fe8793 3 patches from Sascha Rodekamp "Localisation of labels in javascript" (https://issues.apache.org/jira/browse/OFBIZ-3964) - OFBIZ-3964
This cames from Adam's advice: http://markmail.org/message/kai5lfvlnsz7xwki

Sascha comes to this solution
The Idea is to have a method which takes a JSON Object with uiLabel Resources and label entries and returns the resolved labels in a JSON Object which can be used directly in the JS Code.
The advantage of this way, is that we have only one Ajax request which reads all labels. The alternative is an Ajax request for each label, which simplify the request (because you haven't to create a complex JSON Object) but is very expansive.

* Replaces all JS alerts with the new fancy error boxes
* Adds a few uiLabels

I simply fixed some typos. I did not test all cases but did a good review.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1056497 13f79535-47bb-0310-9956-ffa450edef68
2011-01-07 20:40:31 +00:00
Hans Bakker ca5b09bc7a add a popular categories section to the ecommerce frontpage which is generated from the data warehouse of real orders. Also adjusted the sales reports from the data warehouse by week/month/year. Demo data included is for display only
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055774 13f79535-47bb-0310-9956-ffa450edef68
2011-01-06 07:37:45 +00:00
Adrian Crum 7ff812d56b Fixed bug from my last commit - CommonEmptyHeader UI label was altered by Label Manager.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055454 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 13:04:45 +00:00
Jacopo Cappellato a6922893a3 hot-deploy component are now always loaded in alphanumeric order; before this change they were loaded randomly (in a platform dependedent way).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055411 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 11:05:13 +00:00
Jacques Le Roux 2fa0a5e0a9 Remove an useless commented out block of code after an exchange with Bilgin on dev ML. No functional changes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055370 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 09:26:45 +00:00
Adrian Crum 2a07a8392d Brazilian Portuguese translation for framework/common. Patch provided by Luis Alfredo Harriss Maranesi - https://issues.apache.org/jira/browse/OFBIZ-4094.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055290 13f79535-47bb-0310-9956-ffa450edef68
2011-01-05 03:48:59 +00:00
Jacques Le Roux 65f92a9a1f Still missed something, it's clean now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055109 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 17:21:51 +00:00
Jacques Le Roux ee2c6eef8a While I cleaned the description field at r1051602 I broke some description cases. It's fixed now.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1055104 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 17:10:19 +00:00
Adrian Crum d8166de0da Brazilian Portuguese translation for framework/common. Patch provided by Luis Alfredo Harriss Maranesi - https://issues.apache.org/jira/browse/OFBIZ-4077.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054881 13f79535-47bb-0310-9956-ffa450edef68
2011-01-04 03:18:12 +00:00
Jacques Le Roux 3e845d742a Fix a typo (missed a white space)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054582 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 10:59:53 +00:00
Erwan de Ferrieres 6721f91797 Online documentation wasn't working as described in ExampleEntityLabels :
FieldDescription.[fieldname] - will be used for all fields of that name
        FieldDescription.[entityname].[fieldname] - will be used for the specified entity field

The FieldDescription.[fieldname] wasn't supported yet, now it's done. I've also changed the log level to verbose as it may full the log console it there are a lot of fields on a screen

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054573 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 10:17:39 +00:00
Adrian Crum 8e153fd7ce A bug fix for the new commonGetAllCrudPermissions service - don't require the user to be logged in.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054517 13f79535-47bb-0310-9956-ffa450edef68
2011-01-03 01:56:32 +00:00
Jacques Le Roux 813ba327ca Let's keep it simple: we don't need jQuery.extend() here. A simple prototype is enough.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054220 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 10:39:18 +00:00
Adrian Crum 35da2271fa Added two new UEL functions to make date/time display more user friendly. Form widget example:
<field name="someTimeStamp">
  <display description="${date:localizedDateTimeStr(someTimeStamp, timeZone, locale)}"/>
</field>

will display the date/time according to the user's locale, instead of yyyy-mm-dd hh:mm:ss.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054211 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 09:05:44 +00:00
Adrian Crum a925456a16 Fixed label widget rendering. Label widgets are inline elements except if they have the h1-h6 style, then they become block elements.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054194 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 06:34:08 +00:00
Adrian Crum c8db9dfe43 Suppress rendering a field group banner when there are no field groups. This eliminates the annoying horizontal line that appears on single forms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054193 13f79535-47bb-0310-9956-ffa450edef68
2011-01-01 06:32:12 +00:00
Adrian Crum 0dbdf4a204 Create a new permission checking service to make permission handling easier. The new service returns Boolean values for all CRUD + View permissions - avoiding the need to do multiple permission service calls.
The main purpose of the service is to control multiple screen elements with a single service call. This reduces screen widget and template code. Example:

<screen name="GetMyAppPermissions">
  <!-- This screen must be included before any decorators -->
  <section>
    <actions>
      <service service-name="commonGetAllCrudPermissions" result-map="result">
        <field-map field-name="primaryPermission" value="MYAPP"/>
        <field-map field-name="altPermission" value="MYAPP_ALT"/>
      </service>
      <set field="hasCreatePermission" from-field="result.hasCreatePermission" type="Boolean" global="true"/>
      <set field="hasUpdatePermission" from-field="result.hasUpdatePermission" type="Boolean" global="true"/>
      <set field="hasDeletePermission" from-field="result.hasDeletePermission" type="Boolean" global="true"/>
      <set field="hasViewPermission" from-field="result.hasViewPermission" type="Boolean" global="true"/>
    </actions>
    <widgets/>
  </section>
</screen>

<screen name="MainScreen">
  <section>
    <actions>
      <set field="titleProperty" value="MyAppMainScreen"/>
    </actions>
    <widgets>
      <include-screen name="GetMyAppPermissions"/>
      <!-- screen elements controlled by has*Permission field values -->
      ...
    </widgets>
  </section>
</screen>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054161 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 19:11:59 +00:00
Jacques Le Roux 8215b6eb58 Removed the now useless getAssociatedProductsList request-map from the common-controller (was forgot there). From Adrian's remark in dev ML.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054072 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 09:24:42 +00:00
Adrian Crum b661f6c007 Bug fix - visual themes list didn't work for applications that don't have a Website record. Visual themes list now defaults to BACKOFFICE.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1054054 13f79535-47bb-0310-9956-ffa450edef68
2010-12-31 05:13:17 +00:00
Bruno Busco 9c09fa08af Better Italian labels
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053943 13f79535-47bb-0310-9956-ffa450edef68
2010-12-30 17:07:47 +00:00
Adrian Crum 38dea67fbc All find services return a list size.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053771 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 23:32:26 +00:00
Adrian Crum 619d302f7d FindScreenDecorator uses the page-title style.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053770 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 23:30:54 +00:00