If I have an attribute with stereotype File, when I add a file I cannot remove it. This is because on line 86 of uploadEditor.js, there is a "pond.allowRevert = false". Is there any concrete reason for this not to be revertable?
I found a workaround. In the Collection.new and COllection.edit action, before calling the parent, I put this code: String memberName = getCollectionElementView().getMemberName(); int sectionCount = getCollectionElementView().getSections().size(); for (int i = 0; i < sectionCount; i++) { View s = getCollectionElementView().getSectionView(i); s.setMemberName(memberName); for (MetaMember metaMember: s.getMetaMembers()) { if (metaMember instanceof MetaGroup) { MetaGroup metaGroup = (MetaGroup) metaMember;...
It's a bug introduced in this fix: https://github.com/openxava/openxava/commit/a46d71b73654e7ced68ac25fedfc5aaa9ba06036 BTW, I am using XavaPro 7.0.6, and not 7.0.2. The 7.0.2 version didn't have this bug. I created a minimal project with those classes: Master class @Entity @Getter @Setter public class Master extends Identifiable { @Column(length=50) @Required String description; @OneToMany(mappedBy = "master") private List<Detail> details; } Detail class @Entity @View (members="v1{prop1}v2{g1[prop2]g2[prop3]}")...
I am using XavaPro 7.0.2 I have a collectionview with 4 sections (tabs) and a property with @OnChangeAction on it. When I change a value of the property, it gets fired twice. Checking OX source code, I saw that on View.java:3606 there's a call to the function executeOnChangeAction and, some lines below (line 3622) there is this code: if (hasSections()) { int count = getSections().size(); for (int i = 0; i < count; i++) { getSectionView(i).propertyChanged(changedProperty, changedPropertyQualifiedName);...
Hola Javier. Cuando se cambia los archivos de xavapro (o openxava) como, por ejemplo, Signin.java, donde devo poner los archivos cambiados? Puedo simplesmente crear um archivo de la clase Signin em my proyecto em lo mismo pacote y vás a funcionar?
This is the new working code, that is much faster. openxava.addEditorInitFunction(function() { $(".telefoneBrasil").each(function() { var tamanho = $(this).val().length; if (tamanho == 11) { $(this).mask("(00) 00000-0000"); } else { $(this).mask("(00) 0000-00009"); } }); $(".telefoneBrasil").blur(function() { try { $(this).unmask(); } catch (e) { } var tamanho = $(this).val().length; if (tamanho == 11) { $(this).mask("(00) 00000-0000"); } else { $(this).mask("(00) 0000-00009"); } }); $(".telefoneBrasil").focus(function()...
Hi Javier and Federico. I found out that the problem was with a custom editor using jquery mask that we created for editing brazilian phone numbers. For some unknown reasons, the javascript part is painfully slow only on htmlunit. Everything works fine on firefox or chrome, but not on htmlunit. We managed to redesign the component and now everything is working fine: the test are now running in less than 20 seconds. The code was that: openxava.addEditorInitFunction(function() { var SPMaskBehavior...
Long time OpenXava user here. I started using OpenXava since 2017 and one thing that always made me frustrated is how slow is htmlunit tests. Although this topic was already debated here, I think something is really wrong with how I am doing tests. The thing is that I never was able to unit tests anything because it takes more than a minute to run a test that only logs in. I don't have a slow computer: 11th generation i5 with 16gb of RAM running Windows 11 and a very simple test takes more than a...