The last index (used on the last button) is not calculated correctly in ftl or the renderer classes. It currently users floor which works only for list sizes that are not multiples of the view size. When you have a list size which is a multiple of the view size, it does not subtract 1 for zero based index and therefore the last button goes to the last page + 1
Examples
listSize = 1
viewSize = 10
listSize / viewSize = 0.1
floor(0.1) = 0
This one produces the correct value
listSize = 20
viewSize = 10
listSize / viewSize = 2
floor(2) = 2
Last index should be 1 because of zero based index but never occurs
To reproduce, enter a view with a list and paging functionality, the list size must be a multiple of the view size
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1560176 13f79535-47bb-0310-9956-ffa450edef68
In this way it will be easier to compare the ootb Lucene integration with custom ones (based on Lucene/Solr/etc...) and to switch between them.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1518925 13f79535-47bb-0310-9956-ffa450edef68
1) removed the request-maps for changeDelegator from components' controller.xml files: they were not used
2) removed CoreEvents.changeDelegator(...): not used (apart from the request-maps removed at #1)
3) removed CoreEvents.changeDispatcher(...): not used
4) cleaned up some code (related to multitenant development): now the objects are set in the request rather than the session
PS: as a consequence this will also fix the issue reported in OFBIZ-4289
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1353681 13f79535-47bb-0310-9956-ffa450edef68
1. can not update image 2. do not display mapKey field whan create new successful 3. do not display image and mapkey field when click on tree, all fixed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1202024 13f79535-47bb-0310-9956-ffa450edef68
Anyway this whole page seems broken or at least hard to understand how to use. BTW in R9.04 user role creation does not work because of lack of security, seems that nobody is worried about it so far, I let it like that...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1182827 13f79535-47bb-0310-9956-ffa450edef68
In last commits (1178141, 1178111) I put wrong paths for:
* elrteEditor for css pathes is now elrte-1.3
* missed js in elrte-1.3/js/i18n for i18n files
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1178166 13f79535-47bb-0310-9956-ffa450edef68
When using lots of WebSite Path Aliases, it is quite hard to find a specific Path Alias in a list with about 30 pages. Searching for a path alias and sorting the results would really help here.
Added patch that allows searching for path alias and sorting the list.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1144267 13f79535-47bb-0310-9956-ffa450edef68
The path to elrte-inner.css is incorrect when starting the editor.
The result is that in the WYSIWYG view eg. div and tables are not surrounded with a small blue border.
The problem is also visible in the logs: "Unknown request [css]; this request does not exist or cannot be called directly."
JLR: I checked this was the sole issue for elrte-inner.css
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1065147 13f79535-47bb-0310-9956-ffa450edef68
Sascha: There are some more issues in the groovy file
In entity field [ContentAssoc.fromDate] set the value passed in [java.lang.String] is not compatible with the Java type of the field [java.sql.Timestamp]
I'm not quite sure why this is going wrong. Maybe we have to explicitly create an Timestamp here.
DataResourceWorker.getDataResourceTextCache(dataResource, "text/html", Locale.getDefault(), templateRoot, delegator);
should be replaced with
DataResourceWorker.getDataResourceText(dataResource, "text/html", Locale.getDefault(), templateRoot, delegator, true);
JLR: this patch allows now to create a content from CMSContentFind but I'm not quire sure all is resolved. I jave also set the fromDate field in the calling screen as Timestamp type, not sure it's needed but it can't hurt. Nevertheless I think there are still some issues. But at least now it does not break
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060744 13f79535-47bb-0310-9956-ffa450edef68
This modified patch solves the find issue but not the create. I have simply kept
if (dataResourceId) {
instead of
if (!dataResourceId) {
in CmsEditAddPrep.groovy
because it's an obvious error (NPE the line after else). But it does not solve another error.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060546 13f79535-47bb-0310-9956-ffa450edef68
Martin Kreidenweis fixed some issues in Content/ CMS (see https://demo-trunk.ofbiz.apache.org/content/control/WebSiteCms?webSiteId=CmsSite)
So now it works, but he simultaneoulsy signaled some points.
* He used regular form submit instead of ajax for new content for now, thus:
o ajaxSubmitForm() can't handle new content, it won't reload the form because it doesn't know the new contentId
+ some controller changes would probably be necessary to make that work (return new contentId as JSON)
o nav tree is not updated with ajax submit currently
Sascha:I think there is no need to rewrite all the create content methods to return a JSON Object, we can simply use the initial select function from the js tree.
When i now create a new long/short text and do a "real" form submit the tree notice the new contentId from the parameters and select the corresponding tree node.
JLR: I agree with Sascha, it works well
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1060377 13f79535-47bb-0310-9956-ffa450edef68