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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:13:54+00:00 2026-05-14T03:13:54+00:00

I am learning facelets and Seam and I’m facing the following problem: I have

  • 0

I am learning facelets and Seam and I’m facing the following problem: I have 2 xhtml files, one includes the other and each one has its own Seam component as backing bean. I want to send and object to the included facelet and obtain that object in the backing bean corresponding to the included facelet. I’ll take an example to explain better the situation:

  • registration.xhtml with Seam component as backing bean Registration.java. In this class I have an object of type Person
  • address.html with Seam component as backing bean Address.java. In this class i want to obtain the Person object from the Registration component and set the address.
  • registration.xhtml includes the address.xhtml and passes an object using

How to obtain this object in Address bean? Will be the same reference of the object from the Registration bean? ui:param is the solution of passing this object or there is another solution for that? (maybe f:attribute, but even in this case how do I obtain the object in bean)

This example is simple and not necessarily realistic but I have a similar problem and I don’t know how to solve it.

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-14T03:13:54+00:00Added an answer on May 14, 2026 at 3:13 am

    You could use a Page action to wire your bean

    <page view-id="/registration.xhtml">
        <action execute="#{registrationBackingBean.wire}"/>
    </page>
    

    …

    @Name("registrationBackingBean")
    public class RegistrationBackingBean {
    
        @In(required=false)
        private Person person;
    
        @In(required=false)
        private Address address;
    
        public void wire() {
            person.setAddress(address);
        }
    
    }
    

    If you want to wire during an initial request (GET), do as follows

    <page view-id="/registration.xhtml">
        <action execute="#{registrationBackingBean.wire}" if="#{empty param['javax.faces.ViewState']}"/>
    </page>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

learning Jquery and integrating with PHP - getting there, but have one last challenge
Learning rails and something smells a little funny. I have the following form for
Currently learning Scheme/Racket and have problem running this piece of code. (if (or (<
While learning Prolog, I'm trying to solve the following problem, using accumulators: Write a
Learning C# here. I have a monthly process form whereby one can select to
Learning sed, I want to change the drive letter of the following input lines
I would like to do some more learning of facelets. Now that Java is
learning about loops (still a beginner) in VB.net. I have got the below code
Learning php! I have a sql database which contains a table called 'images' which
Learning .NET: I have a form with a split container, I want to load

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.