PropertyNotFoundException on conditionally rendered subclasses in ui:repeat

后端 未结 2 1119
-上瘾入骨i
-上瘾入骨i 2020-12-04 02:17

I have a superclass Person:

public class Person {
    public abstract Type getType();
}

I have 2 subclasses of it:

<         


        
2条回答
  •  遥遥无期
    2020-12-04 02:54

    In my case I didn't had the option to upgrade Mojarra's version and to avoid c:forEach (that causes many side-effects when used with ui optionally rendered components) I replaced ui:repeat with a p:dataList and it worked. You'll have to do some CSS styling to hide the bullets but I think it's worth the price. I hope it helps someone ;)

提交回复
热议问题