Problem with f:ajax , setters not called

Hi,
I have this jsf
<ui:define name="content">
<h:form>
<h:selectOneRadio value="#{chargeMenuBacking.inputMethod}">
<f:selectItem itemValue="#{chargeMenuBacking.COMMUNITY}" itemLabel="Community" />
<f:selectItem itemValue="#{chargeMenuBacking.FILE}" itemLabel="File" />
<f:ajax event="click" render="myGroup" />
</h:selectOneRadio>
<h:panelGroup id="myGroup">
<h:panelGroup id="CommunityGroup" rendered="#{chargeMenuBacking.inputMethod==chargeMenuBacking.COMMUNITY}">
<h:selectManyListbox value="#{chargeMenuBacking.communitiesSelections}">
<f:selectItems value="#{chargeMenuBacking.communities}" var="u" itemValue="#{u.id}" itemLabel="#{u.name}"/>
</h:selectManyListbox>
</h:panelGroup>
<h:panelGroup id="FileGroup" rendered="#{chargeMenuBacking.inputMethod==chargeMenuBacking.FILE}">
<h:inputText value="#{chargeMenuBacking.filename}" />
</h:panelGroup>
</h:panelGroup>
<h:commandButton value="OK" action="#{chargeMenuBacking.doCharge}"/>
<h:commandButton value="Cancel" action="#{chargeMenuBacking.doCancel}"/>
</h:form>
</ui:define>
and I have this backing bean
@Named(value = "chargeMenuBacking")
@RequestScoped
public class ChargeMenu implements Serializable ... (blah blah)
When the bean is RequestScoped the setter for chargeMenuBacking.communitiesSelections is not called.
However if the bean is SessionScoped or if I do not use the <f:ajax> tag (thus always rendering the component) the setter is called.
Do you have any ideas why this is happening?
I am using Glassfish v3 with netbeans 6.9.1 and JSF 2.0

The solution seams to be declaring the bean as having view scope.

Similar Messages

  • Problems with cached rowsets:  execute() not called

    I'm using sun studio creator and am trying to use a cached rowset. The code for creating it and accessing it has been created by studio creator.
    The CachedRowSetXImpl is created by the session bean _init method (see below) and is accessed via the jsf web page via a value= attribute on a data table.
    The problem is is that the first time the cached rowset is accessed, it generates the error 'java.sql.SQLException execute() never called. After this is works properly. I've already posted this iin the JSF forum, but didn't get a response. Any ideas?
    private void _init() throws Exception {
    System.err.println ( ClassName + " _init start");
    arg_info_prvdrRowSet.setDataSourceName("java:comp/env/jdbc/isisdev1");
    arg_info_prvdrRowSet.setCommand("SELECT * FROM ISIS_APP.ARG_INFO_PRVDR");
    arg_info_prvdrRowSet.setTableName("ARG_INFO_PRVDR");
    System.err.println ( ClassName + " _init end");
    private CachedRowSetXImpl arg_info_prvdrRowSet = new CachedRowSetXImpl();
    public CachedRowSetXImpl getArg_info_prvdrRowSet() {
    System.err.println ( ClassName + " getArg_info_prvdrRowSet start*****");
    try {
    System.err.println ( ClassName + " Table Name = " +
    arg_info_prvdrRowSet.getMetaData().getTableName(1));
    arg_info_prvdrRowSet.first();
    } catch (Exception Err) {
    System.err.println ( ClassName + " Error is " + Err.getClass().getName() + " " + Err.getMessage() );
    System.err.println ( ClassName + " getArg_info_prvdrRowSet end");
    return arg_info_prvdrRowSet;
    }

    Did you get the solution for this. if you can get please, tell me .
    i m struggling like hell. everything ok. I cannot get the rows. when i deploy in Tomcat 5.5
    con = DriverManager.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setDataSourceName("java:comp/env/jdbc/sea");
    //categoryRowSet.getConnection("jdbc:mysql://localhost/seafood?user=root&password=");
    categoryRowSet.setUrl("jdbc:mysql://localhost:3306/seafood");
    categoryRowSet.setUsername("root");
    categoryRowSet.setPassword("");
    //categoryRowSet.execute(con);
    categoryRowSet.setCommand("SELECT * FROM category");
    categoryRowSet.setTableName("category");
    categoryRowSet.execute();

  • Has anyone ever had a problem with their iphone 4 not syncing and/or writing a backup file?

    Has anyone ever had a problem with their iphone 4 not syncing and/or writing a backup file?  Itunes locks up when i attempt a sync as well as when I transfer my purchases from my phone to Itunes. I'm running Itunes 10.4.1 on iOS 4.3.5.  All of this is running on an 8 year old hp pavillian laptop running XP Pro that is fully updated. Could my phone have a bug or a hardware problem. Are there any known problems with  iOS 4.3.5?  Pretty frustrating problem so I'm hoping that someone has heard of this and can offer some suggestions on a solution.  Thanks a bunch.

    Did you used to have service and now suddenly you don't?
    This happened to me a few years back, and several other iPhone users in my neighborhood, and after a while on the phone with AT&T they figured out that a technician had recently adjusted the receiver/sender on the tower and it was slightly off. They sent them back up and I actually had a better signal after than I did before it went out.
    I would call AT&T and explain the issue you are having and see if they can fix it.
    If you never had service there then like wjosten said it's probably just a bad zone.
    Hope you get it sussed out.
    -PM

  • I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I recently upgraded to iTunes 11.1.5 and now my iPod Nano is not recognized in iTunes. I also upgraded my iPhone 5s to iOS 7.1. i Tunes on my computer does recognize my iPhone. What is the problem with my iPod Nano not being recognized?

    I would think, Twins1995, that if we are having the problem, others are as well. Hopefully, Apple will shortly issue a follow-up software release to fix the problem. Or is that just wishful thinking on my part.
    It would be helpful, if there were some kind of work-around in the interim, so we can use our devices. Pretty frustrating when you consider that all of the hardware and software is produced by Apple.

  • I have a problem with itunes account did not find a solution.

    Good morning
    I have a problem with itunes account did not find a solution.
    The problem: your apple id has been Dasabld
    I can not if download applications from the iTunes store
    Hoping to help me solve the problem
    Note my English is very weak
    I want to re-activate the iTunes account
    Thank you

    To Contact iTunes Customer Service Use this Link...
    Apple  Support  iTunes Store  Contact

  • I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    I have a problem with the mac can not read video files with the extension IMOD. How can I solve this problem?

    By doing a Google search. 

  • ITunes needs to fix the problem with there gift cards not being activated this is not up to the retailer and they will not return scratched coded cards! There is thousands of people having this problem please fix it

    iTunes needs to fix the problem with there iTunes cards not activating properly! This is not the retailers fault and they will not return iTunes cards that have had the code area scratched there for apple needs to credit and or activated the cards there is thousands of people having this problem please bite the bullet and fix it already I will not be using iTunes until this is corrected...

    If you haven't received the item then try the 'report a problem' page to contact iTunes Support : http://reportaproblem.apple.com
    If the 'report a problem' link doesn't work then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Who else has a problem with parental controls enabled not being able to run Firefox on the Mac?

    Who else has a problem with parental controls enabled not being able to run Firefox on the Mac? (Any solutions?) (BTW. Chrome doesn't work either)

    Although FF4 is so nice I'm almost ready to ditch iGoogle!
    Please fix what appears to be an RSS/iGoogle issue with FF4...
    Gmail is fine, but titles dont show in most RSS feed gadgets and no stories, strangely, apart from this one:
    http://www.google.com.au/ig/directory?hl=en&url=www.google.com/ig/modules/builtin_news_technology.xml
    Which if you enter the last part of the url reports that
    "<Content type="html">
    This is a builtin module, so the UserPrefs and Content are ignored."
    Any ideas?

  • Having problem with primary sever will not connect, my internet connection is working

    Having problem with primary sever will not connect, my internet connection is working

    Hello pp585,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Troubleshoot issues on a Mac
    If you haven't been able to connect to the iTunes Store, a software conflict or your Internet service provider (ISP) may be blocking your access.
    Update iTunes and Safari to the latest version.
    If you have a firewall, your settings may be preventing you from connecting to the iTunes Store. Follow these steps to configure your firewall.
    You may need to reset your keychain. Connection issues are occasionally caused by keychain issues. Learn how to use Keychain First Aid to resolve any issues with your keychain.
    If you're receiving a specific error message, follow these steps.
    If the issue still persists, contact your Internet service provider and confirm that these ports and servers are enabled over your network.
    Have a nice day,
    Mario

  • SOLMAN 7.0 problem with Stack16-question on note#1231975

    SOLMAN 7.0 problem with Stack16-question on note#1231975    
    I'm importing Stacks 16&17 into our Solution Manager 7.0 system
    and getting errors when importing the Java part in JSPM after the ABAP
    went in with no errors. The error matches OSS note 1231975 but we are
    having problems understanding what this note is advising to fix the
    issue. "SAPJTECHS SP16 component needs to be applied before proceeding
    with the whole SP16 stack. It should fix the usages on the systems
    fixing missing rows at BC_SL_PARTS table." Each time we start JSPM it
    gives the errors mentioned in this note. How are we to import
    SAPJTECHS before the rest of the Java Support Packs if we can't get
    JSPM to come up due to this error? About half of the Java Support
    Packs were imported before this error occured.

    You can deploy that component manually using SDM (instead of JSPM).
    Markus

  • I have a problem with the device does not accept 5 slot after work and survey content is not possible activation of the device and iTunes

    I have a problem with the device does not accept 5 slot after work and survey content is not possible activation of the device and iTunes imei: 01******206
    <Personal Information Edited by Host>

    لدي جهاز ترقفت الشبكه ويعطي جاري البحث وتم تحديثه ولم يتم حل المشكلهة  والان الجهاز لايقبل التنشيط والايتونز لايتعرف عليه امل تنشيطه 013619004986206

  • Is anyone having problems with the program MacKeeper not runing a full scan in Mavericks?

    Is anyone having problems with the program MacKeeper not runing a full scan in Mavericks?

    Do not install MacKeeper (and how to uninstall it if you have):
    https://discussions.apple.com/docs/DOC-6221
    by Klaus1
    (Please note that references to the original developers, Zeobit, also now refer to Kromtech Alliance Corp, who acquired MacKeeper and PCKeeper from ZeoBit LLC in early 2013.
    And Here  >  Beware MacKeeper
    In General 3rd Party AV Software is Not Required as Mac OS X tends to look after itself.
    Read Here  > https://discussions.apple.com/thread/4545776?tstart=0
    See Here  >  Antivirus Discussion

  • Is anyone having problems with the stock widget not updating?

    Is anyone having problems with the stock widget not updating?

    Widgets unfortunately have gone by the wayside since Apple introduced the App Store a couple years ago.  No widget has received any official recognition in the Apple listing of Widgets since that time.  So it is entirely possible the widget has gotten redirected.   There are many other Apps for stocks.  I personally like the Nasdaq Quote website since it knows mutual funds and other markets as well.

  • Has anyone had a problem with the spotlight search not working sometimes?

    Has anyone had a problem with their "spotlight search" not working? If I restart the phone it will work for a few days then not work again.

    It's more likely the OP's router.  I have a wifi only iPad 2, yet location services work just fine on my iPad.  If I open maps, my location is found quite nicely.  I have seen that some routers do not provide location services and I suspect the OP has such a router.

  • I am having real problems with my hotmail account not working on my iMac

    I am having real problems with my hotmail account not working on my IMac but works absolutely fine on my Iphone 5. Can anyone help with the setup for iMac. I am with BT for my Broadband. I am cionverned if I route my Hotmail accoutn to GMail will iy stop working on my Ipone.

    How are you accessing Hotmail?  Via your web browser?  Are you using Apple Mail?  Outlook?
    The answer will be different depending on how you want to access Hotmail.
    If you are using an email client (like Apple Mail, Outlook, Entourage, etc.)) then you need to set up a mail account in your email software.
    The incoming Hotmail settings are these:
    Incoming server: pop3.live.com
    User name: Your full Hotmail email address (aka "me @ hotmail.com" or "me @ live.com")
    Password: Your Hotmail password
    POP port: 995
    Use SSL to connect : yes
    The outgoing Hotmail settings are:
    Outgoing server: smtp.live.com
    User name: Your full Hotmail email address
    Password: Your Hotmail password
    SMTP port: 587 (override the default port if necesssary)
    Use SSL to connect : yes

Maybe you are looking for

  • How can i find my iPod Without using iCloud? I had it enabled

    I was at school and somebody stold it, now i tried using the app but it doesnt let me because it says iCloud isnt enabled . Please help?

  • Fault Handling when Invoke fails

    Hi, I have an task in Error Handling. I have a BPEL which has 3 Oracle apps Adapters. I need to handle errors when the invoke to the adapter fails. I have added 3 different scopes anc an empty catch. I dunno how to proceed futher. Please give me some

  • Button label property changes

    The buttons I have built work fine when I test them in flash catalyst but once I deploy it to the server they do funny things. In some browsers the font on the button changes when rolled over or clicked on. In other browsers the bold property changes

  • What kind of a program did HP company use to compress its Software?

    Hi, I have noticed that some Most HP software can be downloaded as standalone programs  which are  compressed files (like what is in this screen shot below)  which will need to be extracted before being installed? Thus, I am wondering what kind of Da

  • Download folder duplicating files

    Has anyone had this issue? I have recently found multiple copies of downloaded items in the download folder. This caused a severe problem of slowing and freezing my iMac to the extent the folder accumultaed 12,000 files totalling 15GB. Now I know sim