Question

I have a xhtml file that i initialized it with ui:repeat tag in realtime.all tags of this page placed under ui:fragment tag.

<edges>
     <ui:repeat value="#{graphInfoBean.edges}" var="edge" varStatus="indexVar">
        <edge id="#{indexVar.index}" source="#{edge.source}" target="#{edge.target}"
              weight="#{edge.weight}">
            <attvalues>
                <attvalue for="weight" value="#{edge.weight}"></attvalue>
            </attvalues>
        </edge>
     </ui:repeat>

When i access to this page and save it as xml in realtime, the tags in xml file saved are empty while it is initialized and everything is working properly.

<edges>
</edges>

How can i access to content of this xhtml file and save it on disk?


think that we have 2 page (A&B) so we want to download the page B (this page initialized dynamically by ManagedBean)through page A

Thanks in advance,

Was it helpful?

Solution

    function process(){
     url = "text.html"
     var xhr = new XMLHttpRequest();
     xhr.open("GET", url, true);
     xhr.onreadystatechange = function() {
     if (xhr.readyState == 4){
        alert(xhr.responseText)
        }
     }

     xhr.send();
   }

Sorry i cant post comments, maybe you can use this.

take a look at this thread: get full html source code of page through ajax request through javascript

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top