Commit Graph
71 Commits
Author SHA1 Message Date
Bruno Busco cafa721fec Added birt webapp in the example component. This was erroneusly omitted in previous commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892658 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 20:47:20 +00:00
Bruno Busco 63ebc81a33 Moved Birt demos in the Example application. (OFBIZ-3352)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892633 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 18:22:09 +00:00
Bruno Busco d9ea486930 Added the geoChart common screen. (OFBIZ-3348)
This can be used to show a set of geo points on a Google map.
The screen takes as input a geoChart map containing:
    * dataSourceId -> select the map system to be used (google, yahoo etc.)
    * width -> map dimensions
    * height -> map dimensions
    * center -> the center point of the map
    * points -> the points array to be showed on the map

Several example screens have been also added to the Example application

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892579 13f79535-47bb-0310-9956-ffa450edef68
2009-12-20 09:41:03 +00:00
Scott Gray 78b784e80e 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@892219 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 10:55:34 +00:00
Jacques Le Roux 6d0edfd4ea A patch from Erwan de FERRIERES "help link in example is not working" (https://issues.apache.org/jira/browse/OFBIZ-3097) - OFBIZ-3097
Some entries in the controller.xml were missing, since the remove of the commonext include. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832688 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 09:32:09 +00:00
Jacques Le Roux 246d05b752 Fix a bug introduced with r832368
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832371 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 10:05:28 +00:00
Jacques Le Roux 6e61b5e801 A patch from Erwan de FERRIERES "help link in example is not working" (https://issues.apache.org/jira/browse/OFBIZ-3097) - OFBIZ-3097
when clicking the help link in the example app, the showHelp request is not recognised.
-> added a request in the example controller
-> created the ExampleHelpData file
-> added the needed line to load the data in the Example ofbiz-component file.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832368 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 09:58:06 +00:00
Jacques Le Roux 7befd1d25e no tabs but 4 spaces in code files (*.ftl, *.gro*, *.java, *.xml)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@804935 13f79535-47bb-0310-9956-ffa450edef68
2009-08-17 11:01:25 +00:00
David E. Jones d0d41b3259 Added some examples of slightly more complex view entities, plus simplified some example forms based especially on the ExampleStatusItem view-entity; also cleaned up some names/titles; note that these are proof of concept examples to demonstrate and test the new functionality and are not yet functional
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792397 13f79535-47bb-0310-9956-ffa450edef68
2009-07-09 04:37:38 +00:00
Jacques Le Roux 058d6aed57 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@772936 13f79535-47bb-0310-9956-ffa450edef68
2009-05-08 10:56:14 +00:00
Hans Bakker f21b08ba2b remove unused requests from controller as reported by Jacques
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@771161 13f79535-47bb-0310-9956-ffa450edef68
2009-05-04 02:07:03 +00:00
Jacques Le Roux b9c3ddef08 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@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Bilgin Ismet Ibryam 7e7c1f375a 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@761220 13f79535-47bb-0310-9956-ffa450edef68
2009-04-02 09:47:48 +00:00
Bruno Busco a36cb4dd3e Changed WebSiteId parameter description to be more general
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@751214 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07 07:19:07 +00:00
Hans Bakker 1aa2d0af61 do not display portalpage button when the portalPagename is empty
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@743605 13f79535-47bb-0310-9956-ffa450edef68
2009-02-12 02:53:19 +00:00
David E. Jones afe3dc9c81 A few related changes:
Big refactor of ControlServlet, RequestManager, RequestHandler, and ConfigXMLReader so that simple objects are used instead of Maps within Maps within Maps for the data from the controller.xml file, which results in eliminating hundreds of lines of code including the entire RequestHandler class. I have tested this a lot with different apps that use the ControlServlet differently, but this is a very big change so there could still be issues. Based on this cleanup future issues and new features should be easier and less error prone, and that is why doing it now in order to help with a number of other improvements and bug fixes that are part of this commit.

Also added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues with form data, but if the ID to display (like following a crAlso added redirect-parameter element to go under the request-map -> response element which allows you to specify which parameters will be passed on in a redirect instead of using all of them. Also improved default there and in various places to only include parameters from the URL to avoid issues wd in and also going to the same page after login from auth=true or from clicking on the login link.

Related to cleaning up login URLs also changed how the request and parameters passed to a request before a login are saved and used after a login is successful so that it URL parameters go on the URL in a redirect to the original request to make it more transparent, and non-URL parameters just stay in the session and are used when the original request is run again to avoid putting sensitive information like passwords and big information like textarea data in the URL, which has been a problem before.

To see what some of these things combined can do try going to the example app, login, click on the New Example link, then logout in another tab or window, then go back to the New Example page and enter a name and a whole bunch of text in the long description then click Create, the system will show you the login page so enter username/password, and then after login you'll see a nice URL to EditExample with the correct exampleId parameter and all of the data entered before login successfully saved and never appearing in a URL.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@741374 13f79535-47bb-0310-9956-ffa450edef68
2009-02-06 02:14:19 +00:00
Bruno Busco c4d9922812 Removed Login and Logout menu item from FTL based app-navigation menus. (Moved now to the header).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739724 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 09:58:36 +00:00
Jacques Le Roux b00283d857 A patch from Bruno Busco "Drop-down Applications Bar" '(https://issues.apache.org/jira/browse/OFBIZ-2118) - OFBIZ-2118
Fix an issue in Example component



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@737505 13f79535-47bb-0310-9956-ffa450edef68
2009-01-25 11:44:46 +00:00
Jacques Le Roux 572b7683e0 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@737003 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 11:08:47 +00:00
David E. Jones 806eb98c1b Applied patches from Bruno Busco in Jira #OFBIZ-2118 to add flexibility to menus and themes for more dramatic changes in themes, includes patches AppMenuDropDown.patch and VisualThemeMessage.patch
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@736887 13f79535-47bb-0310-9956-ffa450edef68
2009-01-23 01:50:28 +00:00
Hans Bakker 299572ab6a updates according the comments from bruno
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@731508 13f79535-47bb-0310-9956-ffa450edef68
2009-01-05 09:48:15 +00:00
Hans Bakker ab68f24611 some small corrections in myportal framework and the first batch of updates for myportal
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730947 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 09:48:18 +00:00
Jacques Le Roux 1e9dabed6a A patch from Erwan de FERRIERES "Button to print a preview of fonts in OFBiz" (https://issues.apache.org/jira/browse/OFBIZ-2094) - OFBIZ-2094
+ some i18n and French translation

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@728073 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 17:23:19 +00:00
Hans Bakker 54a5a1094a update of portal pages with including column support and now using the 'normal' ofbiz interface
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@724618 13f79535-47bb-0310-9956-ffa450edef68
2008-12-09 06:17:35 +00:00
David E. Jones e7f1dde5f5 Commit reworked initial patch from Bruno Busco in Jira #1999; this follows Brunos work but adds the PortalPageColumn entity to configure columns, just optional pixel width for now, and also cleaned up entities and added foreign keys; rewrote a few things in screen actions and simple methods and removed a bunch of unused stuff that was commented out, so hopefully there isnt any more stray code in here; moved various things to files that were less generic, ie that mention portal specifically instead of just common or something; changed controller and menu setup so that this isn't in all apps by default, in fact just the example webapp for now with the include of portal-controller.xml and adding a dashboard menu item; note that this does not include the few changes in the specialpurpose directory, just the framework stuff for now; also moved data from seed to demo as it really isn't seed data in common and example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@718185 13f79535-47bb-0310-9956-ffa450edef68
2008-11-17 07:56:27 +00:00
David E. Jones 29ee827480 Based on expanded common controller removed a few things here
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@677646 13f79535-47bb-0310-9956-ffa450edef68
2008-07-17 17:37:23 +00:00
Anil Patel 6a74345536 JSON handler for simple method events.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671706 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 01:50:39 +00:00
Anil Patel 17d9d62174 Initial version of code to show error messages when form is posted in background.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671424 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 04:47:10 +00:00
Scott Gray ea942ee8cb Fix after groovy migration
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670298 13f79535-47bb-0310-9956-ffa450edef68
2008-06-22 02:10:26 +00:00
Jacques Le Roux 38994c4052 Better bsh-groovy migration, thanks to Scott and Ashish for review
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667508 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 12:42:32 +00:00
Jacques Le Roux 476c1e4e90 I forgot to update the file name after my remote uppercase change (Windows side effect)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667488 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 11:53:40 +00:00
Jacques Le Roux 9ff785c6d1 Renamed remotely
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667450 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 10:00:16 +00:00
Jacques Le Roux 55123e289a My 1st bsh->groovy migration, please check. I will change the file name (uppercase className) remotely as I'm working on Windows currently (files names case insensitive)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667448 13f79535-47bb-0310-9956-ffa450edef68
2008-06-13 09:55:27 +00:00
Adrian Crum 1f1f2552c1 A basic implementation of a help system, based on work contributed by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1750.
There is an example of how it is used in the EditExample screen of the Example component.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@663378 13f79535-47bb-0310-9956-ffa450edef68
2008-06-04 21:49:38 +00:00
Jacopo Cappellato 42723effc3 Implemented new event handler for Groovy scripts; converted two Beanshell events to Groovy.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@662337 13f79535-47bb-0310-9956-ffa450edef68
2008-06-02 06:28:55 +00:00
Adrian Crum 2d89f0f365 Form widget Ajax refinements.
Changed attribute-based ajax calls to on-event-update-area elements. Fixed bug in autocomplete. Cleaned up some of the rendering code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661450 13f79535-47bb-0310-9956-ffa450edef68
2008-05-29 19:48:24 +00:00
David E. Jones 82df3529e2 More cleanups of now deprecated constructors and what what
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660840 13f79535-47bb-0310-9956-ffa450edef68
2008-05-28 07:16:36 +00:00
Jacopo Cappellato 15d63246d6 Added support for xsl-fo and xml templates to the platform-specific screen widget element. Now it is possible to define the same screen that can be rendered with different renderers. An example of this is the SimpleDecorator that is now used to render simple PDF report (xsl-fo), xml export and printer friendly html output. You can test it in the Edit Example screen (and some other screens as well): the PDF and Printer Friendly links in that page both share the same screen definition. Misc fixes to the widget FO and XML renderers, for issues found while testing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659935 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 08:00:10 +00:00
Jacopo Cappellato 1d44046832 Fix for security hole I have introduced while working on the Ajax autocompleter fields.
This is a temporary approach that can be improved.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659658 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 20:57:27 +00:00
Jacopo Cappellato 27bdcf64db Continued work done by Anil Patel about implementation of Ajax.Autocompleter enhancement for form widget text box.
There is now a generic screen (and controller entries) that can be used by Ajax autocompleter fields.
See the example in the example component.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659488 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 10:10:48 +00:00
Anil Patel 9ded85445a Fist pass of implementation of Ajax.Autocompleter enhancement for form widget text box. I'll be working on improving this over next few days.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@659454 13f79535-47bb-0310-9956-ffa450edef68
2008-05-23 06:54:15 +00:00
Adrian Crum 6aea39757d Improved screen widget Ajax support.
The original Ajax work was a great start, but there were limitations. These changes open things up a bit: 1) Ajax rendering falls back to plain HTML when the user has JavaScript disabled. 2) You can have more than one area updated during an event.

IE7 updates only <div> elements, so be aware of that when using the Ajax feature.

See the Example component for a demonstration.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658281 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 15:33:22 +00:00
David E. Jones 0ba6bdd4eb Added background-submit-refresh-target to form field submit, auto-update-target to screen container; also added example that uses thetainer; also updated example to use these new ajax features
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@645115 13f79535-47bb-0310-9956-ffa450edef68
2008-04-05 15:13:09 +00:00
Andrew Zeneski 9228490a8f added a simple example of using prototype (ajax) with screens
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644429 13f79535-47bb-0310-9956-ffa450edef68
2008-04-03 18:03:53 +00:00
David E. Jones 1e4baaf319 Small cleanups
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@638241 13f79535-47bb-0310-9956-ffa450edef68
2008-03-18 06:53:55 +00:00
Jacques Le Roux b6b7c017c8 A patch from Adrian Crum "Screen widget show where code came from in html" (https://issues.apache.org/jira/browse/OFBIZ-1318) - OFBIZ-1318
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@594042 13f79535-47bb-0310-9956-ffa450edef68
2007-11-12 08:06:40 +00:00
Jacopo Cappellato 69cf27f071 Added new screen and form to the Example application as a proof of concept for a way to create a library of tricks and best practices for form widget definitions; the Example application could then be used as a repository of easily accessible examples for widgets. In this example I've started to document some useful ways to use the drop-down fields.
What do you think? I did this change using the CTR (commit-then-review) policy: if you don't like this idea I will immediately revert.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586349 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 09:39:51 +00:00
Jacopo Cappellato fa7284ec00 Converted appbar of the Example application from ftl to widget menu.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@586303 13f79535-47bb-0310-9956-ffa450edef68
2007-10-19 08:02:28 +00:00
Jacopo Cappellato 89f3fd0098 Applied patch from Adrian Crum as a first pass to share the same common login screens in all the applications.
OFBIZ-1320


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585393 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 06:24:17 +00:00
Jacques Le Roux d971f0ffec Complete my previous post (I had to change instance because of not related existing changes in controller.xml files)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@582731 13f79535-47bb-0310-9956-ffa450edef68
2007-10-08 07:08:34 +00:00