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
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
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
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
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
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
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
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
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
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
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
<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
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
When there is failure in sending email from OFBiz we need to break the loop.
Thanks Pranay for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053289 13f79535-47bb-0310-9956-ffa450edef68
Added missing argument parameters in Macro renderContentBegin.
It was giving error on console when we render content in pdf file.
Error was coming : --
2010-12-27 19:51:42,033 (http-0.0.0.0-8443-4) [ Log4JLoggerFactory.java:96 :ERROR]
Macro renderContentBegin has no such argument: editContainerStyle
The problematic instruction:
----------
==> macro renderContentBegin [on line 52, column 1 in component://widget/templates/foScreenMacroLibrary.ftl]
in user-directive renderContentBegin [on line 1, column 1 in Mon Dec 27 19:51:42 IST 2010]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Macro renderContentBegin has no such argument: editContainerStyle
at freemarker.core.Environment.visit(Environment.java:564)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.Environment.include(Environment.java:1482)
at org.ofbiz.widget.screen.MacroScreenRenderer.executeMacro(MacroScreenRenderer.java:95)
at org.ofbiz.widget.screen.MacroScreenRenderer.renderContentBegin(MacroScreenRenderer.java:364)
at org.ofbiz.widget.screen.ModelScreenWidget$Content.renderWidgetString(ModelScreenWidget.java:1181)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:136)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:227)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:136)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorSection.renderWidgetString(ModelScreenWidget.java:703)
at org.ofbiz.widget.screen.ModelScreenWidget$SectionsRenderer.render(ModelScreenWidget.java:166)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:106)
at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.StringBuiltins$StringBuiltIn._getAsTemplateModel(StringBuiltins.java:71)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.EscapeBlock.accept(EscapeBlock.java:84)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:209)
at freemarker.core.Environment.process(Environment.java:189)
at org.ofbiz.base.util.template.FreeMarkerWorker.renderTemplate(FreeMarkerWorker.java:216)
at org.ofbiz.widget.screen.HtmlWidget.renderHtmlTemplate(HtmlWidget.java:205)
at org.ofbiz.widget.screen.HtmlWidget$HtmlTemplate.renderWidgetString(HtmlWidget.java:250)
at org.ofbiz.widget.screen.HtmlWidget.renderWidgetString(HtmlWidget.java:110)
at org.ofbiz.widget.screen.ModelScreenWidget$PlatformSpecific.renderWidgetString(ModelScreenWidget.java:1000)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:136)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:227)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:394)
at org.ofbiz.widget.screen.ModelScreenWidget$DecoratorScreen.renderWidgetString(ModelScreenWidget.java:671)
at org.ofbiz.widget.screen.ModelScreenWidget.renderSubWidgetsString(ModelScreenWidget.java:136)
at org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:227)
at org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:394)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:135)
at org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:97)
at org.ofbiz.widget.screen.ScreenFopViewHandler.render(ScreenFopViewHandler.java:81)
at org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:842)
at org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:558)
at org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:227)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:269)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:619)
Thanks to Amit Sharma for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053285 13f79535-47bb-0310-9956-ffa450edef68