Hello. I'm currently learning Wicket by converting my previous JSP site to Wicket. In my previous site, I have a product detail forms for the user to enter the detail of a specific product. This kind of detail differs for each category of products (e.g. a CPU has different detail with a motherboard). The code (in mixed JSP, crippled for simplicity sake) is like this :
<form action="edit_action.jsp?product_id=<%= product.getId() %>" method="post"> <table width="100%" cellpadding="0" cellspacing="5"> <tr valign="top"> <td width="20%">Name : </td> <td width="80%"><input type="text" name="name" size="50" maxlength="100" value="<%= product.getName() %>" /></td> </tr> *<% for (ProductDetail productDetail : EJBAgent.getProductService().getProductDetailsByProduct(product.getId())) { %> <tr valign="top"> <td><%= EJBAgent.**getProductService**().getField(productDetail.getFieldId()).getName() %> : </td> <td> <input type="text" name="<%= productDetail.getFieldId() %>" id="<%= productDetail.getFieldId() %>" size="50" maxlength="255" value="<%= productDetail.getContent() %>" /> </td> </tr> <% } %>* <tr valign="top"> <td></td> <td><input type="submit" value="Edit" class="Button" /></td> </tr> </table> </form> The bold parts are the most important section, in that code, it generates the dynamic field for each product details associated with a product (according to their corresponding category). How can I do this with Wicket? I've been googling so far with no luck... Thanks before!