Package com.dodo.blog.ui.component.input

Examples of com.dodo.blog.ui.component.input.EntityChoiceRenderer


        FieldSet fieldSet = new FieldSet( localize( "title.articleEdit" ) );
        form.add( fieldSet );

        fieldSet.add( new FormRow( localize( "label.name" ), new TextBox( "title" ).setAutoFocus( true ) ) );
        fieldSet.add( new FormRow( localize( "label.content" ), new TextArea( "content" ) ) );
        fieldSet.add( new FormRow( localize( "label.category" ), new Select<Category>( "category", getCategories(), new EntityChoiceRenderer(), true ) ) );

        for ( int i = 1; i <= 5; i++ )
        {
            fieldSet.add( new FormRow( localize( "label.tag" ) + "_" + i, new Select<Tag>( "tag_" + i, getTags(), new EntityChoiceRenderer(), true ) ) );
        }

        form.add( new AjaxSubmitButton( "save", localize( "button.save" ) ) );
        form.add( new Anchor( "cancel", localize( "button.cancel" ), ArticleList.class ) );
    }
View Full Code Here

TOP

Related Classes of com.dodo.blog.ui.component.input.EntityChoiceRenderer

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.