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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T14:56:41+00:00 2026-06-18T14:56:41+00:00

During working with JSF 1.2 one page code is too large and JDeveloper gave

  • 0

During working with JSF 1.2 one page code is too large and JDeveloper gave too large code in service method exception. Now I want to split my JSF file in smaller files. During splitting I need some help and suggestion.

Beacuse the whole page binds with a single bean, is it also necessary to split the bean? If not, then how to overcome this? What is the best way to split JSF file and include in main page?

  • 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-18T14:56:42+00:00Added an answer on June 18, 2026 at 2:56 pm

    You don’t need to split the bean. You could just split the page fragments over multiple files which you include by <jsp:include> (and not by @include as that happens during compiletime and you would end up with still the same exception!). Note that you should store those include files in /WEB-INF folder to prevent direct access by enduser.

    So given this example of an “extremely large” page,

    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <!DOCTYPE html>
    <html>
        <head>
        </head>
        <body>
            <div>
                large chunk 1
            </div>
            <div>
                large chunk 2
            </div>
            <div>
                large chunk 3
            </div>
        </body>
    </html>
    

    You could split it as follows while keeping the beans:

    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <!DOCTYPE html>
    <html>
        <head>
        </head>
        <body>
            <jsp:include page="/WEB-INF/includes/include1.jsp" />
            <jsp:include page="/WEB-INF/includes/include2.jsp" />
            <jsp:include page="/WEB-INF/includes/include3.jsp" />
        </body>
    </html>
    

    and /WEB-INF/includes/include1.jsp:

    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <div>
        large chunk 1
    </div>
    

    and /WEB-INF/includes/include2.jsp:

    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <div>
        large chunk 2
    </div>
    

    and /WEB-INF/includes/include3.jsp:

    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <div>
        large chunk 3
    </div>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on some grid generation code, during which I really want to
I'm working on a big c++ project and change code from other people. During
I am working on a Windows Forms Application. During one Drag and Drop action
I have a working dialog, and i want to change the content during the
I am currently working on session timeout. During inactivity in my page for a
This week I've been working on some reflection-based code, and during unit testing found
My flash is working fine in all browser except ie6. During loading of page
During working on one c++ project we decided to use MongoDB database for storing
Recently I've been working on legacy vb.net code and during code peer review it
I am working on a large (100s of assemblies) asp.net application and during development

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.