I Cant access some (Capitalized) fields in controllers
For Example
My controller (*.java)
package com.co.controller;
public class MyController {
// fields
private String FIELD;
private String F1;
// .... Controller code
// Setters and Getters
public String getFIELD() {
return FIELD;
}
public void setFIELD(String fIELD) {
FIELD = fIELD;
}
public String getF1() {
return F1;
}
public void setF1(String f1) {
F1 = f1;
}
}
My Screen (*.xhtml)
When i try to use
<h:panelGrid>
<h:outputText value="#{myController.FIELD}" />
<h:outputText value="#{myController.F1}" />
</h:panelGrid>
The result is
F1 field: is NOT Accessible
HOWEVER
FIELD field : is Accessible
The Error appeared
Property 'F1' not found on type com.co.controller.MyController
Also when i try to use
<h:panelGrid>
<h:outputText value="#{myController.fIELD}" />
<h:outputText value="#{myController.f1}" />
</h:panelGrid>
The result is
F1 field: is Accessible
HOWEVER
FIELD field : is NOT Accessible
Why that?