Commit Graph
110 Commits
Author SHA1 Message Date
Anil Patel 06bd17d66c Removed use of form.reset. Set flag to evalStript on Ajax load of html.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@672059 13f79535-47bb-0310-9956-ffa450edef68
2008-06-27 00:00:28 +00:00
Anil Patel 265e7b46a1 Adding Autocompleter options to form widget dropdown. More improvements to come.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671723 13f79535-47bb-0310-9956-ffa450edef68
2008-06-26 04:23:57 +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
Scott Gray 9b30213f6b Removed an orphaned screen def pointed out by David on the dev list
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671504 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 10:46:18 +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
Anil Patel d5945e0433 After form is posted in background we should not update the form area. This causes problem if form area has embedded <script> block.
Removed this requirement. Instead now we reset form after update. Now I think we need to check for errors before reseting the form. This will help user to modify data and resubmit. I'll do that next.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671394 13f79535-47bb-0310-9956-ffa450edef68
2008-06-25 01:53:49 +00:00
Jacques Le Roux e3aa4bafaf Apply the same solution as in r671235
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671314 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 19:37:58 +00:00
Jacques Le Roux 72154d608d Fix order in elements. My XML editor was complaining
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671313 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 19:37:23 +00:00
Adrian Crum 3a3a19ff02 Fix for Example find screen.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671235 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 16:34:07 +00:00
Jacques Le Roux bfd0fdc03b A patch from Bruno Busco "Example application should use FindScreenDecorator" (https://issues.apache.org/jira/browse/OFBIZ-1846) - OFBIZ-1846
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@671230 13f79535-47bb-0310-9956-ffa450edef68
2008-06-24 16:06:17 +00:00
Adrian Crum eb102be45f Updated some Find screens to use the new default search result property.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670712 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23 19:03:40 +00:00
Scott Gray a34c3ecb15 Removed an invalid attribute, note I haven't reviewed any of the other changes to this form, it's just the red mark in my eclipse editor was bugging me :-)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670470 13f79535-47bb-0310-9956-ffa450edef68
2008-06-23 08:03:01 +00:00
Jacques Le Roux a220155ab3 A patch from Bruno Busco "Example application should use FindScreenDecorator" (https://issues.apache.org/jira/browse/OFBIZ-1846) - OFBIZ-1846
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670340 13f79535-47bb-0310-9956-ffa450edef68
2008-06-22 11:08:33 +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
Adrian Crum 9106b202c2 Improved lookup screens - contributed by Bruno Busco - https://issues.apache.org/jira/browse/OFBIZ-1841.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@670249 13f79535-47bb-0310-9956-ffa450edef68
2008-06-21 18:44:43 +00:00
Adrian Crum 33cec52861 Removed deprecated CSS styles from the Example component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@668213 13f79535-47bb-0310-9956-ffa450edef68
2008-06-16 16:07:47 +00:00
Scott Gray 5e401fcd53 Updated all simple methods to use the new attributes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@667748 13f79535-47bb-0310-9956-ffa450edef68
2008-06-14 06:03:12 +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
David E. Jones bd2d32eaba Started effort of cleaning up element and attribute names in simple-methods, there is a lot of work to do here to make things consistent; for more info and a list of all changes see the docs.ofbiz.org Simple Method Cleanup Effort page
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@666069 13f79535-47bb-0310-9956-ffa450edef68
2008-06-10 11:31:17 +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
Jacopo Cappellato a5159661af Removed unnecessary position attributes.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@661743 13f79535-47bb-0310-9956-ffa450edef68
2008-05-30 14:49:15 +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 a740aa2ad5 Small fixups for last commit.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@658351 13f79535-47bb-0310-9956-ffa450edef68
2008-05-20 17:12:35 +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
Adrian Crum efe9694fb8 UI work in the Example and ExampleExt components. Fixed minor layout issues, tested with Firefox and IE7, formatted the screen widget XML files so they have consistent line spacing, and added some comments to help new users.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@653865 13f79535-47bb-0310-9956-ffa450edef68
2008-05-06 18:12:46 +00:00
Adrian Crum 90f4b839fe Missed one screen in the Example component.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652716 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 23:52:06 +00:00
Adrian Crum 2992de7456 IE7 and general layout fixups for the Example and ExampleExt components.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@652714 13f79535-47bb-0310-9956-ffa450edef68
2008-05-01 23:44:31 +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 5270850556 updated the example menu to include the ajax example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@644894 13f79535-47bb-0310-9956-ffa450edef68
2008-04-04 20:38: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 e29b08407b Moved comments to descriptions in example entity defs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@641641 13f79535-47bb-0310-9956-ffa450edef68
2008-03-26 23:28:17 +00:00
Jacopo Cappellato 4e5d5791b3 New attributes for the webapp element in the ofbiz-component.xml files: description, menu-name and position.
menu-name is used to separate the menu items in different menus, the position element che be used to sort them (alphanumerically) in the group.
There are now two menu groups: "main", for the main applications, in the top bar, and "secondary" for applications (specialized or not still 'mature'), in the footer. 
Thanks to Bilgim Ibryam for the patch OFBIZ-1714, that I have committed with a few changes.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@640307 13f79535-47bb-0310-9956-ffa450edef68
2008-03-24 04:07:34 +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
Christian Geisert 0d5d33c740 Setting svn properties (svn:eol-style,svn:mime-type,svn:keywords)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@634599 13f79535-47bb-0310-9956-ffa450edef68
2008-03-07 10:13:56 +00:00
David E. Jones 95a83c7aaf Added missing relationship between ExampleItem and Example
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@631077 13f79535-47bb-0310-9956-ffa450edef68
2008-02-26 03:32:27 +00:00
Adrian Crum 68c1dbbaf9 Second sweep through the maincss.css style sheet. Changed the head1, head2, and head3 style names to h1, h2, and h3. Updated affected styles in ftl and xml files.
The ecommerce component is excluded from this commit.

These changes shouldn't break any layout. If you spot something wrong, let me know and I'll fix it.

I won't make any more maincss.css changes for a little while. I'll let the dust settle from these two commits, then I'll go through the file and physically remove the deprecated styles.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627051 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 19:30:09 +00:00
Hans Bakker 2cd043e443 convert all Example language files to xml on adrians request
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@620450 13f79535-47bb-0310-9956-ffa450edef68
2008-02-11 10:37:24 +00:00
Adrian Crum aff0cffce9 Fixed properties file resolver in new UtilProperties code.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@608315 13f79535-47bb-0310-9956-ffa450edef68
2008-01-03 02:50:58 +00:00
Adrian Crum 987b444bdf Fix for r607823. The OFBiz custom xml properties file format requires the file extension in the resource name. Detailed explanation in the dev mailing list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@608156 13f79535-47bb-0310-9956-ffa450edef68
2008-01-02 17:41:16 +00:00
Scott Gray 474906df72 Renamed ExampleXmlUiLabels.xml to ExampleUiLabels.xml, it was either that or rename all the references in the minilang services but this seems to make more sense.
I used Subclipse to rename the file so hopefully it comes through as a rename rather than delete and add

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607828 13f79535-47bb-0310-9956-ffa450edef68
2008-01-01 11:44:00 +00:00
Scott Gray 6155c32d9e Fix small bug, wrong default map name
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607805 13f79535-47bb-0310-9956-ffa450edef68
2008-01-01 05:37:15 +00:00