1 Reply Latest reply on Feb 22, 2010 5:50 PM by Alex Cougarman

    ajaxRendered behaves differently on server than localhost

    Alex Cougarman Apprentice

      I have a Seam page that works correctly on my Localhost running the same version of JBoss as the server, but the AJAX calls behave strangely on the server. The server requires that I add ajaxRendered equals True to the two ouputPanels, otherwise it won't show the panels. I removed the ajaxRendered because it caused the values in the outputPanel controls to be lost when the other panel was re-rendered.

      I have required fields elsewhere on the page and I've read that those can interfere with AJAX calls, whereby you're forced to set ajaxRendered to True. Is this what I'm running into? I'm running Jboss 4.2.3.GA on my machine and the server, along with Seam 2.1.1.GA. What in the world is going on?

      Is there a utility to compare the instance of JBoss on the server with my localhost version? Any help is appreciated because I'm losing my mind on this. Thanks. Here's the pertinent code:

      <h:selectOneRadio value="#{webencode.requestType}"
        id="rdoRequestType" styleClass="radio" style="width:295px" layout="pageDirection" >
        <f:selectItem itemValue="program" itemLabel="Series or Individual Program"/>
        <f:selectItem itemValue="promo" itemLabel="Promo" />
        <f:selectItem itemValue="specific" itemLabel="Specific Format Encoding Request"/>
        <a4j:support ajaxSingle="true" event="onclick" reRender="program"/>
      <a4j:outputPanel id="program">
        <s:span rendered="#{('program' == webencode.requestType || 'promo' == webencode.requestType) ? true : false}">
          <h:selectOneMenu value="#{webencode.seriesId}" id="lstSeriesName">
            <f:selectItems value="#{webencode.programItems}"/>
        <s:span rendered="#{'specific' == webencode.requestType ? true : false}">
          <h:selectOneMenu value="#{webencode.arrVideoEncodings.get(0).videoEncoding}"
            id="lstSpecificVideoEncoding1" style="width:295px;">
            <f:selectItems value="#{webencode.videoEncodingItems}"/>
      <h:selectOneMenu value="#{webencode.inputMediaType}"
        <f:selectItems value="#{webencode.inputMediaTypeItems}"/>
        <a4j:support ajaxSingle="true" event="onchange" reRender="media"/>
      <a4j:outputPanel id="media">
        <s:span rendered="#{'Tape Library # or Server ID #' == webencode.inputMediaType ? true : false}">
          <h:inputText id="txtLibraryServerNumber"
            value="#{webencode.libraryServerNumber}" maxlength="50" />
        <s:span rendered="#{'Digital Media File Name' == webencode.inputMediaType ? true : false}">
          <h:inputText id="txtDigitalMediaFileName"
            value="#{webencode.digitalMediaFileName}" maxlength="195" /><br />