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

  • Home
  • SEARCH
  • 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 983947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:56:13+00:00 2026-05-16T04:56:13+00:00

There is a top-level template in my project and it defines several sub-templates nested

  • 0

There is a top-level template in my project and it defines several sub-templates nested in a form:

<h:form>
   <ui:insert name="header"/>
   <ui:insert name="leftbar"/>
   <ui:insert name="maincontent"/>
</h:form>

It’s not my idea actually to build application in this way. I see both its advantages and disadvantages.

The biggest problem I’ve met is necessity of 2 forms on 1 page: first with default enctype and second for uploading files. The second biggest problem is validating unnecessary fields (but it can be relatively easily solved by disabling validation on those fields with jstl c:if).

I’m using JSF and Facelets currently but the described design is possible with any templating framework.

So, what I wanted to ask: how do you think is it worth to use this wrapper-form? Is is a common practice?

  • 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-05-16T04:56:13+00:00Added an answer on May 16, 2026 at 4:56 am

    It certainly is not. You’re now using one “super-form” for all actions in the page. This is not the common practice. Every related group of input elements should be placed in its own form. You don’t want to validate/submit your contact form in the main content if you submit the search form in the header.

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

Sidebar

Related Questions

$0 is the variable for the top level Ruby program, but is there one
Is there a htop/top on Linux where I get to sort processes by network
In SharePoint 2007, there's a top nav that the user can hover over, which
Is there a difference in performance between TOP and SET ROWCOUNT or do they
Is there a way to run plain c code on top of the JVM?
C#: Is there a shortcut to detect if mouse is still hovering on top
Just wondering if anyone knew off the top of their heads if there was
In some Rails model definitions, there is a comment block at the top that
There is a conversion process that is needed when migrating Visual Studio 2005 web
There are two weird operators in C#: the true operator the false operator If

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.