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
>> <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
>> 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

Reply via email to