I want to do something like that :

//-- JAVA

ArrayList<IHMElement> elements = getIHMElements(screenID); // from the
database
                
add(new ListView("listview", userList) {
    protected void populateItem(ListItem item) {
                                
                for (IHMElement ihmElement : elements) {
                        switch (ihmElement.getIHMType) 
                        { 
                        case CstElement.INPUT: item.add(new TextField("")) 
break; 
                        case CstElement.LABEL: item.add(new Label("")) break; 
                        ...
                        
                        }
    }
});


//-- HTML

<div wicket:id="listview">
   ????? 
</div>  



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Dynamic-generation-of-IHM-components-tp4661471p4661476.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to