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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:48:29+00:00 2026-06-06T21:48:29+00:00

I have two primefaces (p:layoutUnit) widgets: a tree in the layoutUnit on the left

  • 0

I have two primefaces (p:layoutUnit) widgets: a tree in the layoutUnit on the left of my page and and a dataArea (to be decided on) in the layoutUnit in the center of my page. I have the tree menu working so that when a node is selected, the appropriate DAO method is called and the object(s) is(are) returned. My trouble is, is that the object is returned to the tree’s form on the left of the page.

My question is: how can I get the returned object(s) to populate in the center of my page? Is there a JSF mechanism to do this?

  • 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-06T21:48:31+00:00Added an answer on June 6, 2026 at 9:48 pm

    You can leverage the select event of the <p:tree> component to issue an ajax call that will update the dataArea of your page based on the selected node:

    For example:

    <p:tree value="#{treeBean.model}" dynamic="true">
       <p:ajax event="select" listener="#{treeBean.onNodeSelect}" update="form2:dataArea"/>
       ...
    </p:tree>
    

    In onNodeSelect, you’ll populate an instance variable on your controller with the value(s) you want to show in dataArea. Setting the update attribute to “form2:dataArea” will cause the page to update the dataArea to the latest state (and pick up the data you’ve placed in the instance variable). Note that “form2:dataArea” is just a guess as to what your second form id and dataArea’s id are labeled as.

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

Sidebar

Related Questions

I have two update panels on a page. And I want to update both
I have two queries that find both the Zip codes, and the States for
JSF 2.0, Primefaces 3.1.1 I have two p:selectOneRadio components: <p:selectOneRadio id=radio1 value=#{inningBean.lastDeliveryType}> <f:selectItem itemLabel=Wide
Have two issues one is showFromToolbar statement format warning issue and another is that
I have two XML files. The first XML has a bunch of nodes that
I have two BizTalk 2010 servers that belong to the same BizTalk group. They
I have two pages load at beginning, login page and register page. Register page
I have two DataGridViews that have the same column schema (although two different DataViews
I have two applications written in Java that communicate with each other using XML
I have a Primefaces dataTable with rowEdit. Two columns contain a selectOneMenu control in

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.