[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

Brian Leathem (JIRA) jira-events at lists.jboss.org
Thu Aug 22 15:18:26 EDT 2013


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

Brian Leathem updated RF-13144:
-------------------------------

    Description: 
this is my code in
{code}
<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"/>
{code}

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----
{code}
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.";
        }
    }
}
{code}

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
{code}
<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"/>
{code}

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----
{code}
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.";
        }
}

      }
{code}

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


    
> 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
>            Assignee: Lukáš Fryč
>
> this is my code in
> {code}
> <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"/>
> {code}
> 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----
> {code}
> 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.";
>         }
>     }
> }
> {code}
> 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