-
1. Re: Unable to refresh an image using a4j:support
sergeysmirnov Apr 8, 2007 12:52 AM (in response to jsfguru)Probably, you can avoid this caching by changing the value attribute.
Also, you can try to use a:mediaOutput that has cachable attribute. -
2. Re: Unable to refresh an image using a4j:support
jsfguru Apr 8, 2007 1:35 AM (in response to jsfguru)Thanks for the pointers.
I have just now finished trying the mediaOutput approach. That didn't work either.
I have found one example posted by another user which seems to indicate that my original code should work (at least it worked for the other user). Let me try copying that code and see. -
3. Re: Unable to refresh an image using a4j:support
jsfguru Apr 8, 2007 2:40 AM (in response to jsfguru)Solved it. I had to change
<h:graphicImage value="/TrendChartGenerator" />
to<h:graphicImage value="#{sampleBean.chartURL}" />
and here is the getChartURL method:public String getChartURL() { return "/TrendChartGenerator?cacheid=" + (Math.random() * 1000000); }
Basically, as suggested by Sergey, I had to make the image URL dynamic, fooling the browser into thinking that the image source had changed and hence had to be refreshed. -
4. a4j:include
ggeorgi Sep 13, 2007 7:17 AM (in response to jsfguru)hi
I am trying to include a jsp into another one using a4j.
for example. we have first.jsp, whish contains only one tag:
<h:output value="hallo">
the second one should have a button and after a click the first.jsp should be shown.
how could I get this
the following code doesn't success:
<a4j:commandButton reRender="adJsp" value="add"/>
<a4j:outputPanel id="adJsp">
<a4j:include viewId="second.jsp"></a4j:include>
</a4j:outputPanel>
a button is shown and the jsp is shown too. If clicked, the button doesn't change anything. -
5. Re: Unable to refresh an image using a4j:support
ilya_shaikovsky Sep 13, 2007 12:53 PM (in response to jsfguru)navigation inside include works only for the components inside include