如何访问JSF中动态页面的内容?
我有一个xhtml文件,我用ui初始化它:重复标记realtime.all这个页面的标记放置在ui:fragment标记下。如何访问JSF中动态页面的内容?
<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> 
当我进入这个网页,并保存为实时XML,而它被初始化,一切正常保存在XML文件中的标签是空的。
<edges> </edges> 
如何访问此xhtml文件的内容并将其保存在磁盘上?
认为,我们有2页(A & B),所以我们想通过页面下载页面B(此页由ManagedBean动态初始化)提前
感谢,
回答:
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(); 
    } 
对不起,我不能发表评论,也许你可以使用它。
看看这个帖子:get full html source code of page through ajax request through javascript
以上是 如何访问JSF中动态页面的内容? 的全部内容, 来源链接: utcz.com/qa/261185.html

