문제

I'm trying to take a Java EE 6 application which runs fine on GlassFish 3.1.1 and deploy it on JBoss 7.0.2. I'm running into PropertyNotFound exceptions when I try to navigate to pages due to differences in JBoss EL. It seems that JBoss EL doesn't allow method expressions to methods without parameters of the form:

<c:if test="${bean.calculateX('foo').size() > 0}">

In this example JBoss EL thinks the size method is a parameter. I can get it to work in JBoss by changing it to this:

<c:if test="${bean.calculateX('foo')[size] > 0}">

But now it won't work in GlassFish. Is there a compatible way to accomplish this?

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top