使用托管bean进行导航的复合组件 [英] Composite component with navigation using managed bean

查看:140
本文介绍了使用托管bean进行导航的复合组件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个复合组件,该组件接收托管bean作为参数.复合结构具有一个提交h:commandButton,该提交运行来自托管bean参数(#cc.attrs.mBean.action};签名:String action())的方法.

I created a composite component that receives a managed bean as a parameter. The composite has a submit h:commandButton that runs a method from the managed bean parameter (#cc.attrs.mBean.action}; signature: String action()).

如果我使用方法签名而不是bean操作,那么知道composite:implementationtarget属性的用法:使用bean方法时是否可以实现类似的行为?

Knowing about the use of the target attribute in composite:implementation if I were using a method-signature instead of a bean action: is there a way to achieve a similar behavior when using a bean method?

其他内容: 无法从复合组件中找到匹配的导航案例

推荐答案

该错误原来是未显示的验证错误,并且阻止了方法的执行-总而言之,这似乎可以解决问题中的描述

The error turned out to be validation errors that were not being shown and block the execution of the methods - in conclusion, this seems to work as described in the question.

这篇关于使用托管bean进行导航的复合组件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆