Re: Wicket 1.5 markup id for a reused TextField is the same
On Tue, Apr 10, 2012 at 7:38 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: In 1.4 version of wicket there was no impact, but in 1.5.5 the id is not overwritten by wicket. Presumably they changed it so that it would work as a markup equivalent to setMarkupId(), though I haven't checked the changes list to verify that. :) Yes, this is a new feature in 1.5. - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket and Menu support
On Sun, Apr 8, 2012 at 8:04 PM, Tom Eugelink t...@tbee.org wrote: Is there any documentation on this jquery support in wicket 6? I'm setting up a new project ARM and instead of including all kinds of side kick projects, core support is preferable. https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+6.0#MigrationtoWicket6.0-Ajax Tom On 2012-04-08 19:55, msalman wrote: Thanks to every one for all of your comments and suggestions. Great to know that wicket core will include jquery. Alle, I would appreciate very much if you can please share your code for using jquery tree. It would give me a good start. Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-and-Menu-support-tp4540516p4541287.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: reloading of HTML and classes
On Sun, Apr 8, 2012 at 5:38 AM, Bernard bht...@gmail.com wrote: Hi, The HTML part is covered if your IDE copies HTML files to the deployment directory when you save them. Wicket will then pick up this change and reload the corresponding pages. This works for existing markup but not for new markup that was missing. https://github.com/wicketstuff/core/tree/master/jdk-1.7-parent/wicketstuff-wicket7 provides an extension of Wicket's default ModificationWatcher that uses JDK7 NIO2 WatchService. This should help for this problem. The Java classes part can only be handled with debugging, JRebel or a complete re-deployment. There is no hot-deployment of individual classes in GlassFish (I don't know whether any other server supports this). However GlassFish has session preservation so the re-deploy process is seamless. To further speed up the deployment, one can copy most libraries (including Wicket) into the GlassFish domain's lib dir instead of copying them on every deployment. The Deploy on Save feature is only useful for mini applications - it is too slow. Bernard On Fri, 06 Apr 2012 16:48:11 +0200, you wrote: I've been fighting this for the past two days, but I'm not succeeding. I'm using Wicket 1.5.5 on GlassFish 3.1.2 and that runs without a problem. I have configured filter-classorg.apache.wicket.protocol.http.ReloadingWicketFilter/filter-class to reload the classes, but that is not working. The only way to reload the class file is by using JRebel. Also Wicket reports that it runs in DEVELOPMENT mode, but it is not reloading the HTML files. In an attempting to resolve that I explicitely configured getResourceSettings().setDefaultCacheDuration(Duration.ONE_SECOND); but that does not make a difference. The only way I can get it to work somewhat, is to add my own ResourceFinder directly on the src folder: getResourceSettings().setResourceFinder(new IResourceFinder() { @Override public IResourceStream find(Class? clazz, String pathname) { File f = new File(C:/Documents and Settings/User/My Documents/s2m/sources/components/service/src/main/java/ + pathname); if (f.exists()) { return new FileResourceStream( f ); } return null; } }); getResourceSettings().setUseDefaultOnMissingResource(true); But still the source are not reloaded reliably. I figure if the cache expires, a new call to the resource finder should be done, correct? Is there any debugging of these autoreload features, so I can see what Wicket is doing? Tom - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Session existence not working
Fire the debugger and see what happens. On Fri, Apr 6, 2012 at 11:26 AM, kshitiz k.agarw...@gmail.com wrote: I am able to solve my problem by checking whether session object is pointing to null or not but i am not able to understand why session.exists() is not able to verify session existence if I am using session.invalidate() during logout??. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Session-existence-not-working-tp4536914p4536994.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice - filtering and pagination
On Thu, Apr 5, 2012 at 4:32 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi, What is the best way to create option components with Wicket for large datasets? DropDownChoice renders all contained items. Do you maybe know any wicket implementation of drop down choice which allows pagination? Other thing is filtering. I look for something similar to Dojo's FilteringSelect: http://livedocs.dojotoolkit.org/dijit/form/FilteringSelect Igor is working on http://ivaynberg.github.com/select2. He said that soon he will create a Wicket component for it. I guess he wont mind github Pull requests. Best regards, Michal Wegrzyn -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: field values
Hi, On Thu, Apr 5, 2012 at 9:01 PM, mnish tosh mnisht...@gmail.com wrote: Hi, This is the situation: I have a page with two tabs, on each of these tabs there are form fields. Some of the fields are the same on both the tabs. What I want to be able to do is when I click on the tabs back and forth the values of the fields be automatically taken to the other tab. Is this possible to do in wicket or is it too much to ask :). Share the same model/model object for those form components. Thank you. -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: isVisible for DataTable columns?
Hi, Check Wicketstuff's InMethod Grid. It is the most sophisticated table Wicket component implementation I'm aware of. On Fri, Apr 6, 2012 at 1:40 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, I need to determine the visibility of a DataTable's column dynamically based on a model value. Is this possible? I looked at the source and didn't find anything available for implementations of IColumn to determine visibility. Searching the net revealed this post from 2008 with the same question http://apache-wicket.1842946.n4.nabble.com/Hook-for-hiding-columns-of-DataTable-td1843243.html in which Igor mentioned this feature was planned for 1.5. The column I want to hide conditionally has content which cannot simply be hidden on the client side so using css is not an option. Regards, Bertrand - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket in a containerless environment
Hi, I've tried once to provide Netty based impls of WicketFilter, WebRequest, WebResponse, ... and it wasn't hard at all. But the problem is that many of the form components also use directly classes from javax.servlet package, like Cookie for example, or HttpServletRequest (by casting webRequest.getContainerRequest()). About the performance: I guess you talk about the benchmarks made with https://github.com/jtdev/blogpost_files . The reason why Wicket is slower is mainly because Wicket constructs components for almost everything (label, row, table) while most of the other web frameworks just concatenate those as plain strings. See what is the difference between Wicket's DropDownChoice and Select components. DropDownChoice uses String concatenation to be both faster and lighter than Select which uses a SelectOption component for each option you need to render. Select on the other side is more flexible to provide custom markup for each option (see http://www.wicket-library.com/wicket-examples/compref/wicket/bookmarkable/org.apache.wicket.examples.compref.SelectPage). In summary : 1) you can use Tomcat/Jetty/AnyOtherServletContainer with NIO based connectors to be faster as Netty. 2) create custom component that does its job as good as possible for your needs (faster rendering, more memory efficient, ...) and is still reusable. On Fri, Apr 6, 2012 at 9:00 AM, Arjun Dhar dhar...@yahoo.com wrote: Hi, I've been experimenting with Play and Scala. Very agile and theoretically fast with Netty. Read some benchmarks that did not show Wicket too well, however from a development/templating perspective I still cannot rationalize a better framework than wicket. Wickets Session and Request classes do not extend any Servlet Spec; which gives me the impression there is some thinking in allowing wicket to run in a container less environment. ..maybe am over thinking. But if not, one for the Dev team to think and support I guess. I'd be really interested to mash things up with Wicket Play, as few things about Play are uncomfortable to get around conceptually. Too early to comment, but I also feel Play's default templating style sucks. ...And for product development, a component oriented approach does have benefits, while Play seems to under-play! ..Anyone playing with Wicket without a traditional servlet container? - Software documentation is like sex: when it is good, it is very, very good; and when it is bad, it is still better than nothing! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-in-a-containerless-environment-tp4536820p4536820.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.5 Wicket Enclosure
Enclosure was never able to work in Ajax. That's why InlineEnclosure has been introduced. On Sat, Apr 7, 2012 at 6:04 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, After creating the EnclosureContainer, add the following call : container.setRenderBodyOnly(false); In the EnclosureContainer's constructor, this is actually set to true which means that the HTML tag is not part of the rendered markup if the Enclosure is not visible on first render. When made visible afterwards via Ajax, Wicket js cannot find the tag to replace with the enclosure's content. In my opinion, this is a bug and a JIRA issue should be created. On 07/04/2012 1:46 AM, Douglas Ferguson wrote: Is this expected behavior? Is there a workaround? On Apr 5, 2012, at 6:58 PM, Douglas Ferguson wrote: I just found a different between 1.4 and 1.5 with regards to wicket enclosure. If you have a component in a wicket enclosure (say a feedback panel) and you set it visible false. Then subsequently try to set it visible true, wicket 1.5 will not be able to make it reappear. 1.4 had no problem with this. I get this in the debugger console: ERROR: Wicket.Ajax.Call.processComponent: Component with id [[id3]] was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Douglas - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket 1.5 Wizard and AjaxFormComponentUpdatingBehavior for a DropDownChoice
On Mon, Apr 9, 2012 at 3:07 PM, dpmihai dpmi...@yahoo.com wrote: The problem was also the id inside html components. When we have both wicket:id and id, in 1.5.5 id is not overwritten and no events are triggered for that component. I wonder why this was not put inside the migration guide to 1.5. https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+1.5#MigrationtoWicket1.5-Component.getMarkupId%28%29implementationchanged Could be possible to get some warning in case we have something like this: label wicket:id=type for=choice[]/label select wicket:id=choice name=choice id=choice/ and tell user that it's choice component in this case would not receive any events? This markup is OK. I guess you put it in a repeater and that's why you end up with several selects with the same id. And later when submitting just the first sends its value. Just remove the 'id' attribute. Wicket will create a unique one for you automatically. Provide 'id' only when you want to avoid using Component.setMarkupId(somethingStable) in .java -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-Wizard-and-AjaxFormComponentUpdatingBehavior-for-a-DropDownChoice-tp4542617p4542703.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ContextImage and tooltip behavior
I want to add a tooltip behavior to a ContextImage in Wicket 1.5.5. public class SimpleTooltipBehavior extends Behavior{ private String tooltip; public SimpleTooltipBehavior(String tooltip) { super(); this.tooltip = tooltip; } @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); tag.addBehavior(AttributeModifier.replace(alt, tooltip)); tag.addBehavior(AttributeModifier.replace(title, tooltip)); } } This does not work. The modifiers are not added to the markup. But this works: public class SimpleTooltipBehavior extends Behavior{ private String tooltip; public SimpleTooltipBehavior(String tooltip) { super(); this.tooltip = tooltip; } @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); tag.getAttributes().put(alt, tooltip); tag.getAttributes().put(title, tooltip); } } What is wrong with the first code? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ContextImage-and-tooltip-behavior-tp4544817p4544817.html Sent from the Users forum 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: dynamic wizard - update model
Hi, On Mon, Apr 9, 2012 at 6:50 PM, Frederico Rodrigues frederico_rodrig...@ano.pt wrote: Hello I have implement wicket wizard, but i have a small problem, i have an ajaxbutton and i want update the model, but only have success with this when i call processInput() inside the onclick event, there is another solution for this? i don´t want to call processInput() for all components inside the form. my code: public ClientStep(IDynamicWizardStep step,String label) { super(step); IModelClient model= new ModelClient(client); setSummaryModel(new StringResourceModel(client.summary, this, model)); . final TextFieldString field= new TextFieldString(client.field,new PropertyModelString(client, field){ @Override public String getObject() { return client.getField(); } @Override public void setObject(String object) { client.setField(object); } No need to override setObject/getObject. PropertyModel does this for you. }); clientContainer.add(nif); AjaxButton fieldSearch=new AjaxButton(fieldSearch){ @Override protected void onSubmit(AjaxRequestTarget art, Form? form) { // field.processInput(); Client=... art.add(clientContainer); } @Override protected void onError(AjaxRequestTarget art, Form? form) { } }; fieldSearch.setDefaultFormProcessing(false); The problem is in the above line. It says just call button's #onSubmit() without actually doing the submit. clientContainer.add(fieldSearch); . public NewContract(String id) { super(id); setDefaultModel(new CompoundPropertyModelNewContract(this)); DynamicWizardModel model = new DynamicWizardModel(new ClientStep(null,client)); // initialize the wizard with the wizard model we just built init(model); } thanks Frederico Rodrigues - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
Re: ContextImage and tooltip behavior
Hi, On Tue, Apr 10, 2012 at 9:29 AM, dpmihai dpmi...@yahoo.com wrote: I want to add a tooltip behavior to a ContextImage in Wicket 1.5.5. public class SimpleTooltipBehavior extends Behavior{ private String tooltip; public SimpleTooltipBehavior(String tooltip) { super(); this.tooltip = tooltip; } @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); tag.addBehavior(AttributeModifier.replace(alt, tooltip)); tag.addBehavior(AttributeModifier.replace(title, tooltip)); } } This does not work. The modifiers are not added to the markup. But this works: public class SimpleTooltipBehavior extends Behavior{ private String tooltip; public SimpleTooltipBehavior(String tooltip) { super(); this.tooltip = tooltip; } @Override public void onComponentTag(Component component, ComponentTag tag) { super.onComponentTag(component, tag); tag.getAttributes().put(alt, tooltip); tag.getAttributes().put(title, tooltip); } } What is wrong with the first code? ComponentTag's behaviors are used/read before component's behavior#onComponentTag() is called. I.e. you add them a bit late. You can do it with: public class SimpleTooltipBehavior extends Behavior{ private String tooltip; public SimpleTooltipBehavior(String tooltip) { super(); this.tooltip = tooltip; } @Override public void onBind(Component component) { component.add(AttributeModifier.replace(alt, tooltip)); component.add(AttributeModifier.replace(title, tooltip)); } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ContextImage-and-tooltip-behavior-tp4544817p4544817.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Opening a Modal window from another
See the examples http://www.wicket-library.com/wicket-examples/ajax/modal-window and their code. On Tue, Apr 10, 2012 at 10:23 AM, karthik karthik.anik...@infotech-enterprises.com wrote: Hello, I have a modal window (M1) which has a few fields and a button in it. Now, i need to open a modal window (M2) by clicking the button on M1. Can anyone suggest a way to do this in Wicket ? Thanks, -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Opening-a-Modal-window-from-another-tp4544914p4544914.html Sent from the Users forum 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
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
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 swwa...@tsmc.com: 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com
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 | |mgrigo...@apache.org | | | | | | | |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 swwa...@tsmc.com: 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
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, swwa...@tsmc.com 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 | | mgrigo...@apache.org | | | | | | | | 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 swwa...@tsmc.com: 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
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)amp;amp;Wicket.$$('buttonForm92')}.bind(this));});; Any way to achieve this requrement? Best Regards, Joan |- |Martin Grigorov | |mgrigo...@apache.org | | | | | | | |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, swwa...@tsmc.com 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 | | mgrigo...@apache.org | | | | | | | | 2012/04/10 下午 05:23 | | | | | | Please respond to | | users@wicket.apache.org | | | |-
Re: Help. Is it possible show a alert before setThrottleDelay..??
There is nothing about 'confirm' in this paste but without digging into the code I'll assume it is just before the 'wcall' variable. So it seems the result of IAjaxCallDecorator is wrapped in wicketThrottler.throttle(). Another approach: override AjaxFormSubmitBehavior#onComponentTag(Component, ComponentTag) method: { super.onComponentTag(component, tag); // this will set the value that you pasted String oldValue = tag.getAttribute('onclick'); String newValue = if (!confirm()) { + oldValue + }; tag.put(onclick, newValue); } On Tue, Apr 10, 2012 at 12:00 PM, swwa...@tsmc.com wrote: 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)amp;amp;Wicket.$$('buttonForm92')}.bind(this));});; Any way to achieve this requrement? Best Regards, Joan |- | Martin Grigorov | | mgrigo...@apache.org | | | | | | | | 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, swwa...@tsmc.com 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 王琇緯
RE: Opening a Modal window from another
The ModalX library in WicketStuff makes opening both the first modal and nested modals really easy. Project site: https://github.com/wicketstuff/core/wiki/ModalX Live demo: http://demo.visualclassworks.com/modalx/ -Original Message- From: karthik [mailto:karthik.anik...@infotech-enterprises.com] Sent: Tuesday, 10 April 2012 6:23 PM To: users@wicket.apache.org Subject: Opening a Modal window from another Hello, I have a modal window (M1) which has a few fields and a button in it. Now, i need to open a modal window (M2) by clicking the button on M1. Can anyone suggest a way to do this in Wicket ? Thanks, -- View this message in context: http://apache- wicket.1842946.n4.nabble.com/Opening-a-Modal-window-from-another- tp4544914p4544914.html Sent from the Users forum 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: DropDownChoice - filtering and pagination
Hi Martin, Sounds and looks great! Will it be added to wicket-core? 6.x? Best regards, Michal Wegrzyn -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Tuesday, April 10, 2012 8:53 To: users@wicket.apache.org Subject: Re: DropDownChoice - filtering and pagination On Thu, Apr 5, 2012 at 4:32 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi, What is the best way to create option components with Wicket for large datasets? DropDownChoice renders all contained items. Do you maybe know any wicket implementation of drop down choice which allows pagination? Other thing is filtering. I look for something similar to Dojo's FilteringSelect: http://livedocs.dojotoolkit.org/dijit/form/FilteringSelect Igor is working on http://ivaynberg.github.com/select2. He said that soon he will create a Wicket component for it. I guess he wont mind github Pull requests. Best regards, Michal Wegrzyn -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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: a model for passing data between pages
Hi Dan, Thanks, I didn't know about MetaDataKey- that cleans it up nicely: public class SessionModelT extends Serializable implements IModelT { protected MetaDataKeyT key; public SessionModel(MetaDataKeyT key) { this.key = key; } public SessionModel(MetaDataKeyT key, T object) { this.key = key; setObject(object); } public T getObject() { return Session.get().getMetaData(key); } public void setObject(T object) { Session.get().setMetaData(key, object); } public void detach() { // no-op } } And then in MyDTO: public static final MetaDataKey KEY = new MetaDataKeyMyDTO() { }; -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/a-model-for-passing-data-between-pages-tp4542878p4545388.html Sent from the Users forum 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
Using Wicket 1.5 with Oracle Application Server
We use WebLogic 11g as our development environment and OAS 10.1.3.1 for everything else. Our wicket pages work fine in WebLogic but generate 500 status codes in OAS. After looking around on online for a little bit, I found some suggestions that I should use the WicketServlet instead of the WicketFilter. After switching to the WicketServlet, WebLogic still works and OAS still gets 500s. Even though the 500 code is being returned in the response, no errors are being logged by either OAS or log4j. On server start up, the only wicket-related logs are: INFO 2012-04-05 16:03:22,994 org.apache.wicket.util.file.WebXmlFile - web.xml: url mapping found for servlet with name AdminWicketApplication: [/admin/*] INFO 2012-04-05 16:03:23,494 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket core library initializer INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket extensions initializer INFO 2012-04-05 16:03:23,588 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket JMX initializer INFO 2012-04-05 16:03:23,604 org.apache.wicket.util.file.WebXmlFile - web.xml: url mapping found for servlet with name MyWicketApplication: [/pages/customer-information/*] INFO 2012-04-05 16:03:23,604 org.apache.wicket.Application - [MyWicketApplication] init: Wicket core library initializer INFO 2012-04-05 16:03:23,604 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,604 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] INFO 2012-04-05 16:03:23,604 org.apache.wicket.RequestListenerInterface - registered
Re: 1.5 Wicket Enclosure
Hmm I thought EnclosureContainer was actually created _after_ InlineEnclosure! Looking at the git file history I see I was wrong... All the warnings in EnclosureContainer's javadoc led me to believe it was always safer (and preferable) to use it instead of InlineEnclosure. What about when you need ajax and are also in one of the situations described in the javadoc? On 10/04/2012 3:21 AM, Martin Grigorov wrote: Enclosure was never able to work in Ajax. That's why InlineEnclosure has been introduced. On Sat, Apr 7, 2012 at 6:04 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, After creating the EnclosureContainer, add the following call : container.setRenderBodyOnly(false); In the EnclosureContainer's constructor, this is actually set to true which means that the HTML tag is not part of the rendered markup if the Enclosure is not visible on first render. When made visible afterwards via Ajax, Wicket js cannot find the tag to replace with the enclosure's content. In my opinion, this is a bug and a JIRA issue should be created. On 07/04/2012 1:46 AM, Douglas Ferguson wrote: Is this expected behavior? Is there a workaround? On Apr 5, 2012, at 6:58 PM, Douglas Ferguson wrote: I just found a different between 1.4 and 1.5 with regards to wicket enclosure. If you have a component in a wicket enclosure (say a feedback panel) and you set it visible false. Then subsequently try to set it visible true, wicket 1.5 will not be able to make it reappear. 1.4 had no problem with this. I get this in the debugger console: ERROR: Wicket.Ajax.Call.processComponent: Component with id [[id3]] was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Douglas - 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: Using Wicket 1.5 with Oracle Application Server
Hi, On Tue, Apr 10, 2012 at 5:56 PM, thomas.nor...@emerson.com wrote: We use WebLogic 11g as our development environment and OAS 10.1.3.1 for everything else. Our wicket pages work fine in WebLogic but generate 500 status codes in OAS. After looking around on online for a little bit, I found some suggestions that I should use the WicketServlet instead of the WicketFilter. After switching to the WicketServlet, WebLogic still works and OAS still gets 500s. Even though the 500 code is being returned in the response, no errors are being logged by either OAS or log4j. On server start up, the only wicket-related logs are: INFO 2012-04-05 16:03:22,994 org.apache.wicket.util.file.WebXmlFile - web.xml: url mapping found for servlet with name AdminWicketApplication: [/admin/*] INFO 2012-04-05 16:03:23,494 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket core library initializer INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.IRedirectListener.onRedirect()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.IResourceListener.onResourceRequested()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket extensions initializer INFO 2012-04-05 16:03:23,588 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket JMX initializer INFO 2012-04-05 16:03:23,604 org.apache.wicket.util.file.WebXmlFile - web.xml: url mapping found for servlet with name MyWicketApplication: [/pages/customer-information/*] INFO 2012-04-05 16:03:23,604 org.apache.wicket.Application - [MyWicketApplication] init: Wicket core library initializer INFO 2012-04-05 16:03:23,604 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,604 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void
Re: 1.5 Wicket Enclosure
Douglas didn't mention EnclosureContainer at all. He said that wicket:enclosure worked fine for this scenario in 1.4.x. And I cannot imagine this ... But I personally try to avoid using any kind of auto components in my apps because I'm aware of the number of open tickets about them in our Jira for which I don't have solutions. For this scenario I'd use EnclosureContainer with setRenderBodyOnly(false). On Tue, Apr 10, 2012 at 6:00 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hmm I thought EnclosureContainer was actually created _after_ InlineEnclosure! Looking at the git file history I see I was wrong... All the warnings in EnclosureContainer's javadoc led me to believe it was always safer (and preferable) to use it instead of InlineEnclosure. What about when you need ajax and are also in one of the situations described in the javadoc? On 10/04/2012 3:21 AM, Martin Grigorov wrote: Enclosure was never able to work in Ajax. That's why InlineEnclosure has been introduced. On Sat, Apr 7, 2012 at 6:04 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, After creating the EnclosureContainer, add the following call : container.setRenderBodyOnly(false); In the EnclosureContainer's constructor, this is actually set to true which means that the HTML tag is not part of the rendered markup if the Enclosure is not visible on first render. When made visible afterwards via Ajax, Wicket js cannot find the tag to replace with the enclosure's content. In my opinion, this is a bug and a JIRA issue should be created. On 07/04/2012 1:46 AM, Douglas Ferguson wrote: Is this expected behavior? Is there a workaround? On Apr 5, 2012, at 6:58 PM, Douglas Ferguson wrote: I just found a different between 1.4 and 1.5 with regards to wicket enclosure. If you have a component in a wicket enclosure (say a feedback panel) and you set it visible false. Then subsequently try to set it visible true, wicket 1.5 will not be able to make it reappear. 1.4 had no problem with this. I get this in the debugger console: ERROR: Wicket.Ajax.Call.processComponent: Component with id [[id3]] was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Douglas - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Using Wicket 1.5 with Oracle Application Server
I triple-checked and I was wrong about the frequency of the destroy logs. It looks like the previous application is being destroyed each time I log in. But I don't see any initialization logs for wicket apart from what happens in server startup. Here's my logs after logging in the first time: INFO 2012-04-10 11:29:51,195 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket core library initializer INFO 2012-04-10 11:29:51,195 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket extensions initializer INFO 2012-04-10 11:29:51,211 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket JMX initializer INFO 2012-04-10 11:29:51,211 org.apache.wicket.Application - [MyWicketApplication] destroy: DevUtils DebugBar Initializer INFO 2012-04-10 11:29:51,211 org.apache.wicket.Application - [MyWicketApplication] destroy: org.apache.wicket.velocity.Initializer@d2c37c DEBUG 2012-04-10 11:29:51,289 org.apache.wicket.pageStore.DiskDataStore - Destroying... DEBUG 2012-04-10 11:29:51,289 org.apache.wicket.pageStore.DiskDataStore - Destroyed. I logged out and check the logs and saw no changes. When I logged in again, I got: INFO 2012-04-10 11:32:13,412 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket core library initializer INFO 2012-04-10 11:32:13,412 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket extensions initializer INFO 2012-04-10 11:32:13,428 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket JMX initializer INFO 2012-04-10 11:32:13,428 org.apache.wicket.Application - [MyWicketApplication] destroy: DevUtils DebugBar Initializer INFO 2012-04-10 11:32:13,428 org.apache.wicket.Application - [MyWicketApplication] destroy: org.apache.wicket.velocity.Initializer@d2c37c DEBUG 2012-04-10 11:32:13,428 org.apache.wicket.pageStore.DiskDataStore - Destroying... DEBUG 2012-04-10 11:32:13,428 org.apache.wicket.pageStore.DiskDataStore - Destroyed. Took the same steps a third time: INFO 2012-04-10 11:34:56,630 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket core library initializer INFO 2012-04-10 11:34:56,630 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket extensions initializer INFO 2012-04-10 11:34:56,630 org.apache.wicket.Application - [MyWicketApplication] destroy: Wicket JMX initializer INFO 2012-04-10 11:34:56,661 org.apache.wicket.Application - [MyWicketApplication] destroy: DevUtils DebugBar Initializer INFO 2012-04-10 11:34:56,661 org.apache.wicket.Application - [MyWicketApplication] destroy: org.apache.wicket.velocity.Initializer@d2c37c DEBUG 2012-04-10 11:34:56,661 org.apache.wicket.pageStore.DiskDataStore - Destroying... DEBUG 2012-04-10 11:34:56,661 org.apache.wicket.pageStore.DiskDataStore - Destroyed. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Tuesday, April 10, 2012 11:03 AM To: users@wicket.apache.org Subject: Re: Using Wicket 1.5 with Oracle Application Server Hi, On Tue, Apr 10, 2012 at 5:56 PM, thomas.nor...@emerson.com wrote: We use WebLogic 11g as our development environment and OAS 10.1.3.1 for everything else. Our wicket pages work fine in WebLogic but generate 500 status codes in OAS. After looking around on online for a little bit, I found some suggestions that I should use the WicketServlet instead of the WicketFilter. After switching to the WicketServlet, WebLogic still works and OAS still gets 500s. Even though the 500 code is being returned in the response, no errors are being logged by either OAS or log4j. On server start up, the only wicket-related logs are: INFO 2012-04-05 16:03:22,994 org.apache.wicket.util.file.WebXmlFile - web.xml: url mapping found for servlet with name AdminWicketApplication: [/admin/*] INFO 2012-04-05 16:03:23,494 org.apache.wicket.Application - [AdminWicketApplication] init: Wicket core library initializer INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted ()] INFO 2012-04-05 16:03:23,510 org.apache.wicket.RequestListenerInterface - registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void
Re: DropDownChoice - filtering and pagination
no, it will not be added to core. it will live in my github account. -igor On Tue, Apr 10, 2012 at 4:44 AM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi Martin, Sounds and looks great! Will it be added to wicket-core? 6.x? Best regards, Michal Wegrzyn -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Tuesday, April 10, 2012 8:53 To: users@wicket.apache.org Subject: Re: DropDownChoice - filtering and pagination On Thu, Apr 5, 2012 at 4:32 PM, Michal Wegrzyn michal.wegr...@onior.com wrote: Hi, What is the best way to create option components with Wicket for large datasets? DropDownChoice renders all contained items. Do you maybe know any wicket implementation of drop down choice which allows pagination? Other thing is filtering. I look for something similar to Dojo's FilteringSelect: http://livedocs.dojotoolkit.org/dijit/form/FilteringSelect Igor is working on http://ivaynberg.github.com/select2. He said that soon he will create a Wicket component for it. I guess he wont mind github Pull requests. Best regards, Michal Wegrzyn -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
HTML5 button Javascript without a form
Hi all, So two questions. 1) I looked through the wicket 1.5 changes and did not see any mention of a component similar to the html 5 button element. Is there something with similar functionality in the wicket component library? 2) I am looking to create a component that allows users to add CC and BCC recipients for an email. Of course there could be from 0-inifinty users for this. The way I would like to form to work is that the user hits a addition button to add another text field for an email, and can remove emails by hitting a remove button. I find this to be more elegant than just having the user input emails seperated by commas, or some other delimiter. The page will be submitted with a ajaxfallbackbutton which will inform the user that the email was sent correctly, or report any errors. To give you an idea of what I am talking about check out this picture on skitch: https://skitch.com/cmagnollay/81y3u/multitextform So does anybody have any good ideas on how to implement something like this? I have done a couple simple wicket projects before, but I am trying to stretch my capabilities and actually make a reusable component, so any ideas on wicket components to use, structure, and such would be much appreciated. Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML5-button-Javascript-without-a-form-tp4546592p4546592.html Sent from the Users forum 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: wicket facebook application
Look into this one https://reachmnadeem.wordpress.com/2012/04/09/wicket-facebook/ -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-facebook-application-tp3490139p4546617.html Sent from the Users forum 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: Page Expired with Google Analytics Tracking Code
Hi, nobody an idea why the PageableListView is empty after clicking on one of the links from the PagingNavigator? After reloading of the page, the PageableListView is filled and once again empty when I click on oe of the links from the PagingNavigator. It seems, that the Listitem's are empty when I click on one of the links in the PagingNavigator. But there are definitely more items than just for one page and the PagingNavigator shows 6 possible pages. Thanks, Andre On Mon, 9 Apr 2012 19:44:34 +0200 Andre Schütz wic...@faustas.de wrote: Hello, I tried your approach and could find one mistake in my code. After the stepwise adding of the components to my results page, I found an error in two of my classes that are used on that page. These two classes did not implement the Serializable interface. I added the interface to these two classes and the PageExpired error was gone. But there is still another error. My PageableListView does not display the results when I click on one of the links in the AjaxPagingNavigator. The first page is displayed but the other pages in the list are nearly empty. They are not completely empty. I have 3 elements in an item of the PageableListView populateItem Method that must be filled in the html page. The elements are title, description and time. My code looks as follows: /*** * Code */ private void displayResults(VectorLoadableListingEntryModel results, int entriesPerPage) { WebMarkupContainer datacontainer = new WebMarkupContainer(listviewContainer); datacontainer.setOutputMarkupId(true); add(datacontainer); PageableListView listview = new PageableListView(listview, results, entriesPerPage) { StringBuilder sb; @Override protected void populateItem(ListItem item) { if (item != null) { LoadableListingEntryModel model = (LoadableListingEntryModel)item.getModelObject(); DefaultSearchResult s = model.getObject().getResult(); String description = s.getDescription(); String title = s.getTitle(); item.add(new ExternalLink(title, title)); item.add(new Label(description, description)); item.add(new Label(time, s.getTime()).setEscapeModelStrings(false)); } } }; listview.setReuseItems(true); datacontainer.add(listview); AjaxPagingNavigator apn = new AjaxPagingNavigator(navigator, listview){ @Override protected void onAjaxEvent(AjaxRequestTarget target) { super.onAjaxEvent(target); target.appendJavaScript(scrollTo(0,0)); } }; datacontainer.add(apn); datacontainer.setVersioned(false); } /*** * Code */ The LoadableListingEntryModel was one of the two classes that got the Serializable interface. When I click on one of the links of the AjaxPagingNavigator, the title and the description fields are emtpy. The time field is filled. I checked the items and have e.g. 60 items with title, description and time content. But only the time content is displayed, when I click on one of the AjaxPagingNavigator links. This error only occurs, if the Google Adsense Code is in the site. Could it be possible, that the Ajax call of the PageableListView has a problem? Thanks, Andre On Sat, 07 Apr 2012 21:46:53 +0200 Bas Gooren b...@iswd.nl wrote: Yes. Op 7-4-2012 20:37, schreef Andre Schütz: Thank you for the answer, I will try your 4 steps. Just as information. When you say, that I can make the form stateless, do you talk about the StatelessForm class? Andre On Sat, 07 Apr 2012 16:06:15 +0200 Bas Goorenb...@iswd.nl wrote: Hi, I would suggest the following: 1) add a very simple test page: TestPage extends WebPage, which only has the search form on it (nothing else!) 2) see if that works multiple times in a row 3) if that works, add your google analytics code 4) repeat steps 1-2 In other words: eliminitate all other dependencies, so you can test (in isolation) if the google analytics code (or the component you've wrapped it in) is really the issue you are facing. You say that everything works ok when you add the query parameter for the search. Having that parameter means you have a form with method=get? That, to me, would indicate you can make the form stateless, which should prevent your search from redirecting to a stateful url. (The /wicket/page start of the url indicates a stateful page). But please start with steps 1-4 above to make sure you are looking in the right place for the cause of your PageExpiredException.
Re: HTML5 button Javascript without a form
On Tue, Apr 10, 2012 at 11:57 AM, cmagnollay cmagnol...@gmail.com wrote: Hi all, So two questions. 1) I looked through the wicket 1.5 changes and did not see any mention of a component similar to the html 5 button element. Is there something with similar functionality in the wicket component library? you can attach a Link or AjaxLink to a button and it will just work. 2) I am looking to create a component that allows users to add CC and BCC recipients for an email. Of course there could be from 0-inifinty users for this. The way I would like to form to work is that the user hits a addition button to add another text field for an email, and can remove emails by hitting a remove button. I find this to be more elegant than just having the user input emails seperated by commas, or some other delimiter. The page will be submitted with a ajaxfallbackbutton which will inform the user that the email was sent correctly, or report any errors. To give you an idea of what I am talking about check out this picture on skitch: https://skitch.com/cmagnollay/81y3u/multitextform So does anybody have any good ideas on how to implement something like this? I have done a couple simple wicket projects before, but I am trying to stretch my capabilities and actually make a reusable component, so any ideas on wicket components to use, structure, and such would be much appreciated. http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ -igor Thank you! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML5-button-Javascript-without-a-form-tp4546592p4546592.html Sent from the Users forum 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: Page Expired with Google Analytics Tracking Code
Hi, It sounds a lot like you are not using models properly. E.g. your results method parameter has a length which overflows the page size (and thus the pagingnavigator renders page links), but on a second request the contents of results are null/empty? Try debugging PageableListView#populateItem() and check what its model points to. Can you be more specific with regard to they are not completely empty? What exactly do you see, and what do you expect? Kind regards, Bas Op 10-4-2012 22:19, schreef Andre Schütz: Hi, nobody an idea why the PageableListView is empty after clicking on one of the links from the PagingNavigator? After reloading of the page, the PageableListView is filled and once again empty when I click on oe of the links from the PagingNavigator. It seems, that the Listitem's are empty when I click on one of the links in the PagingNavigator. But there are definitely more items than just for one page and the PagingNavigator shows 6 possible pages. Thanks, Andre On Mon, 9 Apr 2012 19:44:34 +0200 Andre Schützwic...@faustas.de wrote: Hello, I tried your approach and could find one mistake in my code. After the stepwise adding of the components to my results page, I found an error in two of my classes that are used on that page. These two classes did not implement the Serializable interface. I added the interface to these two classes and the PageExpired error was gone. But there is still another error. My PageableListView does not display the results when I click on one of the links in the AjaxPagingNavigator. The first page is displayed but the other pages in the list are nearly empty. They are not completely empty. I have 3 elements in an item of the PageableListView populateItem Method that must be filled in the html page. The elements are title, description and time. My code looks as follows: /*** * Code */ private void displayResults(VectorLoadableListingEntryModel results, int entriesPerPage) { WebMarkupContainer datacontainer = new WebMarkupContainer(listviewContainer); datacontainer.setOutputMarkupId(true); add(datacontainer); PageableListView listview = new PageableListView(listview, results, entriesPerPage) { StringBuilder sb; @Override protected void populateItem(ListItem item) { if (item != null) { LoadableListingEntryModel model = (LoadableListingEntryModel)item.getModelObject(); DefaultSearchResult s = model.getObject().getResult(); String description = s.getDescription(); String title = s.getTitle(); item.add(new ExternalLink(title, title)); item.add(new Label(description, description)); item.add(new Label(time, s.getTime()).setEscapeModelStrings(false)); } } }; listview.setReuseItems(true); datacontainer.add(listview); AjaxPagingNavigator apn = new AjaxPagingNavigator(navigator, listview){ @Override protected void onAjaxEvent(AjaxRequestTarget target) { super.onAjaxEvent(target); target.appendJavaScript(scrollTo(0,0)); } }; datacontainer.add(apn); datacontainer.setVersioned(false); } /*** * Code */ The LoadableListingEntryModel was one of the two classes that got the Serializable interface. When I click on one of the links of the AjaxPagingNavigator, the title and the description fields are emtpy. The time field is filled. I checked the items and have e.g. 60 items with title, description and time content. But only the time content is displayed, when I click on one of the AjaxPagingNavigator links. This error only occurs, if the Google Adsense Code is in the site. Could it be possible, that the Ajax call of the PageableListView has a problem? Thanks, Andre On Sat, 07 Apr 2012 21:46:53 +0200 Bas Goorenb...@iswd.nl wrote: Yes. Op 7-4-2012 20:37, schreef Andre Schütz: Thank you for the answer, I will try your 4 steps. Just as information. When you say, that I can make the form stateless, do you talk about the StatelessForm class? Andre On Sat, 07 Apr 2012 16:06:15 +0200 Bas Goorenb...@iswd.nl wrote: Hi, I would suggest the following: 1) add a very simple test page: TestPage extends WebPage, which only has the search form on it (nothing else!) 2) see if that works multiple times in a row 3) if that works, add your google analytics code 4) repeat steps 1-2 In other words: eliminitate all other dependencies, so you can test (in isolation) if the google analytics code (or the component you've wrapped it in) is really the issue you are facing. You say that everything works ok when you add the query parameter
RE: 1.5 Wicket Enclosure
We had lots of working wicket:enclosure'S in our app under 1.4 but when we switched to 1.5 we had to change pretty much all of them to explicitly create an EnclosureContainer object in the Java code to make them work. It wasn't too much effort once we worked out what the problem was but 1.5 certainly didn't seem to handle enclosures as effortlessly as 1.4. -Original Message- From: Martin Grigorov [mailto:mgrigo...@apache.org] Sent: Wednesday, 11 April 2012 1:14 AM To: users@wicket.apache.org Subject: Re: 1.5 Wicket Enclosure Douglas didn't mention EnclosureContainer at all. He said that wicket:enclosure worked fine for this scenario in 1.4.x. And I cannot imagine this ... But I personally try to avoid using any kind of auto components in my apps because I'm aware of the number of open tickets about them in our Jira for which I don't have solutions. For this scenario I'd use EnclosureContainer with setRenderBodyOnly(false). On Tue, Apr 10, 2012 at 6:00 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hmm I thought EnclosureContainer was actually created _after_ InlineEnclosure! Looking at the git file history I see I was wrong... All the warnings in EnclosureContainer's javadoc led me to believe it was always safer (and preferable) to use it instead of InlineEnclosure. What about when you need ajax and are also in one of the situations described in the javadoc? On 10/04/2012 3:21 AM, Martin Grigorov wrote: Enclosure was never able to work in Ajax. That's why InlineEnclosure has been introduced. On Sat, Apr 7, 2012 at 6:04 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, After creating the EnclosureContainer, add the following call : container.setRenderBodyOnly(false); In the EnclosureContainer's constructor, this is actually set to true which means that the HTML tag is not part of the rendered markup if the Enclosure is not visible on first render. When made visible afterwards via Ajax, Wicket js cannot find the tag to replace with the enclosure's content. In my opinion, this is a bug and a JIRA issue should be created. On 07/04/2012 1:46 AM, Douglas Ferguson wrote: Is this expected behavior? Is there a workaround? On Apr 5, 2012, at 6:58 PM, Douglas Ferguson wrote: I just found a different between 1.4 and 1.5 with regards to wicket enclosure. If you have a component in a wicket enclosure (say a feedback panel) and you set it visible false. Then subsequently try to set it visible true, wicket 1.5 will not be able to make it reappear. 1.4 had no problem with this. I get this in the debugger console: ERROR: Wicket.Ajax.Call.processComponent: Component with id [[id3]] was not found while trying to perform markup update. Make sure you called component.setOutputMarkupId(true) on the component whose markup you are trying to update. Douglas - 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 -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.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: Javascript call on AjaxFallbackDefaultDataTable
I've tried to implement the ajaxCallDecorator as you specified, but I fail to see the javascript being appended/prepended. ie only the var wcall =wicketAjaxGet... is ever decorated. Has anyone else attempted this successfully? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Javascript-call-on-AjaxFallbackDefaultDataTable-tp1850777p4548007.html Sent from the Users forum 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