links for 2010-12-29

30 12 2010
  • <h:form>
    <h:commandButton value="Show" actionListener="#{MyBean.setStr}" action="#{MyBean.go}" >
    <f:attribute name="name" value="Hello"/>
    </h:commandButton>
    </h:form>

    public class MyBean {
    private String str;
    …..
    public void setStr(ActionEvent event){
    String name = (String) event.getComponent().getAttributes().get("name");
    this.str=name;
    }
    public String go(){
    return ("success");
    }
    }





links for 2010-12-28

29 12 2010




links for 2010-12-27

28 12 2010