Ok, it is solved for now. Following files where unlawfully in my project: /zokola/src/main/webapp/xava/editors/style/dist/scss/materialdesignicons.scss /zokola/src/main/webapp/xava/editors/style/materialdesignicons.css /zokola/src/main/webapp/xava/fonts/materialdesignicons-webfont.woff /zokola/src/main/webapp/xava/fonts/materialdesignicons-webfont.woff2 I suspect that they where installed when testing some javascript framework (i don't remember which). Odd thing is that before OXPro 7.6* the correct...
Sometimes miracles are possible...;-) I did the query to fill the collection separately. But when I do the same thing with a @Condition on the collection in the transient model I get the filters and pagination as I want. So, false alarm.
Dear all, In OXPro version 7.6.4 I get java.lang.IllegalStateException: View.getCollectionTab() not allowed for @ManyToMany, @OrderColumn or calculated collections when I getView().getSubview("artikelen2Add").getCollectionTab().setFilterVisible(true) getView().getSubview("artikelen2Add") represents a collection tab. Thing is: this would have been solved since version 6.2.1: Fix: View.getCollectionTab() can be called for ManyToMany, @OrderColumn or calculated collections (copied from the change log)....
Additionally I created a new project from scratch (one of the demo applications available in maven) and the problematic icons are visible, so ok. The only 404 I get is on this: http://localhost:8080/favicon.ico Hope this helps
Hi Javier, Sorry it took some time to do the tests. First of all I noticed the issue is worse than I thought. First I said that on Chrome everything was ok but in fact in Firefox a 'wrong' icon is shown (see my previous screenshots) but in Chrome it shows nothing so I overlooked it. That said, this is what I tested: Completely clean the deployment workspace: Done all the steps Verify resource paths: Indeed: 3 404's are displayed both in Chrome as in Firefox: with this url: http://zas.local:8080/Zokola/xava/editors/fonts/materialdesignicons-webfont.ttf?v=4.9.95...
Hello Javier, Indeed with Chrome it shows the missing icons. Also with Firefox on another device. But not on my development machine. Ctrl-shift-R nor ctrl-shift-F5 works. Neither clearing the browsercache nor clearing the tempfolder of tomcat. But as it is just on my development machine it's not a big deal. Thanks! Kind regards, Bart.
Hi, Since I upgraded from 7.5.3 to 7.6.4 I saw that many icons (example: the list title icons) are not resolved correctly. (See attached screenshot). I suspect there is an issue with the classes. It marks 'mdi-cog' instead of the expected class (see the same screenshot). I double checked and downgraded to 7.5.3 and there it was correct again. And yes I cleared the browser cache. Any one experienced the same? Thanks in advance! Bart.
Ok, I reworked my code so errors are stored in a different Messages object than other types of messages. I passed them in two different session attributes and display them accordingly. And that works. Here is my code: /** * Looks if any not already displayed messages are waiting for this user and adds them to the session request attribute 'notificationMessages' or 'notificationErrors' accordingly * @param userName {@link org.openxava.zokola.model.InternalUsers} * @see {@link be.zokola.model.UserLoginMessage}...
Hi Javier, note that i want this errors, infos, messages and warnings to be displayed out of a view context. In other words: from where i'm calling messages.add(Type.valueOf(ulm.getMessagemode().toString()), ulm.getMessage()); I do not extend 'BaseAction' nor anything else. So I don't have a 'addMessages' nor 'addErrors'. Let me clarify my intention: An Openxava application called 'ZokoServices', which is a kind of dashboard to control several Raspberry devices which monitor, in most cases, temperatures...
I found out that the 'ox_Zokola_Bestellingen__errors_table' is just not generated in the html table. All other messages are created (see screenshot) just not the errors. I tried in on different browsers and i cleared cache and so on, but this is a problem on the server side i guess (and only when i try to show messages directly after signing in.
Thank you Javier! Your analysis is correct. So for future reference this is my code public class SignInHelperProvider4ZA extends ProSignInHelperProvider{ private static Logger log = LogManager.getLogger(SignInHelperProvider4ZA.class); @Override public boolean isAuthorized( ServletRequest request, String userName, String password, Messages errors, String unauthorizedMessage) { log.debug("ISAUTHORIZED..."); // This is your custom authentication logic //if (userName.equals("admin") && password.equals("masterkey"))...
Dear all, I'm working with OpenXava Pro v7.5.2 with Tomcat 9 on Ubuntu. I have the following problem: 1. I query the table 'InternalUsers' for all users with the flag 'requiresmessages' 2. I query the table 'UserLoginMessage' for all records that match the InternalUsers and where the flag 'displayed' is false 3. My intention is to display the obtained 'UserLoginMessage' to the user when he/she logs in. 4. I handle the login in the class 'SignInHelperProvider4ZA' in order to show the message for that...
Request for a freelancer. For our in-house application (kind of erp), i'm looking for help to develop separate parts of new implementations or rework legacy parts. Our application is entirely made in OpenXava Pro (7.4.x) and runs solely on the lan on Tomcat 9. What I'm looking for: - A skilled developer with a good knowledge of OpenXava(Pro) and Java in general. - Good knowledge of Javascript (for custom editors) is a plus. - Sufficient knowledge of English to communicate. - Familiar with git(hub)....
Sorry, this is a non-issue. I copy-pasted the required annotation from my project to the crm project without minding the '{...}'. First mistake. Second mistake: somehow the error message was not saved in the i18n messages file. I'm so sorry to waste your time. Meanwhile I filed a bugreport on the 'Lead' reserved word in Mysql.
Hi, I stumbled into a possible bug with OX 7.4.5 and the @Required annotation with the message argument. The directive "{message_id}" is not resolved anymore with i18n. I encountered it in my applications code but the property I applied it to is defined with a custom editor. So I narrowed it down to the "crm" application (build with the maven template without any further modifications) and it gave me the same result, so, hence I think this is a bug. public class Lead extends Identifiable { @Column(length=40)...
Thanks for your response Javier. I'll digg into that!
Hi, In OXPro 7.4.5 I want to override Reference.createNew which is the default method to create new records in a @ManyToOne relationship. This points to org.openxava.actions.CreateNewFromReferenceAction. I cannot use @NewAction nor @AddAction as this only applies to: Applies to @OneToMany/@ManyToMany collections. I tried @Action but there I'm stucked because the parent view of the model seems to be null. I cannot build further on CreateNewFromReferenceAction that way. I didn't find any examples either....
Thanks for the response Javier. I added a bug. Meanwhile I'll try your suggestion.
Sorry, second attachment in relay..
Perhaps also interesting in the expected visual result and the actual result if used in @ElementCollection context (here in attachment).
Dear all, I have made a custom editor to handle java.time.Duration objects (or essentially java.lang.Long objects). It works fine if I use it in a regular view. But when I use it in a '@ElementCollection' context it doesn't work anymore. Instead of separating the duration object into 'days', 'hours', 'minutes', seconds' and 'milliseconds' it does show the the 'Long' as is. The editor is surely loaded because, if I set a textual prefix before the first element of my jsp It shows up. Are there restrictions...
Hi Chungyen, I read that lesson, the part about @AddAction and it looks promising. I'll digg in to that and let you know how it worked out. Thank you very much for pointing that out! Kind Regards, Bart.
Hi, In OXPro 7.3.3 I have a @ManyToMany relationship as follows: public class Planningline { ... @ManyToMany @JoinTable(name = "Planningline_has_detailbestellijn", joinColumns = { @JoinColumn(name = "Planningline_id") }, inverseJoinColumns = { @JoinColumn(name = "Detailbestellijn_idDetailBestellijn") }) @LazyCollection(LazyCollectionOption.FALSE) @ListProperties("bestellijn.bestellingen.deadline, bestellijn.bestellingen.idBestellingen, bestellijn.bestellingen.relatie.relatienaam, " + "bestellijn.artikelen.artikelnrzokola,...
Ok, I found what is wrong. I reworked the formatters to handle LocalDateTime and in DateTimeFormatter.ofPattern("dd/MM/yyyy hh:mm") I used 'hh' instead of 'HH'. Lowercase 'h' means 12 hour system, uppercase is 24 hour system. So everything works like expected now. Sorry for the inconvenience. Kind regards, Bart.
Hi, I'm working with OXPro 7.3.3. I'm building a planning module for our administration application so I need a 'Planningline' where the user can enter a date and time range for that particular task. So I have following module: @Getter @Setter public class Planningline { @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private static Logger log = LogManager.getLogger(Planningline.class); @Id @Hidden @GeneratedValue(strategy=GenerationType.IDENTITY) @ReadOnly private Integer id; @Required private...
Ok, i found it. This dependency: <!-- https://mvnrepository.com/artifact/org.apache.xmlbeans/xmlbeans --> <!-- <dependency>--> <!-- <groupId>org.apache.xmlbeans</groupId>--> <!-- <artifactId>xmlbeans</artifactId>--> <!-- <version>5.1.1</version>--> <!-- </dependency>--> is the culprit. In my simple project with the pom of my complex project I got the same errors, so i closed in the culprit dependency by trial and error. Thank you Javier for your guidance! kind regards, Bart.
Thank you Javier for your response. You have seen how in a standard project Log4j works with latest OpenXava, but not in your project. Well it doesn't work unless I make the Logger static I tried your suggestion to put my projects pom into the invoices project. I build it with the command clean compile install -Dzoko.build.type=0. Now it is even worse. Static declaration nor non-static declaration of the Logger object works. The non-static declaration gives the errors as stated earlier and the static...
Thank you Javier for your response. Ok, this works indeed, but why the difference with previous OX versions?
Hi Javier, I executed your suggestion to work on a simple project, so with this entity class: @Entity @Getter @Setter public class Invoices { @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Logger log = LogManager.getLogger(getClass()); @Id @GeneratedValue(strategy=GenerationType.IDENTITY) @Column(length=5) @ReadOnly private Integer id; @HtmlText private String myText; @OneToMany(mappedBy = "invoice", cascade=CascadeType.ALL, fetch=FetchType.EAGER) @NewAction("InvoiceLinesCtrl.NewInvoicelineInCollection")...
Ok, thank you Javier. I'll try this and keep you posted.
Hi, I tried to update my application from OXPro 7.2.3 to 7.3.1 but I get the error logging herewith attached. Apparently it complains about org.apache.logging.log4j.LogManager in my class org.openxava.zokola.model.BestelLijn but I didn't change anything prior to the update. I don't get errors in the eclipse ide neither (missing libs or such). I did clean the work directory of eclips' tomcat, I restarted several times, I removed and re-added my project to the tomcat instance but no luck. When I roll...
Hi Javier, I read that article and indeed that is what I need. Thanks!
Thank you Javier for your response. Perhaps I'm mixing up different meanings for different things. What I want is a textfield that "behaves" in some way. Indeed under the hood it's a searchaction, but it is so common (at least for me) that it deserves a separate annotation in my opinion. I'll think about it. It's not a big issue enough to spend much time to it. Kind Regards, Bart.
Ok, I found what was going wrong: I forgot to add @Enumerated(EnumType.STRING) //<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< @DefaultValueCalculator(value=EnumCalculator.class, properties={ @PropertyValue(name="enumType", value="be.zokola.enums.StockArtikelTypes"), @PropertyValue(name="value", value="RAWMAT") }) private StockArtikelTypes stockartikeltype; So, the automatic update feature of hibernate created the enum tablecolumn as an integer instead of an 'enum' tabletype. Sorry for the false alarm! Kind...
Hi, In OXPro 7.2.3 I get weird behaviour of getTab().setBaseCondition: with following code: public class Verpakkingsdetaillijn { @Id @Hidden @GeneratedValue(strategy = GenerationType.IDENTITY) @ReadOnly private Integer idverpakkingsdetaillijn; ... @ManyToOne(optional = false) @JoinColumn(name="stockartikel_idstockartikel") @ReferenceView("Search") @SearchAction(value = "StockArtikelenCtrl.OnSearchStockArtikelen") // @StringSearchAction @OnChange(OnChangeStockArtikelsNaam.class) private StockArtikels...
Hi, I want to make a custom annotation '@StringSearchAction' for references which handles the search as in 'contains string' rather than the exact string. I tried to follow the code for several kinds of annotations like '@ReadOnly' and '@Requiered' but I couldn't get a clue where a property is actually set 'readonly' or set 'requiered' and how OX 'knows' which property it concerns. I also read the article on custom bean validation (ISBN) but I couldn't transpose it to what I want. Can someone please...
Thank you Javier. I added the bug.
Dear Javier, Thank you for your response. But this is not correct. Your suggestion results to null. Thing is that the structure is known at that point but the values not. As for now I could only read the values by reading the request attribute. It seems that the value only is stored that way (by javascript i guess) but not by the java backend (yet). So the View object is not aware yet of the entered value since it is not persisted yet. Make this logic sense to you?
Ok, I may have a solution but it seems a bit wacky to me...: public class SearchIngredientAction extends ReferenceSearchAction { private Logger log = LogManager.getLogger(getClass()); public void execute() throws Exception { super.execute(); // It executes the standard logic that shows a dialog String naam = ""; if(getRequest().getAttribute("ingredient.naam.value") != null) { naam = getRequest().getAttribute("ingredient.naam.value").toString(); //Fiddle the 'ingredient.naam' out of the request }...
Some additional information: With following code: public class SearchIngredientAction extends ReferenceSearchAction { @Getter(AccessLevel.NONE) @Setter(AccessLevel.NONE) private Logger log = LogManager.getLogger(getClass()); public void execute() throws Exception { //ox_Zokola_Recepten__ingredient___naam super.execute(); // It executes the standard logic that shows a dialog log.debug("VIEW VALUES: {}", getView().getAllValues().toString()); log.debug("NUMBER OF VIEWS: {}", getPreviousViews().size());...
Hi, I stumbled into a problem that shouldn't be one: In OXPro 7.2.3, Tomcat 9.0.85, Java 11.0.22 on Ubuntu 22.04 First model (partially): public class Recepten { ... // @OneToMany(mappedBy="recept", cascade=CascadeType.ALL, fetch=FetchType.EAGER) @LazyCollection(LazyCollectionOption.FALSE) @OneToMany(mappedBy="recept", cascade=CascadeType.ALL) @ListProperties("ingredient.naam, hoeveelheidgram") // @OnChange(value=OnChangeReceptlijnAction.class) private Collection<Receptlijnen> receptlijn = new ArrayList<Receptlijnen>();...
I still struggled with the lack of logging on OX level after I migrated my code from 6.x to 7.x. I suspected the migration as the cause (sorry Javier...;-) but now (perhaps because of the new year...) I realized that, while I migrated to 7.x, I also updated the version of Tomcat from 9.0.54 to 9.0.82. As I considerated this as a minor update, not related to the logging problem (the conf files where the same), I ignored that. Now I downgraded to tomcat 9.0.54 and bingo: the logging is there again....
Thank you very much Javier. I'm still using 7.1.6, but i'll try 7.2.2 shortly after its release.
Great! Thank you very much Javier!
ok, tnx!
Thank you Javier for the input. I'll think about how to implement consistent logging for once and for all. Perhaps with a wrapper.
Ok, as promissed, my implementation of email notifications when a discussion is added to an entitiy. Use-case: a bugtracking system to use internally in our company. The requirements are: 1. an email must be sent to me if a bug/feature request is created 2. an email must be sent to the bug reporter if something has changed to the bug. So, email logic was appended in the @PostCreate and the @PostUpdate phase of the lifecycle of the "Bugs" entity. The problem (and the subject of this thread) was that...
Because of Maven starting from 7.x the war is set to lowercase. I had the same problem. But I preferred to alter the application name to first character uppercase in the context.xml and the runfile because I didn't want to update all bookmarks in the client browsers of our (small) company. Glad it works!
At first sight it seem to be a case problem: your project is build lowercase but in the application.xml it's marked as: "AceArc". Try to change the context.xml : <Context> to <Context path="AceArc">.... Good luck!
Hi, In following particullar case (classes shown hereafter) I get a "ConcurrentAccessException" when I perform: String q = "FROM InternalUsers WHERE username = :username"; try { List<InternalUsers>resultList = XPersistence.getManager().createQuery(q).setParameter("username", username).getResultList(); InternalUsers resultList = (InternalUsers)XPersistence.getManager().createQuery(q).setParameter("username", username).getSingleResult(); toAddress = resultList.get(0).getPrimaryEmail(); } catch (Exception...
Hi Javier, I'm not sure anymore if this problem is an issue with the logging settings. I created a new OX application and I ran LogTestingAction as shown earlier. I get exact the same results. If I ommit a log4j2.xml properties file, i get no log4j logging (obvious) and when I copy/paste the log4j propertiesfile I used in my application into the newly created application, the log4j logging is shown (as also the java.util.logging). In both cases when I force an error by dividing a number by zero I...
Thanks for your response, Javier. Note that I configured Log4J only because the former notation with org.directwebremoting.util.Logger didn't work anymore. To be honest, i don't think it has something to do with the log4j configuration. As you see in the LogTestingAction I do get logging from java.util.logging.Logger julog. Actually the output of that method is: Dec 08, 2023 6:42:55 AM org.openxava.zokola.tests.LogTestingAction execute WARNING: INFO FROM JAVA.UTIL.LOGGING LOG... 06:42:55.682 [LogTestingAction.execute]...
Thank you Javier, i'll try your suggestion. Meanwhile, is somewhere explained how 'Discussions' work? I mean, there must be some kind of serialization since the whole field is stored in a 32 character column. Thanks in advance! Bart.
Meanwhile I removed all possible duplicates referring to "logging" in my pom. So I commented out: <!--log4j-1.2.16.jar--> <!-- <dependency>--> <!-- <version>1.2.16</version>--> <!-- <groupId>log4j</groupId>--> <!-- <artifactId>log4j</artifactId>--> <!-- </dependency>--> <!--slf4j-log4j12-1.7.7.jar--> <!-- <dependency>--> <!-- <version>1.7.7</version>--> <!-- <groupId>org.slf4j</groupId>--> <!-- <artifactId>slf4j-log4j12</artifactId>--> <!-- </dependency>--> <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12...
Hi, Since the upgrade from OXPro 6.6.3 to 7.1.6, confirmation dialogs generated by actions with attribute "confirm=true" are shown twice in both Firefox NOT IN Chrome. The annoying part is that the action is executed twice. Steps to reproduce: package <your package>.tests; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.openxava.actions.BaseAction; public class TestConfirmationBoxAction extends BaseAction { private Logger log = LogManager.getLogger(getClass());...
Hi, In an entity with a @Discussion property (and more other properties) I want that a mail is send each time someone is posting a comment or changes another property. This works fine when the entity is created by triggering the @PostCreate phase. But for an existing entity neither the @PreUpdate nor the @PostUpdate phase are triggered when adding a comment. If I change one of the other properties the logic works fine. @Entity @View(members="#id,bugType, severity, bugstatus, reportingdate; reporter;bugtitle;bugcategory;...
You mean that you want to load the i18n strings dynamically? If so XavaResources.getString("test_i18n_label") then in <your_application>-labels_en.properties: test_i18n_label=My English title</your_application> <your_application>-labels_nl.properties: test_i18n_label=Mijn Nederlandse titel</your_application> Is that what you need? Hope this helps. Bart.
Thank you for your input Javier. So it must be my configuration that is wrong. Yes, i configured Log4J for logging but that is because the way I initialized logging until 6.6.3 didn't work anymore. Until 6.6.3 I did; import org.directwebremoting.util.Logger; ... private Logger log = Logger.getLogger(this.getClass()); ... but then i got no logging at all in 7.1.6. Then I made a testmethod to find out which logging worked: package org.openxava.zokola.tests; import org.openxava.actions.BaseAction; public...
Hi, Since I upgraded from OXPro 6.6.3 to 7.1.6 I have the impression that there is much less logging in OX than before. Some examples: 1) A query in an action extended by BaseAction (a "....getResultList()" type) I got no logging when an exception was thrown because there was an error in the query. I only got an error on the client side. In the past a print stacktrace was logged in the console. I only could catch the error by a try catch block. 2) A newly made entity must have an error somewhere....
Thank you Javier. I'll wait until the bug is solved as it it more a cosmetic issue. I added it to the bugtracker.
Hi, Since i updated my application from OXPro 6.6.3 to OXPro 7.1.6 all ID fields that I annotated as '@ReadOnly' are editable. They are only 'readonly' once the record is created. This is confusing for the user. Then I saw that there is an attribute 'onCreate' which should be true by default (the behavior i expect), but if I set it true or false, the result is the same: the field remains editable on creation. Thanks for any input. Bart.
I altered the OX7.1.6 code by commenting out "@WebServlet" in 'org.openxava.web.filters.ContentSecurityPolicyFilter' and jarred following the instructions in 'https://openxava.org/OpenXavaDoc/docs/modify-openxava-code_en.html' and now it works. Anyhow the problem will be solved with version 7.2. Thanks! Bart.
Thanks for your input Javier but unfortunately it doesn't help either... Indeed, 'turnOffWebSecurity' would be great!
Thanks for your input Javier but unfortunatly it doesn't help either... Indeed, 'turnOffWebSecurity' would be great!
Hi, The last hurdle to take before I can use OX7.1.6 in production, but it's a tough one... I'm using for years now the Dymo Label SDK to be able to print labels from my application. I made a custom jsp and there there is a 'print' button that initiates a javascript addressing the Dymo Label SDK. Until OX7.0.6 it worked fine, but with the introduction of "content security policy" this don't work anymore. I investigated the many topics about how to allow certain sources to execute. I read x times...
Thank you for your input Javier. For now I choose for the quick and dirty approach, because of planning issues. When I'll be able to rework this I'll post a new thread if necessary.
Again, Javier, you're absolutely right! I can login now, but the following concerns me: If you put a file in your webapp folder with the same name and path the one from openxava.jar, the yours is used and not the one from openxava.jar. So you were using and old openxava.js, not the one for 7.1.6. In a thread from 2021: https://sourceforge.net/p/openxava/discussion/419690/thread/14068ad561/?limit=25#5d67/1688 I addressed a problem that there was no way to override the standard buttonbar (at that time)....
A little addendum on my previous post: If I roll back to OXPro 7.0.6 I can login normally and I see my tables as expected.
Ok, I'm back at the beginning of my problem. I started a new maven project in eclipse and I imported the files of my application that worked in OXPro 7.0.6 in the same locations. I carefully diffed files as "context.xml", "persistence.xml" and so on. As OXPro7.1.6 creates new database tables with uppercase first characters and full uppercase oxtables, I altered my all lowercase named tablenames according, before starting my application. Now I get no significant warnings nor real errors anymore on...
Hi Javier, I think I see what the problem is (although I have no idea what the cause is nor how to solve it). My MySql database has all tablenames in lowercase (pre-OX7). Now I see that my database has double tablenames: the original lowercase names and new names with the first character in uppercase. All the OX tablenames are completely in uppercase. Therefor I think everything goes wrong because that new tables are empty or set with the default values. I presume that the "update=true" attribute...
Hi Javier, I created a clean "invoicing" project (just the first stage) for OXPro7.1.6, also making use of the mysql database and that works. What can I learn from it? Because for my own application, I also started from a new build OXPro7 environment. Thanks in advance! Bart.
Hi Javier, I do not have a customized welcome nor sign in page. Everything is standard there. I do have customized jsp's, where some of them are altered native OX jsp's with inline onclick events but that's not the point (yet). When I click the sign in button I literally get nothing but the browser errors I mentioned before. I get no logging at all at the server side. In other words, I don't even pass the sign in procedure, so I can't believe illegal jsp's can be the problem. I didn't create a clean...
Chrome seems to give some more detailed errors: Refused to execute inline event handler because it violates the following Content Security Policy directive: "script-src 'self' 'nonce-7eac30c7-7f0f-4a6f-9606-8c85dc059ec3' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present....
Hi, After more than a week (!) fiddling, testing, struggling,... I finally succeeded to migrate from 6.6.3 to 7.0.6. I have to admit that it was a tedious job... Now I want to migrate from 7.0.6 to 7.1.6. And now I can't login anymore. I get to the SignIn screen, but entering "admin" and the admin password I don't have any response (no logging at all after pressing the "Sign in" button). When I reload the page in my browser a console log states "Content Security Policy: The page's settings blocked...
Hi, After more than a week (!) fiddling, testing, struggling,... I finally succeeded to migrate from 6.6.3 to 7.0.6. I have to admit that it was a tedious job... Now I want to migrate from 7.0.6 to 7.1.6. And now I can't login anymore. I get to the SignIn screen, but entering "admin" and the admin password I don't have any response (no logging at all after pressing the "Sign in" button). When I reload the page in my browser a console log states "Content Security Policy: The page's settings blocked...
Javier, thank you very much! On 25/07/2023 18:45, Javier Paniza wrote: Hi Bart, The bug is fixed. Try the next v7.1.4 (in a few weeks) to see if your problem is solved. @Files annotation: how to retreive filenames https://sourceforge.net/p/openxava/discussion/419690/thread/38c4b7c1f4/?limit=25#833a Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/openxava/discussion/419690/ To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscr...
Thank you so much Javier!
Well, both preconditions are met in my tests, so it will be the same issue. Thanks! I will use a workaround (using @File instead) until the bug is solved. Kind regards, Bart.
I just encountered a (hopefully minor) glitch: Sometimes, if I upload two files at once only one is listed. Oddly enough both files are actually uploaded in the ~/oxfiles folder but their libraryID differ. When I redo the exactly same upload both files are listed and have the same libraryID. See the log of both sequential uploads (see the lines starting with "[ActivateDeactivateSectionAction.readFilNames]"): Jun 23, 2023 10:15:52 AM org.openxava.zokola.actions.GenerateExplRek debug FINE: ============>>>>>>>>>>...
This works like a charm, Javier. Thank you so much!
Hi, Environment: OXPro 6.6.3 - Ubuntu 22.04.2 LTS I want to upload multiple excelfiles (.xlsx) to process in memory. So I don't need them to be stored neither in database nor filesystem. I followed the example in "Model/Stereotypes/Files". Everything works well in the sense that all the files that I selected are uploaded in "~/oxfiles". The problem is I cannot get the selected filenames as the view property only stores one (I think the last selected one). Augmenting the column width doesn't help....
Thank you Javier! I'll investigate that. I didn't find that docs somehow.
Hi, How can I implement contextual documentation on my application, intended for the enduser. I seem to remember there was a way to do that in OX, but I don't find it documented. Thanks in advance! Bart
Ok, Javier, thank you for your answer. Unfortunately I can not test this in the coming few weeks. When I have a result I will post this here.
One experiment you can do it's to create a simple Java application (with no OpenXava at all) that executes the logic of your Action4Testing. You can put the logic in a main and run it from command line. Once you have debugged the error in that isolated environment apply the solution to your OpenXava application. That's what I did, Javier (explained in my first post - see: MainExec method). Standalone it works. That's why I think somehow OX or at least Spring is involved. Googling only points to the...
Hi Javier, I did add the jars (both pdf box and font box of the same version) in my classpath, but it doesn't work. I tried the versions 2.0.14 (same as in OX) and 2.0.28 (latest stable version). I tried with both pdfbox-app and the separate pdfbox/fontbox jars with no success. Thanks in advance! Bart.
Hi, Environment: Ubuntu 22.04.2 LTS OpenXava Pro 6.6.3 (2022-3-29) Somehow a function we don't use much is broken underway and I can't fix it. Sometimes we need to import a pdf document that must be parsed to import data into our system. Now we get following stacktrace: Apr 19, 2023 7:18:15 AM org.openxava.zokola.actions.ProcessPDFOrderSheetAction debug FINE: ==========>>>>>>>>>> FILENAME: Factuurvoorwaarden.pdf Apr 19, 2023 7:18:15 AM org.openxava.zokola.actions.ProcessPDFOrderSheetAction debug...
I'm glad it worked for you, though I would prefer to have a reproducible bug. I know the feeling... ;-) XavaPro do caching of rights in the session for performance, but it should work well always. We have fix many bugs in XavaPro in 7.0.x series, so maybe this problem is fixed laterally. I guess we'll get noticed if the tutorial is ready on installing OX7.x and Maven on a plain Eclipse? When I can do that, I will test further with OX7. If you create a new user now and add the same roles of "bart",...
Hi Javier, Of course the .openxava thing is on the serverside. Somehow I remembered it as it was on the client side. Stupid me... Both users have the same role now. But (for something else) I had to restart the server several times and miraculously it works again. The bad news is that now I have no clue what was the source of the problem. Anyway, it works now. Thank you!
Somehow my earlier post went wrong. I got a "spambot engaged" message from SourceForge. The title was ommited and the attachments where lost. So, my apologies for the "no subject" message.
Hi, Since a few weeks a certain user ("fik") has not the possibility to select two buttons in a collection ("Bestellijn") in the module "Bestellingen"). I thought it had to do with permissions, so I gave the user "fik" the same permissions (=same role) as the user "bart", who can select those two buttons. But eventhen the user "fik" can not see those two buttons. At the time, usually that kind of problems was solved by removing the ".openxava" folder in the home directory of the user. But if I check...
Ok, that makes sense Javier. I'll wait to migrate to OXPro 7 until I can do it in a plain version of Eclipse that I'm more familiar with. Thanks for your answer! Bart
Ok, thank you Javier. You could be right that in the passed a bug served my purpose... ;-)
Ok, I found a workaround to fix this, but I feel suspicious why this worked in previous OXPro 6.x versions and not in OXPro7.0.5. The previous situation: I have a mechanism that I use thru-out my code to be able to evaluate if the user selected records or not and give a dialog accordingly. I achieve that by: <controller name="ApplyToSelectedBestellingenSub"> <!-- This is part of the menu the user can select --> ... <action name="CreatePacklistDialog" class="org.openxava.zokola.actions.ShowConfirmationDialog"...
Hi, In a "normal" eclipse distribution you can set a workspace location as default. With OX Studio after every restart OX Studio points to the workspace inside the OX Studio directory. I don't find any possibility to set a workspace of my choice as default. Or am I missing something? Kind Regards, Bart.
I can confirm now for sure that, if I extend GeneratePackListsAction.java with TabBaseAction directly (commenting out any Jasperreport references), the result of getSelectedKeys() stays empty. Routines with the same call on the same model (Bestellingen) work correctly. This drives me crazy...
Debugging my code learned me that the problem is not the report generation but the non-functioning of getTab().getSelectedKeys(). In other parts of my code that works, but for some reason it doesn't work in the action GeneratePackListsAction.java. I have a suspicion that the reason somehow is tied to the fact that the TabBaseAction is extended in an action "2 levels above". In the actions that work with getTab().getSelectedKeys(), TabBaseAction is extended directly in the functioning action. I'm...
After fiddling a lot around I could solve this problem by compiling my project against Java 11. Until now I compiled it against Java 1.8. I had my reasons to do so, but I can't recall what exactly. I guess I will encounter other problems on the go. But for now: this problem is solved.