开发者

how to find current event using action in oracle ADF?

开发者 https://www.devze.com 2023-03-08 00:39 出处:网络
I need to get the event w开发者_如何学编程hen action is getting called. I need the button id in my method bean.myAction. Please help.

I need to get the event w开发者_如何学编程hen action is getting called. I need the button id in my method bean.myAction. Please help.

<ce:button partialSubmit="true" action="#{bean.myAction}"/>

Thanks in advance.


i don' think this will do it for you. This method does not receive the id of the component that fires the action. I think you need to instead call an ActionListener method for this button - ADF will add this method to your backing bean and this method takes an argument of ActionEvent and from the event object you can get the component id that fired the event using getComponent(). You can call your action myMethod from there or add it as an Action method.

0

精彩评论

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

关注公众号