Commit Graph
114 Commits
Author SHA1 Message Date
Jacques Le Roux b82817cf5c Replaces ProductCountry and mostly PartyCountry by CommonCountry and merges all labels in CommonCountry
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1326270 13f79535-47bb-0310-9956-ffa450edef68
2012-04-15 08:24:45 +00:00
Ashish Vijaywargiya 54bb3ef632 On production systems you can't suppress Debug.log( message by the use of debug.properties file. It is always good to use Debug.* statements that are having log level setup in debug.properties file. The real problem comes with Debug.log( statement when you are printing any list or map object that contains so many records(or data) in it. Here I am changing all the occurrence of Debug.log( with Debug.logInfo(, Debug.logError( or Debug.logWarning( so that we can have better control of Debug.* statements on production system. :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1300463 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 06:07:52 +00:00
Jacopo Cappellato 63ee2ab625 Updated all the controller entries for Groovy event to consistently use the same way to define the location for the script file. Now the path and filename are always in the "path" attribute and the "invoke" attribute is reserved for the execution of a method in the file (I am going to add support for this feature in my next commit); if the invoke element is not specified then the whole script is executed.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1298904 13f79535-47bb-0310-9956-ffa450edef68
2012-03-09 16:17:12 +00:00
Jacques Le Roux 6ed1929086 A patch from Wai "widget <image> tag to use css for resizing" https://issues.apache.org/jira/browse/OFBIZ-4678
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).

Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>

Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.

Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.

Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.

The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.

By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.

The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.

NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.

jleroux: despite my efforts I was not able to check all screens. But I think it's ok

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1296782 13f79535-47bb-0310-9956-ffa450edef68
2012-03-04 11:54:13 +00:00
Erwan de Ferrieres 4f3db5afca OFBIZ-4683 - CommonScreens.xml not referring to proper jquery javascript files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1241880 13f79535-47bb-0310-9956-ffa450edef68
2012-02-08 12:22:06 +00:00
Erwan de Ferrieres ae4b5a47fa OFBIZ-4527 - CategoryDetail.groovy in webpos is exactly same as in ordmgr and should be removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1228716 13f79535-47bb-0310-9956-ffa450edef68
2012-01-07 20:25:37 +00:00
Marco Risaliti 4ea8e21b14 Fix a bug that does not show the error messages correctly in same cases on webpos
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1127659 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 19:54:27 +00:00
Marco Risaliti f22dd446e1 Fix a focus on the first field for Open Terminal operation
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1127657 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 19:53:09 +00:00
Marco Risaliti 7712ea6f9f Removed the method UtilNumber.stringToBigDecimal and the references in webpos component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1127651 13f79535-47bb-0310-9956-ffa450edef68
2011-05-25 19:45:44 +00:00
Marco Risaliti ee3f613025 Webpos2 improved version (OFBIZ-4287)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1125951 13f79535-47bb-0310-9956-ffa450edef68
2011-05-22 13:11:17 +00:00
Sascha Rodekamp 76a43a10fd Update to jQuery UI Version 1.8.13
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1124697 13f79535-47bb-0310-9956-ffa450edef68
2011-05-19 11:59:43 +00:00
Sascha Rodekamp 781f8db237 Update - jQuery update to version 1.6.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1124336 13f79535-47bb-0310-9956-ffa450edef68
2011-05-18 16:54:55 +00:00
Sascha Rodekamp d922ef1295 Update - jQuery UI to version 1.8.11. The current jQuery UI Version is build on jQuery version 1.5.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1088549 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 10:42:28 +00:00
Sascha Rodekamp b5c2bc2c9d Update - Update to jQuery Version 1.5.2, the new version fixes some bugs in the library.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1088502 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 08:36:05 +00:00
Sascha Rodekamp 02e1dc0cd0 Update - Update the jQuery library to version 1.5.1. A few changes were necessary for this step. I updated the jQuery flot library to the current release, because the old one doesn't work with the new jQuery version, i also updated the jsTree Plugin to make it work with the new jQuery Version.
Note in jQuery 1.5 the implementation of the ajax function has been changed.

For more Information have a look at: http://blog.jquery.com/2011/01/31/jquery-15-released/


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1082916 13f79535-47bb-0310-9956-ffa450edef68
2011-03-18 13:37:29 +00:00
Sascha Rodekamp da61ddc627 Update - Update to jQuery 1.4.4, Fix a bug in the fieldlookup.js to make it work with the new jQuery lib. This patch is to orepare the update to jQuery version 1.5.1
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1082227 13f79535-47bb-0310-9956-ffa450edef68
2011-03-16 17:25:15 +00:00
Marco Risaliti 2bdbfd122f Remove a warning in WebPosEvents (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1081101 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 12:46:32 +00:00
Marco Risaliti 165610f857 Remove some warning in webpos component (OFBIZ-4102)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1081089 13f79535-47bb-0310-9956-ffa450edef68
2011-03-13 12:12:18 +00:00
Erwan de Ferrieres f47b530ef1 OFBIZ-4170 : a bug was present in the timepicker plugin and values under 01:05:10 couldn't be selected
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1069542 13f79535-47bb-0310-9956-ffa450edef68
2011-02-10 19:45:22 +00:00
Jacopo Cappellato 9b9b427c44 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/specialpurpose@1058056 13f79535-47bb-0310-9956-ffa450edef68
2011-01-12 10:44:35 +00:00
Jacques Le Roux e2bcb4b858 A patch from Sascha Rodekamp "Update the Datepicker to version 0.9.1" (https://issues.apache.org/jira/browse/OFBIZ-4056) - OFBIZ-4056
Updates the timepicker. Seems that it's more stable and they fixed a few issues. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1049151 13f79535-47bb-0310-9956-ffa450edef68
2010-12-14 16:39:30 +00:00
Jacques Le Roux c008c6ccb3 Merges the jQuery branch back to the trunk
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Adam Heath 400cc79931 Some places in ofbiz were doing dom manipulation without waiting for the
dom to be finished loading.  Wrap such code with a dom:loaded observer.

Also, change all window->load calls to dom:loaded observers.  The former
happens after all images have finished loading, while the later happens
just after the dom has finished parsing.  This is better, as sometimes
the images may take a long time to finish downloading, and until they do,
none of the manipulation will take place.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@997420 13f79535-47bb-0310-9956-ffa450edef68
2010-09-15 17:56:37 +00:00
Adam Heath 5b3b7e0c99 Finally created a script to find and fix tons of missing final newlines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@982870 13f79535-47bb-0310-9956-ffa450edef68
2010-08-06 04:46:48 +00:00
Adam Heath 0f8f2093e3 Fix a bunch of no final newline issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@965918 13f79535-47bb-0310-9956-ffa450edef68
2010-07-20 17:15:21 +00:00
Jacques Le Roux e263a69b74 A patch from BJ Freeman "complete web.xml for error reporting" (https://issues.apache.org/jira/browse/OFBIZ-3820) - OFBIZ-3820
BJ: when there is an error, the control servlet looks for an error path in <param-name>allowedPaths</param-name>
it does not find one throwing an exception which buries the orginal error.
instead of changing the code it is just easier to add the /error: path.
then the real error gets reported correctly.

JLR: This will maybe help to better understand some errors on demo servers, and can't hurt

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@954135 13f79535-47bb-0310-9956-ffa450edef68
2010-06-12 20:47:08 +00:00
Jacques Le Roux be88f832a2 Not sure why, but my regexp S/R in the commit r948846 boke some formatting. I also removed some useless other stuff in this commit
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948852 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:45:59 +00:00
Jacques Le Roux ef2a1c044c We don't need
<copyright>Copyright 2001-.* The Apache Software Foundation</copyright>
<copyright><year>.*</year><holder>Apache Foundation</holder></copyright>
<copyright><year>.*</year><holder>Apache Foundation.</holder></copyright>
<owner>Copyright 2001-.* The Apache Software Foundation</owner>

Less to update every year!

Thanks to BJ 1st effort at "update files from 2009 to 2010" (https://issues.apache.org/jira/browse/OFBIZ-3783) - OFBIZ-3783

Note: there are been a lot of efforts in 2009: there are plenty of data dated from this year!

I hope I did not broke anything (should not, but of course I did not try all changes...) Anyway, this can be easily reverted...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@948846 13f79535-47bb-0310-9956-ffa450edef68
2010-05-27 14:23:22 +00:00
Erwan de Ferrieres 5a6774109f XHTML validation errors round 2 (specialpurpose_webpos)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@945848 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 19:52:04 +00:00
Scott Gray 41cf2ab878 Get rid of a few Boolean instantiations
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@935162 13f79535-47bb-0310-9956-ffa450edef68
2010-04-17 10:25:42 +00:00
Bruno Busco 22fc7286fe A patch from Blas Rodriguez Somoza
OFBIZ-3619 - XHTML validation errors (specialpurpose_webpos)
XHTML validation errors
- Unclosed INPUT
- attributes without values (nowrap, checked, selected)
- Unencoded ampersands in urls.
- Duplicated DOCTYPE definition


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@929243 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 20:09:19 +00:00
Adam Heath 62ede2cc16 Fix lots of bad xhtml tags, need to have a space before the ending /.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@923545 13f79535-47bb-0310-9956-ffa450edef68
2010-03-16 01:56:41 +00:00
David E. Jones 60c443b1cc Some permissions changes so that webpos and myportal have base permissions like all other applications except cmssite, which is more like ecommerce as it is public facing so it is no longer in the Applications menu
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@899088 13f79535-47bb-0310-9956-ffa450edef68
2010-01-14 07:47:32 +00:00
Adam Heath 59dabfc7e6 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 79268b7635 Convert all javadoc calls to use fileset instead of sourcepath; this
allows excludes to be processed correctly.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath e98eaeed80 Add a classes target to common.xml, and switch most build.xml to use it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath aff93c1ef4 Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Scott Gray 3aecd2c831 Deprecated the various json event handlers and commented out references to them from the controllers
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@892685 13f79535-47bb-0310-9956-ffa450edef68
2009-12-21 05:01:20 +00:00
Scott Gray 0d32f9fe65 Convert all uses of json event types to chained requests with the common json event at the end.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@892219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:55:34 +00:00
Bruno Busco d2b7b4dbdd Changed <container style="screenlet"> pattern to <screenlet...>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@826483 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18 18:24:32 +00:00
Adrian Crum abf40da363 Updated client code to use the new Delegator factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@823633 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 17:44:24 +00:00
Adrian Crum 5664c8ad47 Replaced GenericDelegator.getGenericDelegator(...) calls with new factory method.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@821649 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 01:53:50 +00:00
Adrian Crum acfba61db1 Converted GenericDelegator concrete class references to Delegator interface references.
This commit requires ant clean. Also, external libraries that reference GenericDelegator will need to be updated.



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@821643 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05 00:08:27 +00:00
Adrian Crum 6835b24060 Reverted rev 802567.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@812692 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 20:56:14 +00:00
Ashish Vijaywargiya ec8757448c Adding missing license from these files present inside specialpurpose folder.
I don't know what to do with the XSD files present inside oagis component - Is it right to add ASL license in these files? If Yes? then where can we add this license?

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@807079 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24 05:34:50 +00:00
Jacques Le Roux f85e998f2c no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
Adrian Crum 3ec4d93980 Refactored GenericDelegator:
1. Converted GenericDelegator to an interface. We already have DelegatorInterface, but it isn't being used anywhere. Removed DelegatorInterface.java.

2. Extracted the static, cached data from the GenericDelegator implementation and put it in its own class - DelegatorData. The GenericDelegator implementation holds a reference to the DelegatorData instance. This makes it possible to have per-thread instances of GenericDelegator.

3. Replaced the ThreadLocal variables with regular variables. ThreadLocal variables are no longer needed. Client code doesn't need to be concerned with pushing and popping the GenericDelegator state.

This commit paves the way for the forthcoming ExecutionContext.

User modifications will have to replace GenericDelegator.getGenericDelegator(...) with DelegatorFactory.getGenericDelegator(...). Also, replace the push code with the new setXxx methods, and remove the pop code. If modifications used DelegatorInterface, replace that with GenericDelegator.

Aside from those changes, this commit is backwards compatible.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@802567 13f79535-47bb-0310-9956-ffa450edef68
2009-08-09 18:04:26 +00:00
Adrian Crum 5573fdfbdd Chinese translation for the specialpurpose folder, provided by Shi Yusen - https://issues.apache.org/jira/browse/OFBIZ-2723.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@798580 13f79535-47bb-0310-9956-ffa450edef68
2009-07-28 15:59:04 +00:00
Hans Bakker e8b3a3f3c0 introduce a 'gift enable' with default = Y in the order.properties file and pos, ecommerce and ordermgr itself use it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@790517 13f79535-47bb-0310-9956-ffa450edef68
2009-07-02 09:25:14 +00:00
Jacques Le Roux a5eae49db2 Revert r772941 at David's demand: <<The dynamic dates represented here do not copyright the files that the code is in, they copyright what the code produces, and that is constantly changing so the dynamic date is appropriate."
On my side, I tried to find legal informations but did not find anything clear.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@773211 13f79535-47bb-0310-9956-ffa450edef68
2009-05-09 12:09:09 +00:00