[richfaces-issues] [JBoss JIRA] (RF-13144) Hello I have Rich :calender componemt Now I want to use it as input and call DataTable values from Table I am trying this but wont look like work

Asim Shaikh (JIRA) jira-events at lists.jboss.org
Wed Aug 21 06:47:27 EDT 2013


     [ https://issues.jboss.org/browse/RF-13144?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Asim Shaikh updated RF-13144:
-----------------------------

    Description: 
this is my code in
<rich:calendar value="#{eventMaster.eventDate}"
                                         popup="#{eventMaster.popup}" datePattern="#{eventMaster.pattern}"
                                         showApplyButton="#{eventMaster.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"
                                         disabled="#{eventMaster.disabled or eventMaster.viewMode}">
                          </rich:calendar>
<h:commandButton  value="#{lbl['label.search']}" action="#{eventMaster.searchOutputScreenRecords}" id="evntrtys99rchhh"/>

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

  was:
this is my code in
<rich:calendar value="#{eventMaster.eventDate}"
                                         popup="#{eventMaster.popup}" datePattern="#{eventMaster.pattern}"
                                         showApplyButton="#{eventMaster.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"
                                         disabled="#{eventMaster.disabled or eventMaster.viewMode}">
                          </rich:calendar>
<h:commandButton  value="#{lbl['label.search']}" action="#{eventMaster.searchOutputScreenRecords}" id="evntrtys99rchhh"/>

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


    
> Hello I have Rich :calender componemt  Now I want to use it as input and call DataTable values from Table I am trying this but wont look like work 
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-13144
>                 URL: https://issues.jboss.org/browse/RF-13144
>             Project: RichFaces
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: base functionality
>            Reporter: Asim Shaikh
>
> this is my code in
> <rich:calendar value="#{eventMaster.eventDate}"
>                                          popup="#{eventMaster.popup}" datePattern="#{eventMaster.pattern}"
>                                          showApplyButton="#{eventMaster.showApply}" cellWidth="24px" cellHeight="22px" style="width:200px"
>                                          disabled="#{eventMaster.disabled or eventMaster.viewMode}">
>                           </rich:calendar>
> <h:commandButton  value="#{lbl['label.search']}" action="#{eventMaster.searchOutputScreenRecords}" id="evntrtys99rchhh"/>
> 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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list