Restoring af:selectBooleanCheckbox value after setting visible=true

Using JDev 11.1; I have a table that displays data from a model object, and one of the columns contains true/false values which we render in the table using an af:selectBooleanCheckbox. All works fine except that user is able to hide the table by expanding other components which sets visible=false on the bounding component for the table. If user elects to redisplay the table by reducing the other component zoom, then the table displays again but the selected check-marks/tags do not return.
Thought initially it might've been because the query was being reissued on the table, but not so. More about the selected attribute on the af:selectBooleanCheckbox, which I have set to the default (false). So the value property is set to the table collection attribute as required to interface with the model, but I need to know what to set the selected attribute to. I can see that when the table is redisplayed, this default value of false is being sent through to the model which is discarding the values I want to retain.
I've tried some EL in the selected property to set it to true/false based on what's in the table, but the problem with that is that it becomes essentially a read-only control. I need to find some way to disable the value assignment when making the table visible again. Any suggestions?
Thanks,

Andrefs,
In ADF BC, one way we deal with this is by adding a transient Boolean attribute to the View Object with getters (translate 0/1 to false/true) and setters (vice-versa). Then, we bind the UI to the transient attribute. It's been so long since I've done EJB's, but could you take a similar approach?
John

Similar Messages

  • InputText loosing value after setting required="true"

    Hi Folks,
    'myBean' is request scope bean.
    I have a problem here with the inputText tag
    in edit.jsp
    <h:inputText value="#{myBean.name}" id="name" required="true"/>
    <h:message for="name"/>
    When i click the 'Update' CommandLink without entering the value in the text field, i see a validation error message. After this when i go back to the old page from my menu and comes back to edit.jsp i see no value in the text field. i can print the value by using outputText like
    <h:outputText value="#{myBean.name}" id="outputname">
    Why is the value getting lost in inputText?
    Any help appreciated.
    Thanks a bunch.
    Regards,
    Sreedhar

    the error msg was expected behaviour, when i did not enter any thing in the text. The page was redisplayed with validation error when nothing was entered in the text field. After that when i come back to the edit page for different set of result i see nothing in the name text field. The page is not rendering text field name. Where as when i try to print the value by using outputText i could see the value.
    I am wondering why inputText is not rendering the valueand why outputText can render the same value

  • Method CreateChildren in ApplicationControllBar class called twice after setting dock=true

    Hi during creating of a custom ApplicationControllBar
    component in ActionScript I probably found a (nasty) bug?!
    package net.neijman.julia.jaContainers
    import mx.containers.ApplicationControlBar;
    public class JAApplicationControlBar2 extends
    ApplicationControlBar
    public function JAApplicationControlBar2(): void
    this.dock = true;
    super();
    override protected function createChildren(): void
    trace("CREATECHILDREN EXECUTED");
    When I am using my simple custom component in my application:
    <jaContainer:JAApplicationControlBar2 />
    The trace message trace("CREATECHILDREN EXECUTED"); is
    executed twice (meaning CreateChildren is called twice BUT ONLY
    AFTER SETTING dock = true (see constructor). When setting dock =
    false CreateChildren is executed once. I want to build a framework
    on the standard components (depending heavily on the
    CreateChildren-method).
    In other words, creating dynamic components in the docked
    ApplicationControlBar in the method CreateChildren results in a
    double placement in the DisplayList.
    Has anyone has a clue what's going wrong here? (my
    workarround for now is to start the createChildren method with
    removeAllChildren();)
    Thanks Tom Neijman

    Interesting. I would file it as a bug here:
    http://bugs.adobe.com/jira/secure/Dashboard.jspa
    And then see what happens. If it's not a bug, you'll probably
    get a decent reason why this occurs in the bug notes.
    matt horn
    flex docs

  • Typing a phrase in the Address Bar of Firefox 3.6 used to lead me to the relevant website, but this doesn't happen in FF4, even though keyword.enabled value is set to true in the config page. Why doesn this happen?

    In the about:config page the keyword.enabled value is set to "true". And the keyword.URL value is set to "default". When I type a phrase in the Address Bar, a page with a Yahoo! search result opens unlike intuitively loading the relevant page using Google. Why is this happening?

    To use the Google's browse by name feature as used in Firefox 3.6, set keyword.URL to this link:
    [http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q= http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=]

  • HT4859 restoring backed up data - after set up assistant

    What if i have skipped the "restore from icloud backup" during the set up assistant - is there any way to get it once the ipad is up and running?

    Thank you randers4 and Eric Ross. The only problem is that i did this because of the following error:
    "To: Clash of Clans. "When I first started on my iPad I didn't log in to game centre (but I thought I had). Then I downloaded it on my iPhone and followed the steps to register, and thus created two games...the one on my iPad which was far advanced and the one on my phone which I had played once but was registered. Now, whenever I play on my iPad it asks to sync with game centre (which I want to do so I don't lose my game but it will be overwritten with the phone game, which I dont want."
    And i followed their advice which was:
    "If you wish to start another game, you need to reset your device - please use this with caution as you will lose all data from the device.
    In order to reset your device safely, please follow the steps below:
    1) Go to settings
    2) Go to iCloud
    3) Go to Storage & BackUp
    4) Go to "BackUp now"
    5) Go back to settings and go to "general"
    6) Go to "reset"
    7) Go to "erase all content & settings"
    After the reset is done and your device starts up again, it is very important that you do not load your back-up immediately.
    8) Skip the Backup (click on "later")
    9) Go to the App Store
    10) Download Clash of Clans
    11) Log in through Game Center and start a new game
    12) Go back to settings / iCloud and load the back-up to get all your files back"
    As you can see, i was not supposed to restore back up during the set up process. i just hoped there was another way - or maybe i'm misreading the instructions.

  • How to restore to back up after setting up as new

    I received my iPhone 4S in the mail today and in my excitement set it up as a new phone because I was away from my Macbook that I synced my 3GS to. What's the easiest way to restore to the 3GS's back up once I have access again? Or have I shot myself in the foot and have to add everything manually now with no way to restore photos, notes, etc.?

    http://support.apple.com/kb/HT1414

  • SelectBooleanCheckbox read-only after setting selection

    Hello!
    I'm trying to set the selection of an adf selectBooleanCheckbox!
    When I set it by the pull-down menu (true, false) in the Property Inspector, everything is ok!
    But when I set the selection depending on an ADF binding, the value is set correct,
    but the checkbox is read-only and a change of the selection is impossible!
    Here's the very simpel code of the Box:
    <af:selectBooleanCheckbox
    label="myLabel"
    value="#{bindings.SomeValue.inputValue != null}"/>
    Can anyone help me, how to enable the checkbox for selection?
    Thank you very much!
    Sebastian
    PS: I'm using JDeveloper 10.1.3.3!

    hi..
    the previous error is ok now..
    below is the script, the status is when click on 'Add new row' button, it will pass status = 'ADD_ROW' and set the startdate read only = False.
    my question now is...
    e.g i've a multiple rows (can display up to 10 rows) display in table form in the page....i query 3 rows of records, then i click 'Add new row' button,
    how to make sure the 3 rows queried early is having startdate read only = Yes and for the new row startdate read only = False?
    with the below codes it will set all rows startdate read only = False (including those queried data)... pls help...
    public void setReadonly(String status)
    OAViewObjectImpl vo = (OAViewObjectImpl)findViewObject("SeaoeAutoMosPVO1");
    OARow row = (OARow)vo.first();
    OAViewObject SeaoeAutoMosSummaryVO = (OAViewObject)findViewObject("SeaoeAutoMosSummaryVO1");
    OARow SeaoeAutoMosSummaryRow = (OARow)SeaoeAutoMosSummaryVO.getCurrentRow();
    if (status=="ADD_ROW")
    row.setAttribute("StartDateRender", Boolean.FALSE);
    else
    row.setAttribute("StartDateRender", Boolean.TRUE);
    }

  • Focus after Setting a Form Value within the Validate Event ( =8.8)

    Hi
    Setting Values within Validate Event sets Focus incorrectly on SAP >= 8.8
    The following  example works fine  on SAP 2007.
    Why i don't like this behaviour
      -I didn't found an easy workaround to fix it
      -SetMatrixCellWithoutValidation has the right behaviour but only works with Userdefined - Columns
      -It's a quite common usecase to validate something and in the same step set some values after successful validating (or cancel the input by using BubbleEvent = False)
      -It just worked for 6 years now
      -I have developed around 20+ AddOns and i'm running into this Regression Issue more and more.
    But maybe i'm just missing something.
    So how would you solve the following code now with Versions >= 8.8 ?
    Thanks for any enlightment!
    private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                // 11.08.2011 knp
                // use case is for example setting the price according a custom price table
                // it's triggered by the item column in the sales order matrix and sets the unit price
                // Expected: Focus is on the column after "Item" column
                // Result:   Focus is on column after the "Unit Price" column
    validation
                if (pVal.InnerEvent == false)
                    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE)
                        if ((pVal.FormTypeEx == "139"))
                            if (pVal.BeforeAction == true)
                                if (pVal.ItemUID == "38")
                                    if (pVal.ColUID == "1") // item code
                                        SAPbouiCOM.Matrix oMtx = (SAPbouiCOM.Matrix)SBO_Application.Forms.Item(pVal.FormUID).Items.Item("38").Specific;
                                        SAPbouiCOM.EditText oEd = (SAPbouiCOM.EditText)oMtx.Columns.Item("14").Cells.Item(pVal.Row).Specific;
                                        oEd.Value = "2";

    Hi
    Try this
    private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)
                BubbleEvent = true;
                // 11.08.2011 knp
                // use case is for example setting the price according a custom price table
                // it's triggered by the item column in the sales order matrix and sets the unit price
                // Expected: Focus is on the column after "Item" column
                // Result:   Focus is on column after the "Unit Price" column
    validation
                if (pVal.InnerEvent == false)
                    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_VALIDATE)
                        if ((pVal.FormTypeEx == "139"))
                            if (pVal.BeforeAction == true)
                                if (pVal.ItemUID == "38")
                                    if (pVal.ColUID == "1") // item code
                                        SAPbouiCOM.Matrix oMtx = (SAPbouiCOM.Matrix)SBO_Application.Forms.Item(pVal.FormUID).Items.Item("38").Specific;
                                        SAPbouiCOM.EditText oEd = (SAPbouiCOM.EditText)oMtx.Columns.Item("14").Cells.Item(pVal.Row).Specific;
                                        oEd.Value = "2";
                                        oMtx.Columns.Item("1").Cells.Item(pVal.Row).Click(SAPbouiCOM.BoCellClickType.ct_Regular, 0);
    Regards
    Arun

  • How to set/change spell value after button is pressed

    Hi All,
    I have a requirement, I need to change the spell value(Boolean) dynamically based on the sitution. (say for eg. If i click search spell (ReadOnly) variable shouldbe set to TRUE.like that ..
    I have create a dummy VO and in that VO I have created spell variables.
    Can some one help me how to do this when a button is pressed, I wrote code after buttton pressed it's throwing the below error.
    if(pageContext.getParameter("Create")!=null)
    OAViewObject disvo = (OAViewObject)am.findViewObject("XxafpEepStageRebateValidateVO1");
    OARow row1 = (OARow)disvo.first();
    row1.setAttribute("ItemProperty", Boolean.FALSE);
    row1.setAttribute("ReadOnly", Boolean.TRUE);
    call another page..
    Error(102,6): class OAViewObject not found in class xxafp.oracle.apps.qp.pricelistrebate
    Thanks,
    Mahesh

    Hi Mahesh
    Seems you have not imported OAViewObject Class in your controller..Do the following in the import section of your controller..
    import oracle.apps.fnd.framework.OAViewObject;AJ

  • Why does my preferred search engine gets hide set to True in search.json after every update to Firefox?

    I use DuckDuckGo as my preferred search engine. Everytime Firefox gets updated it dissappears from the drop down menu of search engines. I found in search.json that the Hide value would be set to True. By changing it to False and restarting Firefox DuckDuckGo would be back, until the next update. Why is this happening? It is an extension available from the Mozilla/Firefox extension/addons site.

    First of all, thank you for providing troubleshooting info (Troubleshooter addon), have you tried the searchreset tool.
    * https://addons.mozilla.org/en-US/firefox/addon/searchreset/

  • After setting up my new 4S restoring a backup of my old one, I've renamed the old 3GS in iTunes and changed the content, deleting all my important stuff. Now I'm syncing the old one to my PC. Can I then backup my NEW 4S to  iCloud without messing up all-?

    After setting up my new 4S, restoring a backup of my old 3GS, I've renamed the old 3GS in iTunes and then I've changed the content, deleting all my important stuff. Now I'm syncing the old one to my PC. Can I then after that safely backup my NEW 4S - which now holds all my company information and stuff - to  iCloud without risking to lose it?

    Hi Mcchen425,
    Welcome to the Support Communities!
    As a precaution, I would suggest backing up your iPhone to your computer via iTunes as well as iCloud.  Then you can delete one of your two backups.  The article below will explain all of your options for deleting data or backups from your iCloud storage.
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iCloud: Managing your iCloud storage
    http://support.apple.com/kb/ht4847
    Cheers,
    - Judy

  • Can I restore from an iTunes backup after setting up as a new phone when a full reboot/restore has been carried out?

    Can I restore from an iTunes backup after setting up as a new phone when a full reboot/restore has been carried out?

    As @wjosten says. Note, however, that it is important to NOT sync the phone after resetting it. A Sync will overwrite the backup that you want to restore.

  • I have restored my iphone 3gs after having only the apple logo, it took me through all the restore, a page saying 'congrats your phone is now unlocked', and allowed me to chose to set up from new or back up....yet still displays only the apple logo.

    I have restored my iphone 3gs after having only the apple logo, it took me through all the restore, a page saying 'congrats your phone is now unlocked', and allowed me to chose to set up from new or back up....yet still displays only the apple logo.

    Restore as New...
    Redownload your Purchased and Free Apps using the Apple ID you Originally used...
    iPhone User Guide
    http://manuals.info.apple.com/en_US/iphone_user_guide.pdf

  • How do i restore my iCloud settings after my daughter has accidentally deleted them while setting up a new phone to the iCloud account

    how do i restore my iCloud settings after my daughter has accidentally deleted them while setting up a new phone to the account?

    Hello Emily,
    Thanks for using Apple Support Communities.
    If you need to sign out of your previous Apple ID on your device, but do not know the password, then you will need to reset the password on that account.  Since you do not have access to the email with that Apple ID, you will either have to reset the password using the security questions or contact Apple ID account security.
    If you forgot your Apple ID password - Apple Support
    Contact Apple for help with Apple ID account security - Apple Support
    Take care,
    Alex H.

  • How to choose the restore using icloud option after you have already gone past setting up your phone

    How do I choose the restore using icloud option after I have already gone past setting up my Iphone 5?

    You have to start over by going to Settings>General>Reset and tapping Erase All Content & Settings.  This will bring you back to the setup assistant screens.

Maybe you are looking for