Hi

I'm facing a problem when I do testing of Html Dialogs in the Designer. It seems that some of the resources get cached so I don't see my changes. Everything works on the Engine, but the pages don't get update in the Designer.

Is caching for JSF pages enabled in the Designer and if yes, how can I disable it?

asked 04.11.2019 at 08:46

Andreas%20Rusch's gravatar image

Andreas Rusch
441145
accept rate: 92%


This depends on the Axon.ivy Designer version:

  • Versions 7.0.0 to 7.0.14, 7.x

Yes, this is correct, JSF resource caching is enabled in all 7.x versions of the Axon.ivy Designer.

Fortunately it is quite simple to disable caching: Just add following entry in your Designer's webapps/ivy/WEB-INF/web.xml file:

  <context-param>
    <param-name>javax.faces.PROJECT_STAGE</param-name>
    <param-value>Development</param-value>
  </context-param>

Note: Setting javax.faces.PROJECT_STAGE to Development will also enable XML validation for .xhtml files. This can potentially cause validation errors during dialog execution, e.g. you can get a javax.faces.view.facelets.TagException when calling your Html Dialog:


An Error Occurred:

/webContent/layouts/TaskTemplate.xhtml at line 151 and column 88 <ic:ch.ivy.addon.portalkit.component.responsivenesshandlebutton> Attribute 'toolTip' is required

viewId=/ch.ivyteam.view.path_info/2/ch.ivyteam.ivy.project.portal.examples.showcase.PrimefacesElements/PrimefacesElements.xhtml location=C:\designers\AxonIvyDesigner8.0.0.1910311028_Windows_x64\webapps\ivy\ch.ivyteam.view.path_info\2\ch.ivyteam.ivy.project.portal.examples.showcase.PrimefacesElements\PrimefacesElements.xhtml phaseId=RENDER_RESPONSE(6)

Caused by: javax.faces.view.facelets.TagException - /webContent/layouts/TaskTemplate.xhtml at line 151 and column 88 <ic:ch.ivy.addon.portalkit.component.responsivenesshandlebutton> Attribute 'toolTip' is required at org.apache.myfaces.view.facelets.tag.composite.CompositeComponentResourceTagHandler.createComponent(CompositeComponentResourceTagHandler.java:144)

+ Stack Trace

+ Component Tree

+ Scoped Variables


  • Versions 7.0.15 and 8.0 and later:

In these versions JSF resource caching is disabled by default.

Note: In these versions JSF XML validation is enabled. As mentioned above, this can potentially cause validation errors during dialog execution. If fixing the issues is not possible (e.g. because the problem is caused by a required component you don't have permission to change) you can set javax.faces.PROJECT_STAGE to Production.

link

answered 04.11.2019 at 09:17

Andreas%20Rusch's gravatar image

Andreas Rusch
441145
accept rate: 92%

edited 05.11.2019 at 07:26

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×79

Asked: 04.11.2019 at 08:46

Seen: 1,461 times

Last updated: 05.11.2019 at 07:26