Re: [Wicket-user] How to change the style of FeedbackPanel ?

2007-02-07 Thread Zhang Hailong

Thank you all~

That helps : )


Regards,
Hailong Zhang

On 2/8/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:


On 2/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > 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!
>
> You can always extend any panel (that is not final) or page and
> provide markup like you would normally do.
>
> public class MyFeedbackPanel extends FeedbackPanel {
>   public MyFeedbackPanel(final String id, IFeedbackMessageFilter filter)
{
> super(id, filter);
>   }
> }
>
> And your markup should look *like*:

For the sake of clarity, the markup file should be named
MyFeedbackPanel.html and be placed in the same directory as the
MyFeedbackPanel class is.

Eelco

-
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


Re: [Wicket-user] How to change the style of FeedbackPanel ?

2007-02-07 Thread Eelco Hillenius
On 2/7/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:
> > 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!
>
> You can always extend any panel (that is not final) or page and
> provide markup like you would normally do.
>
> public class MyFeedbackPanel extends FeedbackPanel {
>   public MyFeedbackPanel(final String id, IFeedbackMessageFilter filter) {
> super(id, filter);
>   }
> }
>
> And your markup should look *like*:

For the sake of clarity, the markup file should be named
MyFeedbackPanel.html and be placed in the same directory as the
MyFeedbackPanel class is.

Eelco

-
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


Re: [Wicket-user] How to change the style of FeedbackPanel ?

2007-02-07 Thread Eelco Hillenius
> 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!

You can always extend any panel (that is not final) or page and
provide markup like you would normally do.

public class MyFeedbackPanel extends FeedbackPanel {
  public MyFeedbackPanel(final String id, IFeedbackMessageFilter filter) {
super(id, filter);
  }
}

And your markup should look *like*:




  

  A message

  




where it only matters that you have

-feedbackul
 |- messages
   |- message

Eelco

-
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


Re: [Wicket-user] How to change the style of FeedbackPanel ?

2007-02-07 Thread Lan Boon Ping

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


   
   
   
   
   
   
   
   
   


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


Re: [Wicket-user] How to change the style of FeedbackPanel ?

2007-02-07 Thread Zhang Hailong

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


Re: [Wicket-user] How to change the style of FeedbackPanel ?

2007-02-06 Thread Igor Vaynberg

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 .

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