0 Replies Latest reply on Aug 16, 2009 3:54 PM by Paul Botta

    Refreshing inplaceInput values - Need Help

    Paul Botta Newbie

      I am relatively new to JSF and need help understanding how to make something work. I have a checkbox on a form that will allow a user to use an existing address instead of retyping the information. This works fine for an outputText component, but not for the inplaceInput. The inplaceInput values change only when I force a browser refresh.

      
       <h:outputText value="Same as business address"/>
       <h:selectBooleanCheckbox
       id="useBusAddr"
       valueChangeListener="#locationController.useBusinessAddrListener}">
       <a4j:support event="onclick" limitToList="true" reRender="outStreet1,locStreet1"/>
       </h:selectBooleanCheckbox>
       <h:panelGroup/>
      
       <h:outputText id="outStreet1" value="#{locationController.selectedLocation.streetOne}"/>
      
       <h:outputText value="#{msgs['protinuum.administration.cntdtls.street1']}"/>
       <rich:inplaceInput
       id="locStreet1"
       layout="block"
       value="#{locationController.selectedLocation.streetOne}"
       defaultLabel="#{msgs['protinuum.interface.clickme']}"
       selectOnEdit="true"
       valueChangeListener="#{locationController.contactDetailsValueChangeListener}"/>
      


      The useBusinessAddrListener prepopulates the 'selectedLocation' bean values. When the checkbox is clicked, the outputText value is correctly updated, but not the input.

      Any guidance is greatly appreciated. Thx.