it will be too much of a pain, since most issues are because i'm using wicket in an existing application, built on struts.
however, i would appriciate it if you could answer some specific questions.

i'm trying to create my own feedback panel. an issue i encountered is that 
FeedbackPanel has the anyMessages() method, which i also need, i can copy the 
code, but isn't it better to move it to FeedbackMessage, as static utility 
methods? or, better yet, create a FeedbackMessages class which has the logic 
found in FeedbackMessagesModel, so it can be reused outside of the context of a 
model?

ittay

Igor Vaynberg wrote:
give us an html snippet of what you want as the end result and tell us where the components are. it is very difficult to talk on such a huge abstraction level.

-Igor


On 5/9/06, *Ittay Dror* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:



    Igor Vaynberg wrote:
     > but what is really a problem then i dont understand? all you want
    to do
     > is write out some javascript based on feedback messages? instead of
     > using a feedbackpanel add a label that writes out the javascript you
     > want. you can get the messages using Page.getFeedbackMessages()
     >
     > so something like this:
     >
     >
     > add(new Label("js", new AbstractReadOnlyModel() {
     >     Object getObject(Component c) {
     >           FeedbackMessages msgs=c.getPage().getFeedbackMessages();
     >           AppendingStringBuffer js=new AppendingStringBuffer();
     >           //// fill in javascript into js
     >           return js.toString();
     >      }).setEscapeModelStrings(false));
     >
     > and you should be good to go right?

    the javascript has a lot of GUI code in it, so it looks to me like
    something from the early days of servlets. i'm not looking for
    something that works, but, for something that works "the wicket way"




--
===================================
Ittay Dror Chief architect, openQRM TL, R&D, Qlusters Inc.
[EMAIL PROTECTED]
+972-3-6081994 Fax: +972-3-6081841

http://www.openQRM.org
- Keeps your Data-Center Up and Running


-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to