It works! Thank you very much
So I have this code in a model: @Column @Required @Enumerated(EnumType.STRING) java.time.DayOfWeek day; I'd like OX to show localized names for the days, not always english. I tried to add the following to my "oxapp-messages_it.properties", but it did not work : DayOfWeek.MONDAY=Lunedì DayOfWeek.TUESDAY=Martedì DayOfWeek.WEDNESDAY=Mercoledì DayOfWeek.THURSDAY=Giovedì DayOfWeek.FRIDAY=Venerdì DayOfWeek.SATURDAY=Sabato DayOfWeek.SUNDAY=Domenica is it possible to translate the enumerated values?
Problem is my customer is already using the application I made, he already has several files uploaded in a few @Files properties and he asked me to change the view of the files (not for free, obviously). I have to imagine a migration path to estimate the work I should do, but the simple way you suggested would be good for a new project only, not for this one, unless there is some automatic tool that splits a @Files property into the collection structure you suggested. Assuming there is no such tool,...
Problem is my customer is already using the application I made, he already has several files uploaded in a few @Files properties and he asked me to change the view of the files (not for free, obviously). I have to imagine a migration path to estimate the work I should do, but the simple way you suggested would be good for a new project only, not for this one, unless there is some authomatic tool that splits a @Files property into the collection structure you suggested. Assuming there is no such tool,...
I need to show the files in a @Files property as a detailed list with resizable and sortable columns, just like any common file manager UI. Is it possibile? How?
I need to show the files in a @Files property as a detailed list with resizable and sortable columns, just like any common file manager UI. Is it possibile? How?
Thanks. Here is the bug.
I'm using OX 7.5. Here is my code: @Entity @Getter @Setter public class FirstEntity extends Identifiable { @Column String notes; @OneToMany(mappedBy = "first", fetch = FetchType.LAZY) Collection<OtherEntity> others; } @Entity @Getter @Setter public class OtherEntity extends Identifiable{ @ReadOnly String description; @ManyToOne FirstEntity first; } As you can see, the description field in OtherEntity is marked @ReadOnly. When I create a new OtherEntity using its module view, the description HTML...
I'm using OX 7.5 (tried also 7.4.5 and a few other older releases). I've several @Entity classes that use a baseCondition and a corresponding filter class, e.g.: @Entity @Getter @Setter @Tab(baseCondition = "${deletedAt} is null and (${uuid} IN ? or ${hidden} = ? or ${ownerUsername} = ? or ${ownerGroup} = ?)", filter = RPF.Filter.class ) public class RPF implements Serializable { public static class Filter implements IFilter { @Override public Object filter(Object o) throws FilterException { // ......
Solved. Part of the problem is in my code: I should check if the Object parameter I receive is not null and, if it is an array, copy its content at the end of the array I'm returning. The other part of the problem is the documentation of the IFilter interface, which says nothing about how it should be used.
I'm using OX 7.5 (tried also 7.4.5 and a few other older releases). I've several @Entity classes that use a baseCondition and a corresponding filter class, e.g.: @Entity @Getter @Setter @Tab(baseCondition = "${deletedAt} is null and (${uuid} IN ? or ${hidden} = ? or ${ownerUsername} = ? or ${ownerGroup} = ?)", filter = RPF.Filter.class ) public class RPF implements Serializable { public static class Filter implements IFilter { @Override public Object filter(Object o) throws FilterException { // ......
I'm using OX 7.5 (tried also 7.4.5 and a few other older releases). I've several @Entity classes that use a baseCondition and a corresponding filter class, e.g.: @Entity @Getter @Setter @Tab(baseCondition = "${deletedAt} is null and (${uuid} IN ? or ${hidden} = ? or ${ownerUsername} = ? or ${ownerGroup} = ?)", filter = RPF.Filter.class ) public class RPF implements Serializable { public static class Filter implements IFilter { @Override public Object filter(Object o) throws FilterException { // ......
I'm using OX 7.5 (tried also 7.4.5 and a few other older releases). I've several @Entity classes that use a baseCondition and a corresponding filter class, e.g.: @Entity @Getter @Setter @Tab(baseCondition = "${deletedAt} is null and (${uuid} IN ? or ${hidden} = ? or ${ownerUsername} = ? or ${ownerGroup} = ?)", filter = RPF.Filter.class ) public class RPF implements Serializable { public static class Filter implements IFilter { @Override public Object filter(Object o) throws FilterException { // ......
I'm using OX 7.5 (tried also 7.4.5 and a few other older releases). I've several @Entity classes that use a baseCondition and a corresponding filter class, e.g.: @Entity @Getter @Setter @Tab(baseCondition = "${deletedAt} is null and (${uuid} IN ? or ${hidden} = ? or ${ownerUsername} = ? or ${ownerGroup} = ?)", filter = RPF.Filter.class ) public class RPF implements Serializable { public static class Filter implements IFilter { @Override public Object filter(Object o) throws FilterException { // ......
I've several @Entity classes that use a baseCondition and a corresponding filter class, e.g.: @Entity @Getter @Setter @Tab(baseCondition = "${deletedAt} is null and (${uuid} IN ? or ${hidden} = ? or ${ownerUsername} = ? or ${ownerGroup} = ?)", filter = RPF.Filter.class ) public class RPF implements Serializable { public static class Filter implements IFilter { @Override public Object filter(Object o) throws FilterException { // ... this method returns an Object[] with the values to set in place of...
I've found a workaround: I make the whole row red, using the :has CSS pseudo-class.
Is it possible to implement something similar to RedNegativeListFormatter, but when the condition needs to check the value of a property that is not the one being formatted? E.g. let's say I want the property "description" to be red when the value of "balance" is below 0.
Depending on the user logged in, I need to filter out some entities from the list views and search results, so that some users only see some of the entities. In a previous post Javier showed me how to filter out entities of a collection, and that's ok, but what I really need is apply such filter to the list of entities that come up when clicking on a module too (e.g. filtering entities of the same model the user is looking at). How can I filter, programmatically, which entities should be shown?
since that page refers to XavaPro only features, while I'm using OX, I looked at OX source code, and came up with this simple solution that does not require XavaPro: public class MySignInHelperProvider extends SignInHelperProvider { @Override public void signIn(HttpServletRequest request, String userName) { super.signIn(request, userName); myLoginHook(userName); }
but the 1st sentence on that page is: "All the features in this article are available only in XavaPro". I'm using OX.
Using OX 7.4, is there a way to attach some code to the event "User logged in"?
Hi Javier, I'd like to bring this discussion back on the table, because, while the solution I found back then (Apache Tomcat migration tool for Jakarta EE) seemed promising, it actually falls short of a real solution. Apache TomEE contributor explains why better than I could: https://tomee.apache.org/javax-to-jakarta.html Moreover TomEE 8 (the last version compatible with javax naming) is EOL since December 31, 2023. If today the problems with WebSphere and Weblogic users are still the same or similar...
Hi Javier, I'd like to bring this discussion back on the table, because, while the solution I found back then (Apache Tomcat migration tool for Jakarta EE) seemed promising, it actually falls short of a real solution. Apache TomEE contributor explains why better than I could: https://tomee.apache.org/javax-to-jakarta.html Moreover TomEE 8 (the last version compatible with javax naming) is EOL since Decembre 31, 2023. If today the problems with WebSphere and Weblogic users are still the same or similar...
Hi Javier, I'd like to bring this discussion back on the table, because, while the solution I found back then (Apache Tomcat migration tool for Jakarta EE) seemed promising, it actually falls short of a real solution. Apache TomEE contributor explains why better than I could: https://tomee.apache.org/javax-to-jakarta.html Moreover TomEE 8 (the last version compatible with javax naming) is EOL since Decembre 31, 2023. If today the problems with WebSphere and Weblogic users are still the same or similar...
Hi Javier, I'd like to bring this discussion back on the table, because, while the solution I found back then (Apache Tomcat migration tool for Jakarta EE) seemed promising, it actually falls short of a real solution. Apache TOMEEE contributor explains why better than I could: https://tomee.apache.org/javax-to-jakarta.html Moreover TomEE 8 (the last version compatible with javax naming) is EOL since Decembre 31, 2023. If today the problems with WebSphere and Weblogic users are still the same or similar...
Except Account class does NOT extend BaseEntity, as stated in my question. Thanks anyway, I appreciate your help nevertheless: knowing it is a problem related to how I use JPA, as opposed to how I use OX, is already very useful.
Except Account class does NOT extend BaseEntity, as stated in my question. Thanks anyway, I appreciate your help nevertheless.
Except Account class does NOT extends BaseEntity, as stated in my question. Thanks anyway, I appreciate your help nevertheless.
I have this validation logic in place in my BaseEntity class. Then almost all other @Entity classes of my project extend BaseEntity, except Account: @AssertTrue(message="Not allowed") private boolean checkPerms() { TypedQuery<Account> aq = XPersistence.getManager() .createQuery("SELECT a FROM Account a WHERE a.username=:name", Account.class); aq.setParameter("name", Users.getCurrent()); Account acc = aq.getSingleResult(); return acc.roles.contains(Role.EDITOR.label); } When I try to update some entity,...
I have this validation logic in place in my BaseEntity class. Then almost all other @Entity classes of my project extend BaseEntity, except Account: @AssertTrue(message="Not allowed") private boolean checkPerms() { TypedQuery<Account> aq = XPersistence.getManager() .createQuery("SELECT a FROM Account a WHERE a.username=:name", Account.class); aq.setParameter("name", Users.getCurrent()); Account acc = aq.getSingleResult(); return acc.roles.contains(Role.EDITOR.label); } When I try to update some entity,...
I have this validation logic in place in my BaseEntity class. Then almost all other @Entity classes of my project extend BaseEntity, except Account: @AssertTrue(message="Not allowed") private boolean checkPerms() { TypedQuery<Account> a = XPersistence.getManager().createQuery("SELECT a FROM Account a WHERE a.nomeUtente=:nome", Account.class); a.setParameter("nome", Users.getCurrent()); Account acc = a.getSingleResult(); return acc.ruolo.contains(Role.EDITOR.label); } When I try to update some entity,...
I have this validation logic in place in every entity of my project (in a BaseEntity class): @AssertTrue(message="Not allowed") private boolean checkPerms() { TypedQuery<Account> a = XPersistence.getManager().createQuery("SELECT a FROM Account a WHERE a.nomeUtente=:nome", Account.class); a.setParameter("nome", Users.getCurrent()); Account acc = a.getSingleResult(); return acc.ruolo.contains(Role.EDITOR.label); } When I try to update some entity, I get a StackOverlowError because this function is...
Can you please provide me with an example of how to do a calculated collection with OpenXava, or point me to some documentation about that? The base filtering logic would be something simple along the lines of SomeEntity[] results = ...; String cu = Users.getCurrent(); return Arrays.stream(results).filter(x -> x.getOwner().equals(cu)).toArray(); but I don't understand where I should write such code in OpenXava.
When users upload files, I need to append the upload date to the name of files upoaded via the @Files annotation. For example, if a user uploads metric-survey.dwg, the webapp should store it as metric-survey-2024-05-25.dwg, and that should be the filename users see from now on. Is it possibile? If yes, how?
When users upload files, I need to append the upload date to the name of files upoaded via the @Files annotation. For example, if a user uploads metric-survey.dwg, the webapp should store it as metric-survey-2024-05-25.dwg, and that should be the filename users see from now on. Is it possibile? If so, how?
I'm afraid I'm at a total loss this time, because I really don't know what to look for. The full error message I get is: ERROR: An exception occurred processing [xava/detail.jsp] at line [161] 158: + "&first=" + first 159: + "&frame=false&composite=false&onlyEditor=false"; 160: %> 161: 162: <% 163: first = false; 164: } // END IF Display MetaReference Without Frame Stacktrace: and it stops there, without the stacktrace. In the tomcat log I get the exception details: org.apache.catalina.core.ApplicationDispatcher.invoke...
Thanks for the hint, but, as I understand it, @RowStyle applies only when the value of a property equals the provided value, hence I cannot specify a generic condition like "balance < 0", but only a value that will be checked against the only equals condition that @RowStyle supports, e.g. something like property="balanceColor" value="red". This would lead me to make up a new dummy calculated property balanceColor and make its method return "red" when balance < 0. However @RowStyle requires the property...
Thanks for the hint, but, as I understand it, @RowStyle applies only when the value of a property equals the provided value, hence I cannot specify a generic condition like "balance < 0", but only a value that will be applied to the only equals condition that @RowStyle supports, e.g. something like property="balanceColor" value="red". This would lead me to make up a new dummy calculated property balanceColor and make its method return "red" when balance < 0. However @RowStyle requires the property...
In a tab view, I need to show some fields of some rows in a different color, based on their value (just like showing negative balances in red). How do I dynamically add a CSS class to HTML elements generated by the tab view?
In order to implement soft delete I followed the instructions here https://www.openxava.org/OpenXavaDoc/docs/refining-standard-behavior_en.html, but with a few changes: I added a "deletedAt" timestamp column (LocalDateTime or null) in place of the suggested "deleted" boolean column. That choice led me to small changes in the code. e.g. in my base class, named BaseEntity instead of Deletable, cause I like to keep adjectives for the interfaces, I don't need the columnDefinition="BOOLEAN DEFAULT FALSE",...
In order to implement soft delete I followed the instructions here https://www.openxava.org/OpenXavaDoc/docs/refining-standard-behavior_en.html, but with a few changes: I added a "deletedAt" timestamp column (LocalDateTime or null) in place of the suggested "deleted" boolean column. That choice led me to small changes in the code. e.g. in my base class, named BaseEntity instead of Deletable, cause I like to keep adjectives for the interfaces, I don't need the columnDefinition="BOOLEAN DEFAULT FALSE",...
Since this is the question that comes up when searching this forum for the delete keyword and since this is a 12 years old question, the once upon a time known as chapter 10 of the book is now gone and the link above isn't valid anymore. The up to date relevant doc is Lesson 24, here, just in case others land here like me, looking for soft delete in OX.
I'm considering XavaPro for my next project, but I need to know if it provides fine-grained access control. This page has a paragraph named "Fine-grained security" , but then the documentation page only describes how to limit users access to modules, properties, references and collections. I need to limit user access to specific entities in a collection, based on the return value of a custom java method. Is that possible?
Hi, I'm considering XavaPro subscription license for my next project, but it's not clear to me how the subscription license works. One license per server and per application is ok, but how can I develop and debug the same webapp on my PC, while the production release is running on the server? I mean, my PC acts like a server of its own after all. Should I buy two licenses, one to develop on my PC and the other one to run the latest stable release of my application on the public server?
Hi, I'm considering XavaPro subscription license for my next project, but it's not clear to me how the subscription license works. One license per server and per application is ok, but how can I develop and debug the same webapp on my PC, while the production release is running on the server? I mean, my PC acts like a server on its own after all. Should I buy two licenses, one to develop on my PC and the other one to run the latest stable release of my application on the public server?
Hi, I'm considering XavaPro subscription license for my next project, but it's not clear to me how the subscription license works. One license per server and per application is ok, but how can I develop and debug the same webapp on my PC, while the production release is running on the server? I mean, my PC acts like a server on it own after all. Should I buy two licenses, one to develop on my PC and the other one to run the latest stable release of my application on the public server?
So I have two models: Contact and Order. Contact has some 20K rows in the database, while Order references Contact: @ManyToOne(fetch=FetchType.LAZY, optional=false) @DescriptionsList(descriptionProperties = "name, email, phone, vatno") private Contact customer; This is known and documented to be slow as hell (several minutes in my case), which is unacceptable user experience. My question is: what should I use in place of @DescriptionsList when I need to provide a way to select a Contact while inserting...
So I have two models: Contact and Order. Contact has some 20K rows in the database, while Order references Contact: @ManyToOne(fetch=FetchType.LAZY, optional=false) @DescriptionsList(descriptionProperties = "name, email, phone, vatno") private Contact customer; This is known and documented to be slow as hell (several minutes in my case), which is unacceptable user experience. My question is: what should I use in place of @DescriptionsList if I need to provide a way to select a Contact while inserting...
So I have two models: Contact and Order. Contact has some 20K rows in the database, while Order references Contact: @ManyToOne(fetch=FetchType.LAZY, optional=false) @DescriptionsList(descriptionProperties = "name, email, phone, vatno") private Contact customer; This is known and documented to be slow as hell (several minutes in my case), which is unacceptable user experience. My question is: what should I use in place of @DescriptionsList if I need to provide a way to select a Contact when inserting...
@javierpaniza could you please chime in, only to tell me if this is currently possible or if I need to make a deployment script?
Usually the META-INF/context.xml file is tracked by the VCS, be it git or whatever, but it also contains the database URL and credentials, that change from a development environment to a production system. Let alone possible security problems of storing real credentials in the source code tree. I know a fairly common JPA way of specifying those credentials after getting those from some external source (configuration file), i.e.: HashMap<String,String> props=new HashMap<>(); props.put("javax.persistence.jdbc.url",...
Solved! I forgot to save the xava/application.xml file... after making the name all lowercase it started working as expected. Now I have a different problem about the JDBC driver, but I'm quite confident I'll manage to solve that myself. Thanks a lot.
Thanks, but I got just the same result. Then I tried to start Tomcat in debug mode (I coincidentally found it in the Netbeans menu, but I didn't know it existed before), and now when Tomcat deploys the app it reports the following error: org.openxava.util.ElementNotFoundException: Application acearc is not defined at org.openxava.application.meta.MetaApplications.getMetaApplication(MetaApplications.java:71) at com.openxava.naviox.Modules.createFirstStepsModule(Modules.java:58) at com.openxava.naviox.Modules.init(Modules.java:53)...
I have a webapp originally developed with OX 6.5 that used to work. Then I migrated the project to OX7.1.6 and I think I've followed the instructions here: https://openxava.org/OpenXavaDoc/docs/migration_en.html#from-6.6.3-to-7.0 Now the problem is the webapp does not start anymore. When I try to start it in Tomcat, it simply says "FAIL - Application at context path [/acearc] could not be started", but no errors are logged in any of the logs in the [path/to/tomcat]/logs directory. No errors in the...
I have a webapp originally developed with OX 6.5 that used to work. Then I migrated the project to OX7.1.6 and I think I've followed the instructions here: https://openxava.org/OpenXavaDoc/docs/migration_en.html#from-6.6.3-to-7.0 Now the problem is the webapp does not start anymore. When I try to start it in Tomcat, it simply says "FAIL - Application at context path [/acearc] could not be started", but no errors are logged in any of the logs in the [path/to/tomcat]/logs directory. No errors in the...
I have a webapp originally developed with OX 6.5 that used to work. Then I migrated the project to OX7.1.6 and I think I've followed the instructions here: https://openxava.org/OpenXavaDoc/docs/migration_en.html#from-6.6.3-to-7.0 Now the problem is the webapp does not start anymore. When I try to start it in Tomcat, it simply says "FAIL - Application at context path [/acearc] could not be started", but no errors are logged in any of the logs in the <path to="" tomcat="">/logs directory. No errors...
Thanks for you support, but I can't attach the data here, since the problem is with the email field, not cognome (I tried setting to NULL all email values on a copy of my database and the error disappeared, while setting to NULL all cognome it kept showing up). Now I'm going to look for the other characters you mentioned. If I won't find any, I could send the data to you privately, if you want. EDIT: I couldn't find any of the characters you mentioned in the email field. Moreover, I checked all values...
Thanks for you support, but I can't attach the data here, since the problem is with the email field, not cognome (I tried setting to NULL all email values on a copy of my database and the error disappeared, while setting to NULL all cognome it kept showing up). Now I'm going to look for the other characters you mentioned. If I won't find any, I could send the data to you privately, if you want. EDIT: I couldn't find any of the characters you mentioned in the email field. Moreover, I checked all values...
Thanks for you support, but I can't attach the data here, since the problem is with the email field, not cognome (I tried setting to NULL all email values on a copy of my database and the error disappeared, while setting to NULL all cognome it kept showing up). Now I'm going to look for the other characters you mentioned. If I won't find any, I could send the data to you privately, if you want.
I've now cleaned up cognome and email columns and here is the current status: MariaDB [acearc]>select uuid from Contatto where email like '%>%' or email like '%<%' or email like '%&%' or cognome like '%>%' or cognome like '%<%' or cognome like '%&%'; Empty set (0.031 sec) However the 'Invalid or unexpected token' error still shows up. I'm absolutely convinced it's being caused by a problem with my data, but I don't know what to look for after <, > and &. Are there any other characters, such as non-ASCII...
I've now cleaned up cognome and email columns and here is the current status: MariaDB [acearc]>select uuid from Contatto where email like '%>%' or email like '%<%' or email like '%&%' or cognome like '%>%' or cognome like '%<%' or cognome like '%&%'; Empty set (0.031 sec) However the 'Invalid or unexpected token' error still shows up. I'm absolutely convinced it's being caused by a problem with my data, but I don't know what to look for after <, > and &. Are there any other characters, such as non-ASCII...
AceArcWS stands for "AceArc Workspace", and AceArc is my project. The AceArcWS directory contains my project folder (AceArc), the Addons folder and the OpenXava project folder. I open that OpenXava project folder, right-click on "build.xml", choose "Run as", then "External tools configurations" and I defined there the buildOpenXava Ant task (see the attached screenshot). Is that correct? I also tried to download a clean OpenXava 6.5.1, installed in a separate folder, did NOT create any project inside...
AceArcWS stands for "AceArc Workspace", and AceArc is my project. The AceArcWS directory contains my project folder (AceArc), the Addons folder and the OpenXava project folder. I open that OpenXava project folder, right-click on "build.xml", choose "Run as", then "External tools configurations" and I defined there the buildOpenXava Ant task (see the attached screenshot). Is that correct?
I've now defined the Ant task, but when I run it I get: [...] createEditorsJS: BUILD FAILED /.../AceArcWS/OpenXava/build.xml:659: The following error occurred while executing this line: /.../AceArcWS/OpenXava/build.xml:647: /.../AceArcWS/OpenXava/web/xava/editors/js does not exist.
Does it work if you change your browser language to English? no Have you a custom controller for Iscrizione? no Also put here your own i18n labels and messages. I have none Try to remove all Iscrizione properties except note. Does it work? if yes, try to put back the properties one by one, until we find the guilty property. After those tests I isolated the line of code that causes the problem: @DescriptionsList(descriptionProperties = "cognome, email") if I comment out that line, the error doesn't...
Does it work if you change your browser language to English? no Have you a custom controller for Iscrizione? no Also put here your own i18n labels and messages. I have none Try to remove all Iscrizione properties except note. Does it work? if yes, try to put back the properties one by one, until we find the guilty property. After those test I isolated the line of code that causes the problem: @DescriptionsList(descriptionProperties = "cognome, email") if I comment out that line, the error doesn't...
these instructions: Tried to follow them, but they start with: go to External Tools > OpenXava.buildOpenXava (or buildAddons) > JRE and I can't find "OpenXava.buildOpenXava" in the External tools of my OpenXava project (AceArc). You can see what I have in the attached image.
these instructions: Tried to follow them, but they start with: go to External Tools > OpenXava.buildOpenXava (or buildAddons) > JRE and I can't find "OpenXava.buildOpenXava" in the External tools of my OpenXava project (AceArc). You can see what I have in the attached image.
these instructions: Tried to follow them, but they start with: go to External Tools > OpenXava.buildOpenXava (or buildAddons) > JRE and I can't find "OpenXava.buildOpenXava" in the External tools of my OpenXava project.
I have a "Contatto" model like this: @Entity @Getter @Setter public class Contatto extends AceArcId implements Serializable { private static final long serialVersionUID = 1L; @Column(length=80) private String cognome; @Column(length=80) private String nome; @Column(length=80) private String appellativo; @Column() @Enumerated(EnumType.STRING) private Sesso sesso; @Column() private Date dataNascita; @Column(length=80) private String luogoNascita; @Column(length=18) private String codiceFiscale; @Column(length=120)...
When my application uses the default "Typical" controller, at the end of detail forms I have only the "Save" button and that's exactly how I like it. However I need to define a custom controller so that my application does not show a new empty record after "Save" was clicked, but keeps the saved record on screen for further editing. I then added this in controllers.xml <controller name="KeepEditingEntityAfterSave"> <extends controller="Typical"/> <action name="save" mode="detail" class="org.openxava.actions.SaveAction"...
While I very much appreciate all the time @javierpaniza spends to answer questions here, I also think SourceForge forums, in 2021, are not the best place to offer community support. Javier himself is posting at least some of the solutions given here to StackOverflow too, which is a way bigger community than SF nowadays, and I'm tempted to post questions about OpenXava there instaed of here. However, while I'm sure if I post here Javier will see my question, I'm not sure the same happens if I post...
While I very much appreciate all the time @javierpaniza spends to answer questions here, I also think SourceForge forums, in 2021, are not the best place to offer community support. Javier himself is posting at least some of the solutions given here to StackOverflow too, which is way a bigger community that SF nowadays, and I'm tempted to post questions about OpenXava there instaed of here. However, while I'm sure if I post here Javier will see my question, I'm not sure the same happens if I post...
Here in Italy we use 4-digit years, except when context makes it absolutely unambiguous what century you are referring to, but, even then, italian language rules mandate you write an apostrophe in place of the omitted century, like this: 24/4/'21. However this format is used exclusively in handwritten texts, for the rest we always have 4 digits years (for example both my ID card and driving license have all years written with 4 digits). My browser is Chrome with italian as primary language in the...
Here in Italy we use 4-digit years, except when context makes it absolutely unambiguous what century you are referring to, but, even then, italian language rules mandate you write an apostrophe in place of the omitted century, like this: 24/4/'21. However this format is used exclusively in handwritten texts, for the rest we always have 4 digits years (for example both my ID card and driving license have all years written with 4 digits). My browser is Chrome with italian as primary language in the...
I don't know, I guess it's the default for the host operating system, which is a Debian GNU/Linux instance configured with it_IT.UTF-8 as only installed locale. But it_IT.UTF-8 shows 4 digits years (at least so does the date command in a terminal)
I don't know, I guess it's the default for the host operating system, which is a Debian GNU/Linux instance configured with it_IT.UTF-8 as only installed locale. But it_IT.UTF-8 shows 4 digits years.
I don't know, I guess it's the default for the host operating system, which is a Debian GNU/Linux instance configured with it_IT.UTF-8 as only installed locale.
I guess it's already documented somewhere, but I could not find it... how do I make OX show dates with 4-digits years?
Well, all and every useless migrations such as javax. to jakarta. are a PITA on their own right, but in this case it seems it can be made automatic: https://github.com/apache/tomcat-jakartaee-migration I've never tried yet, but I assume you can keep referencing javax in your code and only add a compilation step when deploying to Tomcat 10+
Here is my "Recapito" entity code, and the attached image shows how it renders by default: @Entity @Getter @Setter public class Recapito extends AceArcId implements Serializable { private static final long serialVersionUID = 1L; @ManyToOne(fetch=FetchType.LAZY, optional=false) private Contatto contatto; @Column(length=254) private String email; @Column(length=254) private String telefono; @Column(length=254) private String sito; @Column(length=254) private String paginaSocial; @Column() private Date...
Hello, I'm new to OpenXava, but I'm quite seasoned Java developer. I need to setup a production environment for my application and I usually use the most recent stable release of all the components and frameworks. The documentation says to download and install Tomcat 9: https://www.openxava.org/OpenXavaDoc/docs/tomcat_en.html but there already is available Tomcat 10. https://tomcat.apache.org/whichversion.html Can OpenXava run in Tomcat 10? Are there any issues specific to the latest tomcat release,...
Hello, I'm new to OpenXava, but I'm quite seasoned Java developer. I need to setup a production environment for my application and I usually use the most recent stable release of all the components and frameworks. The documentation says to download and install Tomcat 9: https://www.openxava.org/OpenXavaDoc/docs/tomcat_en.html but there already is available Tomcat 10. https://tomcat.apache.org/whichversion.html Can OpenXava run in Tomcat 10? Are there any issues specific to the latest tomcat rele...
Segfaults with Eternity Engine (DOOM source port)
About the menu code, line 208 (Lac06p50) of menu.cpp calls draw() for each mouse event, including mouse movement (button==0). The draw() function in turn calls draw() for each displayed component. I'd assume this is nedeed to draw the mouse pointer, but I don't really now if GLUT client code is required to draw the mouse pointer itself or not. Anyway, besides the reason for a draw() every mouse movement, maybe such a burst of draw operations on modern AMD drivers need to pay special attention about...
Hi Bob, thanks for your efforts. I can confirm moving the cursor with the numeric keypad works better than the mouse and I can confirm I spent two hours playng LAC yesterday... which brings us to the following new issues: 4) I get a segfault and consequent application crash after about half an hour of playing 5) after I shot to a target plane (hit but not destroyed) it started "flying" (floating more precisely) at -14 altitude half immersed into the sea. After that there was no way to hit it again...
About the segfault, please note that I've never been playing online. It happened while testing offline with the tutorial missions, no network connection established, at least not explicitly by myself. Does LAC use the network even when playing offline?
About the segfault, please note that I've never been playing online. It happened while testing offline with the tutorial missions, no network conntection established, at least not explicitly by myself. Does LAC use the network even when playing offline?
Hi Bob, thanks for your efforts. I can confirm moving the cursor with the numeric keypad works better than the mouse and I can confirm I spent two hours playng LAC yesterday... which brings us to the following new issues: 4) I get a segfault and consequent application crash after about half an hour of playing 5) after I shot to a target plane (hit but not destroyed) it started "flying" (floating more precisely) at -14 altitude half immersed into the sea. After that there was no way to hit it again...
Hi Bob, thanks for your efforts. I can confirm moving the cursor with the numeric keypad works better than the mouse and I can confirm I spent two hours playng LAC yesterday... which brings us to the following new issues: 4) I get a segfault and consequent application crash after about half and hour of playing 5) after I shot to a target plane (hit but not destroyed) it started "flying" (floating more precisely) at -14 altitude half immersed into the sea. After that there was no way to hit it again...
Thanks for your effort. Please note that, back in the GL-117 days, I was already using a Radeon graphics card, in particular a Sapphire Radeon 9250 128MB, and it used to work. I do suspect that a Radeon card from year 2001 probably shares only the name with current Radeon cards, but I wanted to point that out nevertheless.
Here I am with the test results on my AMD system. The latest GL-117 release from year 2005 does show the same behavior while using the menu, but it lags a bit less and the whole experience, while it's far from being good, is more acceptable. While using the menu in LAC there's no suspicois message in logfile.txt, here is the relevant snippet: Info: Entering SDL main loop (GLUT emulation) Info: LacMouseFunc() game == GAME_INIT. x=1035, y=613, button=1 Info: @createMission() missionid= Info: @ 0 Info:...
Hi Bob, Item 1: so we know it does not happen on Intel CPUs. Is there any Intel specific code in LAC? Or are there any Intel specific options for the compiler in the Makefile? I'll have a chance to test GL-117 (and the latest LAC release) on my AMD system in a few weeks as I'm away from home just now. The LAC version I tested was the latest at time of my previous post. In general I think I can't live with this problem, meaning it turns me down enough to choose a different game. However I can try...
Hi Bob, Item 1: so we know it does not happen on Intel CPUs. Is there any Intel specific code in LAC? Or are there any Intel specific options for the compiler in the Makefile? I'll have a chance to test GL-117 (and the newer LAC release) on my AMD system in a few weeks as I'm away from home just now. The LAC version I tested was the latest at time of my previous post. In general I think I can't live with this problem, meaning it turns me down enough to choose a different game. However I can try to...
I used to play GL-117 several years ago. Now I've tried LAC. It generally works, but I've encountered a few issues: 1. When using the menù, it stutters a lot and warns about low fps, to the point it's nearly unusable and even moving the mouse pointer is a pain, however my hardware is way more than enough (AMD FX 8350 CPU with RX 580 GPU). When playing fullscreen in FHD resolutions, it works at 60fps sustained with all quality settings maxed out. 2. Playing with a joystick, it does not prevent the...
I used to play GL 117 several years ago. Now I've tried LAC. It generally works, but I've encountered a few issues: 1. When using the menù, it stutters a lot and warns about low fps, to the point it's nearly unusable and even moving the mouse pointer is a pain, however my hardware is way more than enough (AMD FX 8350 CPU with RX 580 GPU). When playing fullscreen in FHD resolutions, it works at 60fps sustained with all quality settings maxed out. 2. Playing with a joystick, it does not prevent the...
does not compile in jdk8/linux