Commit Graph
49 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
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 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 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
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 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
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
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
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
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
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
Jacques Le Roux 589079c9fc Revert r772887
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@773095 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 20:44:54 +00:00
Jacques Le Roux 13893db1ec See http://markmail.org/message/znytl2y4inpmxbdo (David Goodenough's advice on copyright update)
extract : "My understanding of the Berne Convention rules for Copyright (which covers most jurisdictions - even the USA now), is that the copyright period only gets extended when the copyrighted item gets updated."

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@772941 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 11:15:08 +00:00
Jacques Le Roux 382c9875d5 A patch from Ashish Vijaywargiya "Change Copyright Year" (https://issues.apache.org/jira/browse/OFBIZ-2346) - OFBIZ-2346
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Jacques Le Roux 34deb9956a Generalize r767694 to allow better error messages rendering in UI.
Actually I was more interested to solve the same issue in BizznessTime but StringUtil.wrapString is not working there

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@772887 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 08:41:53 +00:00
Marco Risaliti 73a958fa9e Support of BigDecimal to WebPos (OFBIZ-2313)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@767279 13f79535-47bb-0310-9956-ffa450edef68
2009-04-21 20:08:05 +00:00
Jacques Le Roux bb27d79880 In Controller.xml
path="org/ofbiz/(\w*)/(.*)" (.*) => path="component://$1/script/org/ofbiz/$1/$2" $3
path="org/ofbiz/(\w*)/(.*)" => path="component://$1/script/org/ofbiz/$1/$2"

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@765798 13f79535-47bb-0310-9956-ffa450edef68
2009-04-16 23:07:52 +00:00
Jacques Le Roux 97bb3073c9 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Bilgin Ismet Ibryam 4b3ef3a6fa Added an optional "name" attribute to event element in controller.xml This attribute is used only (also required) in events inside
firstvisit, after-login, before-logout, preprocessor and postprocessor elements. Events with same name will be overridden and only the last one will be executed. Overriding works also in cases when a controller.xml includes other controller files.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@761220 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 09:47:48 +00:00
Ashish Vijaywargiya a872b043b4 Applied patch from Jira Issue OFBIZ-2242 (Small typos in ecommerce & webpos components)
Thanks Ashish Nagar for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@755157 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 09:03:28 +00:00
Bruno Busco cde214ae99 Changed WebSiteId parameter description to be more general
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@751214 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 07:19:07 +00:00
Adam Heath 6ce076acd0 Should be the last of the executable removes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@749178 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 04:18:30 +00:00
Adam Heath ff1a1a67fc Some more unneeded executable props.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@749177 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 04:13:24 +00:00
Adam Heath 3d4f3f60dc Remove executability from these files, that make no sense.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@749176 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02 04:06:50 +00:00
Jacques Le Roux 434aa83db9 Oops (bad previous commit)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@746495 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 12:35:06 +00:00
Jacques Le Roux 37d964cf9f We need this since now ProductContentWrapper and categoryContentWrapper return a StringUtil.StringWrapper, else "Photo not available" image never shows
Certainly more to come...

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@746490 13f79535-47bb-0310-9956-ffa450edef68
2009-02-21 12:25:04 +00:00
Marco Risaliti 18a994d2b6 A lot of hardcoded labels cleaning and changes some wrong references
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@745286 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17 22:57:14 +00:00
David E. Jones 7737e8137b Fixed issue with general html encoding of String objects in FTL files being applied to dynamic JavaScript from groovy files by leaving them as StringBuffers, ie just removing the toString calls
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@742234 13f79535-47bb-0310-9956-ffa450edef68
2009-02-09 02:34:23 +00:00
Jacques Le Roux 4c85903d68 All tabs to 4 spaces in *.groovy, *.java, *.xml : less problems in future with that aspect...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
Jacques Le Roux cd36ee6ed4 Some labels fixes
+ a not toally applied patch from Erik Wegner " More German translations" see https://issues.apache.org/jira/browse/OFBIZ-2067?focusedCommentId=12660475#action_12660475 - OFBIZ-2067


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@731224 13f79535-47bb-0310-9956-ffa450edef68
2009-01-04 11:57:53 +00:00
Marco Risaliti bf2a0311a7 PAYMENT SET REF. button is not working correctly because it sets now only the first payment of the cart (Issue OFBIZ-1998)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@704645 13f79535-47bb-0310-9956-ffa450edef68
2008-10-14 19:48:26 +00:00
Marco Risaliti fa7f0f3f1c CLEAR PAYMENT button is not working correctly because it clears now only the first payment of the cart (Issue OFBIZ-1995)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@703851 13f79535-47bb-0310-9956-ffa450edef68
2008-10-12 17:24:07 +00:00
Marco Risaliti 54eadbcbfa Add a new "paymentReasonId" on PosTerminalInternTx entity and store payment reason id during Pos Paid IN/OUT (Issue OFBIZ-1991)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@703568 13f79535-47bb-0310-9956-ffa450edef68
2008-10-10 19:56:17 +00:00
Marco Risaliti 7d440b99d7 Add a new "terminalName" on PosTerminal entity and then show it on web pos login (Issue OFBIZ-1981)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@701675 13f79535-47bb-0310-9956-ffa450edef68
2008-10-04 17:19:07 +00:00
Marco Risaliti 33e8848d2d Changed two wrong requests in controller.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@701518 13f79535-47bb-0310-9956-ffa450edef68
2008-10-03 20:09:32 +00:00
Marco Risaliti 7f91e6cf52 Removed hard-coded posTerminalId pos-1 and add the possibility to select it during login
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@699861 13f79535-47bb-0310-9956-ffa450edef68
2008-09-28 16:45:52 +00:00
Marco Risaliti a3ca5faca5 Change of language was not working, it was missing a request.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@699728 13f79535-47bb-0310-9956-ffa450edef68
2008-09-27 20:22:39 +00:00
Marco Risaliti 92d0b1b4ee New Web Pos application
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@698351 13f79535-47bb-0310-9956-ffa450edef68
2008-09-23 21:09:28 +00:00