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

Reply via email to