PropertyNotFoundException on conditionally rendered subclasses in ui:repeat

后端 未结 2 1132
-上瘾入骨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条回答
  •  猫巷女王i
    2020-12-04 02:45

    This is caused by a bug in state management of Mojarra's which will expose when you use EditableValueHolder components (input fields) inside the as well. This is fixed as per issue 3215. The fix is available in Mojarra 2.2.7 and for JSF 2.0/2.1 backported to Mojarra 2.1.29 as per issue 3221. So upgrading to at least that version (or just the latest available as per Mojarra homepage) should do it.

    Otherwise, your best bet is to replace by .

提交回复
热议问题