Help about h:selectOneListbox PLEASE!!!

hi all
i have a strange problem when working with <h:selectOneListbox>
or <h:selectOneMenu> (I mean UISelectOne component).
When i select one item and submit it, it just work well, but after using another <h:selectOneListbox>
or <h:selectOneMenu> located in another page,
and making just two or three page navigation between these two pages,
without doing any changes to the <h:selectOneListbox>
or <h:selectOneMenu>,
the <h:selectOneListbox>
or <h:selectOneMenu> in the first or the second page doesn't remember its selected value.
here is the source code:
---------------------------------------------testHandler.java----------------
import javax.faces.component.*;
import javax.faces.model.*;
import java.util.*;
public class testHandler {
private List list = new LinkedList();
private Integer ival;
private Object oval;
public testHandler() {
list.add(new SelectItem(new Integer(1), "1"));
list.add(new SelectItem(new Integer(2), "two"));
list.add(new SelectItem(new Integer(3), "three"));
list.add(new SelectItem(new Integer(4), "four"));
public Object getOval() {
return oval;
public void setOval(Object oval) {
this.oval = oval;
public Integer getIval() {
return ival;
public void setIval(Integer ival) {
this.ival = ival;
public void setList(List list) {
this.list = list;
public List getList() {
return list;
-----file2.jsp---------------------------------
<%@ page contentType="text/html; charset=utf-8"%>
<%request.setCharacterEncoding("utf8");%>
<%@ page import ="VE.*"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<jsp:useBean id="bean2" scope="session" class="testHandler" />
<f:view>
<h:form >
<h:selectOneListbox id="s5" value="#{bean2.oval}" >
<f:selectItems value="#{bean2.list}"/>
</h:selectOneListbox>
<h:commandButton value="save"/>
</br>
</h:form>
file
</f:view>
------------------file.jsp------------------------
<%@ page contentType="text/html; charset=utf-8"%>
<%request.setCharacterEncoding("utf8");%>
<%@ page import ="VE.*"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<jsp:useBean id="bean1" scope="session" class="testHandler" />
<f:view>
<h:form >
<h:selectOneListbox id="s5" value="#{bean1.oval}" >
<f:selectItems value="#{bean1.list}"/>
</h:selectOneListbox>
<h:commandButton value="save"/>
</br>
</h:form>
file2
</f:view>
please HELP ME!!!
THANK YOU VERY MUCH
Mohammad GHSEMI HAMED
Message was edited by:
[email protected]

For select components please refer
http://www.oracle.com/technology/products/jdev/101/howtos/jsfselect/jsf_selects.html
http://www.oracle.com/technology/products/jdev/101/howtos/jsfselect/jsf_selects_af.html

Similar Messages

  • Serious Help about JSP? please anyone

    Hello everyone,
    I am newbie on java. just learned java and java servlet. and learning jsp. i got a job interview for java development and jsp. is there anyone can help me out on which part of java and jsp i should pay attention. so i can be success in my interview. please anyone
    Sumit

    It's not that people are rude here, it's just that (in your original question) you seemed to indicate that you had no knowledge of java but were going to be interviewing for a java position and what you wanted from the user community was something you could say in the interview that would give the impression to the interviewer that you were an experienced java professional.
    If you just want pointers with a java interview... well, this is not exactly the forum for that question. I will give you one piece of advice anyway: Be honest with who your interviewer. Tell them you want a java job but have little to no experience but are willing to spend extra time to become proficient. If hired, this means you can spend time getting some OJT without worrrying about getting canned.
    If you try to BS your way into a job, they may expect you to already know alot. Your first day on the job, it will be apparent you don't know squat and it won't be too long after that before you will be back on the street looking for work.
    HTH,
    P.

  • Need help about general functionality- please help reminders/contacts

    Hello All
    I am currently working on putting together an informational email on the new features with IOS 5, my biggest drawback is that the group IPAD device is currently not available so this is a big roadblock for verifying information.
    I basically have two questions, what do reminders consist of now with the new IOS5, it was my understanding that reminders are different then calendar items in that on the outlook side they are considered to be Tasks/To-do items and now this feature. Now how does this differ from a calendar reminder for say an appt you have coming in the next hour, does that stay in the calendar view or does the reminder pop up show up somewhere in reminders? I hope I am being clear if not please let me know.
    Secondly, when a person has an existing device and contacts. How do their existing contacts blend in with contacts they have on their firm accounts? Do they get showed seperately (Business, Personal) Any help you can provide is greatly appreciated.

    So how many tweets at night? FB messages?
    Try this: Charge it to 100% but also put it in Airport Mode. If you are still close to 100% in the morning something is using cell time, next you'll just have to narrow down what it is.

  • HT5312 I don't have a rescue email option and i want to reset the security questions , so what shall i do?? I have been trying to do so for about 2 weeks , please can you  help???

    I don't have a rescue email option and i want to reset the security questions , so what shall i do?? I have been trying to do so for about 2 weeks , please can you  help???

    You will need to contact Support in your country to get the questions reset : http://support.apple.com/kb/HT5699
    When they've been reset you can then use steps 1 to 7 half-way down the HT5312 page that you posted from to add a rescue email address for potential future use

  • I have problem with my I PHONE 4S  Always its time out then i must restart my I phone please any help about this case ??

    i have problem with my I PHONE 4S  Always its time out then i must restart my I phone please any help about this case ??

    Hello Pllumb,
    It sounds like you are unable to turn on Wi-Fi because the option is grayed out in Settings. Use these steps from the following article named:
    iOS: Wi-Fi settings grayed out or dim
    http://support.apple.com/kb/ts1559
    Restart your iOS device.
    Make sure that airplane mode is off by tapping Settings > Airplane Mode.
    Reset the network settings by tapping Settings > General > Reset > Reset Network Settings.
    This will reset all network settings, including Bluetooth pairing records, Wi-Fi passwords, VPN, and APN settings.
    Make sure that your device is using the latest software. To do so, connect your device to your computer and check for updates in iTunes.
    If you still can't turn Wi-Fi on, please contact Apple for support and service options. If you can turn Wi-Fi on but are experiencing other issues with Wi-Fi, please see these steps.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Hi, Please tell me how can I send the Music Videos to the I Pod From the Computer, I'm so upset about this problem, Please help me ASAP.

    Hi, Please tell me how can I send the Music Videos to the I Pod From the Computer, I'm so upset about this problem, Please help me ASAP.

    Here:
    iTunes 11 for Mac: Set up syncing for iPod, iPhone, or iPad
    or
    iTunes 11 for Windows: Set up syncing for iPod, iPhone, or iPad

  • Please help  about HSinglelineEntry

    hi all
    I am trying to use org.havi.ui.HSinglelineEntry to implement username and password entry but it does not work. I am using Xletview 0.3.6. any help will be appriciated. please give me snippet of code or any reference.
    Thanks
    Cody

    Hi,
    It seems that the HSinglelineEntry class has a empty implementation. You just can compile your code.
    Arno

  • HT4241 I can see a mirrored image of my laptop screen but it won't let me play videos something about my display please help

    I can see a mirrored image of my laptop screen but it won't let me play videos something about my display please help

    Can you send Messages with videos?
    Have you tried:
    iOS: Troubleshooting Messages

  • PLEASE HELP about my brand new Nokia N78. multimed...

    i just bought a Nokia N78 Unlocked 3G GSM Phone with GPS, MP3 Player & 3.2 Megapixel Camera
    im having trouble with the multimedia key. when i pres it, its not showing the multimedia menu. it just refresh the screen.
    Solved!
    Go to Solution.

    03-Nov-2008 07:42 PM
    flak4 wrote:
    Suggest a hard reset (*#7370#* from standby). If that doesn't work, try upgrading the firmware.
    JFTR, that's a soft reset. A hard reset is achieved by powering on the phone with the '*', '3' and 'multimedia' keys pressed down.
    What you're probably thinking of as a soft reset (*#7780#) is just a "revert to factory default settings". Nothing is formatted.
    Was this post helpful? If so, please click on the white "Kudos!" star below. Thank you!

  • If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!

    All my Windows operating Systems are set to use the UI Culture: German
    With Update-Help or Save-Help you can download PowerShell help in different (any) language by use of the –UICulture parameter.
    Update-Help –UICulture en-US
    Because my Windows OS is set to use the German UI Culture and the Cmdlet Get-Help depends on it, I cannot access PowerShell help in a different Language (English) with Get-Help.
    There is still no translated German PowerShell help and even if I have installed the en-US verbose Help files I cannot use it (easily)!
    I made a suggestion on Microsoft Connect to add the –UICulture Parameter to the Get-Help Cmdlet, to make it possible to call Help in a different language then the Windows Ui Culture.
    As a workaround until then you can use the  .NET Class [System.Threading.Thread]::CurrentThread.CurrentUICulture to set the UI Culture and get Help in a different language.
    Function Get-HelpUICulture {
    param (
    [String]$HelpSearchString,
    [String]$UICulture
    # remember the UICulture
    $OldCulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
    trap
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # set thread to given UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $UICulture
    # call powershell help in given language
    Get-Help $HelpSearchString -Full
    # reset UICulture
    [System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldCulture
    # Example: call PowerShell en-US help in verbose English:
    Get-HelpUICulture -HelpSearchString Get-Command -UICulture ‘en-US’
    If you want to access the PowerShell 3.0 Help in another language please vote for my Connect suggestion!
    https://connect.microsoft.com/PowerShell/feedback/details/767899/please-add-uiculture-to-get-help
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

    Hello JosKW
    Thank you for your suggestions!
    In my 3 Part Blog Series about the new 3.0 PowerShell,  I offer a full blown Proxy Function for the Get-Help cmdlet to solve this better.
    For now I have the first two Articles Published at my Blog, the Third Part will follow soon:
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help Basics
    http://www.admin-source.de/BlogDeu/497/powershell-3-0-updateable-help-update-help-save-help-und-get-help-grundlagen
    PowerShell 3.0 updateable help Update-Help, Save-Help und Get-Help using
    http://www.admin-source.de/BlogDeu/523/powershell-3-0-updateable-help-update-help-save-help-und-get-help-anwenden
    The Articles are written in German. I think you as a Dutchman can read this.
    Or you can use the Translate Button on my Page, to use Google Translate Service to read this in the Language of your choice. ;-))
    Cheers Peter
    Please click “Mark as Answer” if my post answers your question and click
    “Vote As Helpful” if my Post helps you.
    Bitte markiere hilfreiche Beiträge von mir als “Als Hilfreich bewerten” und Beiträge die deine Frage ganz oder teilweise beantwortet haben als
    “Als Antwort markieren”.
    My PowerShell Blog http://www.admin-source.info
    [string](0..21|%{[char][int]([int]("{0:d}" -f 0x28)+('755964655967-86965747271757624-8796158066061').substring(($_*2),2))})-replace' '
    German ? Come to German PowerShell Forum!

  • Not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0

    Hi all,
    DB:11.2.0.3.0
    EBS:12.1.3
    O/S: Sun Solaris SPARC 64 bits
    I am not able to view Forms Server version in Help: About Oracle Applications after the forms upgrade 10.1.2.3.0 after the forms upgrade 10.1.2.3.0 as per note:Upgrading OracleAS 10g Forms and Reports to 10.1.2.3 (437878.1)
    Java/jre upgraded to 1.7.0.45 and JAR files regenerated(without force option). Able to opne forms without any issues.
    A)
    $ORACLE_HOME/bin/frmcmp help=y
    FRM-91500: Unable to start/complete the build.
    B)
    $ORACLE_HOME/bin/rwrun ?|grep Release
    Report Builder: Release 10.1.2.3.0 - Production on Thu Nov
    28 14:20:45 2013
    Is this an issue? Could anyone please share the fix if faced the similar issue earlier.
    Thank You for your time
    Regards,

    Hi Hussein,
    You mean reboot the solaris server and then start database and applications services. We have two databases running on this solaris server.
    DBWR Trace file shows:
    Read of datafile '+ASMDG002/test1/datafile/system.823.828585081' (fno 1) header failed with ORA-01206
    Rereading datafile 1 header failed with ORA-01206
    V10 STYLE FILE HEADER:
            Compatibility Vsn = 186646528=0xb200000
            Db ID=0=0x0, Db Name='TEST1'
            Activation ID=0=0x0
            Control Seq=31739=0x7bfb, File size=230400=0x38400
            File Number=1, Blksiz=8192, File Type=3 DATA
    Tablespace #0 - SYSTEM  rel_fn:1
    Creation   at   scn: 0x0000.00000004 04/27/2000 23:14:44
    Backup taken at scn: 0x0001.db8e5a1a 04/17/2010 04:16:14 thread:1
    reset logs count:0x316351ab scn: 0x0938.0b32c3b1
    prev reset logs count:0x31279a4c scn: 0x0938.08469022
    recovered at 11/28/2013 19:43:22
    status:0x2004 root dba:0x00c38235 chkpt cnt: 364108 ctl cnt:364107
    begin-hot-backup file size: 230400
    Checkpointed at scn:  0x0938.0cb9fe5a 11/28/2013 15:04:52
    thread:1 rba:(0x132.49a43.10)
    enabled  threads:  01000000 00000000 00000000 00000000 00000000 00000000
    Hot Backup end marker scn: 0x0000.00000000
    aux_file is NOT DEFINED
    Plugged readony: NO
    Plugin scnscn: 0x0000.00000000
    Plugin resetlogs scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign creation scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Foreign checkpoint scn/timescn: 0x0000.00000000 01/01/1988
    00:00:00
    Online move state: 0
    DDE rules only execution for: ORA 1110
    ----- START Event Driven Actions Dump ----
    ---- END Event Driven Actions Dump ----
    ----- START DDE Actions Dump -----
    Executing SYNC actions
    ----- START DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK' (Async) -----
    Successfully dispatched
    ----- END DDE Action: 'DB_STRUCTURE_INTEGRITY_CHECK'
    (SUCCESS, 0 csec) -----
    Executing ASYNC actions
    ----- END DDE Actions Dump (total 0 csec) -----
    ORA-01186: file 1 failed verification tests
    ORA-01122: database file 1 failed verification check
    ORA-01110: data file 1:
    '+ASMDG002/test1/datafile/system.823.828585081'
    ORA-01206: file is not part of this database - wrong
    database id
    Thanks,

  • 9.5.3 Help / About reports version as 9.0.0

    After downloading AcrobatUpd953_all_incr.msp, installing it to patch Acrobat from 9.5.2 to 9.5.3, and rebooting, when I select Help / About in Acrobat, the dialog shows the version of Acrobat as 9.0.0. When I open Control Panel / Programs and Features, it shows the version of Acrobat as 9.5.3, when I look at the properties of acrobat.exe the file version is 9.5.3.305, and in Acrobat if I open Help / About Adobe Plugins, all the plugin versions are shown as 9.5.3.305. So it looks as though it's just the About dialog that is screwed.
    I checked with a friend who also has Acrobat 9, and he sees exactly the same bug. OS on both machines is Windows 7 x64.

    I tried this on my Win7 64 bit machine and its working fine.Please try repairing your Acrobat from control panel and see if it works.

  • Change info displayed on splash screen Help-- About

    When I open NI Multisim and click on Help-->About, the splash screen displays the following information in the upper left hand corner of the splash screen:
    test
    Benjamin Franklin Institute
    Serial#
    How/where do I change the word "test" so that it doesn't appear on all the classroom PCs?  Where is the source of the identifying information that appers on the splash screen?
    Thanks.

    Hello,
    In this case “test” is making reference to the Register Owner. This information is requested during the installation process. You will be able to modify this information by modifying a key in the Windows Registry.  Please refer to the link below for more information.
    http://digital.ni.com/public.nsf/allkb/0385A6FBAADE844286256DDB0066FCE8?OpenDocument
    Regards,
    MCOTO

  • Need help about using sqlplus_exec_template.sql

    I tried to use sqlplus_exec_template.sql to execute our deployed mapping. At dos prompt I typed :
    C:\>sqlplus username/[email protected] @C:\OWB\owb\rtp\sql\sqlplus_exec_template.sql
    rtschema localhost SQL_LOADER CRD_APPL_MAPPING SKIP=0,LOAD=0,LOG_FILE
    NAME=cvcpmapl.log,DIRECT=true,PARALLEL=false,ERRORS=50,ROWS=200,READSIZE=65536,BINDSIZ E=50000,AUDIT=true,PURGEGROUP=wb,target_store_uoid=F0E49963A42E4DB6AFF
    85FFF8E05AB9E
    SQL*Plus: Release 9.2.0.1.0 - Production on Fri May 16 18:32:25 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    Session altered.
    Role set.
    Stage 1: Decoding Parameters
    | location_name=localhost:1521:odb
    | task_type=SQL_LOADER
    | task_name=CRD_APPL_MAPPING
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    =================================================
    I am quite sure the task name and task type is correct. The task name is same as the one I saw in runtime repository schema -> table WB_RT_TASKS -> column TASK_NAME
    , but I am very doubt about what should be the correct input for LOCATION, system parameter and custom parameter.
    Can anyone give some help about where could I find the correct input for those parameter?
    Thx in advance.
    Rds
    CH

    I 've tried to use :
    sqlplus username/[email protected] @C:\OWB\owb\rtp\sql\sqlplus_exec_template.sql
    rtschema OWBLOCATION SQL_LOADER CRD_APPL_MAPPING "," ","
    where OWBLOCATION I have used the deploy location of the mapping for my case, created within OWB. The value is CCS_DEPLOY.
    But the error is the same :
    ======================================================
    Stage 1: Decoding Parameters
    | location_name=CCS_DEPLOY
    | task_type=SQL_LOADER
    | task_name=CRD_APPL_MAPPING
    Stage 2: Opening Task
    declare
    ERROR at line 1:
    ORA-20001: Task not found - Please check the Task Type, Name and Location are
    correct.
    ORA-06512: at line 261
    ========================================================
    could you tell me the SQL used by WB_RT_API to get the task from runtime schema. So that I could check the correct location myself.
    Or how could I view the pl/sql of WB_RT_API_EXEC which is wrapped.
    Thx for your help.
    Rg.
    CH

  • Need Help about Spatial Data Load - Mapviewer

    Hello everybody,
    I need an immediate help about spatial data load. I installed Oracle mapviwer quick start and try to work on it. However, I could not pass the load step. My questions are;
    1- Where can I find and download my country's data set (spatial data)
    2- With mapviwer, how can I load spatial data to my tables on database (Oracle). Those tables have sdo_geometry columns and I want to query location data, but could not load
    Regards,
    Dilek

    For Mapviewer questions, please post in the following forum:
    MapViewer
    Thanks

Maybe you are looking for