Win a copy of Terraform in Action this week in the Cloud forum!

Jyosthna Jaladi

Greenhorn
+ Follow
since Apr 21, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jyosthna Jaladi

Hi,

I am facing a issue when i use richfaces calendar with JSF. When i have richfaces calendar in the form <h:commandButton> is not invoking the action method. When i have changed the <h:commandButton> to <a4j:commandButton>, action method is getting invoked, but all the form elements are null in the backend bean method (searchAppt) though i enter some values.

Here is the code
<h:form id="srvcPrvdrAppointmentsfrm">
<a4j:outputPanel ajaxRendered="true">
<h:inputText id="staffMember" value="#{srvcPrvdrAppointmentsBean.staffMember}"/>
<rich:calendar id="todate"
value="#{srvcPrvdrAppointmentsBean.toDate}"
datePattern="MM/dd/yyyy"></rich:calendar>
<h:outputText styleClass="usrRegParms" value="From Date"></h:outputText>
<rich:calendar id="fromdate" value="#{srvcPrvdrAppointmentsBean.fromDate}"
datePattern="MM/dd/yyyy"></rich:calendar>

<a4j:commandButton ajaxSingle="true" id="searchCmd" reRender="myAppts"
value="Search" action="#{srvcPrvdrAppointmentsBean.searchAppt}"
/>

</a4j:outputPanel>
</h:form>

I am new to richfaces and JSF. Any help will be greatly appreciated.

Jyosthna
[ April 21, 2008: Message edited by: Jyosthna Jaladi ]
13 years ago
JSF