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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:16:07+00:00 2026-05-23T15:16:07+00:00

now I need help with setting variable. I have two entities Season and Tournament,

  • 0

now I need help with setting variable.
I have two entities Season and Tournament, tournament belongs to season.
So now I created one season and I see the list of this season. I have here one button “select” which should save actual season to session scope:

public String selectSezona(Sezona sezona){
        this.sezona = sezona;
        return "index";
    }

so now I have selected one season and now I wanna created tournament in this season but I dont wanna select season so I write this:

<h:inputHidden value="#{turnaje.turnaj.setSezona(sezony.sezona)}" />

this is hidden input text which should assign actual season to this tournament but this wont work 🙁 . Error is: javax.el.PropertyNotWritableException . I see that season is set because I see its name. How tou figure this issue ? please help
thx

edit:

I also have getter and setter in tournament

@ManyToOne
private Sezona sezona;

public Sezona getSezona() {
        return sezona;
    }

    public void setSezona(Sezona sezona) {
        this.sezona = sezona;
    }

but why should I have method setSezona without parameter ?

  • 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-23T15:16:08+00:00Added an answer on May 23, 2026 at 3:16 pm

    Well, you have a selectSezona(...) method, but not a setSezona(...).

    In fact, your hidden field would require a property as its value, not a method.
    Your setSezona(...) doesn’t return anything, however, JSF needs a way to get the initial value.
    Thus, you’d need to change the expression to #{turnaje.turnaj.sezona}.

    You’d still get an error, since JSF can’t convert between String and Sezona, so you also need to provide a converter to your hidden field.

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

Sidebar

Related Questions

i'm new at IPhone SDK Developing and now i need some help. I have
Greetings good people - I need some help. I have until now buildt web-pages
I need some help. Here's what I'm getting right now: img ref I need
I've set hibernate.generate_statistics=true and now need to register the mbeans so I can see
I have this regex working but now need to allow numbers without the decimal
We have inherited an ant build file but now need to deploy to both
I have an application on which I am implementing localization. I now need to
I have an activity with one EditText where I need to input numbers only.
I am in need of help setting up a TFS branching structure. The current
I created my own jQuery plugin in 1.4 and now I need a small

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.