Skip to main content

How to call Rich:Datatable values from table onclick Rich Calender on selectedDate

No replies
asim_Java
Offline
Joined: 2013-02-12
Points: 0

popup="#
{eventMaster.popup}

" datePattern="#
{eventMaster.pattern}

"
showApplyButton="#
{eventMaster.showApply}

" cellWidth="24px" cellHeight="22px" style="width:200px"
disabled="#
{eventMaster.disabled or eventMaster.viewMode}

">

now i wanted to call a action which will Search my Database(MySql) and display the records of selectedDate I ma calling it on commandbutton .I also write query above commandbutton works for h:inputText .Please help me in this regard

My Bean----

public Date getEventDate()
{ return eventDate; }

public void setEventDate(Date eventDate)
{ this.eventDate = eventDate; }

Action-------

public String searchOutputScreenRecords() {
this.searchVariableAvailable = true;
EventMasterOps opsObj = new EventMasterOps();
if (this.outputSearch != null) {
this.outputList = opsObj.searchRecordsInDatabase(this.outputSearch, ConstantsUtility.searchOutputForm);

if (this.outputList == null)
{ this.massage = "No Search Record is found."; }

}

}

In this method this.outputList = opsObj.searchRecordsInDatabase(this.outputSearch, ConstantsUtility.searchOutputForm); I have write my query to find search inputs