Re: [Wicket-user] Associating markup
What you can do for now is just copy-paste that code so that you have your own FormComponentPanel. That'll work. Note that the one included in the issue doesn't pick up tags (though you can just use HeaderContributor etc as always). Eelco On 12/11/06, Rüdiger Schulz <[EMAIL PROTECTED]> wrote: > Ah, I've been waiting for a FormComponentPanel! I tried myself at one > some weeks ago, but failed horribly :( > > I hope I'll find the time to check this out soon, but at the moment I'm > still developing for 1.2.x. I have at least one component in my current > project that literally screams for a superclass like that. Palette from > wicket-extensions also comes to mind at once. > > Rüdiger > > > Eelco Hillenius schrieb: > > 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 > >> > >> And here is the form: > >> > >>design mode html > >> > >> > >> > >> MyPage.java > >> > >> //.. leave out uninteresting stuff until constructor > >> public MyPage() { > >> add(new MyForm("myForm")); > >> } > >> > >> MyForm.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 423 > >> 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 > >> Wicket-user@lists.sourceforge.net > >> 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 > > Wicket-user@lists.sourceforge.net > > 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 > Wicket-user@lists.sourceforge.net > 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Associating markup
Ah, I've been waiting for a FormComponentPanel! I tried myself at one some weeks ago, but failed horribly :( I hope I'll find the time to check this out soon, but at the moment I'm still developing for 1.2.x. I have at least one component in my current project that literally screams for a superclass like that. Palette from wicket-extensions also comes to mind at once. Rüdiger Eelco Hillenius schrieb: > 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 >> >> And here is the form: >> >>design mode html >> >> >> >> MyPage.java >> >> //.. leave out uninteresting stuff until constructor >> public MyPage() { >> add(new MyForm("myForm")); >> } >> >> MyForm.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 423 >> 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 >> Wicket-user@lists.sourceforge.net >> 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 > Wicket-user@lists.sourceforge.net > 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Associating markup
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 > > And here is the form: > >design mode html > > > > MyPage.java > > //.. leave out uninteresting stuff until constructor > public MyPage() { > add(new MyForm("myForm")); > } > > MyForm.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 423 > 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 > Wicket-user@lists.sourceforge.net > 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Associating markup
see the custom template loading example will help you here. otherwise there are two approaches wrapping the form in a border - this is much better supported in 2.0 -igor 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 And here is the form: design mode html MyPage.java //.. leave out uninteresting stuff until constructor public MyPage() { add(new MyForm("myForm")); } MyForm.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 423 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 Wicket-user@lists.sourceforge.net 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Associating markup
wicket:component is not realy supported and it is not working at all in 2.0 (yet). Doesn't javadoc mention that it is experimental? Juergen 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 > >And here is the form: > > design mode html > > > > MyPage.java > > //.. leave out uninteresting stuff until constructor > public MyPage() { >add(new MyForm("myForm")); > } > > MyForm.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 423 > 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 > Wicket-user@lists.sourceforge.net > 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user