This http://issues.apache.org/jira/browse/WICKET-136 is probably
closer to what you are looking for. I use it myself, and it works
great. It's a simple addition to core, but I'd like to wait putting it
in there without introducing a lot of copy 'n paste code. And I'd
prefer Juergen to look at that, as he wrote most of the markup
association code.
Eelco
On 12/11/06, Matthijs Wensveen <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm trying to create a generic Form component with its own markup. I was
> under the impression that this would be possible using the
> wicket:component tag.
> An example:
>
> MyPage.html
> <html><body>
> And here is the form:
> <form wicket:id="myForm">
> design mode html
> </form>
> </body></html>
>
> MyPage.java
>
> //.. leave out uninteresting stuff until constructor
> public MyPage() {
> add(new MyForm("myForm"));
> }
>
> MyForm.html
> <html><body>
> <wicket:component>
> <h1wicket:id="formTitle"><h1>
> <input type="submit" value="submit">
> </wicket:component>
> </body></html>
>
> MyForm.java
> class MyForm extends Form {
> public MyForm() {
> add(new Label("formTitle", "The Form"));
> }
> }
>
> This does not seem to work however. What am I doing wrong?
>
> Thanks in advance,
>
> --
> Matthijs Wensveen
> Func. Internet Integration
> W http://www.func.nl
> T +31 20 4230000
> F +31 20 4223500
>
>
> -------------------------------------------------------------------------
> 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