-
1. Re: Issues with reRender and vml rendering
sergeysmirnov Jan 21, 2008 7:06 PM (in response to coondog7820)Hard to say anything based on this description.
-
2. Re: Issues with reRender and vml rendering
coondog7820 Jan 22, 2008 3:03 PM (in response to coondog7820)Sorry, let me try to explain it further. Here is the a4j:commandButton in my jsp:
<a4j:commandButton type="button" id="dataButton" value="Display >>" actionListener="#{leftNav.showData}" reRender="datapanel"> <f:attribute name="dataId" value="data"/> <f:attribute name="formId" value="frmData"/> </a4j:commandButton>
So dataButton is used to reRender this panel group:<h:panelGroup id="datapanel" layout="block" style="left:150px; top:150px"> <my:Data id="data" value="#{myContext.dataList}" /> </h:panelGroup>
The typical rendered context of data would be:<div> <v:line style="VISIBILITY: visible" fill="true" opacity="0.7"><v:stroke></v:stroke></v:line> </div>
I noticed that the div that the panelGroup renders had an xhtml namespace, and after using an http proxy tool to intercept the response I figured out that the rendered html is being transformed to xhtml. In the response the VML tags did not display. I believe that the VML tags are being dropped because xhtml does not understand them. I hope this further clarified my issue. Any ideas? -
3. Re: Issues with reRender and vml rendering
sergeysmirnov Jan 22, 2008 3:23 PM (in response to coondog7820)It much better now.
First question: do you have FireFox with FireBug ? -
4. Re: Issues with reRender and vml rendering
coondog7820 Jan 22, 2008 3:47 PM (in response to coondog7820)Yes I do, but I use IE with the IE Developer Toolbar because VML will not render in Firefox.
-
5. Re: Issues with reRender and vml rendering
sergeysmirnov Jan 22, 2008 3:51 PM (in response to coondog7820)What version of IE you use?
Does IE Developer Toolbar allows you to see the header of the Ajax response ? -
6. Re: Issues with reRender and vml rendering
coondog7820 Jan 22, 2008 3:59 PM (in response to coondog7820)I have to use a separate tool in IE. I am able to see the header for the Ajax response in firefox and the tool I am using.
-
7. Re: Issues with reRender and vml rendering
coondog7820 Jan 22, 2008 4:03 PM (in response to coondog7820)Sorry, I use IE 7.
-
8. Re: Issues with reRender and vml rendering
sergeysmirnov Jan 22, 2008 7:54 PM (in response to coondog7820)During the re-rendering, RichFaces replaces the old node with new one using replaceNode DOM method. It works everywhere except InternetExplorer. InternetExplorer does not work with XML style updates correctly. So, the outerHtml method is used.
You can try to update the IE DOM using outerHtml by yourself. Check, that IE redraw the VML stuff after you replace the DOM.
If it does, we will find out why RichFaces do no do it.
Otherwise, it is just a dead end. The brand new ways, how to update vml should be found.