3 Replies Latest reply on Oct 8, 2007 5:14 AM by inv3r53 d

    problem using data attribute

    inv3r53 d Novice


      i tried to acces a server side var in my javascript function , but somthg seems wrong with my code.

      w.r.t code below
      my bean(session scope)

      public class Data implements java.io.Serializable {
       private static final long serialVersionUID = -7741865412278521530L;
       private boolean flag;
       public boolean isFlag() {
       if (flag)
       flag = false;
       flag = true;
       return flag;
       public void setFlag(boolean flag) {
       this.flag = flag;

      <a4j:poll data="#{bean.flag}" interval="1000" onsubmit="return data.flag;" enabled="true" reRender="id_table"/>