我的要求是将参数传递给有界任务流,以便在ADF中加载页面时初始化af:quickQuery组件。
<af:quickQuery label="Search" searchDesc="Search" id="qryId1" value="#{bindings.ImplicitViewCriteriaQuery1.quickQueryDescriptor}" model="#{bindings.ImplicitViewCriteriaQuery1.queryModel}" queryListener="#{bindings.ImplicitViewCriteriaQuery1.processQuery}"> <f:facet name="end"> <af:commandLink text="Advanced" rendered="false" id="cl1"/> </f:facet> </af:quickQuery>并且基于该参数值,我希望<af:quickQuery>从数据库中获取结果,并在页面首次加载时将其显示在页面上。 我知道InitialQueryOverriden属性,但它与我的情况不匹配,因为我需要将传递的参数设置为quickQuery,也许我需要覆盖queryListener并将参数值设置为隐式创建的条件。
任何人都可以为我提供合适的解决方案???
My requirement is to pass a parameter to a bounded task flow to initialize an af:quickQuery component on load of a page in ADF.
<af:quickQuery label="Search" searchDesc="Search" id="qryId1" value="#{bindings.ImplicitViewCriteriaQuery1.quickQueryDescriptor}" model="#{bindings.ImplicitViewCriteriaQuery1.queryModel}" queryListener="#{bindings.ImplicitViewCriteriaQuery1.processQuery}"> <f:facet name="end"> <af:commandLink text="Advanced" rendered="false" id="cl1"/> </f:facet> </af:quickQuery>and based on that parameter value I want <af:quickQuery> to fetch the result from Database and display it on the page when the page first loads up. I know about InitialQueryOverriden property but it doesnot match with my case since I need to set the passed parameter to quickQuery and perhaps I need to overwrite the queryListener and set the parameter value to the implicitly created criterion.
Can anyone provide me a suitable solution to this???
最满意答案
如果这是一个有界的任务流,那么您可以编写一个方法并使此方法成为默认活动。 这样它将首先运行。 请看这篇文章,它可能会有所帮助http://www.jobinesh.com/2011/03/using-component-for-filtering-child.html
If this is a bounded taskflow then you can write a method and make this method default activity. This way it will run first. Please see this post, it may be helpful http://www.jobinesh.com/2011/03/using-component-for-filtering-child.html
更多推荐
发布评论