Re: Feedback panel on modal window

2010-12-02 Thread Andrea Del Bene

Hi Tito,

how do you send form inside modal window? I guess you are sending it by 
AJAX. I've written a similar modal window few weeks ago. Be sure to add 
your feedback panel to thw AjaxRequestTarget object of submitting component.


Bye.

Hi, I have one model window with a panel atached.
I added a validator to one form in model window. But when I try to submit I
can't show errors.
Whatching the console I found it: WARN  - WebSession -
Component-targetted feedback message was left unrendered. This could be
because you are missing a FeedbackPanel on the page.
I have a feedback panel on page, however I would like to have another one on
modal window.
But now I'm not getting any kind of message.

Thanks
Tito

   



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



Re: Feedback panel on modal window

2010-12-02 Thread Tito
Good I fixed it. Thanks.
I added feedback panel to target. But I redined onError to do that, because
feedback is for errors in my case.

Thanks for the answer.

Bye
Tito

2010/12/2 Andrea Del Bene adelb...@ciseonweb.it

 Hi Tito,

 how do you send form inside modal window? I guess you are sending it by
 AJAX. I've written a similar modal window few weeks ago. Be sure to add your
 feedback panel to thw AjaxRequestTarget object of submitting component.

 Bye.

  Hi, I have one model window with a panel atached.
 I added a validator to one form in model window. But when I try to submit
 I
 can't show errors.
 Whatching the console I found it: WARN  - WebSession -
 Component-targetted feedback message was left unrendered. This could be
 because you are missing a FeedbackPanel on the page.
 I have a feedback panel on page, however I would like to have another one
 on
 modal window.
 But now I'm not getting any kind of message.

 Thanks
 Tito





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




Feedback panel on modal window

2010-12-01 Thread Tito
Hi, I have one model window with a panel atached.
I added a validator to one form in model window. But when I try to submit I
can't show errors.
Whatching the console I found it: WARN  - WebSession -
Component-targetted feedback message was left unrendered. This could be
because you are missing a FeedbackPanel on the page.
I have a feedback panel on page, however I would like to have another one on
modal window.
But now I'm not getting any kind of message.

Thanks
Tito


Re: Feedback panel in Modal window

2010-02-03 Thread Anna Simbirtsev
Thanks. Its working now, I just had to implement onError function for the
AjaxSubmitLink.

On Tue, Feb 2, 2010 at 4:29 PM, vermas shalini.ve...@us.bosch.com wrote:


 Try to add feedbackpanel inside the panel and inside the form.

 wicket:panel
 form
 div wicket:id=feedback id=feedback/div
 rest of your html code
 /form
 /wicket:panel

 Thanks


 Anna Simbirtsev wrote:
 
  Hi,
 
  I have a feedback panel in Modal window, but for some reason it does not
  work.
 
  div wicket:id=feedback id=feedback/div
 
  contact_form.add(new FeedbackPanel(feedback));
 
  I get the following messages:
 
  WARN  - WebSession - Component-targetted feedback message
  was left unrendered. This could be because you are missing a
 FeedbackPanel
  on the page.  Message: [FeedbackMessage message = Field
  'contact_postalcode' is required., reporter = contact_postalcode, level
 =
  ERROR]
 
  In the page source it shows:
 
  div id=feedback wicket:id=feedback
  wicket:panel /wicket:panel
  /div
 
  Thanks,
 
  Anna
 
 

 --
 View this message in context:
 http://old.nabble.com/Feedback-panel-in-Modal-window-tp27408273p27427705.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




-- 
Anna Simbirtsev
(416) 729-7331


Re: Feedback panel in Modal window

2010-02-02 Thread vermas

Try to add feedbackpanel inside the panel and inside the form.

wicket:panel
form
div wicket:id=feedback id=feedback/div
rest of your html code
/form
/wicket:panel

Thanks


Anna Simbirtsev wrote:
 
 Hi,
 
 I have a feedback panel in Modal window, but for some reason it does not
 work.
 
 div wicket:id=feedback id=feedback/div
 
 contact_form.add(new FeedbackPanel(feedback));
 
 I get the following messages:
 
 WARN  - WebSession - Component-targetted feedback message
 was left unrendered. This could be because you are missing a FeedbackPanel
 on the page.  Message: [FeedbackMessage message = Field
 'contact_postalcode' is required., reporter = contact_postalcode, level =
 ERROR]
 
 In the page source it shows:
 
 div id=feedback wicket:id=feedback
 wicket:panel /wicket:panel
 /div
 
 Thanks,
 
 Anna
 
 

-- 
View this message in context: 
http://old.nabble.com/Feedback-panel-in-Modal-window-tp27408273p27427705.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



Feedback panel in Modal window

2010-02-01 Thread Anna Simbirtsev
Hi,

I have a feedback panel in Modal window, but for some reason it does not
work.

div wicket:id=feedback id=feedback/div

contact_form.add(new FeedbackPanel(feedback));

I get the following messages:

WARN  - WebSession - Component-targetted feedback message
was left unrendered. This could be because you are missing a FeedbackPanel
on the page.  Message: [FeedbackMessage message = Field
'contact_postalcode' is required., reporter = contact_postalcode, level =
ERROR]

In the page source it shows:

div id=feedback wicket:id=feedback
wicket:panel /wicket:panel
/div

Thanks,

Anna


Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshram

Sorry I meant can we add a page to a modal window



张伟-4 wrote:
 
 try page not panel
 
 2008/10/29 sureshram [EMAIL PROTECTED]
 

 Hello,

  I am trying to add auto validation in the modal window but I don't see
 any
 error messages. I added a feedback panel on a modal window which has a
 required text field.  When I try to submit, the modal window does not do
 
 
 


-- 
View this message in context: 
http://www.nabble.com/Feedback-Panel-on-Modal-Window-With-Field-Validation-does-not-work-tp20216419p20228860.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshramakrishnaiah

I tried with a modal window and page, still no luck,  I do see validation
happening in the server but I don't see that response coming back to the
client


12:20:12,263 DEBUG [ComponentStringResourceLoader] Found resource from:
org/apache/wicket/Application.properties; key: R
equired
12:20:12,263 DEBUG [FeedbackMessages] Adding feedback message
[FeedbackMessage message = Field 'text' is required., re
porter = text, level = ERROR]

The Ajax Debug Window shows the following response, I don't see any error
message sent back to the window.

?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response

Note the Submit button on the modal window is a ajaxfallback button, is this
causing any problems?

Any clue?


sureshramakrishnaiah wrote:
 
 Sorry I meant can we add a page to a modal window
 
 
 
 张伟-4 wrote:
 
 try page not panel
 
 2008/10/29 sureshram [EMAIL PROTECTED]
 

 Hello,

  I am trying to add auto validation in the modal window but I don't see
 any
 error messages. I added a feedback panel on a modal window which has a
 required text field.  When I try to submit, the modal window does not do
 
 
 
 
 
 


-
Suresh Ramakrishnaiah
Lead Software Engineer
-- 
View this message in context: 
http://www.nabble.com/Feedback-Panel-on-Modal-Window-With-Field-Validation-does-not-work-tp20216419p20231857.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-29 Thread sureshramakrishnaiah

Ok found the solution myself, The problem was In the AjaxFallBackButton I had
not overriden the onError() method, here's the solution added,


onError(AjaxTarget target, Form form) {
  target.addComponent(feedbackPanel);
}


sureshramakrishnaiah wrote:
 
 I tried with a modal window and page, still no luck,  I do see validation
 happening in the server but I don't see that response coming back to the
 client
 
 
 12:20:12,263 DEBUG [ComponentStringResourceLoader] Found resource from:
 org/apache/wicket/Application.properties; key: R
 equired
 12:20:12,263 DEBUG [FeedbackMessages] Adding feedback message
 [FeedbackMessage message = Field 'text' is required., re
 porter = text, level = ERROR]
 
 The Ajax Debug Window shows the following response, I don't see any error
 message sent back to the window.
 
 ?xml version=1.0 encoding=UTF-8?ajax-response/ajax-response
 
 Note the Submit button on the modal window is a ajaxfallback button, is
 this causing any problems?
 
 Any clue?
 
 
 sureshramakrishnaiah wrote:
 
 Sorry I meant can we add a page to a modal window
 
 
 
 张伟-4 wrote:
 
 try page not panel
 
 2008/10/29 sureshram [EMAIL PROTECTED]
 

 Hello,

  I am trying to add auto validation in the modal window but I don't see
 any
 error messages. I added a feedback panel on a modal window which has a
 required text field.  When I try to submit, the modal window does not
 do
 
 
 
 
 
 
 
 


-
Suresh Ramakrishnaiah
Lead Software Engineer
-- 
View this message in context: 
http://www.nabble.com/Feedback-Panel-on-Modal-Window-With-Field-Validation-does-not-work-tp20216419p20232299.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Feedback Panel on Modal Window With Field Validation does not work

2008-10-28 Thread sureshram

Hello,

  I am trying to add auto validation in the modal window but I don't see any
error messages. I added a feedback panel on a modal window which has a
required text field.  When I try to submit, the modal window does not do any
thing and I think what happens here is wicket does validation (which is
failing) and does not submit the form. It does not show error messages in
the feedbackpanel also.

public class AddAccountModalWindow extends ModalWindow {

public AddAccountModalWindow(String id) throws Exception {
super(id);
setInitialHeight(450);
setInitialWidth(500);

setTitle(Add New Account);
AddAccountContentPanel newAccPanel = new 
AddAccountContentPanel(content)
{   
private static final long serialVersionUID = 1L;

void onCancel(AjaxRequestTarget target) {
close(target);
}

};
setContent(newAccPanel);

};

}

public abstract class AddAccountContentPanel extends Panel {

public AddAccountContentPanel(String id) throws Exception {
Form accForm = new Form(accForm);
accForm.setOutputMarkupId(true);
setModel(new Model());
add(accForm);

feedbackPanel = new FeedbackPanel(feedback, new
ContainerFeedbackMessageFilter(accForm));
accForm.add(feedbackPanel);

TextField  accName = new TextField(accName, new
PropertyModel(clearingAccount, mnemonic));

   AjaxFallbackButton createAccount = new
AjaxFallbackButton(createAccount, accForm){
 protected void onSubmit(AjaxRequestTarget target,
Form form) {
//hidden code here.
 }
   }
  accForm.add(accName);
  accForm.add(createAccount);

}

}

= AddAccountContentPanel.html

html
body style=background-color:#bbd1ef
wicket:panel
wicket:panel

form wicket:id=accForm style=background-color:#bbd1ef
div style= float:left; 
div style=margin: 20px 0 0 20px;float:left 
wicket:id=feedback/div
div style=clear:both/div
div style=margin: 20px 0 0 20px;float:left
 Account Name: 
input style=font:16px Calibri; margin-left:10px; type=text
wicket:id=accName/
/div
div
input style=font: 16px Calibri; margin: 20px 0 0 120px;
wicket:id=createAccount type=submit value=Add Account /

/div
/div
/form

/wicket:panel

= AddAccountModalWindow.html

html

body style=background-color:#bbd1ef
wicket:panel
div wicket:id=content style=background-color:#bbd1ef; 
width:100%;
height: 100%/div
/wicket:panel
/body
/html



/body
/html

I apprciate your help,

Thanks
Suresh


-- 
View this message in context: 
http://www.nabble.com/Feedback-Panel-on-Modal-Window-With-Field-Validation-does-not-work-tp20216419p20216419.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Feedback Panel on Modal Window With Field Validation does not work

2008-10-28 Thread 张伟
try page not panel

2008/10/29 sureshram [EMAIL PROTECTED]


 Hello,

  I am trying to add auto validation in the modal window but I don't see any
 error messages. I added a feedback panel on a modal window which has a
 required text field.  When I try to submit, the modal window does not do
 any
 thing and I think what happens here is wicket does validation (which is
 failing) and does not submit the form. It does not show error messages in
 the feedbackpanel also.

 public class AddAccountModalWindow extends ModalWindow {

public AddAccountModalWindow(String id) throws Exception {
super(id);
setInitialHeight(450);
setInitialWidth(500);

setTitle(Add New Account);
AddAccountContentPanel newAccPanel = new
 AddAccountContentPanel(content)
 {
private static final long serialVersionUID = 1L;

void onCancel(AjaxRequestTarget target) {
close(target);
}

};
setContent(newAccPanel);

};

 }

 public abstract class AddAccountContentPanel extends Panel {

 public AddAccountContentPanel(String id) throws Exception {
Form accForm = new Form(accForm);
accForm.setOutputMarkupId(true);
setModel(new Model());
add(accForm);

feedbackPanel = new FeedbackPanel(feedback, new
 ContainerFeedbackMessageFilter(accForm));
accForm.add(feedbackPanel);

TextField  accName = new TextField(accName, new
 PropertyModel(clearingAccount, mnemonic));

   AjaxFallbackButton createAccount = new
 AjaxFallbackButton(createAccount, accForm){
 protected void onSubmit(AjaxRequestTarget target,
 Form form) {
//hidden code here.
 }
   }
  accForm.add(accName);
  accForm.add(createAccount);

 }

 }

 = AddAccountContentPanel.html

 html
 body style=background-color:#bbd1ef
 wicket:panel
 wicket:panel

 form wicket:id=accForm style=background-color:#bbd1ef
 div style= float:left; 
div style=margin: 20px 0 0 20px;float:left
 wicket:id=feedback/div
div style=clear:both/div
div style=margin: 20px 0 0 20px;float:left
 Account Name:
input style=font:16px Calibri; margin-left:10px;
 type=text
 wicket:id=accName/
/div
 div
input style=font: 16px Calibri; margin: 20px 0 0 120px;
 wicket:id=createAccount type=submit value=Add Account /

/div
 /div
 /form

 /wicket:panel

 = AddAccountModalWindow.html

 html

 body style=background-color:#bbd1ef
wicket:panel
div wicket:id=content style=background-color:#bbd1ef;
 width:100%;
 height: 100%/div
/wicket:panel
 /body
 /html



 /body
 /html

 I apprciate your help,

 Thanks
 Suresh


 --
 View this message in context:
 http://www.nabble.com/Feedback-Panel-on-Modal-Window-With-Field-Validation-does-not-work-tp20216419p20216419.html
 Sent from the Wicket - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]