This discussion is archived
2 Replies Latest reply: May 8, 2012 6:21 AM by Timo Hahn RSS

af:query search button partial trigger

inthelineoffire Pro
Currently Being Moderated

Having an af:query with table in Jdev page, how can we make the table visible/invisible if the table is empty. I can put
#{bindings.Details.estimatedRowCount > 0 }  
in my table visible property, but how to put a partial trigger from the default search button in the af:query to the table

  • 1. Re: af:query search button partial trigger
    Sudipto Desmukh Expert
    Currently Being Moderated
    I donot think you will need to add a partialTrigger separately. The resultComponentId attribute of the af:Query (which should reference the results table) should take care of this .

    From the documentation >
    resultComponentId : ....Product teams should ensure that this value is set correctly so that the search operation triggers a partial page refresh of the componen
    Edited by: Sudipto Desmukh on May 8, 2012 6:48 PM
  • 2. Re: af:query search button partial trigger
    Timo Hahn Oracle ACE
    Currently Being Moderated
    You can overwrite the QueryListener property of the af:query and in the bean code first call the original (e.g. #{bindings.EmployeesViewCriteriaQuery.processQuery}) and after this add the ppr to the table...



  • Correct Answers - 10 points
  • Helpful Answers - 5 points