• Post Reply Bookmark Topic Watch Topic
  • New Topic

invoke a bean's method in JSF data table  RSS feed

 
lijun wang
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have A bean like this:
=============================================================
public class UserEventDataBean implements Serializable {

private Timestamp userEventDate;

public String getDateLocalFormatted() {
return DateTimeAdjust.getDateLocalFormatted(userEventDate);
}

public String getTimeLocalFormatted() {
return DateTimeAdjust.getTimeLocalFormatted(userEventDate);
}

public Timestamp getUserEventDate() {
return userEventDate;
}

public void setUserEventDate(Timestamp userEventDate) {
this.userEventDate = userEventDate;
}
}
=================================================================

can I do like this:
=================================================================
<h utputText id="text12"
value="# varuserEventFacadeFindEventsByDateRangeResultBean.getDateLocalFormatted()}"
styleClass="outputText">
</h utputText>
==================================================================
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
varuserEventFacadeFindEventsByDateRangeResultBean.dateLocalFormatted

Note there is no get or ().
 
gopal kishan
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

for buttons:



for other field

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!