Hello
I'm just starting to write my JSF application. It is ment for a school project so it's supposed to stay as JSF-way as possible. So my problem is:
Compiler says that the value for a foo is eighter null or don't render the text. I know this is basic example but i really need to do something not harder than this.
I'd like to get months names from java.util.Calendar and put it into <select><option>MonthName</option></select> but i don't want to do it manually. If it is possible to do it JSF-way then i MUST do it this way. I alredy found a way to get months names and put it in a list or anything i need but then i don't know how to put it inside the <h:selectOneMenu> as a <f:selectItems value="#{monthsNames}" />
And the other question i have is what's the difference between #{} and ${} in expression language ?
Anyway please help me with this. I'm tryng to work this out for several hours now.
I'm just starting to write my JSF application. It is ment for a school project so it's supposed to stay as JSF-way as possible. So my problem is:
Compiler says that the value for a foo is eighter null or don't render the text. I know this is basic example but i really need to do something not harder than this.
I'd like to get months names from java.util.Calendar and put it into <select><option>MonthName</option></select> but i don't want to do it manually. If it is possible to do it JSF-way then i MUST do it this way. I alredy found a way to get months names and put it in a list or anything i need but then i don't know how to put it inside the <h:selectOneMenu> as a <f:selectItems value="#{monthsNames}" />
And the other question i have is what's the difference between #{} and ${} in expression language ?
Anyway please help me with this. I'm tryng to work this out for several hours now.