JPopup Menu And multiple Selections

Hi I am trying to achieve the following effect and I am wondering how to do it...
I want to have a popup menu with checkboxes which will allow me to check more than one checkbox at a time (i.e thus the popup will not close for each click of checkboxes)...
I am trying to see if there is a way to do this without having to reprogram a "myownpopupmenu" ... i would prefer to use what is already availble in java ...
Any ideas would help!
Thnx in advance

funny thing is that i thought i could use the processEvent from the jPopupmenu ... but one thing that is bizarre happens... processkeyevent when i use the space bar to click the checkbox is called when i overwrite it but not processmouseevent when i use my mouse... I am thinking maybe it is related to the jdk 1.4... ill update to 1.4.1 to see if it changes anyhting

Similar Messages

  • Toggling between single and multiple selection in a table

    I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
    I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
    <f:facet name="selection">
    <af:tableSelectMany autoSubmit="true"
    rendered="#{treeBean.multipleRows}"/>
    </f:facet>
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"
    rendered="#{treeBean.singleRows}"/>
    </f:facet>
    When I use inside the switcher, it doesn't like the parent.
    Any ideas would be greatly appreciated.
    Thanks,
    Vijay.

    I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <af:document title="tableSelectMany Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <af:messages/>
    <af:selectOneChoice value="#{sessionScope.tableSelection}"
    autoSubmit="true"
    id="selType"
    label="Selection Type">
    <af:selectItem label="Single" value="#{null}"/>
    <af:selectItem label="Multiple" value="#{true}"/>
    </af:selectOneChoice>
    <af:table summary="Periodic table"
    binding="#{tableActions.table}"
    partialTriggers="selType"
    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
    value="#{periodicTable.tableData}" var="row" rows="10">
    <af:column>
    <f:facet name="header">
    <af:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Symbol"/>
    </f:facet>
    <af:outputText value="#{row.symbol}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Action Column"/>
    </f:facet>
    <af:commandButton immediate="true" text="Action"
    action="#{row.action}"/>
    </af:column>
    </af:table>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • Help needed with singleSelection and multiple selection in table.

    Hi ,
    How do i implement the singleSelection and multipleSelection on table rows.
    How do i capture the checked rows?
    How should the code be written and where should it be written.
    I should be capturing the values of the checked rows and pass it to the pl/sql package.
    I have a table - in -table so there is a singleselection on the outer table and multiple selection on the Inner table.
    Could anyone help me with this.
    Thanks,

    One solution to most of your questions : Read the advanced table section of Dev guide.
    Always go through the dev guide before putting up the issue. Let the forum be for those scenarios which dev guide doesn't covers in much detail.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • File Dialog (Details View and Multiple Selections for View File Type)

    I would like to use the generic windows dialog box found in the toolbar under:
    File I/O/Advanced File Functions/File Dialog
    What I would like to do is have multiple selections for the file type, for example one menu selection is *.txt, another is *.rtf, another is *.csv, etc. Listing a single type is straightforward.
    Also does anyone know if there is a way to have the dialog open in the DETAILS view automatically?
    Thanks for any help!
    Carlton

    Hi,
    You can do it in following ways:
    1. Write in pattern input the string "*.txt; *.csv; *.rtf". This will show to the user only files with this extensions in the dialog.
    2. Another way is to create ring or menu where user could specify the extension. Depending on this extension you could wire the appropriate string to the pattern input of "File Dialog.vi"
    I have made an example.
    Good luck.
    Oleg Chutko.
    Attachments:
    fileopen.vi ‏42 KB

  • How do I split Imovie events?  I find the option in File menu and have selected the part of the event that I want to split before, but the option to split is not bolded (allowed) in the File menu.

    I have imported video to iMovie and want to split the event.  I have selected part of the event and when I go to File> Split the event before the selected clip it is not bolded in the menu and it is not an allowed selection.  I had imported directly to an external HD so moved the event to the Mac HD and tried it again. This did not work either.  Any ideas why this option is not available to me???

    Use iMovie to move the events to your Movies folder, otherwise you're can't.

  • Multiple users and multiple select options

    Hi,
    First of all, let me congratulate Oracle HTML DB team for this great product! This is extremely powerful and useful.
    I have multiple selection item on the form to generate report for the selected multiple schools. I have two critical questions.
    1) Currently I am deleting all records from database tables for multiples selects and similarly selecting all records from these tables to populate dependent LOVs and so on. This is a major issue when multiple people use this application at the same time. I looked at couple of examples to create, delete and select records based on IDs (unique) and it is not clear to me if I need to create parameter/hidden params on the reports side or on the HTML DB side or .. how do they communicate etc. Could any one clarify this process of checking for unique IDs please.
    2) Is there any way to give an option to the user to treat multiple selected item as just one single and to treat them separate? For example, if we let the user count number of students at two schools, how can we let the user count two schools separate as well as both schools together? This should also further ask for the possible options separate for both schools separate if they were to run separate.
    This is very important for me and appreciate any help from you. Thanks in advance.

    Hi,
    Could any one point me in the right direction, please!
    Thanks,

  • How to use JList's ensureIndexIsVisible and multiple selection using CTRL

    Hello everyone. I am stuck on how to use JList's ensureIndexIsVisible() method and to also allow multiple rows in the list to be selected. Currently, when I begin typing a number stored in the list (i.e. 10001) the focus will go to that row; however, when I press the CTRL key and begin typing another number (i.e. 30001) the focus never goes to the new row. I have a suspicion that I need to cancel out the CTRL key somehow when typing the numbers but also need to keep the knowledge that the CTRL key is pressed to allow for multiple selection. Thanks in advance for your help!
    Regards,
    Will

    Hello everyone. I am stuck on how to use JList's ensureIndexIsVisible() method and to also allow multiple rows in the list to be selected. Currently, when I begin typing a number stored in the list (i.e. 10001) the focus will go to that row; however, when I press the CTRL key and begin typing another number (i.e. 30001) the focus never goes to the new row. I have a suspicion that I need to cancel out the CTRL key somehow when typing the numbers but also need to keep the knowledge that the CTRL key is pressed to allow for multiple selection. Thanks in advance for your help!
    Regards,
    Will

  • IDVD menu and music selection

    I created a DVD and have replaced the Theme music with a selection from iTunes. When I go into the chapter menus, I am not able to select the music from iTunes. It reverts back to the default music. The default is really loud and doesn't fit the theme of the DVD.
    I have tried to select iTunes under "media" and highlight the selection I want, I click on apply and it doesn't work.
    How do I select music, if that doesn't work how do I at least turn down the volume in the DVD?
    Thanks,
    picturedude1966
    powerbook g4   Mac OS X (10.4.8)   iDVD (6.0.3)

    Sue,
    Thank you for your welcome! I would like to say it is good to be here, but I am here because of a problem.
    To answer your question, this is purchased music on a CD that has been uploaded into iTunes. I have successfully used the cut for the introduction to the DVD. It works fine, but when I try to use the same music on the chapter menus, following the same procedure, it doesn't work. I get the Theme music with the clarinet. The DVD is of a classical music concert and therefore, the clarinet music just doesn't work.
    The music I am using is of a Danish choir (Herning Dregnekor) singing.
    I hope that has answered your query.
    Thank you for asking.
    I will be checking out your suggested URL, thank you.
    Picturedude1966

  • Previously i was able to select tools in the bridge and then select image processor to make jpegs from my tiffs, the image processor tab is no longer on the tools drop down menu

    previously while in bridge, i was able to select tools in the drop down menu and then select image processor to get to the page where i can make tiffs and jpegs. That option is no longer available in the drop down tool selection. How do I make jpegs from my tiffs now in the bridge.
    thanks
    [Moved from the general Cloud forum to the specific Program forum... Mod]

    In current Firefox releases the search bar on the about:home page and the about:newtab page have an autocomplete=off attribute that prevents Firefox from saving form data and now show search suggestions just like you get on the regular Google search page.

  • How do I get the same song to play on the main menu and during scene select

    I would like the music to play continuously throught the menu and scene selection. As it is I have to drag the audio file into each scene selection, and the music starts at the beginning.
    At least, is there a way to remove the awful sound track that iDVD has on the themes?
    iMac 20 core Duo   Mac OS X (10.4.8)  

    Yes I can add audio, how do I get the same song to play throughout the chapter menus? I have 30 "chapters", which are scenes from an hour of home movie. Can the same song play continuously throughout the different chater menus?. As it is now, I have to drag an audio file into every submenu, and it starts the song at the beginning for each chapter menu.
    Otherwise, that same song that is preloaded on the theme is played. I hope this makes sence, kind of hard to explain. Thanks

  • How can I export multiple selections in a list box into a .csv file?

    Hi all, I've created a form in Acrobat X with a list box enabled for multiple selections. When I try to export the filled out form into a .csv file, only the first selection shows up. Can anyone help me figure out how to get all selections to export? Thanks!

    Thank you for your quick response!
    Once a recipient fills out the form (which has two questions with list boxes and multiple selection enabled) they send the completed form back to me. When I open the completed form, I am given the option add the completed form to a reponse file which was set up when I distributed the form. When I open the reponse file, it lists all of the responses in rows, and the values that were chosen in the form are arranged in columns. In this file, the list boxe columns have multiple values, separated by commas (which is what I'm looking for). At this point there is an option to export into a .csv file or an .xml file. If I choose the .csv file and open in excel, only the first selection shows in the list box column rather than all selections that were initially made by the responder.

  • Multiple selection of parameter values (BIP 10.1.3.2)

    Hi there,
    I'm working with BI Publisher 10.1.3.2 and I'd like to use parameters allowing multiple selection. I've tried it with both data templates and SQL queries ... but I'm not getting it work ...
    I've established a simple "Show me department name and id"-example according to my parameter selection (you can select multiple values e.g. Administration, Marketing, Sales ... and the "All"-option is activated as well), based on the HR/OE schema.
    Here's just a quick note, where I tested the way the Publisher Engine copes with parameter selection in general
    5.6.2
    single selection => e.g. Administration
    multiple selection => e.g. Administration,Marketing
    All => *
    10.1.3.2
    single selection => e.g. Administration
    multiple selection => e.g. 'Administration','Marketing'
    All => null
    So, in 10.1.3.2 there's been an improvement concerning single quotes - in the case of multiple selection only. I do not know why there are no single quotes for a single selection, but it seems like that's the way it is ...
    Well, I've created a simple SQL query as follows:
    CASE 1 *
    select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME
    from DEPARTMENTS
    where DEPARTMENT_NAME IN (:myParameter)
    => All does not work
    => Single Selection is working
    => Multiple Selection is working
    sample output in the case of selecting "Marketing" (single selection):
    <TESTINGIN>
    <myParameter>Marketing</myParameter>
    <LIST_DEPTS>
    <DEPTS>
    <_MYPARAMETER>Marketing</_MYPARAMETER>
    <ID>20</ID>
    <NAME>Marketing</NAME>
    </DEPTS>
    </LIST_DEPTS>
    </TESTINGIN>
    ... and I've tried the same select statement using a data template instead, and then I got another result: both, All and Multiple Selection, do not work (I'm getting back an empty element)
    sample (error) output in the case of selecting both "Marketing" and "Administration" (multiple selection):
    <TESTINGIN>
    <myParameter>'Administration','Marketing'</myParameter>
    <LIST_DEPTS></LIST_DEPTS>
    </TESTINGIN>
    In order to cover the "All"-case ... I manipulated my select statement as follows and used it as SQL query:
    CASE 2 *
    select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME
    from DEPARTMENTS
    where DEPARTMENT_NAME IN (nvl(:myParameter, DEPARTMENT_NAME))
    => All is working now
    => Singe selection is working
    => Multiple selection is not working any more (ORA-00909: Ungültige Anzahl von Argumenten / illegal amount of arguments)
    ... using the same select statement within a data template, Multiple Selection is still not working (empty element)
    Last, I've tried another select statement, based on an entry of the xml publisher forum:
    CASE 3 *
    select DEPARTMENT_ID as ID, DEPARTMENT_NAME as NAME
    from DEPARTMENTS
    where DEPARTMENT_NAME IN (:myParameter) or :myParameter IS NULL
    => All is working
    => Singe selection is working
    => Multiple selection is not working (ORA-00920: Ungültiger relationaler Operator / illegal relational operator)
    So, I couldn't find a way that all three possibilities are working ... and using data templates, multiple selection never worked. If I hardcoded the where clause in the data template,
    e.g. where DEPARTMENT_NAME IN ('Administration','Marketing'), it worked fine (no matter, whether I place the sql statement within an CDATA section, or not).
    Can anyone tell me, what I'm doing wrong here?
    While testing my problem, I figured out that there's a difference of generated parameter output ... I just put the parameter in the select list, and depending on whether you use SQL query or data template, you'll get different results:
    SQL statement
    => for each parameter value an own parameter
    <_MYPARAMETER>Administration</_MYPARAMETER> in the case of single selection
    <_MYPARAMETER8093>Administration</_MYPARAMETER8093>
    <_MYPARAMETER8094>Marketing</_MYPARAMETER8094> in the case of multiple selection
    data Template
    => list of parameter values
    <_MYPARAMETER>Administration</_MYPARAMETER> in the case of single selection
    <_MYPARAMETER>'Administration','Marketing'</_MYPARAMETER> in the case of multiple selection
    Maybe that's the problem? I don't know, this difference how the Publisher Engine copes with parameters just attracted attention to me ...
    Alright, I hope it was not too confusing. I would appreciate any help, since here @ the customer's site we need to use data templates inclduing multiple selection in order to establish a context for VPD.
    The problems in summary:
    - how to write a select statement to include all three possibilites of parameter selection (single selection, multiple selection, All option)
    - multiple selection never worked using data templates
    Can someone help me here?

    hi,
    i think you have to use lexical parameters and a package, like this:
    <dataTemplate name="departments" dataSourceRef="hr@demo" defaultPackage="bip_departments">
    <parameters>
    <parameter name="p_location_id" include_in_output="false" datatype="float"/>
    </parameters>
    <dataTrigger name="beforeReport" source="bip_departments.beforeReportTrigger"/>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[ select d.department_id, d.department_name, d.location_id
                      from departments d
                     &p_where_clause
                order by location_id, department_id]]>
    </sqlStatement>
    </dataQuery>
    <dataStructure>
    <group name="LOC" source="Q1">
    <element name="location_id" value="location_id"/>
    <group name="DEPT" source="Q1">
    <element name="department_id" value="department_id"/>
    <element name="department_name" value="department_name"/>
    </group>
    </group>
    </dataStructure>
    </dataTemplate>
    with package:
    create or replace package bip_departments
    as
    p_location_id long;
    p_where_clause long;
    function beforereporttrigger
    return boolean;
    end bip_departments;
    create or replace package body bip_departments
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    if (p_location_id is not null)
    then
    p_where_clause := 'where (d.location_id in (' || replace (p_location_id, '''') || '))';
    else
    p_where_clause := 'where 1=1';
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments;

  • When I go to Apple TV menu and click on Settings, nothing happens. How do I get into the settings menu?

    Hi, I can't get past the setup stage with my Apple TV box. It takes forever trying to set the date and time and never seems to achieve this. When I select menu and then select Settings, nothing whatsoever happens. If I can't access the Settings menu, then clearly I can't set the network and password. Can anyone tell me how to get into the Settings menu please? Thanks

    Honestly, I have never heard of this issue. The only thing that i can recommend is obtaining a Micro-USB cord and restoring the device. That's probably your only way out of this.

  • Multiple Selection button on selection screen called in Screen Painter

    Hello ABAPers
    I have included selection screen(1100) in a subscreen area of a screen in module  program.
    The user's requirement is that there should be some gap between input field of a select options and multiple selection button.
    Though the screen 1100 can be edited by going to the layout editor and the gap can be introduced but everytime the object is released to quality server, the change is undone.
    Is there any way to introduce gap permanently?
    Thanks & Regards,
    Garima.

    Hi Garima,
    This mey be due to that the size of subscreen area is smaller then that of selecction screen(1100).
    Do one thing....include your selection buttons in the main screen in which subscreen is created. if that dosn't work include selection buttons in your selection screen(1100) and then call it in subscreen.
    Thanks
    Rajesh Kumar

  • I cannot access my gmail. I follow the instructions to click on the menu and then on settings, but there is not a setting icon.

    I have a new computer. I cannot access some of my sites, such as gmail. The instructions that I keep getting are to click on the chrome menu and then select settings. When I click on the menu, I cannot find an icon for settings. I have tried everything I can think of to no avail. Nothing works!

    What happens if you try to open https://mail.google.com/ ? Do you get a "page not found" error, or a security certificate error, etc.?
    Firefox has a "3-bar" menu similar to Google Chrome, and you should find Options there, but if you have instructions for the Chrome settings page, they aren't going to match Firefox's Options dialog...

Maybe you are looking for

  • Problem in mapping while using Do not Use SOAP Envelope

    Hi All, This is wrt my thread 'Removing and adding SOAP Envelope' I am currently working on SOAP-XI-Proxy Scenario. For some un avoiadable reason, I had to use the option 'DO not use SOAP Envelope' .So the SOAP Envelope came withen the payload and in

  • Can we call a Function Module with in a loop

    Hi, Can we call a Function Module within a loop . Does it reduces the performance. Can you please guide regarding this. With Best Regards Mamatha.

  • Windows 2008 R2 Fax Server (Ongoing issue)

    I have a Windows 2008 R2 active directory, fax services work inbound through USB modem - have 50 Windows 7 clients connecting to the fax server and outbound faxing works.  Here's the issue:  After a few days, the clients start getting server disconne

  • Please Help me with Reporting!!!!

    I am looking at using Captivate to create online training courses within local government and I am wondering what my options are regarding reporting? Is the email function a reasonable format? What is AICC? What is SCORM? What is Question mark percep

  • Trying to download cc onto windows on my mac

    I just purchased Parallels and Windows 8 to run on my Mac OSX and I want to download the CC and AI for my Windows.  I tried downloading CC in the Windows 8 and it says Error 72 and a problem with the downloaded files.  If I already have CC & AI on my