h:selectManyListbox creating problem in Navigation.

Hi ALL,
I m getting 2 problems while working with selectManyListbox in JSF.
First Problem:
My requirement is to transfer values from one List box(ie selectManyListbox) to another, while doing so I m calling the same page in the navigation, but while navigating I m not able to maintain old values of selectItem( ie every time it is initializing � refer java code)
My jsp code is as follows:
<f:view>
<h:form id="frm">
<h:panelGrid columns="3" border="1">
<h:panelGroup>
<h:selectManyListbox id="from" Value="#{up.fromValues} " rendered="#{up.fromFlag} " >
<f:selectItems value="#{up.fromList} " />
</h:selectManyListbox>
</h:panelGroup>
<h:panelGroup>
<h:panelGrid columns="4" border="1">
<h:commandButton value="Left" action="#{up.removeOne} " />
<h:commandButton value="LeftAll" action="#{up.removeAll} " />
<h:commandButton value="RightAll" action="#{up.moveAll} " />
<h:commandButton value="Right" action="#{up.addOne} " />
</h:panelGrid>
</h:panelGroup>
<h:panelGroup>
<h:selectManyListbox id="to" value="#{up.toValues} " rendered="#{up.toFlag} " >
<f:selectItems value="#{up.toList} " />
</h:selectManyListbox>
</h:panelGroup>
</h:panelGrid>
</h:form>
</f:view>
And Java code is :
//fromList � First List from which transferring to 2nd list
//toList � To list
//fromString �constant string from which adding options to select box
private List<SelectItem> fromList;
private List<SelectItem> toList;
String[] fromValues;
String[] toValues;
String[] fromString = { "1111", "2222", "3333", "4444" };
String[] toString = {"aaaa","bbbb" };
public List<SelectItem> getFromList( ) {
if (fromList == null) {
fromList = new ArrayList<SelectItem>();
for (int i = 0; i < fromString.length; i++) {
SelectItem item = new SelectItem() ;
item.setValue( fromString[ i]);
item.setLabel( fromString[ i]);
fromList.add( item);
return fromList;
In the above code initially I m checking for fromList == null, 1st time this condition will be true, but when I call 2ed time ie values are put into fromList, so this condition should become false, but every time this condition is becoming true and initializing fromList all the time.
Can anyone please tell me where am I going wrong??
And code to transfer one option from one select box to another is as follows:
public String addOne() { //This will be called when �Right� button is clicked
for (int i = 0; i < fromValues.length; i++) {
SelectItem item = new SelectItem() ;
item.setValue( fromValues[ i]);
item.setLabel( fromValues[ i]);
toList.add(item) ;
for (int j = 0; j < fromList.size( ); j++) {
SelectItem it = (SelectItem) fromList.get( j);
// it.setValue( fromList. get(j));
if (fromValues[ i].equals( it.getValue( ))) {
fromList.remove( j);
return "addOne";
Second Problem :
In jsp page as I m using 2 selectManyListbox, until I select one option from both the select boxes, I m not able to submit the form on clicking on commandButton.
For eg: if I want to transfer �aaa� from first select box ie box1 ={aaa,bbb,ccc} to box2 ={xxx,yyy} , if I select only �aaa� and click on �Right�(commandButton ), it is not submitting the request. IF I select �aaa� and any one of box2 option ( xxx or yyy) and press �Right� then I m able to pass request(ie able to submit the form).
But I want to submit by selecting only one option from select box (ie box1)
Can anyone guide me???
Thanks in advance�.

First Problem solution:
Here i did a silly mistake in faces config...ie mananged bean scope I had given was request..so in the next request i was loosing old values...
"I changed the scope to session"
Second Problem :
in commandButton i used another additional attribute ie immidiate = true..
tht's all................

Similar Messages

  • Problem with navigation and masthead by changing languages with Anonymous

    Hi All,
    i have a problem with navigation and masthead by changin the language when accessing as anonymous user.
    Ive created two additional users anon_de  (with language german )and anon_en (for english).
    I've created also two links in the in masthead:
    /irj/portal/anonymous?guest_user=anon_en and /irj/portal/anonymous?guest_user=anon_de
    When i choose "de" for the first time it works fine, but when i choose "en" again the language in the content are is changing to english again, but not in navigation and masthead. When i click again on link for "en" the languge is set to english. Strange thing is that when i click on "de" instead the portal content change to german but masthead and navigation are in english now, as it should be before....
    It seems that masthead and navigation have always prevoius language selected.
    Do you know, what could be the reason of that strange behavior?
    Thanks for help
    Karol

    Hi Detlev,
    you are right. the user is not "updated" fast enough... the strange thing is, that it works by the first time i change the language...
    well.. i can implement that workaround as you suposed, but it would be a really workaround as the same page will be requestes second time, causing requests number to be double..
    Thanks for help
    ps. i forgot to mark this message as question to give points.. if you tell me how i can change that ill reward your answer..

  • Problems with navigation when deploy application on WebLogic 10.3

    Hi! I have problems with navigation when I deploy my application on Weblogic server 10.3. In my application I have two pages. One page where I can see the records. In this page I have button Create with action to secound jspx page. When I press this button then the first form (where I could see all records) is empty - the create operation worked, but navigation to second page not. Navigation rules is in adf task flow. In default server all works correct. Where is the problem?
    Maybe when I deploy my application I need specialy deploy adf task flow or somewhere write something? If so, then can you explain me where? Any suggestions what to do.
    Best regards!

    I have in log:
    2009.26.3 20:12:52 oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImp
    l setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfi
    nternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    2009.26.3 20:12:52 oracle.adfinternal.controller.util.model.AdfmInterface initia
    lize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    2009.26.3 20:12:52 oracle.adfinternal.controller.metadata.provider.MdsMetadataRe
    sourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    2009.26.3 20:12:52 oracle.adf.controller.internal.metadata.MetadataService$Boots
    trap add
    INFO: ADFc: Loading bootstrap metadata from '/WEB-INF/adfc-config.xml'.
    2009.26.3 20:12:54 oracle.adf.share.security.providers.jps.CSFCredentialStore fe
    tchCredential
    WARNING: Unable to locate the credential for key AUGI in D:\bea\user_projects\do
    mains\base_domain\config\oracle.
    2009.26.3 20:12:54 oracle.adf.share.jndi.ReferenceStoreHelper throwPartialResult
    Exception
    WARNING: Incomplete connection information
    Edited by: Debuger on Mar 26, 2009 11:18 AM

  • How can i create a additional navigation bar

    Hi,
    i'm searching for a solution to create a additional navigation bar for my website. I created the site in German. Now i have to add the website in the English version. The problem is now, that the navigation bar will not check, that i will have a seperated version of the site in English.
    Anybody there to help me out?

    What you need to do is create the English and German sites as totally new sites so you have one site named English and one named German and you won't need to create any new navigation menus.  Just link the sites together.
    If you really want to create a new nav menu, then turn off the page template nav menu by opening the Inspector and going to Page, then check the boxed 'hide nav menu' and 'don't include in nav menu' and create your own text based nav menu by using either shapes of text boxes and then creating Hyperlinks between the pages.

  • I want to go back to the previous 2014.2 version.  .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    2014 .3 is much too buggy and full of error messages. Creating problems as I am on a timeline with my client and I don't have time to fool around with all the problems.

    You didn't mention what error(s) you've encountered? A workaround for the most commonly hit problem is here Re: error in Muse : Object UID:U6875 has two (or more) owners: U3633 and U3165
    If you have a copy of your .muse file that has not been saved using 2014.3, you can downgrade by uninstalling Muse and then choose Previous Version in the Filters drop down in the Apps panel of the Creative Cloud desktop app. There will be a popup next to Muse where you can select a prior version to install.

  • When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on running javascript

    When firefox checking for updates and updates found but due to proxy restrictions it unable to download the updates then it continue trying to download that and this time it creating problem on executing javascript and raising errors.

    What are the error messages you are seeing?

  • Firefox have some promlems and it block when is opeining hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    Firefox have some problems and it block when is opening hotmail, in my laptop always have that problem, so i need check my email using another programs...that problem is in my laptop or it´s a problem of navigator??

    I know you can't help with my Yahoo problem, however, apparently at some time in the past I have went to the Sync and tried to figure it out on both my laptop and my desktop, because I have the long snyc key information. However, when I go to try to sync both computers I never get the box to enter that key on either one. That is my problem. So should I try and get a new sync key and see if that works.

  • Using Flash/Actionscript to create PDF Portfolio Navigator

    Hi Guys
    We've been using Acrobat Pro Extended to create PDF
    Portfolio's for a wee while now, and now in order to create a
    'fresh look', my boss is wanting to create custom navigators.
    As the programmer of the team, I've looked into it and found
    out that it involves Actionscripting/Flex. While I'm a decent
    enough programmer, Actionscript isnt something I've used before, so
    I was wondering if there were any online guides or books I could
    buy that
    specifically show how to create a customer navigator for a pdf
    portfolio.
    Any help you can provide will be much appreciated.

    I also have the same goal except I am not even a decent
    programmer. I am actively looking for a place to download the
    working Carosel that is kind of advertised as a capability of
    Acrobat. Even if someone was selling it...I just wanted to chime in
    for support on the topic.

  • Using Flex/Actionscript to create PDF Portfolio Navigator

    Hi Guys
    We've been using Acrobat Pro Extended to create PDF
    Portfolio's for a wee while now, and now in order to create a
    'fresh look', my boss is wanting to create custom navigators.
    As the programmer of the team, I've looked into it and found
    out that it involves a combination of Flex and/or actionscripting.
    While I'm a decent enough programmer, Actionscript & Flex
    are'nt tools that I have used before, so I was wondering if there
    were any online guides or books I could buy that specifically
    show how to create a customer navigator for a pdf portfolio.
    Any help you can provide will be much appreciated.

    I also have the same goal except I am not even a decent
    programmer. I am actively looking for a place to download the
    working Carosel that is kind of advertised as a capability of
    Acrobat. Even if someone was selling it...I just wanted to chime in
    for support on the topic.

  • Best way to create vertical slide navigation

    I would like to create a nice navigation that opens up vertically to help users get around. What is the best way to do this?
    Thanks!
    Van

    Hello,
    The rollover or dropdown menu will be the biggest issue, best way to realize that would be using a widget. I have been trying for another user to create a flyout menu, using effects triggered by advanced actions, but was not able to have this functionality more than once.
    There are some widgets coming with Captivate: did you have a look at the 'GotoSlide_AS3' widget:  it allows you to type in precisely the slides you want to offer navigation to.  It will not dropdown on rollover, user has to click.
    I do not understand your other wish: you do not want all the slides ready in the menu, only the ones that have already been visited? What if they did not visit anything yet, what do you want to show up for navigation? Which links should be disabled?
    Lilybiri

  • Problem while navigation

    Hi All,
    I am facing some problem while navigation. My page is navigating to another page on clicking a command button but when i come back to the previous page bny clicking back button(my new page has a back button for which i have written navigation rule.), it navigates successfully but maintains old values. I want that the page should be reloaded again. How can i do it....???
    Plss help me.....
    Regards

    There are a number of posts in this forum which relate to your question.
    Either put the bean holding your values in request scope or reset the bean when necessary.
    http://forum.java.sun.com/thread.jspa?threadID=704825
    CowKing

  • HT1386 I replaced my iPad and now don't see the iPad backup in iTunes.  Any advice?  Should I use my latest iPhone backup or will that create problems?

    I swapped out my broken iPad for a new one, and went to sync in iTunes and only see my iPhone backups.  Should I use those to back it up (most of the apps are the same across both, and same with the email, calendar, and contacts settings).  Will that create problems if I use the same backup for two devices?  Thanks!

    No it will not create problems but if the iPad that you got is running an iOS less than what you are running on the iPhone, you will have to update the iPad first, before you can restore from the phone backup. You can't use the backup of a newer iOS on a device running an older iOS without updating the device first.

  • I wish to rename my drive letter & not create problems

    I had an SSD installed on my PC.  The SSD is 'C' & kept for programs only. The other drive  letters I have currently got displayed don't make much sense.I started with CD burner & Blu-ray burner & got them away from my own files by changing the drive letters to Y & Z.   A USB drive which is red in color is not R drive.
    I want to give the drive that has all of my music files & its catalog data another letter.  I want to do this without having problem with file associations etc.  How is this done without creating problems?  My photos are also on this drive but I know that I can just direct that program to its catalog location.
    Since an SSD is fast enough it apparently doesn't need to be indexed.  What I have done is plugged a couple of my external drives into the PC & had Windows index every drive except 'C'.  I don't know is indexing will automatically updated the index to reflect the new drive letter for my music files but it It doesn't I'll ask for it to be done again.
    Thanks in advance

    Just before I did this I when I opened iTunes I got the message that said that I must have changed by burner or something to the effect & that I had to re install the program.
    I held of doing this because I wanted to change the drive letter first.  This I did & that appears to have worked.
    I hadn't made any changes to DVD burning software.  I did see that there was a new 64 bit version available so I downloaded & installed it.
    The next time I opened the program I got the same message that I needed to re install the program.  When I went to tell it where the library.itl I must have directed it to the wrong library as it asked me again about my account details & wanted my credit cards details.  Only after I give this information did I find that the library that I had nominated was in fact the account for my wife's iPad.
    So now I have 2 major problems firstly I'm linked to my wife's account where it displays the few things she purchased.  My library was make up 100% from all of my old CD's that I had ripped. nothing else.  How do I connect to the other library.itl file?
    The second problem is that even though I downloaded & & installed a new version of iTunes I'm getting the message that I need to reinstall because my burning software has changed & it hasn't.  How do I get past these problems?
    Thanks in advance

  • Hi, I have a macbook pro 17" 2.4ghz intel core 2 duo 2007, will upgrading to Yosemite slow me down or create problems with my Iphone or other app ?

    Hi, I have a macbook pro 17" 2.4ghz intel core 2 duo 2007, will upgrading to Yosemite slow me down or create problems with my Iphone or other app ?

    Yes, i do not suggest upgrading right now. There is some software malfunction or glitch that spontaneously shuts down this specific model. I upgraded and it was a pain to downgrade and make my mac usable again.

  • Can 119 phantom asslys at one bom level  create problem in product costing

    I am going through a scenario where there r 119 phantom assemlies at one bom level. Can this create problem in product costing? It has been told to me by somebody that there can not be more than 99 phantom asslys at one level of bom? Is that true? My problem is that when i am doing product costing it is showing error-" too many dummies at bom level". Is this related to no. of phantom asslys at one bom level?

    HI bala,
    all the materials are costing relevent. I thik this problem is releteted with no. of phantom assemlies allowed at one bom level.
    I had 119 phantom assemlies at bom level 3 of a varient material. At that time it gives me abap runtime error during product costing.
    Now I have removed special procurment key 50 from material master of 20 number of phantom asslys. so now there r now 99 phantom assemlies at bom level 3.
    I have taken costing run and its not giving error.
    so i reached to conclusion that statndard limit of no. of phantom assemlies at one bom level can not exeed 99.
    Now customer requires 119 phantom assleys at this level 3 of bom.
    So can u suggest me whether i should contact sap to increase this limit for this perticular case?
    will they solve my problem or there is any other solution to this?
    please reply.
    nitin

Maybe you are looking for

  • Report by Internal Order that includes cost element and order type

    Good Morning Gurus' Is there an SAP Standard Report that shows Internal order, cost element and order type?  I find many with order, but not order type. Thanks a million!!

  • MS Word Starter 2010 continually asks for product key yet keeps closing.

    When I try to open the free pre-installed MS Word Starter on my PC I am prompted to enter my 25 character product key. After doing this a I receive 'Your product key is valid' on pressing the 'Continue' button MS starter opens yet three seconds later

  • Workflow N-Step value .Object instance BUS4101 message when released

    Hi Everybody, Onw customer running BBPCRM40 SP 8 We are using N-Step Approval over value Limit of Shopping Cart WS14000109 When a shopping cart is released, another message appear in inbox about, Object instance BUS4101, with several message about fi

  • DO WHILE LOOP

    Hello community, I have a question about a DO WHILE loop. I use the While loop frequently, but now I'm in need of a DO WHILe loop. I want it to run once, then wait for a user input that decides whether to run it again or procede. I'm running a meassu

  • Change my forum user name

    Is it possible to change my forum user name?