This content has been marked as final.
Show 5 replies
-
1. Re: How to rerender a4j:mediaOutput?
alexanderbelov Oct 17, 2007 10:08 AM (in response to alexanderbelov)Sorry.
<h:selectOneListbox size="1" id="currentFilters" value="#{graphSessionBean.communicationFilterName}"> <f:selectItems value="#{graphBean.filters}"/> <a4j:support event="onchange" reRender="outputImage" limitToList="true" ajaxSingle="true" ignoreDupResponses="true"/> <a4j:support event="onkeyup" reRender="outputImage" limitToList="true" ajaxSingle="true" ignoreDupResponses="true"/> </h:selectOneListbox> <a4j:outputPanel id="outputImage"> <a4j:mediaOutput createContent="#{graphBean.paint}" value="#{graphSessionBean.currentGraphAttributes}" mimeType="image/jpeg" id="output" element="img" cacheable="false" session="false"/> </a4j:outputPanel>
When I change value of h:selectOneListbox, I want to reRender a4j:mediaOutput. Value of a4j:mediaOut
put is the same, but #{graphBean.paint} is not called and in responce I have the same image. -
2. Re: How to rerender a4j:mediaOutput?
alexanderbelov Oct 17, 2007 10:13 AM (in response to alexanderbelov)I have tryed to change value of a4j:mediaOutput and now it works. Is it required to update component?
-
3. Re: How to rerender a4j:mediaOutput?
alexanderbelov Oct 18, 2007 1:57 AM (in response to alexanderbelov)I cannot use value attribute only to paint image, because it must be short object. I take data from database. Is it possible to rerender a4j:mediaOutput without changing value?
-
4. Re: How to rerender a4j:mediaOutput?
ilya_shaikovsky Oct 18, 2007 8:37 AM (in response to alexanderbelov)without changing its value - it will be cached. You should append some modificator to the value.
-
5. Re: How to rerender a4j:mediaOutput?
alexanderbelov Oct 18, 2007 8:44 AM (in response to alexanderbelov)OK, thank you.