-Igor
On 5/9/06,
Ittay Dror <[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"
