Regards,
Karthik
On 10/9/06, Bondarenko, Oleg <
[EMAIL PROTECTED]> wrote:
Hello,
I would like to have a nice way to wrap (decorate) standard form components. E.g. my own MyTextField will have a red border and some message in case if validation fails.
Suppose for simplicity that MyTextField.html looks like
<wicket:panel>
<input wicket:id = "wrappedTextField" />
<span wicket:id="unErrMsg">
<div class="errorMsg"><span wicket:id="unErrMsgLbl">unErrMsgLbl</span></div>
</span>
</wicket:panel>
where "wrappedTextField" is a standard TextField. The new component will be used on some page the following way:
...
<input wicket:id = "username" type = "text" value = " [EMAIL PROTECTED]" size = "30"/>
...
The first problem I see is how to pass through all attributes from the parent component to the wrapped TextField component?
Thanks in advance
Oleg
-------------------------------------------------------------------------
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
--
-- karthik --
------------------------------------------------------------------------- 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
