Check out how panels, fragments and borders work. That will let you
break things up in smaller pieces and defer the decission of which
actual markup will be used.
if (x) {
add(new TextFieldPanel("editor");
} else {
add(new ListEditor("editor);
}
...
<form>
...
<span wicket:id="editor" />
...
</form>
etc.
Just play with it a bit, I'm sure you'll get it :) Also, check out
dynamic components like Tree and Wizard etc and see how they use
panels internally.
Eelco
On 4/9/07, Pieter Laeremans <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm just getting started with wicket and I like. (I have a strong
> Swing background :-)) .
>
> Bat it looks to me that I sort of have to "design" each gui, i.e. I
> have to write markup files.
>
> In some cases I would like to be able to generate a form based on a
> database table. And I wouldn't like to adapt my code when the table
> structure changes.
>
> But it seems to me I always have to supply a html file were each
> component is mapped to. Is there a way to generate the html on the
> fly ? It is not immediatly clear to me.
>
> kind regards,
>
> Pieter
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user