This content has been marked as final.
Show 4 replies
-
1. Re: ReRender paint2D component on onchange event of selectOneMenu
almar Jan 10, 2011 10:10 AM (in response to qaelbdj)Try reRendering the paint2D tag directly instead of using a4j:region (in otherwords use reRender=”pregPainter”).
I have similar code. Directly reRendering paint2D works, trying it with a a4j:region also fails on my end (haven’t tried to figure out why).
~ Almar
-
2. ReRender paint2D component on onchange event of selectOneMenu
nbelaevski Jan 10, 2011 2:03 PM (in response to qaelbdj)Hi Tony,
You have cacheable=true, so browser caches image data. You should have different values of 'data' attribute for different image types in that case.
-
3. ReRender paint2D component on onchange event of selectOneMenu
qaelbdj Jan 11, 2011 6:15 AM (in response to qaelbdj)I tried rendering the paint2D directly and having cacheable=false and none of them worked
-
4. ReRender paint2D component on onchange event of selectOneMenu
ilya40umov Jan 11, 2011 8:04 AM (in response to qaelbdj)Hi Tony,
Try the following:
/** Generates Random Text for displaying on the image */
public String getRandomString() {
UUID uuid = UUID.randomUUID();
return uuid.toString();
}
data="#{testBean.randomString}" for rich:paint2D