开发者

Setting date from selectInputDate to object

开发者 https://www.devze.com 2022-12-24 20:00 出处:网络
I have a date controller which does various things. Once a calendar date is set, I want to pass the value from the date controller to another bean. The problem I have is that the setPropertyActionList

I have a date controller which does various things. Once a calendar date is set, I want to pass the value from the date controller to another bean. The problem I have is that the setPropertyActionListener gets called before the user clicks on a date.

Is there a way to get the date from the selectInputDate after sel开发者_开发技巧ection and pass to a bean?

This is what I tried:

<ice:selectInputDate popupDateFormat="dd-MMM-yyyy" renderAsPopup="true"  value="#{dateRangeDateContoller.end}" >
    <f:setPropertyActionListener target="#{searchParameters.endDate}" value="#{dateRangeDateContoller.end}" />
</ice:selectInputDate>  


Try setting partialSubmit="false".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号