Re: feedback message without a form

2008-12-31 Thread Jeremy Thomerson
There are past examples you can find on this mailing list.  Please look at
them.

Your problem is that you are redirecting to a new page right after you set
your error.  Instead, you'll need to set it on the session basically.

On Tue, Dec 30, 2008 at 10:26 AM, miro miroconn...@yahoo.com wrote:


 i have the feedback panel and i am able to display form validations , but
 when I add info to the page nothing is shown by the feedback panel here the
 code  for adding info to my page

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

  getStgAuditProcessService().startProcess(assignProgramsDTO);
setResponsePage(HomePage.class);
setRedirect(true);
}


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




-- 
Jeremy Thomerson
http://www.wickettraining.com


Re: feedback message without a form

2008-12-30 Thread miro

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



Re: feedback message without a form

2008-12-30 Thread jWeekend

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



Re: feedback message without a form

2008-12-30 Thread miro

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



Re: feedback message without a form

2008-12-30 Thread miro

i have the feedback panel and i am able to display form validations , but
when I add info to the page nothing is shown by the feedback panel here the
code  for adding info to my page 

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

getStgAuditProcessService().startProcess(assignProgramsDTO);
setResponsePage(HomePage.class);
setRedirect(true);
}


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



Re: feedback message without a form

2008-12-30 Thread Adriano dos Santos Fernandes

miro escreveu:

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);
}
  

Add the feedbackpanel to target.


Adriano


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



Re: feedback message without a form

2008-12-30 Thread jWeekend

try 

getSession().info(you info message);

OK?  

Regards - Cemal
http://www.jWeekend.co.uk jWeekend 


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



Re: feedback message without a form

2008-12-30 Thread miro

i tried that   but no messge is displayed 
 the message is displayed   when the url is http://localhost:8080/audit/app/
and my current url is 
http://localhost:8080/audit/app/?wicket:interface=:6




jWeekend wrote:
 
 try 
 
 getSession().info(you info message);
 
 OK?  
 
 Regards - Cemal
  http://www.jWeekend.co.uk jWeekend 
 
 
 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-tp21206285p21220522.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



Re: feedback message without a form

2008-12-30 Thread Vance Fellers

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



RE: feedback message without a form

2008-12-30 Thread Heikki Uotinen
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



Re: feedback message without a form

2008-12-29 Thread James Carman
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