2 Replies Latest reply on Aug 13, 2009 11:13 PM by willie slepecki

    rerender text boxes

    willie slepecki Newbie

      ive got several areas in my app where things are calculated on the server and default values need to be pushed to the input boxes on the screen.  the problem is it seems the rerender codes in ajax work fine for h:outputText and labels, but when it comes to input boxes, they flat out don't work.  is there a way to get seam to refresh the contents of the input box based on what the seam components current value is?

      is this something im just simply going to have to do by hand with seam remoting?

        • 1. Re: rerender text boxes
          Israel Fonseca Apprentice
          Hmm, I myself have did something like that in the past and worked. Try to make a simple sample in another page. something like:

          class Bean

          private Long value;

          value = Math.random();

          <h:inputText value="#{bean.value}" id="inputValue"/>
          <a4j:commandButton value="test" action="#{bean.random}" reRender="inputValue"/>

          this REALLY should works.

          Try it.
          • 2. Re: rerender text boxes
            willie slepecki Newbie

            thats pretty much exactly what im doing and it doesn't work.  ive used this:

            <a:poll interval="1000" reRender="p_zip_err, in_city, in_state" bypassUpdates="true"  />

            when i put the zip code field itself in there, it breaks the tab order in the browser and everything except the input box rerenders.