Axon.ivy 7.0 - the Digital Business Platform - is out now...

I have an CMS whose type is PNG Image defines 2 picture (one in English and one in German). I insert this image in .xhtml like: <h:graphicimage name="myImage" library="ivy-cms" styleclass="my-image"/>

There is a button for changing language of whole application.

My problem is: When I click on button to change language, my picture doesn't change. It is changed when I clear cache of browser (Ctrl + F5). I have already tried adding attribute update="my-image" for the button, but it still doesn't work.


asked 07.12 at 00:01

lhtan's gravatar image

accept rate: 0%

edited 07.12 at 00:12


On which version are you and how does the rendered link look like?

A resource caching issue was fixed with XIVY-1959.


answered yesterday

SupportIvyTeam's gravatar image

SupportIvyTeam ♦♦
accept rate: 75%

edited yesterday

I'm on 6.2 version. The rendered link is like: /ivy/faces/javax.faces.resource/uri-of-cms-image?ln=xpertivy-6-cms&xv=54581162611

(yesterday) lhtan lhtan's gravatar image

For the h:graphicImage I think there is some caching going on with the browser or nginx, so they think there could be no changes. Not really sure about this theory.

In this case, the cms already returns the img tag with the URL reference, so you just need to show it with an h:outputText with escape=false.

Just change the locale of your session then update the h:outputText then the image should be changed correspondingly.


answered 18 hours ago

ToanLC's gravatar image

accept rate: 0%

edited 18 hours ago

Thank for your answer. I've already tried your solution. It doesn't appear the image at the first time when I change language.

(1 hour ago) lhtan lhtan's gravatar image
Your answer
toggle preview

Follow this question

By Email:

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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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



Asked: 07.12 at 00:01

Seen: 37 times

Last updated: 1 hour ago