1 Reply Latest reply on Apr 9, 2010 4:02 AM by Ilya Shaikovsky

    passing a parameter from --h:inputHidden-- to server in Ajax way

    Ahmet temiz Novice

      hello

       

      how can I pass a parameter from --h:inputHidden-- to server in Ajax way ?

       

      I tried --a4j:actionparam-- . It failed maybe because it is not associated with any action command.

       

      how can I do this ?

       

       

      ~~~~~~~~~~~

       

      <h:inputHidden id="inzheight" value="0" >
                   
                       <a4j:actionparam name="zheight" value="document.getElementById('harita:inzheight').value;" noEscape="true"
                              assignTo="#{haritaBean1.zHeight}"  >   
                             
                        <a4j:support event="oncomplete" reRender="zout" />             
                  </a4j:actionparam> 

      </h:inputHidden>

       

      <h:outputText id="zout" value="zout #{haritaBean1.zHeight}" />

       

      ~~~~~~~~~~~~~~~

       

       

      regards