在页面加载时初始化执行af:quickQuery默认条件(Initialize an execute af:quickQuery default criteria on page load)

编程入门 行业动态 更新时间:2024-10-15 16:23:13
在页面加载时初始化执行af:quickQuery默认条件(Initialize an execute af:quickQuery default criteria on page load)

我的要求是将参数传递给有界任务流,以便在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

更多推荐

本文发布于:2023-07-15 17:30:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1116671.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:初始化   加载   条件   页面   criteria

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!