7 Replies Latest reply on Nov 27, 2008 10:40 AM by didier loyen

    rich:inplaceInput updates the model, not h:selectOneMenu or

    didier loyen Newbie

      Hi all,
      I'm quite puzzeled by a strange behaviour since I upgraded a webapp to spring 2.5.5 : a property of an hibernate entity bound to a jsf variable is correctly commited to db by a richfaces component like rich:inplaceInput, but all the other properties of the same object are not. The only difference I see is they are used with base jsf controls like h:selectOneMenu or h:inputText (I have read there is some problems with custom converters but there are none on these properties...).
      Someone knows a reason ?

        • 1. Re: rich:inplaceInput updates the model, not h:selectOneMenu
          Ilya Shaikovsky Master

          really strange.. please post your code :) Also, maybe there are some server messages?

          • 2. Re: rich:inplaceInput updates the model, not h:selectOneMenu
            didier loyen Newbie

            no message at all... it fails silently :(
            I've seen someone else reported here possibly the same problem last friday as I do my updates with a4j:support.

            works :

            <rich:inplaceInput layout="block" value="${contentmodule.name}"
             converterMessage="Taille maximale : 128 caracteres."
             id="mpnnameinplace" required="true"
             requiredMessage="Vous devez specifier un nom pour ce module."
             changedHoverClass="hover" viewHoverClass="hover"
             viewClass="inplace" changedClass="inplace"
             selectOnEdit="true" editEvent="onclick">
             <a4j:support event="onviewactivated" reRender="left_menu, content" ajaxSingle="true" limitToList="true" />
            </rich:inplaceInput>


            doesn't work :
            <h:selectOneMenu id="mpnintext" value="${contentmodule.intExt}">
             <f:selectItem itemLabel="" itemValue=""></f:selectItem>
             <f:selectItem itemLabel="Externes" itemValue="externe"></f:selectItem>
             <f:selectItem itemLabel="Internes" itemValue="interne"></f:selectItem>
             <a4j:support event="onchange" reRender="left_menu, content" ajaxSingle="true" limitToList="true" />
            </h:selectOneMenu>


            contentmodule is set here :
            <c:set var="contentmodule" value="#{makros:module(curmod)}" />


            makros being my custom taglib and module(curmod) returning obviously the entity.

            Besides, no updates (nor creates but deletes are ok :/ !!!) at all are commited if I don't add this to applicationContext :

            <tx:annotation-driven transaction-manager="transactionManager"/>


            which was not needed before the upgrade as I was using an aop interceptor upon my DAOs...

            • 3. Re: rich:inplaceInput updates the model, not h:selectOneMenu
              didier loyen Newbie

              Hi again,
              I still have no solution.
              I don't see what makes the rich:inplaceInput work and not the other components.
              I've read about selects not updating the model anymore , due to types of values not matching.
              Could it be something like that ?
              Just 'like' cause I have the problem with inputtexts and string properties...

              • 4. Re: rich:inplaceInput updates the model, not h:selectOneMenu
                Ilya Shaikovsky Master

                place phaseTracker to your class path and check its output in server log during request from select please.

                • 5. Re: rich:inplaceInput updates the model, not h:selectOneMenu
                  didier loyen Newbie

                  here is what the phase tracker says :

                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker beforePhase
                  INFO: BEFORE RESTORE_VIEW(1)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker afterPhase
                  INFO: AFTER RESTORE_VIEW(1)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker beforePhase
                  INFO: BEFORE APPLY_REQUEST_VALUES(2)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker afterPhase
                  INFO: AFTER APPLY_REQUEST_VALUES(2)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker beforePhase
                  INFO: BEFORE PROCESS_VALIDATIONS(3)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker afterPhase
                  INFO: AFTER PROCESS_VALIDATIONS(3)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker beforePhase
                  INFO: BEFORE UPDATE_MODEL_VALUES(4)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker afterPhase
                  INFO: AFTER UPDATE_MODEL_VALUES(4)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker beforePhase
                  INFO: BEFORE INVOKE_APPLICATION(5)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker afterPhase
                  INFO: AFTER INVOKE_APPLICATION(5)
                  27 nov. 2008 14:15:33 org.exadel.jsf.PhaseTracker beforePhase
                  INFO: BEFORE RENDER_RESPONSE(6)
                  27 nov. 2008 14:15:34 org.exadel.jsf.PhaseTracker afterPhase
                  INFO: AFTER RENDER_RESPONSE(6)


                  nothing special in facesTrace either

                  • 7. Re: rich:inplaceInput updates the model, not h:selectOneMenu
                    didier loyen Newbie

                    RichFaces 3.2.2 GA
                    MyFaces 1.2.5 (all the same with RI)
                    Spring 2.5.5
                    Hibernate 3.2.2 GA