Hi Javier. I didn't expect OpenXava to change the way it works, especially since I'm tied to version 663 and I can't rely on any changes that I can expect in 2-3 years. What I was hoping for was help with a workaround or some alternative to create a custom closeMyDialog() (and probably some showMyDialog() that wouldn't do anything to the BaseView but has the ability to set the desired model and everything else that showDialog() can do...) that would remove the previous showDialog() or showMyDialog()...
Hi Javier Yes, it works in that way. ... Just close the dialog and working without redo the view and JS are not going to work, without breaking many OpenXava functionality, of course. I know what, why and more or less how it works. I have specific case scenario and have no value of resetting the base View because I have to refresh an rebuild my own JS object (see picture) by querying data from DB and refill JS object rendering it my self, and again, which is time consuming, screen flickering an I...
Hello. I use XavaPro 6.6.3. and I can't use the upgrade version. I have an no-Entity module with @View (....) and some @Transient properties for filters, and an loaded JS lib displaying an object with data. Depending on situation I showDialog(OtherView) do something in that dialog and at the end I do closeDialog(); After closeDialog() Base View (Parent View) is completely reset and I have to redo JS object with all its operation which is time consuming and absolutely unnecessary, because the data...
Hi Is it possible to programmatically reconnect (disconnect/connect) to the same database stated in context.xml but with a different DB user while the application is running? Or, can we have several resources in context.xml and switch between them while application is running? Regards
Hi I suddenly started getting a large number of warning messages from the org.directwebremoting.* packages in the eclipse console. I'm using XavaPro 6.6.3. Every single request, module opening, action call, anything... produces multiple messages similar to these: .... pro 05, 2024 1:54:48 PM org.directwebremoting.impl.DefaultRemoter info INFO: Exec: Module.getStrokeActions() pro 05, 2024 1:54:48 PM org.directwebremoting.extend.TypeHintContext warn WARNING: Missing type info for request(6<0>). Assuming...
we're not going to release a 6.6.4 That's understandable, no one expects that.What i was thinking is if it is possible to make a fix in the existing 6.6.3 version i am using. But let's forget everything if it's irrelevant. regards
we're not going to release a 6.6.4 That's understandable, no one expects that. regards
Hi, issue with second warning - canit be fixed in OX 6.6.3? On starting project in Eclipse trace throws these warnings: Starting application... ... WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector (file:/C:/XavaPro-EE/workspace/attendancerecord/web/WEB-INF/lib/jaxb-impl.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) WARNING: Please consider reporting this to the maintainers...
Hi Tsai. I am very grateful for your suggestion. However, I wouldn't change the OpenXava code because of this (although I assume you will in one of the 7th versions). With that, I tried to solve the problem with this workaround that changes the Locale before and after manipulating the filter in @Tab. ... Date today = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); today = sdf.parse(sdf.format(today)); boolean lChange = false; Locale lcl = Locales.getCurrent(); // if locale...
Hi Tsai. I am very grateful for your suggestion. However, I wouldn't change the OpenXava code because of this (although I assume you will in one of the 7 versions). With that, I tried to solve the problem with this workaround that changes the Locale before and after manipulating the filter in @Tab. ... Date today = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); today = sdf.parse(sdf.format(today)); boolean lChange = false; Locale lcl = Locales.getCurrent(); // if locale is...
Hi Tsai. I am very grateful for your suggestion. However, I wouldn't change the OpenXava code because of this (although I assume you will in one of the 7 versions). With that, I tried to solve the problem with this workaround that changes the Locale before and after manipulating the filter in @Tab. Date today = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy"); today = sdf.parse(sdf.format(today)); boolean lChange = false; Locale lcl = Locales.getCurrent(); // if locale is hr...
Is there workaround or a way to fix this in version 6.6.3. ?
Hi. My locale is "hr" (Croatia). I have list-only, read-only module for browsing transaction data. One property is eventTime, @Stereotype("DATETIME"), Timestamp . @Tab is sorted by eventTime ascending. Modules controller on-init action defaults eventTime property on current date (in this case 26.07.2024). When on-init code I default eventTime to today: Date today = new Date(); getTab().setConditionValue("eventTime", today); I get (picture1.png) When on-init code I default eventTime as same date last...
Hi. My locale is "hr" (Croatia). I have list-only, read-only module for browsing transaction data. One property is eventTime, @Stereotype("DATETIME"), Timestamp . @Tab is sorted by eventTime ascending. Modules controller on-init action defaults eventTime property on current date ( in this case 26.07.2024). When on-init code I default eventTime to today Date today = new Date(); getTab().setConditionValue("eventTime", today); I get (picture1.png) When on-init code I default eventTime as same date last...
Hi Javier. The problem with trigger messages is that they can also have parameters, so they cannot be found in i18n. I don't know if this will help you in the possible further resolution of this problem, but I solved it by putting in square brackets the unique key of the message of each RAISE in the triggers (for example, trigger_name+n... where n is the sequence number of the occurrence of the message in trigger) and {%} placeholder for the parameter from the message which can later also be translated...
Hi Javier. The problem with trigger messages is that they can also have parameters, so they cannot be found in i18n. I don't know if this will help you in the possible further resolution of this problem, but I solved it by putting in square brackets the unique key of the message of each RAISE in the triggers (for example, trigger_name+n... where n is the sequence number of the occurrence of the message in trigger) and {%} placeholder for the parameter from the message which can later also be translated...
Hi Javier Is it possible to get these messages translated, and what wound be the rules of writing them i DB to be possible to translate them later in Xava? For my own purposes, back in version 6.6.3, I developed a principle according to which I use the names of constraints as keys for translation, and I address messages from the triggers, procedures and functions with a special key at the beginning of the message, which I later use as a translation key. How is this resolved in 7.3.3, what rules should...
Hi Bernard. As far as I know, from OpenXava this is possible from a class that implements IJavaScriptPostAction, utilizing init.js and having your own JSP. But I believe it is better to wait for a more accurate answer from @javierpaniza Regards
Hi Javier I added a BUG. I have solution only in case when there is a class action displaying or processing (setting) the View containing 1 property with flatpikr (@Stereotype("DATE") or @Stereotype("DATETIME")), and class implements IJavaScriptPostAction haveing this code in public String getPostJavaScript() function. This is for @Stereotype("DATETIME") property: String timeStr = new SimpleDateFormat("HH:mm").format(new java.util.Date()); String[] myArray = timeStr.split(":"); String hour = myArray[0];...
Hi Javier I added a BUG. I have solution only in case when there is a class action displaying or processing (setting) the View containing 1 property with flatpikr (@Stereotype("DATE") or @Stereotype("DATETIME")), and class implements IJavaScriptPostAction haveing this code in public String getPostJavaScript() function. This is for @Stereotype("DATETIME") property: String timeStr = new SimpleDateFormat("HH:mm").format(new java.util.Date()); String[] myArray = timeStr.split(":"); String hour = myArray[0];...
Hi Javier I added a BUG. I have solution only in case when there is a class action displaying or processing (setting) the View containing 1 property with flatpikr (@Stereotype("DATE") or @Stereotype("DATETIME")), and class implements IJavaScriptPostAction haveing this code in public String getPostJavaScript() function: String timeStr = new SimpleDateFormat("HH:mm").format(new java.util.Date()); String[] myArray = timeStr.split(":"); String hour = myArray[0]; String minutes = myArray[1]; String d...
Hi Javier This your problem, is it? Yes! To make matters worse, the module is used in Fully Kiosk Browser as a kiosk, which is why page refresh is disabled. But I think I solved it. I'm running a new deploy right now, so I'll know in a day or two if I succeeded. If so, I will write the solution code in this correspondence. Regards
Hi Javier This your problem, is it? Yes! To make matters worse, the module is used in Fully Kiosk Browser as a Kiosk, which is why page refresh is disabled. But I think I solved it. I'm running a new deploy right now, so I'll know in a day or two if I succeeded. If so, I will write the solution code in this correspondence. Regards
Hi Javier Do you mean 24 hours with module opened in the browser without touching any action? No, it doesn't matter if the module is used or not. It doesn't even have to be 24 hours, it's enough to go from one current date to another. For example, it starts on 15.05.2024 at 21:00. By 24:00, by clicking on the field where the datePicker is, the date 15.05.2024 will appear as rounded. After 24:00, we changes to the current date 16.05.2024, but by clicking on the field in which the datePicker is, the...
Hi Javier Do you mean 24 hours with module opened in the browser without touching any action? No, it doesn't matter if the module is used or not. It doesn't even have to be 24 hours, it's enough to go from one current date to another. For example, it starts on 15.05.2024 at 21:00. By 24:00, by clicking on the field where the datePicker is, the date 15.05.2024 will appear as rounded. After 24:00, we changes to the current date 16.05.2024, but by clicking on the field in which the datePicker is, the...
Hi Javier Do you mean 24 hours with module opened in the browser without touching any action? No, it doesn't matter if the module is used or not. It doesn't even have to be 24 hours, it's enough to go from one current date to another. For example, it starts on 15.05.2024 at 21:00. By 24:00, by clicking on the field where the datePicker is, the date 15.05.2024 will appear as rounded. After 24:00, we changes to the current date 16.05.2024, but by clicking on the field in which the datePicker is, the...
Hi Javier Do you mean 24 hours with module opened in the browser without touching any action? No, it doesn't matter if the module is used or not. It doesn't even have to be 24 hours, it's enough to go from one current date to another. For example, it starts on 15.05.2024 at 21:00. By 24:00, by clicking on the field where the datePicker is, the date 15.05.2024 will appear as rounded. After 24:00, we changes to the current date 16.05.2024, but by clicking on the field in which the datePicker is, the...
Hi Javier. I tried getView().reset() an after 24 hours of running module it does not give accurate current date. When I say "current date" I mean a date that is in circle when you click on calendar icon in DatePicker. Is there any other way to set current date (and may be time also) in DatePicker? Regards
Hi I'm using XavaPro 6.6.3. version. I have module that is always active, day and night 7/24. In that module there is date/time field with date/time picker. Date/time picker shows default date (time?) but only first day when it is started, all other days it shows that first star date as default date. Module has its cyclic loop of behavior in which I could reset the date/time picker default date (and my be time?) How can on sets default date (time) of date/time picker? Regards
... I found some solution. In addition to the controller with no auto-new action, as you suggested, I added an on-init hidden action that sets the filter field: getTab().setConditionValue("Tab_List_Property", "?"); Regards
Hi Javier I realized that this way solves the requirement that the new action is not activated automatically when there is no data in the @Tab. But that solves only one part of the overall intention. The goal is not to show any data in the @Tab at the beginning, and then, if a single filter field is entered, to show data that corresponds to the specified filters (if such exist). So far I have succeeded with basecondition="1=0" so that no data is displayed at the beginning. Your suggestion solved...
Ho Javier I realized that this way solves the requirement that the new action is not activated automatically when there is no data in the @Tab. But that solves only one part of the overall intention. The goal is not to show any data in the @Tab at the beginning, and then, if a single filter field is entered, to show data that corresponds to the specified filters (if such exist). So far I have succeeded with basecondition="1=0" so that no data is displayed at the beginning. Your suggestion solved...
Hi Javier. The easier way is not having an action called "new" in any controller of the module. This is not what I want to achive. I need standard @Tab / Detail module with New/Delete ... functionality that: * at start does not show any data (although there is data in DB, like basecondition is "1=0"). * does not automatically jumps to New Detail (because of no data in the @Tab) * shows data in @Tab ONLY if at least 1 filter column is populated and data in DB exists for that condition (and in that...
Hi. Can I have a module starting with empty @Tab (and not showing automatic new Detail) that shows data in the @Tab only if some filter filed is entered (and that data correspond to that filter field of course)? Regards
.... sorry guys yes, it is possible: The syntax is: openxava.executeAction('myproject', 'MyModule', '', false, 'ControllerName.ActionName', 'setVariableA=' + valueA + ', setVariableB=' + valueB); Regards
Hi Can we call openxava.executeAction from JS setting not 1 but n set variables, like: String action="openxava.executeAction('myproject', 'mymodule," + "false, false, 'controller.action', 'setvariableA=valueA', 'setvariableB=valueB')"; Regards
Hi Javier Instead of hidding the button, just disable it. Thx! Regards
Hi Javier I tried this and it works, it hides the once clicked button. But! The problem still remains due to the fact that in a series of buttons, one of which is hidden, the others on the right side move to the left and the user clicks on the second button that was "placed" under the previous one, and the same problem appears, as if he had clicked twice on the same button. The only thing I can think of is to use css to keep the layout of the other buttons on the right side. However, I would like...
Hi Javier Thank you for your answer. Unfortunately in class that implements IChangeModuleAction, IJavaScriptPostAction JS doesn't work. The class of the problematic action would be the right place for this JS code, the user would call the execution of IChangeModuleAction with the first click, and the second click would just hide the button. But how to implement JS on a class that has an implementation of IChangeModuleAction so that both work? Regards
Hi Javier I tried removeActions("MyController.goToOtherModule"); but bug still occurs! Regards
Hi Javier. I tried removeActions("MyController.goToOtherModule"); but bug still occurs. In any case, you can add it as a bug, so we'll fix OpenXava so this particular case work nicely. I'll add the bug but can I expect some earlier debug to implement it in version 6.6.3. ? I have no intention to upgrade to 7 yet. Regards
Hi Javier. I'll try with removeAction ... In any case, you can add it as a bug, so we'll fix OpenXava so this particular case work nicely. I'll add the bug but can I expect some earlier debug to implement it in version 6.6.3. ? I have no intention to upgrade to 7 yet. Regards
Hi I have module with action that implements IChangeModuleAction opening other module in the same Window. In that next opened module I have action that implements ReturnPreviousModuleAction. Jump to next module takes few seconds until the required data is processed. If user click IChangeModuleAction just once and patiently wait to next module to appears, clicking on ReturnPreviousModuleAction action i that next module brings him back to initial module. BUT! If user is inpatient and clicks IChangeModuleAction...
Hi I have module with action that implements IChangeModuleAction opening other module in the same Window. In that next opened module I have action that implements ReturnPreviousModuleAction. Jump to next module takes few seconds until the required data is processed. If user click IChangeModuleAction just once and patiently wait to next module to appears, clicking on ReturnPreviousModuleAction action i that next module brings him back to initial module. BUT! If user is inpatient and clicks IChangeModuleAction...
Hi I have module with action that implements IChangeModuleAction opening other module in the same Window. In that next opened module I have action that implements ReturnPreviousModuleAction. Jump to next module takes few seconds until the required data is processed. If user click IChangeModuleAction just once and patiently wait to next module to appears, clicking on ReturnPreviousModuleAction action i that next module brings him back to initial module. BUT! If user is inpatient and clicks IChangeModuleAction...
Hi Javier Thx for your answer. Does this mean that if commit() (or flash or a similar command that resets the connection) was not executed during several queries (each of which was executed via XPersistence.getManager() ..Query) we can still expect that OX-Hibernate-tomcat connection pool will not reset the connection and all queries will be executed within the same session? If not, what recommendation could you give for the "framing" of at least one Action that guarantees that all queries in it...
Hi to all. I'm using: - XavaPro 6.6.3. with org.postgresql.Driver & org.hibernate.dialect.PostgreSQL95Dialect - Apache Tomcat/9.0.45 with org.apache.tomcat.jdbc.pool.DataSourceFactory connection pooling - PostgreSQL 13.10, build 1914, 64-bit. In my app actions I have my own queries using XPersistence. In order to speed up queries, or generate DB temporary tables, I use the method to set the DB session variable xy in one query and then in the next query I read the DB view data, which in its definition...
Hi to all. I'm using: - XavaPro 6.3.3. with org.postgresql.Driver & org.hibernate.dialect.PostgreSQL95Dialect - Apache Tomcat/9.0.45 with org.apache.tomcat.jdbc.pool.DataSourceFactory connection pooling - PostgreSQL 13.10, build 1914, 64-bit. In my app actions I have my own queries using XPersistence. In order to speed up queries, or generate DB temporary tables, I use the method to set the DB session variable xy in one query and then in the next query I read the DB view data, which in its definition...
Thx Javier
Hi Javier I tried this with Development Tools with no errors and have exactly the effect I explained previous (click on filed produces new calendar with defined rules, and click on icon shows old calendar): flatpickr($('#MyDateTimeElement')).destroy(); $('#MyDateTimeElement').flatpickr({enableTime: true, enableSeconds: true, time_24hr: true, dateFormat: 'd.m.Y H:i:S', maxDate: 'today', maxTime: '15:00:00'}); How do we destroy calendar on our property? Can we declare property not to have calendar...
Hi I have a class (extends ViewBaseAction implements IJavaScriptPostAction ) that in getPostJavaScript() tries to redefine flatpickr. var etfp = flatpickr(myElement); etfp.destroy(); $(myElement).flatpickr({enableTime: true, enableSeconds: true, time_24hr: true, dateFormat: 'd.m.Y H:i:S', maxDate: 'today', maxTime: timeStr}); results in two flatpickers: old flatpicker which is activated by clicking on the icon and it is the one that should have been destroyed, and the second by which is activated...
Hi Javier Exactly the source from which I deliberately kept the same syntax, but I ask for your confirmation, because you know exactly what in your test project should be bypassed by CSP if you try this. I'm not sure anymore (comparing my 6.6.3 version) what's not working because of version 7+ and what's because of CSP itself, still having problems (on version 7+) with html iframe tag through which I handle https://github.com/codewithmichael/webrtc-intercom on the same server. Regards
Hi Javier Exactly the source from which I deliberately kept the same syntax, but I ask for your confirmation, because you know exactly what in your test project should be bypassed by CSP if you try this. I'm not sure anymore (comparing my 6.6.3 version) what's not working because of version 7+ and what's because of CSP itself, still having problems (on version 7+) with <iframe> through which I handle <a href="https://github.com/codewithmichael/webrtc-intercom">https://github.com/codewithmichael/webrtc-intercom</a>...
.. and what about the list of standard labels and messages by version? Is there such specification in the documentation? Regards
Ho Javier If we put this <filter> <filter-name>ContentSecurityPolicyFilter</filter-name> <filter-class>org.openxava.web.filters.ContentSecurityPolicyFilter</filter-class> </filter> <filter-mapping> <filter-name>ContentSecurityPolicyFilter</filter-name> <url-pattern>/this-path-does-not-exist/*</url-pattern> </filter-mapping> in web.xml of the OX 7+ project, do we completely disable @WebFilter in public class ContentSecurityPolicyFilter? Regards
thx Javier
Hi. Does declaring our development/deployed project hosts in parameters (xava.properties): trustedHostsForImages, trustedHostsForScripts, trustedHostsForStyles and trustedHostsForFrames have the same effect (for these host only) as turning off the @WebFilter annotation at public class ContentSecurityPolicyFilter implements Filter in package org.openxava.web.filters ? Regards
Hi. Does declaring our deployed project host in parameters (xava.properties): trustedHostsForImages, trustedHostsForScripts, trustedHostsForStyles and trustedHostsForFrames have the same effect (for these host only) as turning off the @WebFilter annotation at public class ContentSecurityPolicyFilter implements Filter in package org.openxava.web.filters ? Regards
Hi. Does declaring our project host in parameters (xava.properties): trustedHostsForImages, trustedHostsForScripts, trustedHostsForStyles and trustedHostsForFrames have the same effect (for these host only) as turning off the @WebFilter annotation at public class ContentSecurityPolicyFilter implements Filter in package org.openxava.web.filters ? Regards
Hi. Maybe it already exists somewhere, but I couldn't find it - a complete set of all .properties (files and properties), by version, with possible marks in which version each of property was obsolete. Until version 7, this was visible directly from the source code for both OpenXava and XavaPro (if there was something of that type in the Pro version). Since version 7, such changes are not visible because the source has to be downloaded and viewed each properties file separately, so the transition...
Hi. Maybe it already exists somewhere, but I couldn't find it - a complete set of all properties files in project, by version, with possible marks in which version each of property was obsolete. Until version 7, this was visible directly from the source code for both OpenXava and XavaPro (if there was something of that type in the Pro version). Since version 7, such changes are not visible because the source has to be downloaded and viewed each properties file separately, so the transition from version...
Hi In schema-evolution.sql for 7.1.5 (XavaPro) there is an typing error, the quotation mark (") before semicolon (;) at the end. -- From v7.1.4 to 7.1.5 alter table oxusers add column authenticateWithAzureAD varchar(1) default 'N' not null"; Regards
Hi In schema-evolution.sql for 7.1.5 there is an typing error, the quotation mark (") before semicolon (;) at the end. -- From v7.1.4 to 7.1.5 alter table oxusers add column authenticateWithAzureAD varchar(1) default 'N' not null"; Regards
Hi Javier If we add a new @NoClear, will that annotation preclude clearing the reference in the old way? Of course not. I just made a suggestion to extend the functionality and prevent the end user from accidentally clicking action Clear and delete the mandatory reference. This slip could not happen so easily with "manual" deletion, where the user had to focus the field and deliberately delete the content. And, as I wrote earlier, @NoClear is not needed when we already have @ManyToOne(optional=false)...
Hi Javier 1. "The documentation should emphasize that if the application has a redefined controller Reference, it must also add this segment of the "clear" action declaration, to avoid error exception." If you change standard controller (add Clear action and later in the code you imply that the action exists), and user already has substitution for that controller controller.xml, without that Clear action, it produces errors. 2. @NoClear should warn end user, when inserting and updating, that @ManyToOne...
Ho Javier I don't want to make disable security so easy. I want you know if you do it is at your own risk. Since version 7, source code changes are quite complicated, and since it have to be repeated with each new version (integrating the OX source code into the project is not easy) a variant with a parameter would allow for easier continued development. If you can at all, please, add the parameter with a clear warning that the risk of changing it is developers responsibility . Regards
Hi Javier First of all, sorry, I didn't mean to say "decoratively" but declaratively. Thx for advice. I already use indexExt.jsp. for purpose you write as an example in documentation, but did not cross my mind to us it for loading style and script. I'll probably have some issues because my script is not static, so first I have to rewrite it and than I'll try this. Thank you again. Regards
Hi Javier First of all, sorry, I didn't mean to say "decoratively" but declaratively. Thx for advice. I already use indexExt.jsp. for purpose you write as an example in documentation, but did not cross my mind to us it for loading style and script. I'll probably have some issues because my script is not static, so first I have to rewrite it and than I'll try this. Than you again. Regards
Hi Javier Why do you need that? I have DB function returning entire html page string. DB returns different body, style and script based on parameters. I take the body, script and style parts and inject them with JS (implements IJavaScriptPostAction action) as the part of the current module document. In 633 it work fine. In 7.1 style and script injection not working, only body part works. I am considering other possible options, among which is the generation of script and style files that the page...
So yes, even if you don't upgrade OpenXava your code will stop to work in some point of the future. I think. That's really comforting :))))
Ho Javier I don't want to make disable security so easy. I want you know if you do it is at your own risk. Since version 7, source code changes are quite complicated, and since it have to be repeated with each new version (integrating the OS source code into the project is not easy) a variant with a parameter would allow for easier continued development. If you can at all, please, add the parameter with a clear warning that the risk of changing it is developers responsibility . Regards
Ho Javier I don't want to make disable security so easy. I want you know if you do it is at your own risk. Since version 7, source code changes are quite complicated. If you can at all, please, add the parameter with a clear warning that the risk of changing it is on developer. Regards
Ho Javier I don't want to make disable security so easy. I want you know if you do it is at your own risk. Since version 7, source code changes are quite complicated. If you can at all, please, add the parameter with a clear warning that the risk of changing it is on developer. Regards
Hi Javier The simplest way is adding your CSS to xava/editors/style and your JS to xava/editors/js. But it is not the way I asked. I wont to load js and style to html with style (or link) and script tags, and just for specific module, not entire project.
Hi Javier However, I still can't understand that standard HTML syntax options are regulated by security standard in such a way that their use is prohibited. Then they should be removed from the HTML completely. If the HTML is so vulnerable, then the HTML protocol should be changed and CSP built into it, and not in applications that legitimately use the valid standard options of the HTML language. According the principals to which the CSP is imposed now, we can very easily expect that soon, according...
Hi Javier I think this should be solved outside the OpenXava code within the application configuration, in xsava.properties, firstly because since version 7 the developer no longer has easy access to the OpenXava code and secondly because the developer should be allowed to have that option defined at the level of every application developed with the OpenXava framework. Regards
Hi Javier I think this should be handled outside of the OpenXava code within the application configuration, in xava.properties. Regards
Hi What would be de simplest way to load js and css to specific modules html document trough style and script tags, and with regard to the versions versions 6.6.3 and 7.1? Regards
Hi What would be de simplest way to load js and css to specific modules html document trough <style> and <script> tags, and with regard to the versions versions 6.6.3 and 7.1?</p> <p>Regards</p></style>
Hi to all I am aware of the need for constant tightening of regulations and protocols for security. I still think that OpenXava, like all development tools, should not impose this same regulation without the possibility of its exemption. Many projects have incorporated older projects and libraries that are very expensive, painful or almost impossible to adapt to these new regulations. OpenXava (and XavaPro) should introduce optional flags to allow the use of inline evets, inline styles and simple...
Hi to all I am aware of the need for constant tightening of regulations and protocols for security. I still think that OpenXava, like all development tools, should not impose this same regulation without the possibility of its exemption. Many projects have incorporated older projects and libraries that are very expensive, painful or almost impossible to adapt to these new regulations. OpenXava (and XavaPro) should introduce optional flags to allow the use of inline evets, inline styles and simple...
Hi Javier You can always remove the filter from OpenXava and work as before Can you be more precise, where is OpenXava filter and what should I do to to bypass CSP Regards
Hi Javier Fortunately, seems that intercom.js works with CSP, look at... It is not that Intercom. It is small utility client/servis developed in nodejs by this project https://github.com/codewithmichael/webrtc-intercom and utilized for our needs. About your internal socket protocol, edit yourself the ContentSecurityPolicyFilter in OpenXava until your system works nicely. Then share the result here, so we could improve the filter in order it could be customizable. I doubt that I will get to that stage...
Hi Javier Fortunately, seems that intercom.js works with CSP, look at... It is not that Intercom. It is small utility client/servis developed in nodejs by this project https://github.com/codewithmichael/webrtc-intercom and utilized for our needs. About your internal socket protocol, edit yourself the ContentSecurityPolicyFilter in OpenXava until your system works nicely. Then share the result here, so we could improve the filter in order it could be customizable. I doubt that I will get to that stage...
Hi Javier About your internal socket protocol, edit yourself the ContentSecurityPolicyFilter in OpenXava until your system works nicely. Then share the result here, so we could improve the filter in order it could be customizable. I doubt that I will get to that stage and embark on the upgrade to the 7.1+ version, but if I succeed I will leave the result here. Regards
Hi Javier Uhm, maybe "onclick" still works, at least until 7.2. Why until 7.2? Will 7.2 bring more frameworks core restrictions? Inline onclick don't work i 7.1. Regards
Hi Javier I suppose that (like JS setting inline onclick) document.getElementById("myElement").style.color = "red"; or $("#myElement").css("color", "red"); would not work also? What is your advice in situation when lot of dynamic css changes are needed and when style of elements is changed on attributes of not only that but few other DOM elements, and CSS solution becomes complicated? Regards
Hi Javier I suppose that (like JS setting inline onclick) document.getElementById("myElement").style.color = "red"; or $("#myElement").css("color", "red"); would not work also? What is your advice in situation when lot of dynamic css changes are happen when style of one elements is changed on attributes of not only that but few other DOM elements, and CSS solution becomes complicated? Regards
Hi Javier This question is related to the fact that I have a module and CSS that is based on the existence of the "onclick" attribute, which generally means that the attribute must be: 1. renamedit to "onclicke" to use it for CSS 2. create an additional event in JS for hundreds of objects. In module, I have injected a with tens of rows and a calendar for up to two years (dates in columns). All cells have an onclick event. It will be interesting to rewrite that.
Hi Javier This question is related to the fact that I have a module and CSS that is based on the existence of the "onclick" attribute, which generally means that the attribute must be: 1. renamedit to "onclicke" to use it for CSS 2. create an additional event in JS for hundreds of objects. In module, I have injected a with tens of rows and a calendar for up to two years (dates in columns). All cells have an onclick event. It will be interesting to rewrite that.
Hi Javier This question is related to the fact that I have a module and CSS that is based on the existence of the "onclick" attribute, which generally means that the attribute must be: 1. renamedit to "onclicke" to use it for CSS 2. create an additional event in JS for hundreds of objects. In module, I have injected a with tens of rows and a calendar for up to two years (dates in columns). All cells have an onclick event. It will be interesting to rewrite that.
Hi Javier This question is related to the fact that I have a module and CSS that is based on the existence of the "onclick" attribute, which generally means that the attribute must be: 1. renamedit to "onclicke" to use it for CSS 2. create an additional event in JS for hundreds of objects. In module, I have injected a with tens of rows and a calendar for up to two years (dates in columns). All cells have an onclick event. It will be interesting to rewrite that.
Hi Javier This question is related to the fact that I have a module and CSS that is based on the existence of the "onclick" attribute, which generally means that the attribute must be: 1. renamedit to "onclicke" to use it for CSS 2. create an additional event in JS for hundreds of objects. In module, I have injected a with tens of rows and a calendar for up to two years (dates in columns). All cells have an onclick event. It will be interesting to rewrite that.
Hi Javier Could you put here code example of your other cases? I need to see your HTML and JavaScript code, to reproduce a case and look at the solution. This is one example of html element serving as intercom: <span id="spanXIntercom" style="display:"> <iframe allow="microphone" id="frameXIntercom" src="http://myapp-srv:7777/myapp/intercom/intercom.html?server=it-evip&port=8090&username=GU&entrancename=GU&autooffer=1&autoanswer=1&interconnect=0&displayelements=0&displayconnection=0&displayusername=0&displayguestname=0"...
Hi Javier This is one example of html element serving as intercom: <iframe allow="microphone" id="frameXIntercom" src="http://myapp-srv:7777/myapp/intercom/intercom.html?server=it-evip&port=8090&username=GU&entrancename=GU&autooffer=1&autoanswer=1&interconnect=0&displayelements=0&displayconnection=0&displayusername=0&displayguestname=0" style="border: none;"><br> <strong>#document (se picture intercom_document.png )</strong><br> </iframe> unfortunately, the...
Hi Javier This question is related to the fact that I have a module and CSS that is based on the existence of the "onclick" attribute, which generally means that the attribute must be: 1. renamedit to "onclicke" to use it for CSS 2. create an additional event in JS for hundreds of objects. In module, I have injected a with tens of rows and a calendar for up to two years (dates in columns). All cells have an onclick event. It will be interesting to rewrite that.
Hi In version 7.1, can IJavaScriptPostAction set onclick attribute to DOM element like: document.getElementById("myElement").setAttribute("onclick","myFunction()"); or with JQuery, like: $("#myElement").attr("onclick", "myFunction();"); Regards
Hi In version 7.1, can IJavaScriptPostAction set onclick attribute to DOM element like: document.getElementById('myElement').setAttribute('onclick','myFunction()'); or with JQuery, like: $("#myElement").attr("onclick", "myFunction();"); Regards
Ho Javier No problem. We'll allow several exceptions for images. Not just for images but general. We have all kind of files, sockets and other services... Add it today, and I'll try it for 7.1.1, for 7.1.2 as much. I entered that request already on 26.05.2023. https://openxava.org/xavaprojects/o/OpenXava/m/Issue?detail=ff808081884495bb0188680c62dd004a Regards