Refresh feedback panel after setting the message:

final FeedbackPanel feedback = new FeedbackPanel ("feedback");
feedback.setOutputMarkupId(true);
add(feedback);

public void onClick(AjaxRequestTarget target) {
        if(assignProgramsDTO.getGrantsAssigned().size()==0){
                getPage().error("Please assing grants");
                target.addComponent(feedback);
                return;
        }
...


-Heikki

-----Original Message-----
From: Vance Fellers [mailto:nvfellers...@yahoo.com] 
Sent: 30. joulukuuta 2008 21:38
To: users@wicket.apache.org
Subject: Re: feedback message without a form


Have you tried without redirecting to the response page?

miro wrote:
> 
> here is my code
> 
>               public void onClick(AjaxRequestTarget target) {
>                       if(assignProgramsDTO.getGrantsAssigned().size()==0){
>                               getPage().error("Please assing grants");
>                               return;
>                       }
>                       
> getStgAuditProcessService().startProcess(assignProgramsDTO);
>                       setResponsePage(HomePage.class);
>                       setRedirect(true);
>               }
> 
> 
> miro wrote:
>> 
>> yes 
>> 
>> jWeekend wrote:
>>> 
>>> Did you add a FeedbackPanel to your page?
>>> 
>>> Regards - Cemal
>>>  http://www.jWeekend.co.uk jWeekend 
>>> 
>>> 
>>> 
>>> miro wrote:
>>>> 
>>>> adding message is simple but how  to display this message , who is
>>>> rendering the added message ?,
>>>> in my case I am adding the message to the page , getPage().info("This
>>>> is a test message ")   , now what in html i have to do to display this
>>>> message ?
>>>> 
>>>> James Carman-3 wrote:
>>>>> 
>>>>> Component.info(String message)?
>>>>> 
>>>>> On Mon, Dec 29, 2008 at 12:24 PM, miro <miroconn...@yahoo.com> wrote:
>>>>>>
>>>>>> How to add feed back messages to page with out a form ,
>>>>>> in my case  when the link is clicked I call some external service and
>>>>>> that
>>>>>> might return me some message   and I want to show this message as a
>>>>>> feedback
>>>>>> message
>>>>>> --
>>>>>> View this message in context:
>>>>>> http://www.nabble.com/feedback-message-without-a-form-tp21206285p21206285.html
>>>>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>>>
>>>>>>
>>>>> 
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/feedback-message-without-a-form-tp21206285p21222096.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to