Can I set an af:setActionListener on the search button of a af:query ?

Hi,
I want to store a flag in the session scope when the search button of an <af:query> form is pressed. The flag is used to determine if the query has been executed and the result table iterator should provide the result.
I'm still looking for a solution to handle the problem of an automatic query execution when a search page is rendered (see How to execute query only when user submits request in <af:query>
And the solution should work without Java code. :-)
Thanks,
Markus

Hi Frank,
thats a tough question. I have some opinions on how to implement it:
1.) Exposing listeners
Easy (?!) solution, needs managed beans as listeners.
2.) Exposing the commands. Make the commands like 'search', 'reset', 'save' ... accessible by creating extra JSF code for the commands in a facet when D&D the <af:query>.
I don't know if it is possible to implement such a solution, but the developer can extend or adapt easily the behavior to his own needs.
3.) Implement result of a D&D of a named criteria as a series to single JSF components. Each component implements an aspect of the <af:query> component.
Markus

Similar Messages

  • Zzxc: When I set Custom color for links, The search button becomes white(blank). If I click on the area where it should be it works

    I changed my visited link colors to red-visited,green-not visited.but now have lost the search button in Amazon.The button is not showing up,But does work if I click on the area where it used to be.

    Did you hide background images?
    See http://kb.mozillazine.org/Website_colors_are_wrong
    Tools > Options > Content : Fonts & Colors: Colors > [[X]"Allow pages to choose their own colors, instead of my selections above"

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • HT4759 I now have my daughters iPad can you please tell me why I can't set up iCloud.in settings the iCloud is greyed out also how do I change her mail account to mine?

    I now have my daughters iPad can you please tell me why I can't set up iCloud.in settings the iCloud is greyed out also how do I change her mail account to mine?

    To change your iCloud ID or password you have to go to Settings>iCloud, tap Delete Account, then sign back in with your other ID.  If you need to migrate any of your daughter's iCloud data to your account, choose Keep on My iPad when prompted, then choose Merge to upload it to the new account.  If not, choose Delete from My iPad.

  • Can i set up my ipad in the same itouch account?

    can i set my new ipad in the same account/place where i currently have my itouch set up? will this affect what i currently have in my itouch or will it see the difference when i connect my ipad and itouch? thank you

    You can use the same account and iTunes library with both - iTunes will recognise that it's a different device and you can then chose what to sync or not to sync. I use my iPad, iPhone, and iPod Touch on the same computer without any problem.

  • Can we set a default value for the container variable in BPM?

    Can we set a default value for the container variable.?
    Suppose if i have a loop step and i have given a container variable i=5 as end condition.What value will it take during its first execution?Can we set the value for container before a recieve step?

    Hi
    Define Container Variable of Type integer and Category Simple Type .Use Condtion in Loop.
    In Container Operation Step Assign value and Use Expression to
    Increase or Decrease Valus according to your operation.
    look Pattern 4 in this blog to understand Container Operation
    /people/sharathchandra.girmaji/blog/2008/09/11/bpm-with-patterns-explained-part-1

  • How can I set up iMessage to ensure the text messages people are sending me arrive both on my computer AND on my iPhone as well?

    How can I set up iMessage to ensure the text messages people are sending me arrive both on my computer AND on my iPhone as well?

    Use the same ID in Settings > Messages > Send & Receive on both devices and have people use that ID. Your iPhone number would be a good choice.

  • Can I set Acrobat X to increase the proportion of my PC's RAM it uses?

    Can I set Acrobat X to increase the proportion of my PC's RAM it uses, in order to speed up OCR processing?  Currently, it uses up to 25% of my PC's RAM when OCR processing but I would like to increase this in order to complete OCR jobs more quickly.

    Short answer: no.
    Long answer: a very few programs can use multiple cores. To do this, they have to split up and run themselves as multiple separate programs (in effect). This is only really suitable when either
    (a) two entirely different things need to be done or
    (b) a job can be split up into a lot of identical jobs, and all done at the same time.
    Photo editing and video editing are the obvious cases of (b), since they have to repeat the same stuff over each bit of a picture, and a picture could be done in slices. Making programs run on multiple cores is awesomely complicated (especially if they previously didn't) but it's no coincidence that Adobe Photoshop and (I think) Adobe Premiere Pro - being image and video editors - are out there using multiple cores.
    OCR doesn't lend itself to this terribly well (since the entire page is context), but what could work well is a program which is designed to do OCR on multiple files; it could split up and do them at the same time. Acrobat isn't that kind of high end program, however, it's meant for desktop users doing one thing at a time.

  • HT1689 Can i combine my husbands contacts and mine if we have two different itune accounts and emails and passwords?  Can both sets of contacts live on the cloud and be donwloaded to both our phones?

    Can i combine my husbands contacts and mine if we have two different itune accounts and emails and passwords?  Can both sets of contacts live on the cloud and be donwloaded to both our phones?

    Hey NON-TECHNO-WIZARD
    You can do one of two things. The first is to just export out the contacts and import them into each other’s account. If something is updated the other person will not be updated with the information. Now another options is using one Apple ID for iCloud Syncing and then you can still use individual Apple ID’s for store purchases. The article below will shed some light on how you can use the Apple ID.
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • Item - Can't set value on item because the item can't get focus.  [66000-15

    hi i created one text box in purchase order form and asign the choose from list.l when i choose in edit box its show the following error-- Item - Can't set value on item because the item can't get focus
    Dim lonHeadDatasource As SAPbouiCOM.DBDataSource
    lonHeadDatasource = oOrderForm.DataSources.DBDataSources.Item("OPOR")
    oNewItem1 = oOrderForm.Items.Add("EditDS", SAPbouiCOM.BoFormItemTypes.it_EDIT)
                        Dim oCFLs As SAPbouiCOM.ChooseFromListCollection
                        Dim oCFLCreationParams As SAPbouiCOM.ChooseFromListCreationParams
                        Dim oCFL As SAPbouiCOM.ChooseFromList
                        oCFLs = oOrderForm.ChooseFromLists
                        oCFLCreationParams = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                        oCFLCreationParams.MultiSelection = False
                        oCFLCreationParams.ObjectType = "INTORDER"
                        oCFLCreationParams.UniqueID = "CFL1"
                        oCFL = oCFLs.Add(oCFLCreationParams)
                        oItem = oOrderForm.Items.Item("4")
                        oNewItem1.Top = 95
                        oNewItem1.Height = oItem.Height
                        oNewItem1.Width = 140
                        oNewItem1.Left = 125
                        oEdit = oNewItem1.Specific
                        oEdit.DataBind.SetBound(True, "OPOR", "U_EditDS")
                        oOrderForm.Items.Item("EditDS").Specific.ChooseFromListUID = "CFL1"
                        oEdit.ChooseFromListAlias = "U_ID"
    Item events
    Try
                If pVal.BeforeAction = False Then
                    If (pVal.FormType = 142) Then
                        Select Case (pVal.ItemUID)
                            Case "EditDS"
                                Select Case (pVal.EventType)
                                    Case SAPbouiCOM.BoEventTypes.et_GOT_FOCUS
                                    Case SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST
                                        Dim bonCflEvents As SAPbouiCOM.ChooseFromListEvent
                                        Dim bonCflList As SAPbouiCOM.ChooseFromList
                                        Dim bnnstrUID As String
                                        Dim bonDTTable As SAPbouiCOM.DataTable = Nothing
                                        bonCflEvents = pVal
                                        bnnstrUID = bonCflEvents.ChooseFromListUID
                                        bonDTTable = bonCflEvents.SelectedObjects
                                        bonCflList = oOrderForm.ChooseFromLists.Item(bnnstrUID)
                                        If pVal.BeforeAction = False Then
                                            If oOrderForm.Mode <> SAPbouiCOM.BoFormMode.fm_FIND_MODE Then
                                                If Not (bonDTTable Is Nothing) Then
                                                    If bonCflList.UniqueID = "CFL1" Then
                                                        If pVal.ItemUID = "EditDS" Then
                                                            Dim value As String = Nothing
                                                            oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0)
                                                        End If
                                                    End If
                                                Else
                                                    lonHeadDatasource.SetValue("EditDS", lonHeadDatasource.Offset, "")
                                                End If
                                            End If
                                        End If
                                End Select
                        End Select
                    End If
                End If
            Catch ex As Exception
                SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
    Thanks & Regards
    B.Narain

    Hi
    Instead of   oOrderForm.Items.Item("EditDS").Specific.value = bonDTTable.GetValue(0, 0) the following
    lonHeadDatasource.SetValue("U_EditDS", 0, bonDTTable.GetValue(0, 0))
    Regards
    Arun

  • My iPod is showing a white screen. I could not see anything. But I can listen to songs by blindly pressing the play button twice. The battery comes only for an hour.? How do I get the display and longer battery?

    Hello Friends,
    I've two iPod Nanos (4th gen - 8GB). I'm facing a severe problem with both of them. For both iPods, I tried to do this method Simultaneously press the top button + home (central) button. But of no use.
    1. My first iPod is showing a white screen. I could not see anything. But I can listen to songs by blindly pressing the play button twice. The battery comes only for an hour.? How do I get the display and longer battery?
    2. My second iPod is facing more severe problem. None of the buttons are working. When I connect it my PC it showing "CONNECTED- eject before disconnecting". But it is not ejecting with all the usual methods. When I manually and physically disconnect it from the PC the same "CONNECTED- eject before disconnecting" is still showing till the battery goes off. After that if i press any button it is showing low battery signal. And when i re-connect it to the PC the same process is repeating. When I tied to restore it to the factory settings I'm getting "Error" report.
    (I'm using windows 7)
    Friends, Please help me with the above problems. It will be a great help.
    Thank You.
    R.SAMALA

    Sounds like some hardware issues, meaning you'll want to take or send the iPods in for service or repairs. You can choose to have Apple do an out of warranty exchange for the prices indicated in the link below or find another third party service perhaps even local to your area.
    http://www.apple.com/support/ipod/service/prices/
    B-rock

  • I can not delete emails that appear in the search of my iPhone 4S. They are not in any of the mail folders or on the server. How can I do it?

    I can not delete emails that appear in the search of my iPhone 4S. They are not in any of the mail folders or on the server. How can I do it?

    If you have the serial number of the phone, put it in here
    To find the serial number without switching it on, read this article:
    Find the serial number and other information for your iPhone, iPad, and iPod touch - Apple Support

  • In iPhoto, how can I find a particular event using the search function?, In iPhoto, how can I find a particular event using the search function?

    In iPhoto, how can I find a particular event using the search function?

    NO - read my last answer over a year ago
    That is because iPhoto is all about photos - not about files
    You do not access the piles in iphoto - you access the photos using either iPhoto or the media browser - see this user tip for photo access details
    LN

  • Motorola Droid X2 - can I assign a specific function to the magnifier button?

    I would like to assign the magnifier button (rightmost of the 4 physical buttons) to bring up my universal inbox to eliminate several clicks for a function I use 100 times a day. I do not currently use the magnifier button at all.
    THanks.

    A long press of the search button can bring up other options as well, but the app has to specifically enable that API for it to work.  In other words, it's not likely that it will work for that app specifically.

  • IPhone 4-Caller can't hear my voice. Checked the mute button and had restart the phone. Still problem occurred. HELP ME PLS!

    iPhone 4-Caller can't hear my voice. Checked the mute button and had restart the phone. Still problem occurred. HELP ME PLS!

    I'm having same problem with my 3G. When I adjust my ringer volume it says headphone in parentheses. I can still hear thru headphones. Until u get it fixed maybe u could try this as a temp solution. Good luck.

Maybe you are looking for

  • InfoStore is missing Indexes, database corrupt

    Recently, we added two new Crystal users to our AD domain. Following the usual procedure, we went into the Crystal Management Console to add them to Crystal. (We go to Authentication, then the "Windows AD" tab and click the "update" button.) We were

  • Print on Epson printer font 17 cpi

    Hi, i have problems with printing report 6i on the printer epson dfx 8000. I want to print 210 chars in one line. Does somebody know how to do that ? (Edit .prt file ???). My OS is WinXp, which driver should i use, Generic or Epson ?

  • Issue with pdf-based forms (correspondence)

    Hello! Got a problem with our new pdf-based forms. I'm tryinig to print a new pdf-based dunning form via correspondence (fpcopara), but there is no option where i could say "XFP data stream with context evaluation". There are only the options for Sma

  • Find tab will not open in FF25

    After installing FF25 the find tab will not open. Cntrl +F or F3 does not open any find tab. Click on edit, scroll down to Find, click; nothing. Even downloaded FindBar Tweak to no avail. Using Win Vista. Thanks in advance.

  • The iTunes icon in my iphone disappeared

    one day, after sync with my PC for backup. The iTunes icon (Purple color) in my iPhone 4 disappeared. How to get it back to my iPone 4?