java - EL can't handle a single character before an underscore? -
i using el pull object bean stored in session.
the object question called p_cov_moult , declared follows:
this.p_cov_moult = new formfield("f_b_p_cov_moult","");
and accessed via getter method so:
public formfield getp_cov_moult() { return p_cov_moult; }
which generated netbeans.
i appreciate usage of caps separated underscores not fit naming conventions non constants, it's useful semantic value.
i have many other properties stored in same bean, , pulling fine , have been while.
however, p_cov_moult , other properties in format of multiple underscore separated values first 1 being single character, javax.el.propertynotfoundexception.
the objects/properties stored in same way rest, can't found.
i've tried inserting separate method getp_cov_moult(), on assumtion converting name in el getter incorrectly (or correctly) , not calling getp_cov_moult(), instead calling different method, such getp_cov_moult(), didn't work.
here el:
<input type="text" name="${findingbiometrics.p_cov_moult.name}" id="${findingbiometrics.p_cov_moult.name}" value="${findingbiometrics.p_cov_moult.value}" ${findingbiometrics.p_cov_moult.readonlystate} ${findingbiometrics.p_cov_moult.disabledstate} size="5" />
any ideas appreciated. thanks.
the convention property names start small letter. if property name theproperty
, getter named gettheproperty
. if have getter called getp_cov_moult
, expect el property p_cov_moult
. however, naming pretty weird, i'm not 100% sure work.
Comments
Post a Comment