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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:02:55+00:00 2026-05-26T20:02:55+00:00

As suggested by BalusC as an answer to this question , I wanto to

  • 0

As suggested by BalusC as an answer to this question, I wanto to create a managed property like this:

@ManagedProperty("#{paramValues.freetext}")
private String[] ftValues;

public String[] getFtValues(){ 
    return ftValues;
}

public void setFtValues(String[] values){
    ftValues = values;
}

In my project every managed bean declaration and settings has done in the faces-config.xml file. Putting the annotation in the code as suggested, doesn’t bring me any result.
ftValues is always null, even if I have one or more <input name="freetext">
Is it possible that the annotation is not take into consideration because the main configuration technique use the XML file?

How can I put the ManagedProperty declaration into the faces-config.xml? I tried adding

<managed-property>
    <property-name>ftValues</property-name>
    <property-class>java.lang.String[]</property-class>
    <value>#{paramValues.freetext}</value>
</managed-property>

in the appropriate managed bean section, but it crashes with this error

Bean or property class java.lang.String[] for managed bean myBean cannot be found.

  • 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-26T20:02:56+00:00Added an answer on May 26, 2026 at 8:02 pm

    Indeed, the annotations are ignored whenever you declare the bean in faces-config.xml. If removing the bean from faces-config.xml is really not an option for some unclear reason, then you need to remove the <property-class> to fix the problem. JSF can perfectly figure it by itself.

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

Sidebar

Related Questions

Im new to JSF 2. My question is related to BalusC's answer to this
This is a suggested re-up on a question I had before. Its really and
As Andrew Hare suggested in his answer : Create a field to store all
Recently in an answer it was suggested to me that this: public interface Operation<R
As suggested in several answers to this question: What is the name of this
a colleague suggested I give this framework a try. My question is, does anyone
After trying different suggested solutions I haven't managed to figure out this one. I'm
campbell suggested I ask a new question for this issue so here I go.
As suggested by (among others) Kazi Manzur Rashid in this blog post , I
On su it was suggested to ask this here... Looking for a way to

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.