In order to get the input from my webpage into a javaclass I need to configure my faces-config.xml file
This isn't making any sense. Just bind the component's value to the bean property directly. The following works just fine for me without any faces-config.xml
registration (JSF 2.x assumed):
<h:form>
<h:selectBooleanCheckbox value="#{bean.checked}" />
<h:commandButton value="submit" action="#{bean.submit}" />
</h:form>
with
@ManagedBean
@RequestScoped
public class Bean {
private boolean checked;
public void submit() {
System.out.println(checked);
}
public boolean isChecked() {
return true;
}
public void setChecked(boolean checked) {
this.checked = checked;
}
}
I made a tutorial where they used the graphical editor of the faces-config.xml
Don't use a graphical editor. Don't drag'n'drop code. You won't learn writing code this way. Just write code yourself. You can however use shortcuts/wizards to autogenerate getters/setters and likes. But with that, you should still be sitting in a textbased editor.