Re: set the feedback message to js function
theres a scriptaculous contrib on wicketstuff (currently down, but I think svn are up), in that theres a toaster so you could check that out for reference. checkout this : *https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-scriptaculous-examples* And the toaster example, changing it to a modal style should not be that hard. rolandpeng wrote: Excuse me. I don't get it clearly. What does 'hack up a small js' do and please discribe more about scriptaculous toaster, or any url for reference? Thank you very much. roland. Nino.Martinez wrote: I would hack up a small js component for this case, and poke it with the message, sort of maybe what I've done with the scriptaculous toaster. rolandpeng wrote: thank you,igor here is my try and that work. But how could I display message only in alert dialog instead of both feedback panel and alert dialog? thanks. roland. -- HeaderContributor alert = new HeaderContributor( new IHeaderContributor() { public void renderHead(IHeaderResponse response) { FeedbackMessages messages = Session.get().getFeedbackMessages(); for (Iterator iter = messages.iterator(); iter.hasNext();) { FeedbackMessage message = (FeedbackMessage) iter.next(); response.renderOnLoadJavascript(alert(\+ message.getMessage() + \);); } } }); User oUser = new User(); cFeedback = new FeedbackPanel(feedback); cFeedback.setOutputMarkupId(true); cFeedback.add(alert); -- igor.vaynberg wrote: renderhead(IHeaderResponse r) { for (FeedbackMessage m:messages) { r.renderonloadjavascript(alert('+m.toString()+');); } } -igor On Dec 31, 2007 11:25 PM, JohnSmith333 [EMAIL PROTECTED] wrote: Thanks for your kindly reply and help. I have read the FeedbackPanel source code and know the use of HeaderContributor. But I still don't know how to do . Could you or anyone help me more? Thanks! HeaderContributor.forJavaScript(/js/default.js); igor.vaynberg wrote: see how feedbackpanel is implemented, you can write a header contributor to spit feedback messages to a js function -igor On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote: Could anyone tell me how to set the feedback message to js function like alert(some txt must set)? thanks! -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set the feedback message to js function
I would hack up a small js component for this case, and poke it with the message, sort of maybe what I've done with the scriptaculous toaster. rolandpeng wrote: thank you,igor here is my try and that work. But how could I display message only in alert dialog instead of both feedback panel and alert dialog? thanks. roland. -- HeaderContributor alert = new HeaderContributor( new IHeaderContributor() { public void renderHead(IHeaderResponse response) { FeedbackMessages messages = Session.get().getFeedbackMessages(); for (Iterator iter = messages.iterator(); iter.hasNext();) { FeedbackMessage message = (FeedbackMessage) iter.next(); response.renderOnLoadJavascript(alert(\+ message.getMessage() + \);); } } }); User oUser = new User(); cFeedback = new FeedbackPanel(feedback); cFeedback.setOutputMarkupId(true); cFeedback.add(alert); -- igor.vaynberg wrote: renderhead(IHeaderResponse r) { for (FeedbackMessage m:messages) { r.renderonloadjavascript(alert('+m.toString()+');); } } -igor On Dec 31, 2007 11:25 PM, JohnSmith333 [EMAIL PROTECTED] wrote: Thanks for your kindly reply and help. I have read the FeedbackPanel source code and know the use of HeaderContributor. But I still don't know how to do . Could you or anyone help me more? Thanks! HeaderContributor.forJavaScript(/js/default.js); igor.vaynberg wrote: see how feedbackpanel is implemented, you can write a header contributor to spit feedback messages to a js function -igor On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote: Could anyone tell me how to set the feedback message to js function like alert(some txt must set)? thanks! -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: set the feedback message to js function
Excuse me. I don't get it clearly. What does 'hack up a small js' do and please discribe more about scriptaculous toaster, or any url for reference? Thank you very much. roland. Nino.Martinez wrote: I would hack up a small js component for this case, and poke it with the message, sort of maybe what I've done with the scriptaculous toaster. rolandpeng wrote: thank you,igor here is my try and that work. But how could I display message only in alert dialog instead of both feedback panel and alert dialog? thanks. roland. -- HeaderContributor alert = new HeaderContributor( new IHeaderContributor() { public void renderHead(IHeaderResponse response) { FeedbackMessages messages = Session.get().getFeedbackMessages(); for (Iterator iter = messages.iterator(); iter.hasNext();) { FeedbackMessage message = (FeedbackMessage) iter.next(); response.renderOnLoadJavascript(alert(\+ message.getMessage() + \);); } } }); User oUser = new User(); cFeedback = new FeedbackPanel(feedback); cFeedback.setOutputMarkupId(true); cFeedback.add(alert); -- igor.vaynberg wrote: renderhead(IHeaderResponse r) { for (FeedbackMessage m:messages) { r.renderonloadjavascript(alert('+m.toString()+');); } } -igor On Dec 31, 2007 11:25 PM, JohnSmith333 [EMAIL PROTECTED] wrote: Thanks for your kindly reply and help. I have read the FeedbackPanel source code and know the use of HeaderContributor. But I still don't know how to do . Could you or anyone help me more? Thanks! HeaderContributor.forJavaScript(/js/default.js); igor.vaynberg wrote: see how feedbackpanel is implemented, you can write a header contributor to spit feedback messages to a js function -igor On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote: Could anyone tell me how to set the feedback message to js function like alert(some txt must set)? thanks! -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p20276176.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: set the feedback message to js function
thank you,igor here is my try and that work. But how could I display message only in alert dialog instead of both feedback panel and alert dialog? thanks. roland. -- HeaderContributor alert = new HeaderContributor( new IHeaderContributor() { public void renderHead(IHeaderResponse response) { FeedbackMessages messages = Session.get().getFeedbackMessages(); for (Iterator iter = messages.iterator(); iter.hasNext();) { FeedbackMessage message = (FeedbackMessage) iter.next(); response.renderOnLoadJavascript(alert(\+ message.getMessage() + \);); } } }); User oUser = new User(); cFeedback = new FeedbackPanel(feedback); cFeedback.setOutputMarkupId(true); cFeedback.add(alert); -- igor.vaynberg wrote: renderhead(IHeaderResponse r) { for (FeedbackMessage m:messages) { r.renderonloadjavascript(alert('+m.toString()+');); } } -igor On Dec 31, 2007 11:25 PM, JohnSmith333 [EMAIL PROTECTED] wrote: Thanks for your kindly reply and help. I have read the FeedbackPanel source code and know the use of HeaderContributor. But I still don't know how to do . Could you or anyone help me more? Thanks! HeaderContributor.forJavaScript(/js/default.js); igor.vaynberg wrote: see how feedbackpanel is implemented, you can write a header contributor to spit feedback messages to a js function -igor On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote: Could anyone tell me how to set the feedback message to js function like alert(some txt must set)? thanks! -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p20260428.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: set the feedback message to js function
Thans for your help,thanks igor.vaynberg wrote: renderhead(IHeaderResponse r) { for (FeedbackMessage m:messages) { r.renderonloadjavascript(alert('+m.toString()+');); } } -igor On Dec 31, 2007 11:25 PM, JohnSmith333 [EMAIL PROTECTED] wrote: Thanks for your kindly reply and help. I have read the FeedbackPanel source code and know the use of HeaderContributor. But I still don't know how to do . Could you or anyone help me more? Thanks! HeaderContributor.forJavaScript(/js/default.js); igor.vaynberg wrote: see how feedbackpanel is implemented, you can write a header contributor to spit feedback messages to a js function -igor On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote: Could anyone tell me how to set the feedback message to js function like alert(some txt must set)? thanks! -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14641646.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: set the feedback message to js function
Thanks for your kindly reply and help. I have read the FeedbackPanel source code and know the use of HeaderContributor. But I still don't know how to do . Could you or anyone help me more? Thanks! HeaderContributor.forJavaScript(/js/default.js); igor.vaynberg wrote: see how feedbackpanel is implemented, you can write a header contributor to spit feedback messages to a js function -igor On Dec 31, 2007 7:51 AM, JohnSmith333 [EMAIL PROTECTED] wrote: Could anyone tell me how to set the feedback message to js function like alert(some txt must set)? thanks! -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14558865.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/set-the-feedback-message-to-js-function-tp14558865p14565041.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]