0 Replies Latest reply: Jul 6, 2010 10:29 AM by 843833 RSS

    JSF-form

    843833
      @ManagedBean
      public class ItemsMB {
          public List<String>  getItems(){
              .....
                return list
          }
      }
      <ui:repeat var="i" value="#{itemsMB.items}">
              
              #{i} 
                  
                      <h:form>
                              <h:commandLink action="#{deleteMB.delete}" value="DELETE">            
                                      <f:param name="item" value="#{i}" />
                                  </h:commandLink>
                      </h:form>
              <br/>
          </ui:repeat>  
      When I click on the link DELETE, the method &#1110;temsMB.getItems() called again
      and only then passes to the method deleteMB.delete().

      Why? why not just go to deleteMB.delete ()? Why this extra reload?

      Edited by: Roman.P on Jul 6, 2010 8:28 AM

      Edited by: Roman.P on Jul 6, 2010 8:29 AM