Hi Hailong,
E.g
Step1. Create a subclass of FeedbackPanel
public class MyFeedBackPanel extends FeedbackPanel{
public MyFeedBackPanel(String id) {
super(id);
}
}
Step 2. Create a markup for this class and make sure FeedbackPanel
wicket:ids markup matched with your own markup. Please take note that these
wicket:id="feedbackul", wicket:id ="messages" and wicket:id="message" markup
are from Feedbackpanel. You can based on these markups to change any
style...
<wicket:panel>
<span wicket:id="feedbackul">
<table border="1" cellpadding="2" cellspacing="2" >
<tr wicket:id ="messages">
<td>
<span wicket:id="message"></span>
</td>
</tr>
</table>
</span>
</wicket:panel>
Step3. Usage example
public class MyPage extends WebPage{
public MyPage(){
MyFeedBackPanel feedback = new MyFeedBackPanel("feedback");
add(feedback);
}
}
Hope this help
Regards
Boon Ping
On 2/7/07, Zhang Hailong <[EMAIL PROTECTED]> wrote:
Hi Igor,
Would you please give me an example of this? I have looked at the source
of FeedbackPanel but I still don't know which method to overwrite and how to
provide my own markup.
Thank you!
Regards,
Hailong Zhang
On 2/7/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
>
> yes, simply subclass and provide your own markup. just make sure the
> hieararchy of wicket:ids matches in your markup.
>
> -igor
>
>
> On 2/6/07, Zhang Hailong <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
> >
> > Is it possible to change the style of FeedbackPanel? I don't like the
> > list style of <ul><li>.
> >
> > Thanks.
> >
> >
> > Regards,
> > Hailong Zhang
> >
> >
> > -------------------------------------------------------------------------
> > Using Tomcat but need to do more? Need to support web services,
> > security?
> > Get stuff done quickly with pre-integrated technology to make your job
> > easier.
> > Download IBM WebSphere Application Server v.1.0.1 based on Apache
> > Geronimo
> >
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user