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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:58:31+00:00 2026-06-15T07:58:31+00:00

I am getting error while running this snippet as /facelet/crew/objectMapGossip.xhtml @14,94 value=#{objcetMapBean.searchCrewParam.staffNum}: Property ‘staffNum’

  • 0

I am getting error while running this snippet as /facelet/crew/objectMapGossip.xhtml @14,94 value="#{objcetMapBean.searchCrewParam.staffNum}": Property 'staffNum' not readable on type java.lang.String
please help me out from this small error .. I am new to jsf so stucking at things basic …
Thanks in advance 🙂

This is my backing bean…
import javax.faces.bean.ManagedBean;

@ManagedBean(name = "objcetMapBean")

public class ObjectMapGossip {
private SearchCrew1 searchCrewParam = new SearchCrew1("212","kart","asd");

public SearchCrew1 getSearchCrewParam() {
    return searchCrewParam;
}

public void setSearchCrewParam(SearchCrew1 searchCrewParam) {
    this.searchCrewParam = searchCrewParam;
}

public String search() {
    return "success";
}

}

class SearchCrew1 {

public SearchCrew1() {
    super();
}
 /**
 * @param staffNum
 * @param surName
 * @param rank
 */
public SearchCrew1(String staffNum, String surName, String rank) {
    super();
    this.staffNum = staffNum;
    this.surName = surName;
    this.rank = rank;
}

private String staffNum;

private String surName;

private String rank;

public String getStaffNum() {
    return staffNum;
}

public void setStaffNum(String staffNum) {
    this.staffNum = staffNum;
}

public String getSurName() {
    return surName;
}

public void setSurName(String surName) {
    this.surName = surName;
}

public String getRank() {
    return rank;
}

public void setRank(String rank) {
    this.rank = rank;
}

}

This is my jsf page

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets">
<h:body>
    <ui:composition template="/facelet/layout/mainlayout.xhtml">
        <ui:define name="content">
            <h:form>
                <div align="left">
                    <h:outputText value="Staff Number: " />
                    <h:inputText id="staffnum" size="6" value="#    {objcetMapBean.searchCrewParam.staffNum}" />
                    <h:outputText value="Surname: " />
                    <h:inputText id="surname" size="10" maxlength="25"  value="# {objcetMapBean.searchCrewParam.surName}"  />
                    <h:outputText value="Rank: " />
                    <h:inputText id="rank" size="3"  value="#{objcetMapBean.searchCrewParam.rank}"  />
                    <h:commandButton value="Search" action="#{objcetMapBean.search}" />
                </div>
        </h:form>
        </ui:define>
    </ui:composition>
    </h:body>
</html>
  • 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-15T07:58:32+00:00Added an answer on June 15, 2026 at 7:58 am

    We can use h:dataTable from jsf tag and map easily.
    http://www.mkyong.com/jsf2/jsf-2-datatable-example/

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

Sidebar

Related Questions

I am getting this error While running this LoadError: Expected /home/user/Desktop/Tripurari/myapp/app/models/host.rb to define Host##
I am getting this weird error while running cucumber test: ERROR Mongo::OperationFailure: Database command
I recently started getting this error while running gems or bundler. The only thing
I'm getting this error while running the login application (Using GWT-RPC). How can I
I am getting this error while running a hadoop pipes program. The program compiles
I'm getting this error while running tomcat 'java.lang.ClassNotFoundException: com.mysql.jdbc.Driver'. I'm using a combination of
cannot load c:/PHP5/php5apache2_2.dll into server I am getting this error while running apache 2.2
I have a problem running RoR project. I am getting this error while running
hiii i am getting this error while running test for my fluent nhibernate application.
I'm getting this error while running simulator. The project was not created on this

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.