Not sure I understand how to accomplish this. Even if I wrap it in a panel won't it be looking for markup?
My current markup for the dynamic table is as follows: <html xmlns:wicket="http://wicket.apache.org/"> <head> <title>Prices by Source</title> </head> <body> <wicket:panel> <br> <form wicket:id="form"> Portfolio: <select wicket:id="portfolioSelect"></select> <table class="dataview" cellspacing="0" wicket:id="table"> </table> </form> </wicket:panel> </body> </html> And the code" List<IColumn> columns = new ArrayList<IColumn>(); columns.add(new PropertyColumn(new Model("CUSIP"), "cusip", "cusip")); columns.add(new PropertyColumn(new Model("Description"), "description", "description")); PropertyColumn aPropertyColumn = new PropertyColumn(new Model("Override"), "overridePrice", "overridePrice") { public void populateItem(Item item, String componentId, IModel model) { TextField aTextField = new TextField(componentId); item.add(aTextField ); } }; columns.add(aPropertyColumn); DefaultDataTable aDefaultDataTable = new DefaultDataTable("table", columns, portfolioProvider, 8); igor.vaynberg wrote: > > wrap the textfield in a fragment or a panel > > -igor > > On Wed, Jun 11, 2008 at 3:39 PM, galbelli <[EMAIL PROTECTED]> > wrote: >> >> I am creating a DefaultDataTable dynamically as I only know the number of >> columns at runtime. All is working nicely but I now need to have one of >> the >> columns contain a TextField and not a Label. I am receiving the following >> error: >> >> WicketMessage: Component cell must be applied to a tag of type 'input', >> not >> '' (line 0, column 0) >> >> How can I control the markup so I may change the HTML from span to input? >> -- >> View this message in context: >> http://www.nabble.com/How-to-add-a-TextField-in-a-Dynamically-created-DefaultDataTable-tp17788822p17788822.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-add-a-TextField-in-a-Dynamically-created-DefaultDataTable-tp17788822p17804562.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
