Re: urgent-help.. how to click a specific tree node at the default
Hello: I have seen this article. http://www.wicket-library.com/wicket-examples/ajax/ It only select the node but can't trigger the on-click event. Any one could help? Joan |-> |Paul Bors | | | | | | | |2012/08/06 上午 01:17| | | | | |Please respond to| | users@wicket.apache.org | | | |-> >--| | | | | | To| |"users@wicket.apache.org" | | cc| | | | Subject| |Re: urgent-help.. how to click a specific tree node at the default | | | | | | | | | | | >--| See the Wicket Ajax examples section on Tree and Table: http://www.wicket-library.com/wicket-examples/ajax/ Tree and TreeTable: shows ajax tree and ajax tree table. ~ Thank you, Paul C Bors On Aug 4, 2012, at 23:52, swwa...@tsmc.com wrote: > > Hello: >I am new to wicket..please help to give suggestion to this > requirment. > I will expand the tree at the default. But I need to start(click) the first > node at the default. > > Do anyone could help me how to implement this?? > I have use selectNode to select the first node but it can not start to > trigger the onclick event.. > > > Joan > --- > TSMC PROPERTY > This email communication (and any attachments) is proprietary information > for the sole use of its > intended recipient. Any unauthorized review, use or distribution by anyone > other than the intended > recipient is strictly prohibited. If you are not the intended recipient, > please notify the sender by > replying to this email, and then delete this email and any copies of it > immediately. Thank you. > --- > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > --- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by reply
urgent-help.. how to click a specific tree node at the default
Hello: I am new to wicket..please help to give suggestion to this requirment. I will expand the tree at the default. But I need to start(click) the first node at the default. Do anyone could help me how to implement this?? I have use selectNode to select the first node but it can not start to trigger the onclick event.. Joan --- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you. --- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to minimize window ?
Yes.. please give some suggestion to achieve this requirment |-> |Andrea Del Bene | | | | | | | | | |2012/04/17 下午 05:53| | | | | |Please respond to| | users@wicket.apache.org | | | |-> >--| | | | | | To| |users@wicket.apache.org | | cc| | | | Subject| |Re: How to minimize window ? | | | | | | | | | | | >--| Hi, can you be more specific? What kind of window are you trying to minimize? A modal window? PS: btw, the corporate site of tsmc is built with Wicket :)? > Dear All: >I want to add a JS code into the following method to minimize the > window, but it doesn't work.. > Could anyone give me some suggestion to solve this issue? > Thanks a Millions > >protected CharSequence > getEventHandler () >{ > > AppendingStringBuffer rtnJs=new > AppendingStringBuffer("if (!confirm('continue?')) return false; > How_to_min_win();"); >return > rtnJs.append (super.getEventHandler()).append > ("; return false;"); >} > > > Best Regards, > > BSID/ERP > Joan Wang > > --- > TSMC PROPERTY > This email communication (and any attachments) is proprietary information > for the sole use of its > intended recipient. Any unauthorized review, use or distribution by anyone > other than the intended > recipient is strictly prohibited. If you are not the intended recipient, > please notify the sender by > replying to this email, and then delete this email and any copies of it > immediately. Thank you. > --- > > > > > > - > 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 --- TSMC PROPER
How to minimize window ?
Dear All: I want to add a JS code into the following method to minimize the window, but it doesn't work.. Could anyone give me some suggestion to solve this issue? Thanks a Millions protected CharSequence getEventHandler() { AppendingStringBuffer rtnJs=new AppendingStringBuffer("if (!confirm('continue?')) return false; How_to_min_win();"); return rtnJs.append(super.getEventHandler()).append ("; return false;"); } Best Regards, BSID/ERP Joan Wang --- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you. --- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help. Is it possible show a alert before setThrottleDelay..??
Dear: The generated value of onclick is => wicketThrottler.throttle( 'th107', 1, function() { var wcall=wicketSubmitFormById('buttonForm92', '/portal/tool/cde5a792-9eaa-45c5-bd06-27b9aaa83719/?wicket:interface=ScormPlayer:32:buttonForm:quitButton::IBehaviorListener:2:-1', 'quitButton' ,null,null, function() {return Wicket.$$ (this)&&Wicket.$$('buttonForm92')}.bind(this));});; Any way to achieve this requrement? Best Regards, Joan |-> |Martin Grigorov | | | | | | | | | |2012/04/10 下午 05:35| | | | | |Please respond to| | users@wicket.apache.org | | | |-> >--| | | | | | To| |users@wicket.apache.org | | cc| | | | Subject| |Re: Help. Is it possible show a alert before setThrottleDelay..?? | | | | | | | | | | | >--| Can you paste what is the generated value of 'onclick' attribute with the current code ? On Tue, Apr 10, 2012 at 11:31 AM, wrote: > > > Thanks for your reply.. But it's not worked. > I change the IAjaxCallDecorator to the following code.. > > protected IAjaxCallDecorator getAjaxCallDecorator() { > return new AjaxPreprocessingCallDecorator > (super.getAjaxCallDecorator()) { > private static final long serialVersionUID = 1L; > > @Override > public CharSequence preDecorateScript (CharSequence > script) { > return "if(!confirm('continues?')) return > false;" + script; > } > }; > } > > But.. the result is > 1. click a button. > 2. suspend 1 minute > 3. show a confirm message, and if yes, submit the form.. > > But want I need is > 1. click a button and show a confirm message. > 2. suspend 1 minute > 3. submit the form.. > > > > > Best Regards, > > BSID/ERP > Joan Wang 王琇緯 > > > > |-> > | Martin Grigorov | > | | > | | > | | > | | > | 2012/04/10 下午 05:23 | > | | > | | > | Please respond to | > | users@wicket.apache.org | > | | > |-> > >-
Re: Help. Is it possible show a alert before setThrottleDelay..??
Thanks for your reply.. But it's not worked. I change the IAjaxCallDecorator to the following code.. protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxPreprocessingCallDecorator (super.getAjaxCallDecorator()) { private static final long serialVersionUID = 1L; @Override public CharSequence preDecorateScript(CharSequence script) { return "if(!confirm('continues?')) return false;" + script; } }; } But.. the result is 1. click a button. 2. suspend 1 minute 3. show a confirm message, and if yes, submit the form.. But want I need is 1. click a button and show a confirm message. 2. suspend 1 minute 3. submit the form.. Best Regards, BSID/ERP Joan Wang 王琇緯 |-> |Martin Grigorov | | | | | | | | | |2012/04/10 下午 05:23| | | | | |Please respond to| | users@wicket.apache.org | | | |-> >--| | | | | | To| |users@wicket.apache.org | | cc| | | | Subject| |Re: Help. Is it possible show a alert before setThrottleDelay..?? | | | | | | | | | | | >--| Hi, Your code looks OK. You can add the confirm dialog with IAjaxCallDecorator. 2012/4/10 : > > I am not familiar with wicket.. please help to give me suggestion for How > to implement this? > > 1. click a button and show a confirm message. > 2. suspend 1 minute > 3. submit the form.. > > public ActivityAjaxButton(final ButtonForm form, SessionBean > sessionBean, String id, int seqRequest, String rootSrc) { > super(id, form); > this.form = form; > this.seqRequest = seqRequest; > this.rootSrc = rootSrc; > this.setModel(new Model(sessionBean)); > add(new AjaxFormSubmitBehavior(form, "onclick") { > > private static final long serialVersionUID = 1L; > protected void onSubmit(AjaxRequestTarget target){ > target.appendJavascript("alert('Sumibt > Successfully')"); > ActivityAjaxButton.this.onSubmit(target, form); > } > > protected void onError(AjaxRequestTarget target){ > ActivityAjaxButton.this.onError(target, form); > } > > > protected CharSequence getEve
Help. Is it possible show a alert before setThrottleDelay..??
I am not familiar with wicket.. please help to give me suggestion for How to implement this? 1. click a button and show a confirm message. 2. suspend 1 minute 3. submit the form.. public ActivityAjaxButton(final ButtonForm form, SessionBean sessionBean, String id, int seqRequest, String rootSrc) { super(id, form); this.form = form; this.seqRequest = seqRequest; this.rootSrc = rootSrc; this.setModel(new Model(sessionBean)); add(new AjaxFormSubmitBehavior(form, "onclick") { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target){ target.appendJavascript("alert('Sumibt Successfully')"); ActivityAjaxButton.this.onSubmit(target, form); } protected void onError(AjaxRequestTarget target){ ActivityAjaxButton.this.onError(target, form); } protected CharSequence getEventHandler(){ return new AppendingStringBuffer (super.getEventHandler()).append("; return false;"); } protected IAjaxCallDecorator getAjaxCallDecorator() { return ActivityAjaxButton.this.getAjaxCallDecorator (); } public CharSequence getCallbackUrl(){ return Utils.generateUrl(this, null, getComponent (), useRelativeUrls); } }.setThrottleDelay(Duration..ONE_MINUTE)); . protected void onSubmit(AjaxRequestTarget target, Form form) { SessionBean sessionBean = (SessionBean)getModelObject(); modelChanging(); doNavigate(sessionBean, seqRequest, target); modelChanged(); } } Best Regards, Joan Wang Best Regards, BSID/ERP Joan Wang 王琇緯 --- TSMC PROPERTY This email communication (and any attachments) is proprietary information for the sole use of its intended recipient. Any unauthorized review, use or distribution by anyone other than the intended recipient is strictly prohibited. If you are not the intended recipient, please notify the sender by replying to this email, and then delete this email and any copies of it immediately. Thank you. --- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org