Forum Stats

  • 3,826,623 Users
  • 2,260,682 Discussions
  • 7,897,041 Comments

Discussions

ADF Faces 11g ignores the template when it navigates to the same page

724808
724808 Member Posts: 19
edited Sep 30, 2009 4:39PM in JDeveloper and ADF
Hi,

I'm using ADF Faces 11g\JDeveloper 11g to develop a web application and using Weblogic 10.3 to deploy it.

I'm having some issues when I navigate to the same JSP page.

Example:

I have a page using a template:
    <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"/>
(...)
and the query method in the backing bean:
    public void query() {

        this.persons = findPersons(filter);

    }
It redirects to the same page, but does not includes the template page content.

I tried to return String in the query method and create a navigation, but it did not worked...

Anyone has any tip?

EDIT*: It works fine when it navigates to different pages.

Regars,

Rubem

Edited by: user8727510 on Sep 30, 2009 12:25 PM

Answers

  • 647414
    647414 Member Posts: 218
    Can you paste the contents of your template?

    And also can you try to create a new simple template and new simple page that uses it and check if it does the same thing?
  • 724808
    724808 Member Posts: 19
    The content of my template is very large... here it is a piece:
    (...)
     <af:pageTemplateDef var="attrs">
      <af:xmlContent>
       <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
        <display-name>templase</display-name>
        <facet>
         <facet-name>body</facet-name>
        </facet>
       </component>
      </af:xmlContent>
      <af:panelGroupLayout id="pt_pgl1">
      (...) lots of HTML Components with CSS (Divs and etc...)
           <af:facetRef facetName="body"/>
      (...) lots of HTML Components with CSS (Divs and etc...)
      </af:panelGroupLayout>
     </af:pageTemplateDef>
    </jsp:root>
  • 647414
    647414 Member Posts: 218
    edited Sep 30, 2009 3:56PM
    Your divs might be the source of your problem, it is not offered to use native html tags with ADF Faces.

    I suggest you again to create a new simple template for testing if it repeats the same problem by doing the same actions.

    Edited by: Onur Aktaş on 30.Eyl.2009 12:56
    647414
  • 724808
    724808 Member Posts: 19
    I did what you told me... it worked in a simple sample :(

    ADF 11g does not support "hardcoded HTML" like Facelets?

    Regards,

    Rubem
  • 724808
    724808 Member Posts: 19
    Hum... it is not ignoring the template... it is ignoring a <f:faces name="metaContainer"> block (which resides in the body
            <af:document id="d1" title="Pessoa Física">
                *<f:facet name="metaContainer">*
                    *<af:resource type="css" source="/static/css/estilo_bdcc.css"/>*
                *</f:facet>*
                <af:form id="f1">
                    <af:pageTemplate viewId="/base/templase.jspx" id="pt1">
                        <f:facet name="body">
                            <af:group id="group">
    Any clues?
  • 647414
    647414 Member Posts: 218
    It is supported but what offered is to use ADF Html tags.

    Try to use this tag anywhere else and check if it works correctly.

    For example:
    <af:form>
    <af:resource type="css" source="/components/resource/exampleResource.css" />
    (...)
    </af:form>
This discussion has been closed.