0

我正在使用 ADF Faces 11g\JDeveloper 11g 开发 Web 应用程序并使用 Weblogic 10.3 来部署它。

当我导航到同一个 JSP 页面时,我遇到了一些问题。

例子:

我有一个使用模板的页面:

    <f:view>
        <af:document id="d1">
            <af:form id="f1">
                <af:pageTemplate viewId="/base/templase.jspx" id="pt1">
                      <f:facet name="body"> 
                          (...)
                               <af:commandButton   action="#{listPersons.query}"
                                                      text="Search"
                                                      id="buttonSeachPersons"/>
(...)

以及后备bean中的查询方法:

public void query() {
   this.persons = findPersons(filter);
}

它重定向到同一页面,但不包括模板页面内容。

我试图在查询方法中返回字符串并创建一个导航,但它没有工作......

任何人有任何提示?

当它导航到不同的页面时它工作正常。

4

1 回答 1

0

I once had similar problems when redirecting back to the same page. In my case the page reload was not occurring because (I assume) the ADF request processor was doing some 'optimization' and deciding that since the the same page was required, that a reload wasn't needed. I tried everything I could think of to try and force a page refresh but nothing worked.

In the end, I solved my problem by moving the navigation rules from the adfc-config.xml into the faces-config.xml. Since the navigation rules were then plain old JSF rules (rather than ADF rules), there was no optimization, and the navigation was then more consistent.

于 2009-10-29T01:05:29.560 回答