Java – access with dot (.) Bean

In the flow definition, I try to access a bean with a point in its ID

(for example: < evaluate expression = "bus. Myservicefade. Someaction()" / >

But it doesn't work Swf tries to find a bean "bus"

Initially, I overcame it by using auxiliary beans to load the required beans, but the solution was not elegant and uncomfortable It's also impossible to use aliases, because beans are part of a large system and I can't tamper with them

In short, none of the solutions allow me to reference beans directly with their original names Is this feasible in the current SWF version?

Solution

I can do this by using the bean accessor (@) symbol and single quotes around the bean name

Use your example: #{@ 'bus. Myservicefade'. Someaction()}

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>