2 Replies Latest reply on Sep 3, 2009 9:32 AM by fabdib

    CommandButton problem

      Hi to everyone,
      i've a richfaces form, with some 3 rich:calendar, 2 inputtext, 2 selectonemenu, 2 table and three button. In this form if i click a butto the first time (after the first load of the page), the event on the button dosen't start and the value of the item on the form will be resetted?
      There some tell me if this is a bug of jsf/richfaces.

      Thanks Fabio.

        • 1. Re: CommandButton problem
          ilya_shaikovsky

          we need some code pieces demonstrating problem.

          • 2. Re: CommandButton problem

            Here some code:

            <ui:define name="body">
            .........

            JAVASCRIPT

            function selectRadio(valore) {
            var inputs = document.getElementsByTagName("input");

            if (inputs.type == "checkbox") {
            inputs
            .checked = valore;

            }
            }


            ..........


            FORM


            <rich:panel rendered="#{identity.isLoggedIn()}">
            <f:facet name="header">Report di gestione</f:facet>
            <h:form>

            .........

            CALENDAR

            <rich:panel style="margin:10px;">
            <s:decorate id="dayDecorate" template="/layout/edit.xhtml">
            <h:outputText id="dayInfo" value="(gg/mm/aaaa) " />
            <ui:define name="label">giornaliero:</ui:define>
            <rich:calendar id="day" showWeeksBar="false" todayControlMode="hidden" value="#{reportTransitiAction.giornaliero}"
            datePattern="dd/MM/yyyy" title="usa il calendario" enableManualInput="true">
            </rich:calendar>

            </s:decorate>

            ........


            TABLE

            <rich:dataTable id="quadrature_giornata"
            onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
            onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
            cellpadding="0" cellspacing="0" border="0" rows="10"
            var="record" value="#{reportTransitiAction.giornata_result}" >

            <f:facet name="header">
            <rich:columnGroup>
            <rich:column>
            <h:outputText value="Matricola / Cognome Nome" />
            </rich:column>
            <rich:column>
            <h:outputText value="Giorno" />


            Etc......

            This page is very long, my answers is, the javascript in this code, can create this problem?

            thanks