Package com.googlecode.wicketwebbeans.model.api

Examples of com.googlecode.wicketwebbeans.model.api.JAction


            // Customize certain properties from above.
            .properties(
                new JProperty("firstName").required(true).maxLength(10),
                new JProperty("lastName").required(true)
            )
            .actions( new JAction("save").confirm("Are you sure you want to save?") );
       
        BeanMetaData meta = new BeanMetaData(bean.getClass(), null, jbean, this, null, false);
        add( new BeanForm("beanForm", bean, meta) );
    }
View Full Code Here


         */
        jbeans = new JBeans(
            new JBean(TestBean.class)
                .context("nofirstname")
                .actions(
                    new JAction("goToGlobal").ajax(true)
                )
                .properties(
                    new JProperty("action.goToGlobal"),
                    new JProperty("-action.clear"),
                    new JProperty("-action.global"),
                    new JProperty("firstName"),
                    new JProperty("lastName"),
                    new JProperty("operand1"),
                    new JProperty("operand2"),
                    new JProperty("result"),
                    new JProperty("number")
                ),
            new JBean(TestBean.class)
                .context("clearfirstname")
                .actions(
                    new JAction("clear").ajax(true)
                )
                .properties(
                    new JProperty("-action.goToGlobal"),
                    new JProperty("action.clear"),
                    new JProperty("-action.global"),
View Full Code Here

    private List<Action> processActions(List<ParameterValueAST> values)
    {
        List<Action> jactions = new ArrayList<Action>();
        for (ParameterValueAST value : values) {
            String elementName = value.getValue();
            JAction jaction = new JAction(elementName);
            jactions.add(jaction);
            for (ParameterAST param : value.getParameters()) {
                jaction.add(param.getName(), param.getValuesAsStrings());
            }
        }
       
        return jactions;
    }
View Full Code Here

TOP

Related Classes of com.googlecode.wicketwebbeans.model.api.JAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.