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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:11:56+00:00 2026-05-25T01:11:56+00:00

I am using rich:suggestionbox . Select a suggestion from the suggestion box Then save

  • 0

I am using rich:suggestionbox.

  • Select a suggestion from the suggestion box
  • Then save my form
  • It raises the validation error saying rich suggestionbox Conversion Error setting value '568-UNIMED-2005' for 'null Converter'.

I need help with

  • What is wrong with my code?
  • How to fix the issue?

Here is my LcInfo bean

@AutoCreate
@Scope(ScopeType.CONVERSATION)
@Name("lcInfo")
@Entity
@Table(name="lc_info")
public class LcInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    private ItemIndentMast itemIndentMastBean;

    public LcInfo() {
    }


    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    @Column(unique=true, nullable=false)
    public Integer getId() {
        return this.id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    //bi-directional many-to-one association to ItemIndentMast
    @ManyToOne
    @JoinColumn(name="item_indent_mast", nullable=false)
    public ItemIndentMast getItemIndentMastBean() {
        return this.itemIndentMastBean;
    }

    public void setItemIndentMastBean(ItemIndentMast itemIndentMastBean) {
        this.itemIndentMastBean = itemIndentMastBean;
    }


    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + id;
        return result;
    }

    @Override
    public boolean equals(Object object) {
        if (this == object) return true;
        if (object == null) return false;
        if (getClass() != object.getClass()) return false;
        LcInfo other = (LcInfo) object;
        return id.equals(other.id);
    }


}

Here is my XHTML source with a rich:suggestionbox.

            <h:inputText value="#{lcInfo.itemIndentMastBean}" id="itemIndentMastBean" required="true"/>
            <rich:suggestionbox for="itemIndentMastBean"
                suggestionAction="#{lcInfoController.suggestion}"
                var="result" 
                fetchValue="#{result}"
                minChars="3"
                nothingLabel="No capitals found" >
                <f:facet name="header">
                    <h:outputText value="Select Indent Number" style="font-size: 10px; padding-left: 5px"/>
                </f:facet>
                <h:column>
                    <h:outputText value="#{result}" />
                </h:column>
            </rich:suggestionbox>                

Here is the controller code how suggestions are loaded from controller

@Name("lcInfoController")
@Scope(ScopeType.CONVERSATION)
@AutoCreate
public class LcInfoController {


    public List<ItemIndentMast> suggestion(Object query) {
        String queryText = query.toString();
        if(StringUtils.isBlank(queryText) || queryText.length() < 3) {
            return Collections.emptyList();
        }

        return itemIndentMastService.filterIndent(queryText+"%");
    }

}
  • 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-25T01:11:57+00:00Added an answer on May 25, 2026 at 1:11 am

    make the input recieve a string value and not a bean :
    change

    value="#{lcInfo.itemIndentMastBean}",
    

    to

      value="#{lcInfo.someString}",
    

    JSF does not know how handle your ItemIndentMast BEAN.
    alternatevly you can create a converter for that bean (convert string to bean)
    http://www.javabeat.net/tips/70-create-simple-custom-converter-implementation.html

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

Sidebar

Related Questions

I'm currently using the Rich Text Editor from the YUI framework. But I don't
when I'm using rich:message inside my form , I see the message just under
I'm using a rich text editor in my asp.net mvc form (nicedit with a
I am using a rich text box to enter some variables. I am restricting
Iam using tinymce_hammer as a rich text editor. But now i have a form
I am currently using a rich:dataTable to display some information from the database. I
I'm using the component rich:fileUpload for uploading files to my server the problem is
Using 8.5.3 UP1 with the Hotfix for the multi-rich text control issue. I am
I am using php to output some rich text. How can I strip out
I've been using Ext JS as my rich-widget toolkit for a while, but I'm

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.