2 Replies Latest reply on Sep 27, 2007 11:20 AM by jbeaken

    Non-form ajax request

    jbeaken

      Hi,

      I'm very new to ajax4jsf, i've been looking through the examples but most seem to involve generating ajax requests based on an input in a form. I wish to generate a ajax request just from a non-form click, to be precise

      <div id="tabs10" onclick="swap('filter')">
       <div id="left10"></div>
       <div id="middle10"><div id="text_position">..:: FILTER ::..</div></div>
       <div id="right10"></div>
       </div>


      i wish to generate a ajax request when the onclick event is fired, anybody done something similar?

      thanks in advance

        • 1. Re: Non-form ajax request

          RichFaces (former Ajax4jsf) framework is a JSF based framework. Only way for the postback in JSF is a form post.

          • 2. Re: Non-form ajax request
            jbeaken

            Thanks, I suppose i'll just use a form then, for reference

            <a4j:form>
             <a4j:commandLink id="filter" action="#{trackResultsPageState.updateElement}">
             <div id="tabs10" onclick="swap('filter')">
             <div id="left10"></div>
             <div id="middle10"><div id="text_position">..:: FILTER ::..</div></div>
             <div id="right10"></div>
             </div>
             </a4j:commandLink>
             </a4j:form>