개발햄비

[wicket] wicket button 例 본문

개발/wicket

[wicket] wicket button 例

개발햄 2019. 2. 16. 17:02

<form wicket:id="form">
    <input type="submit" value="non wicket submit button" />
    <input wicket:id="button1" type="submit" value="default wicket button" />
    <input wicket:id="button2" type="submit" value="wicket button with setDefaultFormProcessing(false)" />
</form>




Form form = new Form("form") {
        protected void onSubmit() {
            info("Form.onSubmit executed");
        }
    };

    Button button1 = new Button("button1") {
        protected void onSubmit() {
            info("button1.onSubmit executed");
        }
    };
    form.add(button1);

    Button button2 = new Button("button2") {
        protected void onSubmit() {
            info("button2.onSubmit executed");
        }
    };
    button2.setDefaultFormProcessing(false);
    form.add(button2);

    add(form);




'개발 > wicket' 카테고리의 다른 글

[wicket] radioGroup 例  (0) 2019.03.19
[wicket] wicket button javascript 転送の例  (0) 2019.02.16
[wicket]wicket ラジオ、radio使い方、例  (0) 2019.01.27