Hi,
 i have a markup (Loop) for a couple of fields. Its a dynamic form and all
the fields are text except one or two,
Sample Markup:

                

                        

                                        
                                        
                        
                



Now in the Java code, for the exceptional case I want to replace that
'input' with 'select', so I did:

field = new DropDownChoice("value", new Model(myBooleanvar),
                                                Arrays.asList(Boolean.FALSE, 
Boolean.TRUE)) {
                                                //Default is text type, change 
to select
                                                @Override  
                                                public void 
onComponentTag(ComponentTag tag) {
                                                                
tag.setName("select");
                                                                
tag.remove("type");
                                                                
super.onComponentTag( tag );
                                                  }
                                        };      


..this results in a Blank Drop Down Box withotu any values.

In the markup if I make it "select" it obviously works.
What else do I need to to do to get the "option"s, in the list in such a
case?



-----
Don't take life too seriously, your'e not getting out it alive anyway!
--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/DropDown-replacing-text-field-tp3336347p3336347.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