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 8481777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:39:08+00:00 2026-06-10T19:39:08+00:00

I have two xhtml files. One as a complete page to be displayed and

  • 0

I have two xhtml files. One as a complete page to be displayed and another that uses a template (). When I call the file directly (the complete file) all the effects contained in work perfectly, but when I call the page that uses the template the page is loaded but the effects of paging not work and gives the following exception:

“17:14:07,031 SEVERE
[javax.enterprise.resource.webcontainer.jsf.application] (http –
0.0.0.0-8090-3) JSF1007: component ID duplicated messages found in the preview. 17:14:07,031 SEVERE
[javax.enterprise.resource.webcontainer.jsf.application] (http –
0.0.0.0-8090-3) + id: j_id1 “

The complete code (fileA.xhtml):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"  
    xmlns:p="http://primefaces.org/ui"> 
<h:head>
  <title>Parâmetros Integrator</title>
</h:head>       
<h:body>
<f:view>       
    <h:form prependId="false">    
    <p:dataTable id="dataTable" var="valor" value="#{parametroBean.listaParametro}"  
                 paginator="true" rows="10"  
                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                 rowsPerPageTemplate="4,5,7"
                 style="max-width: 580px; min-width: 550px">  
        <f:facet name="header">  
            Parâmetros Integrator  
        </f:facet>    
        <p:column style="max-width: 40px; min-width: 40px; overflow: hidden" >  
            <f:facet name="header">  
                <h:outputText value="Parametro" />  
            </f:facet>  
            <h:outputText value="#{valor.parametro}" />  
        </p:column>    
        <p:column style="max-width: 50px; min-width: 50px; overflow: hidden">  
            <f:facet name="header">  
                <h:outputText value="Valor" />  
            </f:facet>  
            <h:outputText value="#{valor.valor}" />  
        </p:column>    
        <p:column style="max-width: 50px; min-width: 50px; overflow: hidden">  
            <f:facet name="header">  
                <h:outputText value="Descricão" />  
            </f:facet>  
            <h:outputText value="#{valor.desParametro}" />  
        </p:column>    
    </p:dataTable> 

</h:form>    
</f:view> 
</h:body>
</html>

The code using template (fileB.xhtml):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

  <ui:composition  template="/templates/conteudo.xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.org/ui">


  <ui:define name="content">

    <p:dataTable id="dataTable2" var="valor" value="#{parametroBean.listaParametro}"  
                 paginator="true" rows="10"  
                 paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
                 rowsPerPageTemplate="4,5,7"
                 style="max-width: 980px; min-width: 950px">  
        <f:facet name="header">  
            Parâmetros Integrator  
        </f:facet>  

        <p:column style="max-width: 40px; min-width: 40px; overflow: hidden" >  
            <f:facet name="header">  
                <h:outputText value="Parametro" />  
            </f:facet>  
            <h:outputText value="#{valor.parametro}" />  
        </p:column>  

        <p:column style="max-width: 80px; min-width: 80px; overflow: hidden">  
            <f:facet name="header">  
                <h:outputText value="Valor" />  
            </f:facet>  
            <h:outputText value="#{valor.valor}" />  
        </p:column>  

        <p:column style="max-width: 80px; min-width: 80px; overflow: hidden">  
            <f:facet name="header">  
                <h:outputText value="Descricão" />  
            </f:facet>  
            <h:outputText value="#{valor.desParametro}" />  
        </p:column>  

    </p:dataTable>  


    </ui:define>

  </ui:composition>

Someone can tell me what can be?

Thank you!!!

  • 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-10T19:39:09+00:00Added an answer on June 10, 2026 at 7:39 pm

    The error you are getting refers to duplicate IDs in the JSF-generated page. I would check your template (conteudo.xhtml) for same component IDs (both template and the composite facelet). If you have Firebug or IE developer tools, it might be easier to pinpoint (depending on your browser of usage).

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

Sidebar

Related Questions

I have two pages one is the main page and the another one is
I would like to have two .css files. One for each master\content page and
I have two XHTML files and my task is to convert from one to
I have two files client.php and server.php. The client file send a HTTP request
Here I have a two files. One for forms and second php for getting
I have two similar pages, one named index.xhtml and one named index_old.xhtml both in
I have two jsp files as follow: myform.jsp <%@ page contentType='text/html; charset=UTF-8' errorPage='' %>
I have page in which I edit some entity. That page has two command
I want to change from one XML (XHTML) file to another using XSLT. In
I have a page with two text fields and a commandButton , in one

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.