petemuir wrote : h:column
| |h:outputText value=#{messages['sex.youngMane']}
rendered=#{entity.sex and entity.howOld eq 20} /
| | /h:column
Isn't better to get string directly from method?
Maybe u not understod my think.
I have field like int in each entity bean and collection of
I understand :) I wouldn't want to mix my business and presentation logic like
you suggest, so I would keep the presentation logic in the page. You could of
course do what you suggest as well.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4029774#4029774
I think the 1 approach it is ok.
I have working something similar:
| ice:selectManyCheckbox value=#{userManager.userRoles} id=userRoles
| s:selectItems value=#{roleList.resultList} var=role
label=#{messages[role.description]}/
| /ice:selectManyCheckbox
|
As you can see
That's not exacly i want to...
look:
My Entity Bean looks like this:
private int howOld;
private boolean sex;
| @Transient
| public String getPersonName() {
|
| if(sex) {
|switch(howOld) {
| case(20) :
| //And here i want to
h:column
|h:outputText value=#{messages['sex.youngMane']}
rendered=#{entity.sex and entity.howOld eq 20} /
| /h:column
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4029334#4029334
Reply to the post :