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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:54:05+00:00 2026-05-24T20:54:05+00:00

I have a Problem with the Apache Trinidad tr:panelTabbed component. I am trying to

  • 0

I have a Problem with the Apache Trinidad tr:panelTabbed component. I am trying to put different forms into the tabs (tr:showDetailItem) of this component. This, for the first try, does not work at all (I get a at NullPointerException, org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.FormValueRenderer.addNeededValue(FormValueRenderer.java:126):

<tr:panelTabbed>
  <tr:showDetailItem text="First tab">
    <tr:form>
      <tr:inputText label="Value 1" value="#{myBean.someValue1}" required="true" />
      <tr:commandButton text="Save Value 1" actionListener="#{myBean.saveValue1}" />
    </tr:form>
  </tr:showDetailItem>
  <tr:showDetailItem text="Second tab">
    <tr:form>
      <tr:inputText label="Value 2" value="#{myBean.someValue2}" required="true" />
      <tr:commandButton text="Save Value 2" actionListener="#{myBean.saveValue2}" />
   </tr:form>
  </tr:showDetailItem>
</tr:panelTabbed>

As this error also happens when I have no content inside my tr:form tags, so it has nothing to do with my own Java beans.

I found out that the tr:panelTabbed must be placed inside a tr:form tag. As one form tag in an other form tag is not allowed (that leads again to the exception mentioned above), i changed my code to this:

<tr:form>
  <tr:panelTabbed>
    <tr:showDetailItem text="First tab">
      <tr:inputText label="Value 1" value="#{myBean.someValue1}" required="true" />
      <tr:commandButton text="Save Value 1" actionListener="#{myBean.saveValue1}" />
    </tr:showDetailItem>
    <tr:showDetailItem text="Second tab">
      <tr:inputText label="Value 2" value="#{myBean.someValue2}" required="true" />
      <tr:commandButton text="Save Value 2" actionListener="#{myBean.saveValue2}" />
   </tr:showDetailItem>
  </tr:panelTabbed>
</tr:form>

That works fine in the first place, but leads my to my final problem:

I have some validation in each form. When the user tries to switch to the second tab while the first one contains validation errors, he or she is not allowed to do so. I want to avoid this behavior, but I also want to validate the content of the current tab when the user clicks on the save button.

Any suggestions how to solve this?

Thanks in advance

  • 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-24T20:54:06+00:00Added an answer on May 24, 2026 at 8:54 pm

    Trinidad has a tr:subform tag that might do just what you need, try using one general tr:form tag and a small tr:subform inside each panel (I hope you want to validate the forms separately).

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

Sidebar

Related Questions

Trying to download file with apache httpclient library and have a problem with resulting
hi i have problem with logging, first i registered user in database,this works ok!
I have problem with my rewrite rules for apache. This url not working on
I have a problem, surprise ;) I use .htaccess in Apache and have a
I have a small problem with url rewriting on apache. I would like it
I have quite a strange problem with PHP and Apache on my local testing
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE
I have a problem with my Apache Axis 1.4 service, using the SOAPMonitor which
I have a problem when I use Apache::DBI in child processes. The problem is
Have a very strange problem with Apache .htaccess URL Rewriting and Redirection. Here's my

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.