Setting a secondary option for JSF select menu

Hi,
Is it possible to set a second option to be selected in my selectOneListBox if the first one doesn't exist? Currently I have
<h:selectOneListbox id="elementSelect" value="" size="1" required="false" onchange="loadElements()">
<f:selectItems value="#{NPSAppConfig.elements}"/>
</h:selectOneListbox>
and sometimes I have a delete action that causes elements of that select menu to disappear (causing 'Validation Error "elementSelect": Value is not a valid option.' errors), in which case I'd like the default first option to be selected.
Any thoughts and insights are appreciated, - Dave

I don't fully understand how you have designed the flow of your action logic, but at least the backing bean must be notified of the delete action. Keep this in mind if you're deleting items using Javascript.

Similar Messages

  • Find option for  Catalog Selection

    Hi All
    In transaction code QS42, there is no FIND option for Catalog Selection list. Please advice whether it is possible to provide find option for catalog selection.
    thanks
    Ravindra Suvarna

    Hello Ravindra,
    In the transaction QS42, there is F4 help for Catalog.
    You can give serach parameters there and get the required catalog.
    Other than this if you want to change the selction parameters of the transaction QS42, then following are the steps -
    1. Tcode - QS42
    2. Menu Catalogs -> Selected Sets -> Display
    3. Selection screen will change accordingly. You can revert back to original screen similar way by the menu Selected Sets.
    If the above doesn't solve your query, plz elobarate your query.
    PS: If the answer solves your query, plz reward points.
    Regards

  • How to set auto delete option for old messages

    Hi All,
    Can any one help me on how to set auto delete option for mails older than 15 days from my Z10.
    James Kurian

    There is no such option in BB 10.
    However, you can achieve a similar result by setting your email sync timeframe to 14 days (the closest option).
    If you are using an ActiveSync account (such as Hotmail, Outlook.com), go to Settings > Accounts > select the account. Tap advanced at the bottom of the screen. Scroll to the very bottom, tap Sync Timeframe and set to 14 days.
    If you are using an IMAP account (such as Gmail or GMX), you will have to delete, then re-add your account.  The Sync Time frame is only avaialble during setup for these accounts.  When adding, tap advanced at the bottom of the screen and set the Sync Timeframe.
    Hope this helps.

  • Default radio option (for Rating selection) from HAP_MAIN_DOCUMENT

    We have a requirement to remove 'select a value' default radio option (for Rating selection) from HAP_MAIN_DOCUMENT. Can you please let me know is there any BADIs available to acheive this requirement ?

    The normal way to do this is to set the option to "commit selected value immediately" and to place the code in the Keystroke event of the combo box. And instead of the first two lines that you have, you'd use something like:
    if (!event.willCommit && event.changeEx !== "none") {
        // Your other code goes here
    The changeEx property will return the export value, if any, of the selected item.

  • This message could not be delivered because your SMTP settings are not set. Please use the Accounts Preferences panel to set the SMTP options for your account.

    I am not able to send out an email. I keep getting the following message: This message could not be delivered because your SMTP settings are not set. Please use the Accounts Preferences panel to set the SMTP options for your account. Can someone help me with this?

    We need some information, starting with the email provider (eg. Google, Yahoo, Bellsouth, etc)

  • In OBIEE mobile apps designer there is no option for multi select prompts?The navigation page gives option only for single select?Is there a work around for this?

    In OBIEE mobile apps designer there is no option for multi select prompts?The navigation page gives option only for single select?Is there a work around for this?

    Nic, for me the iTunes window looks like this, when I connect my iPad 3:
    I select the iPad in the "devices" section of the Sidebar (use: "View > Show Sidebar" if the sidebar is hidden).
    Click the "Apps" tab in the "Devices" pane.
    Scroll all the way down in the Devices pane to "File Sharing" "Apps" section.
    Then do I click "GarageBand" to select the documents in the right panel.
    Which part is different for you? Perhaps you could post a screenshot?
    Regards
    Léonie

  • Issue related to "Document Set Version History" option for Video uploaded in Asset library

    Hi,
    When user clicks on ‘Document Set Version History’ option from context menu (ellipsis) of a particular video, ‘Sorry, something went wrong’ message is shown. The error message also says,
    versions are currently disabled for this document library.
    When we enabled version history for the video library, the functionality started working as expected.
    Ideally the context menu of video should not show ‘Document Set Version History’ option. But we are not sure why it is showing that option.
    Can anybody please explain, is it bug in sharepoint ? or any other approach we have to use.

    Hi Sanket,
    We need to configure the send to connections for the corresponding web application in Central Administration and then the locations will be available when clicking the Send To Other Location.
    Please go to Central Administration > General Application Settings > Configure send to connections.
    After configuring the send to connections for the web application where you need to use the Send To Other Location, the location will be available.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • How to set billing doc parameter for multiple selection ?????

    Hi all,
    Output for Billing
    VF31, SD70AV3A
    i would like to add ‘Multiple selection’ to the Billing Document parameter.  multiple Currently, it would only give data for one of the documents in the selection.
    According to me the billing parameter can be changed for multiple selection, need your suggestion for how to proceed with this..
    Thx in adv
    Megha

    VF31 <b>does</b> have multiple selection option for Billing document, at least in my world (4.7).

  • Changing the material options for multiple selections doesn't seem to work

    Hi!
    Is it just me or is it not possible to select multiple layers and change their material options like specularity and shininess all at once? Selecting the layers and clicking on cast shadows certainly does work like this, but for some reason when I do the same and change the specularity, it changes only for that layer, regardless of the selection for the other layers.
    Are you able to change material options for multiple layers in one click?

    Works for me... Not sure what else to say. The only thing to consider would be that you need to expose the same properties on all layers or else AE can't match the property streams, so it may be advisable to hit AA to expose all material options instead of just U or UU to reveal changed/ animated properties.
    Mylenium

  • Setting property attribute values for multiple selected objects.

    Hello,
    Is there an easy way to set the attribute property values for more that one selected Table Operator Attribute (column) at a time. For example the target table has over 100 columns but I only want to INSERT/UPDATE 10 of those columns. The generated MERGE, INSERT and UPDATE statements will perform DML on all of the columns in the target table, setting the 90 columns with no mapping set to NULL. This is due to the Loading Properties 'Load Column when Updating Row' and 'Load Column when Inserting Row' both default to Yes. I would like to select multiple Attributes in the Table Operator and change the 'Load Column when Updating Row' and 'Load Column when Inserting Row' to No. This is similar to what you were able to do in Oracle Forms 9.0 Designer select multiple Items in a Block and change the properties en-masse.
    Thanks

    Hi,
    Using OMB scripting to set attribute properties in a data mapping sort of defeats the purpose of utilizing a graphical user interface to define and set properties for a data mapping? Surely the GUI data mapping tool was created to get away from writing scripts and scripting would also require that you know the name of the data mapping, table operator and the set of attribute names for which you have to write one line of script to set each property value, i.e. 90 lines to set 90 attribute values.
    Cheers,
    Phil

  • How to display a selection option for service selection

    Dear All,
    I want to display the selection option ("Other sources") which I find
    in the /nse80 screen painter but cannot be display in the ME22N.
    /nME22N
    -> select one Purchase Order for Services
    -> select one Item Line
    -> at "Services" tab on Item Details Level
    -> Add new ICON behind "Serv. selection"
    Any ideas?
    Thanks,
    Neil

    Hi Sharmila,
    Thanks for your reply!
    Actually, I find a User Exit program ("EXIT_SAPLMLSP_011") in selection screen program ("SAPLMLSP" ). This User Exit is for the radio button ("Other sources").
    However, I don't know how to activate that button at ME22N.
    By the way, can you go more details on how screen exits work?
    Really thank for your support!
    Neil
    Message was edited by:
            Neil Lam

  • ABAP Web Dynpro ALV: event for "tabel selection menu" needed

    Hi all,
    we need to react on the "table selection menue" control in our ALV grids. We found, that event "lead_select" is triggerd, if single lines are selected and if "delete selection" from the table selection menu is used.
    But if the "select all" item is used, the event is not triggered.
    Is there another event we can use? Does anybody know a sensible workaround for this problem?
    Thanks  and regards
    Joachim

    Hello Joachim,
    perhaps it's better to post your question in the WebDynpro ABAP forum:
    Web Dynpro ABAP
    Best regards
    Stephan

  • AE CS3 crashes when setting audio format options for MP3

    I've just submitted a bug report, but I wanted to see if anyone experienced this or have any suggestion.
    Basically, when I add an MP3 audio to a comp, and trying to make a movie (exporting it as uncompressed QT), when I press the Format Options button under the audio options output, AE will crash.
    Here are the steps.
    1. Add an MP3 file to the project.
    2. Create a comp with only the MP3 file in it. You can also create other objects/elements in the comp as long as there's an MP3 audio file.
    3. Add the comp to the render queue (aka Make Movie)
    4. Under the Output Module settings, select "QuickTime video" for output. The "Format Options" for the QT movie is not important at this point, but you can select uncompressed animation.
    5. Check "Audio Output". Click the "Format Options" button under the Audio Output.
    6. After Effects CS3 will vanish from the screen without saying "Hi, how are you!"
    WinXP SP3 32bit / 4G
    After Effects CS3 8.0.2.27 dva:2.0.0.127845
    Anyone getting this and knows why is this happening? Tried different MP3 files with the same results.
    Thanks

    Thanks for reporting this. Adding repro steps is always very valuable (though I suspect that step 5 is all it takes!)
    I think the nature of the source MP3 file(s) is probably irrelevant, since (if I understand correctly) the crash occurs when pressing the Audio Format Options button in the Output Module, not when previewing or rendering.
    There was a similar report from another user. It looks like a problem with Quicktime on Windows, or at leasr some flavors of Windows.
    Of course no combination of settings should make the application crash, but the odd thing that also struck me in the earlier report is... that by specifying MP3 for audio encoding on an Lossless (ie, Animation-encoded) Quicktime file, you're saving about 0.05 per cent in the overall file size/data rate To put it in perspective, you're making the audio go from 175 Kbytes per second to 30 Kbytes/s, on a file that easily can have a data rate of 20 Megabytes per second!

  • Set up secondary DNS for mail?

    When I first configured my server using the advance setup, I successfully setup my DNS services using a domain name for the primary zone that is not a registered domain. I have no intention of ever using the domain name I use internally on the net.
    I usually host my mail services with third-party hosting company and just use my server for file and print services. However, I recently purchased a new domain name and have considered using the mail services to host the domain. My question is:
    Do I need to setup a secondary zone for this domain, or should I start over and reconfigure my server? I had read that once you configure your primary DNS, it is hard to go back and reconfigure it.
    Also, once I have the DNS properly configured, it is my understanding that I'll just need to point the MX records at my hosting company towards my server to make it work, correct?

    If you're just looking for mail then there's no need to start from scratch - you can just tell the mail server to accept mail for your new domain in addition to the existing domain.
    Before you do this, though, make sure you have a) a static IP address and b) working reverse DNS for your IP address. If you don't have this then remote mail servers may not accept your mail since you look like a spammer.
    Apart from that, once you setup postfix to accept mail for your new domain then, yes, all you need to do is change your MX records.

  • How to set a folder option for individual folders

    This was not an issur for previous Mac OS, but for Marvericks I seem not to be able to save a folder option for individual folders.  So, when I change a view option, say, to "View as Icon" for a folder and close it, all other folders also show in the View-as-Icon mode. Is this a bug?  Or, am I missing anything?  I would want to open a particualr folder in a particular view option.  How can I do such?

    Use JTextField
    http://java.sun.com/docs/books/tutorial/uiswing/components/text.html
    And please post Swing questions in the Swing forum.

Maybe you are looking for