473,386 Members | 1,815 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

trouble in combo box

hi all...
i have used combo box in my application where using the action class i have inserted the values into the database. the bean is giving the already stored value and fails to refresh when the combo is changed.
platform - JSF
OS - Windows
Version - 2000
Language J2EE
source code:
declaration in bean:
private String status;
private String reviewStatus;
........
public javax.faces.model.SelectItem[] getReviewStatus(){
javax.faces.model.SelectItem[] reviewStatus = {
new javax.faces.model.SelectItem(new Integer(1),"Pending"),
new javax.faces.model.SelectItem(new Integer(2),"Pending Reviewed"),
new javax.faces.model.SelectItem(new Integer(3),"Reviewed")
};
return reviewStatus;
}

public void setReviewStatus(String String){
reviewStatus=String;
}

public javax.faces.model.SelectItem[] getStatus(){
javax.faces.model.SelectItem[] status = {
new javax.faces.model.SelectItem(new Integer(1),"Active"),
new javax.faces.model.SelectItem(new Integer(2),"Inactive")
};
return status;
}
result:
i dont get error but the value does't get changed in the JSF from but it gets updated in database.
Feb 7 '07 #1
2 1346
acoder
16,027 Expert Mod 8TB
Welcome to The Scripts.

I'll move this to the Java forum.
Feb 7 '07 #2
rengaraj
168 100+
Code Tags ??
Feb 18 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: fstenoughsnoopy | last post by:
Ok the complete story. I have a Contact Table, Query and Form, that are used to input and store the contact info for customers. They have FirstName, LastName and Address as the primary key...
1
by: luanhoxung | last post by:
hi !! in my continuous form view, i have a decription field, it is not bound any fields of the form. it decribes for my combo box. my trouble is: when i choose my combo box for new record, the...
1
by: Jim | last post by:
I have a new database in which I have a form where in one field I type a letter A, B, C or D and the field next to it autofills (auto lookups) with a description associated with the specific...
1
by: Giordano | last post by:
I am trying to construct a report menu that will allow the user to select any combination of 3 variables from 3 combo boxes (Select Subject/SelectCategory/Date Range). There are 2 possible options...
3
by: chris | last post by:
I'm having trouble making this work: I have an unbound form with one unbound combo box field on it. The combo box's row source type is a query that has a username field and a security code...
8
by: Michael R | last post by:
Dear users and experts, An unbound combo box in my form is responsible for changing a city name for an update query that creates a temprorary table which the form uses as its record source. In...
1
patjones
by: patjones | last post by:
Hi all: I cannot figure this out for the life of me. I've got a combo box on my form called cboTitleCurrent. I set it's properties when the form opens as follows: With cboTitleCurrent ...
1
by: omar.norton | last post by:
I am trying to create a from with a series of combo boxes that each query a different field (called Specific01, Specific02 etc., except the first field which is called Condition). Each combo box...
1
by: Jim1234 | last post by:
When i enter in a certain pin code for example "2222". i want the number 2 selected on combo box in next form. I have code for pin.. but how do you select a specific number in a combo box once...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.