1 Reply Latest reply on Jun 12, 2009 3:56 AM by Ilya Shaikovsky

    Facing problem with a:commanButton

    Sharath Kumar Newbie

      Hi all,
      I am facing problem with a:commandButton while submitting the value. The form is not submitting the values.

      Here is my piece of code,

      <h:form id="addmealplansform">
       <h:panelGroup id="selectedMealPlans">
       <table>
       <tr>
       <td><b><h:outputText value="Some Meal Plan Name"/></b></td>
       </tr>
       <tr>
       <td></td>
       <td><b><h:outputText value="Adults:"/></b></td>
       <td>
       <h:selectOneMenu value="#{testData.noOfAdults}" style="width: 60px;">
       <s:selectItems value="#{testAction.numberToList(10,true)}" var="number" label="#{number}"/>
       </h:selectOneMenu>
       </td>
       <td><b><h:outputText value="Childrens"/></b></td>
       <td>
       <h:selectOneMenu value="#{testData.noOfChildrens}" style="width: 60px;">
       <s:selectItems value="#{testAction.numberToList(10,true)}" var="number" label="#{number}"/>
       </h:selectOneMenu>
       </td>
       <td width="20"></td>
       <td>
       <h:panelGroup>
       <h:panelGroup>
       <h:panelGroup layout="block" >
       <rich:dataTable var="day" width="200">
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column width="40"><h:outputText value="Select"/></rich:column>
       <h:column><h:outputText value="Date"/></h:column>
       </rich:columnGroup>
       </f:facet>
       </rich:dataTable>
       </h:panelGroup>
       <h:panelGroup layout="block">
       <rich:dataTable id="dayslist" var="day" value="#{testAction.mealPlanDaysList}" width="150">
       <rich:column width="40">
       <h:selectBooleanCheckbox value="#{testAction.mealPlanDaysForSelect[day]}"/>
       </rich:column>
       <h:column>
       <h:outputText value="#{systemUtils.formatDate(day, selectedInstance.dateFormat.businessValue)}"/>
       </h:column>
       </rich:dataTable>
       </h:panelGroup>
       </h:panelGroup>
       </h:panelGroup>
       </td>
       </tr>
       </table>
       </h:panelGroup>
       <br/>
       <h:panelGroup>
      
       <a:commandButton value="Confirm" action="#{testAction.confirmSelectedMealPlan()}" oncomplete="closeAddMealPlansDlg();"/>
       <input type="button" value="Cancel" onclick="#{rich:component('addMealPlanEzeeLinkDlg')}.hide()"/>
      
       </h:panelGroup>
       </h:form>
      

      Can any one please help me out to come over this probs...
      Thanku vry much...

      plz make it fast...!

      CORRECTED. Do not forget code tags please.