Commit Graph
587 Commits
Author SHA1 Message Date
Jacques Le Roux ff4623a475 Re-apply r912645
<<Make use of FSE.expand(), instead of expandString, to provide support
for direct setting of values in widgets.  This closes OFBIZ-3486.>>


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@918476 13f79535-47bb-0310-9956-ffa450edef68
2010-03-03 14:03:19 +00:00
Jacques Le Roux 423ce79a21 A slightly modified patch from Sascha Rodekamp " Some improvements for the layer lookup" (https://issues.apache.org/jira/browse/OFBIZ-3524) - OFBIZ-3524
A flag was added to fade the background behind the layered lookup (ie all the screen but the lookup) when a layer is opened.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917940 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 10:02:04 +00:00
Jacques Le Roux 292f1cda85 This allows to hide the field at left of the lookup button. It may be used to chain an action without coming back to the original place, so the field make any sense. In my case reassigning a work effort from a list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917152 13f79535-47bb-0310-9956-ffa450edef68
2010-02-28 09:58:29 +00:00
Hans Bakker df4af4bd37 Ebaystore:
fixed error in xml form when  use  radio field type.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@916546 13f79535-47bb-0310-9956-ffa450edef68
2010-02-26 03:01:59 +00:00
Adam Heath b0192e663c Reverting 912645, for now, until I have time to investigate further.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915650 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 03:31:49 +00:00
David E. Jones e72da60d42 Fixed issue where link parameters where not adjusted for TimeZone, though they are expected to be in the event processing which causes links and such with times and timestamps, and sometimes dates, to not match what they came from; now time zone adjustment is done for link parameters
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915644 13f79535-47bb-0310-9956-ffa450edef68
2010-02-24 02:31:37 +00:00
Bilgin Ismet Ibryam 149a5a0909 Allow hiding header for multi forms.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@915516 13f79535-47bb-0310-9956-ffa450edef68
2010-02-23 20:59:31 +00:00
Adam Heath 350a287883 Make use of FSE.expand(), instead of expandString, to provide support
for direct setting of values in widgets.  This closes OFBIZ-3486.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@912645 13f79535-47bb-0310-9956-ffa450edef68
2010-02-22 16:34:47 +00:00
Bruno Busco 2302c33259 Fixed wrong markup for Date-Time field introduced in rev. 911079.
Thank you Adrian for reporting in ML

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911305 13f79535-47bb-0310-9956-ffa450edef68
2010-02-18 10:05:41 +00:00
Bruno Busco ee1f838fa3 Removed unused calGif parameter from Form rendering Macros
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911186 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 21:57:22 +00:00
Bruno Busco 024a4afc4d The Visual Theme can now re-define the calendar button icon
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911079 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 17:17:52 +00:00
Jacopo Cappellato 6ed667e6d9 Added newly added (in rev. 908894) renderDisplayField input arguments.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908912 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 10:33:19 +00:00
Erwan de Ferrieres 311e0d14ac Adding a new field type in forms' display so we can display an image and keep a list's consistency
Example :
<field name="displayProduct" use-when="!&quot;foo&quot;.equals(productId)">
  <hyperlink target="EditProduct" image-location="/images/next.gif" also-hidden="false"/>
</field>
<field name="displayProduct" use-when="&quot;Cap&quot;.equals(productId)">                                                                                                                                                                         
  <display type="image" image-location="/images/ofbiz.ico"/>
</field>

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908894 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 09:27:01 +00:00
Erwan de Ferrieres 636239c235 Remove the differences in columns in a fom as reported by Nicolas Malin on the dev mailing list.
More details on this issue here : https://issues.apache.org/jira/browse/OFBIZ-3444 with screenshots and an example

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906973 13f79535-47bb-0310-9956-ffa450edef68
2010-02-05 15:31:48 +00:00
Jacques Le Roux 2b1c7c2292 The syntax of the new attributes introduced by the layer lookup were verbose.
We know we are in a lookup element and no attributes interfere. So I reduced the verbosity by removing the "lookup-" part everywhere it was possible (ie everywhere)
So we go from
    lookup-presentation
    lookup-height
    lookup-width
    lookup-position
to
    presentation
    height
    width
    position
in the lookup element

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906584 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 18:02:38 +00:00
Jacques Le Roux 609898f9f6 A slightly modifief patch from Sascha Rodekamp "The positioning mechanism of the new lookups is only working with the bizznesstime theme" (https://issues.apache.org/jira/browse/OFBIZ-3430) - OFBIZ-3430
For the moment I only removed comments around an error which is useful. I guess Sascha was blocked by it during his tests and forgot to remove it. BTW I improved the error and one related (variables names explicit)

I will certainly do a review on the format later to avoid both in the same commit (if any changes are needed anyway)



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@906524 13f79535-47bb-0310-9956-ffa450edef68
2010-02-04 15:30:50 +00:00
Adrian Crum 667b8e9a5c As discussed on the dev mailing list, eliminated checks for FlexibleStringExpander.getOriginal() returning null. Use FlexibleStringExpander.isEmpty() instead.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905863 13f79535-47bb-0310-9956-ffa450edef68
2010-02-03 01:44:24 +00:00
Bilgin Ismet Ibryam 32881a0747 Added missing HtmlTreeRenderer to screen context. Bug reported by Jens Oechsler in user list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@905581 13f79535-47bb-0310-9956-ffa450edef68
2010-02-02 11:12:45 +00:00
Jacques Le Roux 84c1ca9272 Fix an issue when using the layer lookup with a fieldLookup3 style lookup (ie a lookup which shows name but uses an Id underneath).
This last fix allows to use the layer lookup in any cases already covert by OFBiz

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904922 13f79535-47bb-0310-9956-ffa450edef68
2010-01-31 00:09:53 +00:00
Adam Heath 93d0182f49 Make all variables in ControllerConfig private, and add accessor
functions to them.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904250 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 20:10:51 +00:00
Andrew Zeneski 0f95b50cae fixed problem with the multi-element lookup form not passing a valid javascript object to the lookup function
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904198 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 18:20:05 +00:00
Jacques Le Roux 4e78c6d974 A patch from Sascha Rodekamp "UI upgrade, new lookups" (https://issues.apache.org/jira/browse/OFBIZ-3374) - OFBIZ-3374
It's not perfect, but hopefully this time I will not have to revert it. I think it's time to introduce it, to let everybody have an idea and test.
Anyway, it can't hurt as it's only used in the Form Widget Examples screen for now. To test: https://localhost:8443/example/control/FormWidgetExamples

I find that the positioning mechanism is only working with the bizznesstime theme (at list centering, the only case I tried with all themes). But it should not be a big deal to fix since it works already in one theme.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904047 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 11:57:12 +00:00
David E. Jones 7dc4d6b942 Improvement for the ignore-error attribute on the form->actions->service element to cause it to call the service in its own transaction, which is the only way that makes sense because otherwise the error will cause the transaction the screen is running in to be rolled back and all subsequent queries will blow up
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@903537 13f79535-47bb-0310-9956-ffa450edef68
2010-01-27 03:10:37 +00:00
Adam Heath 20396599a8 In getLinkedRequestsLocationAndUri(), remove duplicate processing of
DropDownField.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901953 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 00:58:09 +00:00
Adam Heath a02f927cab Fix line that had all spaces.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901952 13f79535-47bb-0310-9956-ffa450edef68
2010-01-22 00:56:53 +00:00
Jacques Le Roux c58797b529 I revert r900950 because it introduces a bad side-effect when using a lookup by name, at least as far as I can tell.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 13:36:25 +00:00
Jacques Le Roux 7e1e785844 A patch from Sascha Rodekamp "THanks" (https://issues.apache.org/jira/browse/OFBIZ-3374) - OFBIZ-3374
A great enhancement IMO (like the calendar some time ago)

The idea came from http://cwiki.apache.org/confluence/display/OFBADMIN/New+Features+Roadmap+-+Living+Document#NewFeaturesRoadmap-LivingDocument-Quickeranintuitiveaccesstobasicfunctionnalities
which can be summarized to <<having lookups poping up as fast as the calendar>>. Lookups open in a page layer instead of a separate windows, faster!


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900950 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 20:48:13 +00:00
Bruno Busco 61c53fc231 Added a specific class for the "Displaying..." text in the renderNextPrev macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899898 13f79535-47bb-0310-9956-ffa450edef68
2010-01-16 08:11:12 +00:00
David E. Jones e2f777a52b Fixed bug with form widget and the use-when attribute on fields which caused the header cell to be rendered but no cells would be rendered on certain rows causing the columns to not be aligned; now the cell is rendered, but nothing in it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899815 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:19:21 +00:00
Adam Heath b17eb127ec Fix trailing whitespace, and mixed tab/space at the beginning of lines.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@899812 13f79535-47bb-0310-9956-ffa450edef68
2010-01-15 21:00:23 +00:00
David E. Jones 131ffbb6aa Small improvement in error handling so it is easier to see at least approximately where the parsing error happening
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@898588 13f79535-47bb-0310-9956-ffa450edef68
2010-01-13 00:57:19 +00:00
David E. Jones c28791cbee Small improvement to allow ignoring of errors in form widget action services, mostly for those used to get info to display and if they fail it's not a big deal
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897606 13f79535-47bb-0310-9956-ffa450edef68
2010-01-10 09:20:18 +00:00
David E. Jones cb7bd7723b Made gathering info for Artifact Info more resilient to incomplete form defs
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@897088 13f79535-47bb-0310-9956-ffa450edef68
2010-01-08 04:11:35 +00:00
David E. Jones 355e0bf4fc Small improvement in error message when entity-options field name isn't valid
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@895940 13f79535-47bb-0310-9956-ffa450edef68
2010-01-05 08:29:57 +00:00
Andrew Zeneski e31d68d16f added disabled element to the lookup field type
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894671 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 16:49:42 +00:00
Jacopo Cappellato b195647d16 Updated macro rendere libraries for xsl-fo, xml, text and csv in order to support recent changes in rev. 894460
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894593 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 11:35:45 +00:00
Andrew Zeneski 271ed34627 implemented the disabled flag on text and lookup fields; implmented event/action elements for hidden and lookup fields; added code to lookup.ftl (javascript) to invoke onchange events which normally only invoke when the field is manually changed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894460 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 18:36:01 +00:00
Andrew Zeneski 92970a877d fixed bug in field lookup renderer which was preventing target2 (when using description-field-name); fixed bad method call in fieldlookup.js (cal_error) as well as a few typos in the error messages
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894277 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 23:41:21 +00:00
Bilgin Ismet Ibryam dba0d2b021 Set ${paginate} string as default value for paginate attribute in form and screen widgets.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894179 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 14:03:57 +00:00
Bilgin Ismet Ibryam bd19dc7e9f Applied a modified patch from jira issue OFBIZ-3211 - Ajaxifying lookup fields.
To add ajax support to a lookup screen, you have to add two fields: entityName and searchFields. As a reference please check LookupPartyName and LookupPerson screens in party manager. You can see ajaxed lookups in action in any screen using form widgets and the above lookup screens (findInvocies screen in accounting for example). 
This commit also fixes a bug in controls.js from scriptaculous library, but I reported it in its project list and I will track it further.
To hide the returned values (shown as [ID])from the autocompleter or change the number of items there, you have to modify widget.properties

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894149 13f79535-47bb-0310-9956-ffa450edef68
2009-12-28 11:30:40 +00:00
Adam Heath 93cc17b5b0 Remove a bunch of wildcard imports.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894106 13f79535-47bb-0310-9956-ffa450edef68
2009-12-27 19:54:58 +00:00
Adam Heath 18d0ceeaf9 Remove most docs targets, they are all the same anyways.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894031 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:28:48 +00:00
Adam Heath 1c269fc012 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@894030 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:24:20 +00:00
Adam Heath 56dac0bf9e 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@894024 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:16:56 +00:00
Adam Heath 47b0a876ed Switch all javac15 to javac16.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894022 13f79535-47bb-0310-9956-ffa450edef68
2009-12-26 22:12:04 +00:00
Erwan de Ferrieres 5a07e94c83 Closing OFBIZ-3375 , adding description to checkboxes. When using an entity-options combined with <check>, the description wasn't displayed.
An example form is at <OFBiz instance>/example/control/FormWidgetExamples

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@893282 13f79535-47bb-0310-9956-ffa450edef68
2009-12-22 19:33:06 +00:00
Bilgin Ismet Ibryam 340eef18b0 Made form paginate attribute use FlexibleStringExpander.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892371 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 20:25:20 +00:00
Bilgin Ismet Ibryam 485963e2cb When a form has paginate="false" render all the rows by setting a big viewSize internally.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@892264 13f79535-47bb-0310-9956-ffa450edef68
2009-12-18 14:48:33 +00:00
Bilgin Ismet Ibryam dd822b9022 Fixed rendering of required-field-style.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890852 13f79535-47bb-0310-9956-ffa450edef68
2009-12-15 16:04:08 +00:00
Hans Bakker f9e1b11bde Merge birt branch 831204:886087 and 831209:885099. A contribution by Antwebsystems employee Chattree
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@890175 13f79535-47bb-0310-9956-ffa450edef68
2009-12-14 04:41:28 +00:00