4 Replies Latest reply on Sep 20, 2007 5:30 AM by ameo

    JSF and all commandButtons are fired

    ameo Novice

      Hello,

      I have a jsf-portlet. Now, when I click a commandButton of that jsf all the methos of the underlying Managed-Bean are processed. Why ?

      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <f:view>
      <h:form id="main">
      ..
      <h:commandButton id="b1" type="submit" action="#{Bean.calit}" value="Calculation"/>
      ..
      <h:commandButton id="b2" type="submit" action="#{Bean.calit2}" value="Calculation 2"/>
      </h:form>
      </f:view>