Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8263819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T04:14:01+00:00 2026-06-08T04:14:01+00:00

I have a question about JSF 1.2 + Richfaces 3.3. I have a web

  • 0

I have a question about JSF 1.2 + Richfaces 3.3. I have a web app which has some navigation rules and some ajax functions. In some point, I want the application make to open a new tab in the browser and show an xhtml page, after doing an action in server side. I have chosen the tag for that. That’s how it looks:

<h:commandLink target="_blank"
                action="#{sm_gestiondocumental_gestorUserAuditBean.actionCreateUserAuditManager}">
                <h:graphicImage value="/images/sm_gestiondocumental/checklist.png"
                    alt="#{wmsg.VIEW_AUDITS}" title="#{wmsg.VIEW_AUDITS}"
                    styleClass="pic" />
            </h:commandLink>

The code that is executing is the following one:

private String createAuditManager(String className, String param, Object objectToAudit,
        String auditFileName) {
    AuditManagerBean amb = (AuditManagerBean) FacesUtils
            .getManagedBean(BeanNames.AUDIT_MANAGER_BEAN);
    if (amb == null) {
        amb = new AuditManagerBean();
    }
    try {
        amb.set_serviceLocator(this.get_serviceLocator());
    } catch (Exception e) {
        e.printStackTrace();
    }
    amb.set_AuditClassName(className);

    amb.set_AuditId(param);
    amb.set_AuditList(null);
    amb.set_AuditFileName(auditFileName);
    amb.set_ObjectToAudit(objectToAudit);

    amb.set_AuditFilterInit(this._FilterInit);
    amb.set_AuditFilterEnd(this._FilterEnd);
    FacesUtils.setManagedBeanInSession(BeanNames.AUDIT_MANAGER_BEAN, amb);
    return "showAudits";
}

public String actionCreateUserAuditManager() {
    if (this._SelectedUser == null) {
        FacesUtils.addErrorMessage("Error al listar usuarios");
        return this.createAuditManager(CUsuarioRegistrado.NAME_FOR_AUDIT, "", null,
                "Auditoría para " + this._SelectedUser);
    }
    return this.createAuditManager(CUsuarioRegistrado.NAME_FOR_AUDIT,
            this._SelectedUser.toString(), null, "Auditoría para " + this._SelectedUser);
}

Which is returning an “showAudits” String. According to my navigation rules, this String must open this link: auditInfo.xhtml.

<navigation-rule>
    <from-view-id>*</from-view-id>
    <navigation-case>
        <description></description>
        <from-outcome>sm_gestiondocumental_ListGrupoEntrega</from-outcome>
        <to-view-id>/modules/sm_gestiondocumental/ges_tiposentrega/tiposGrupoList.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
        <description></description>
        <from-outcome>sm_gestiondocumental_ListEmpresa</from-outcome>
        <to-view-id>/modules/sm_gestiondocumental/ges_empresas/empresasList.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
        <description></description>
        <from-outcome>sm_gestiondocumental_ListTrabajo</from-outcome>
        <to-view-id>/modules/sm_gestiondocumental/ges_trabajos/trabajosList.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
        <description></description>
        <from-outcome>sm_gestiondocumental_ListSeccion</from-outcome>
        <to-view-id>/modules/sm_gestiondocumental/ges_secciones/seccionesList.xhtml</to-view-id>
    </navigation-case>
    <navigation-case>
        <description>
        </description>
        <from-outcome>showAudits</from-outcome>
        <to-view-id>/modules/sm_gestiondocumental/auditInfo/auditInfo.xhtml</to-view-id>
    </navigation-case>
</navigation-rule>

The rules are well applied, however, the page is opening in the main panel of my application, I mean, a new browser tab is opened but the whole application is being displayed with the auditInfo.xhtml content inside, in order to display only the auditInfo.xhtml page.

It seems to be some filtering problem, because the setContent() method of my application bean is called after org.ajax4jsf.Filter invoked. However I don’t want that method to be called. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T04:14:02+00:00Added an answer on June 8, 2026 at 4:14 am

    Resolved. The tag was inside an a4j:outputPanel, so, even it wasn’t set to ajaxRender automatically, richfaces was using the ajax filter for that request. That filter was causing this problem. Changing the a4j:outputPanel for a h:panelGroup has solved it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about JSF and GET http request. How can I get
I have a question about session timeouts and JSF 2. I have my exception
I am new to Stack Overflow and have a question about JSF 2.0 and
I have a question about the method signature in a JSF Bean when it's
I have a question about integrating jquery library with JSF 2.0 when using <h:outputScript
I have a question about updating variable inside dataTable component, which was sended to
I have a basic question about JSF and their ManagedBeans. Imagine we have set
I have question about parsing in Html helper : I have sth like: @foreach
I have question about clean thory in Python. When: @decorator_func def func(bla, alba): pass
I have question about XSLT1.0. The task is to write out in HTML all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.