Re: Veil behavior of wicketstuff-minis
I succeeded to solve my problem. I found the site https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html where shows an example of ajax and non ajax button to put the veil . Then I created the files. Css and. Js with these samples and placed in the same directory of my. Java. Then in my java page I added this: private static final CompressedResourceReference MYPAGE_JS = new CompressedResourceReference (Index.class, veil.js); private static final CompressedResourceReference MYPAGE_CSS = new CompressedResourceReference (Index.class, veil.css); To reference the css and javascript. Then just add it to your page add (JavascriptPackageResource.getHeaderContribution (MYPAGE_JS)); add (CSSPackageResource.getHeaderContribution (MYPAGE_CSS)); and this html: div id=bysy_indicator / div works for ajax and non ajax Button -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Veil-behavior-of-wicketstuff-minis-tp2228127p4395959.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: Veil behavior of wicketstuff-minis
Someone can help with the veil behavior, because until now I could not make it works. Thankss. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Veil-behavior-of-wicketstuff-minis-tp2228127p4352522.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 1.5.4 on websphere 7
I had a problem with filter wicket and websphere and I solved the problem this way: servlet servlet-namewicket.application/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valuemyApplication/param-value /init-param /servlet servlet-mapping servlet-namewicket.application/servlet-name url-pattern/*/url-pattern /servlet-mapping Only this and its work.. See and try. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-1-5-4-on-websphere-7-tp4343774p4344270.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: Veil behavior of wicketstuff-minis
Hi, I managed to put the veil on my page after I execute a method, but I can not remove the veil. I used the class shown on the site http://grepcode.com/file/repo1.maven.org/maven2/org.wicketstuff/minis/1.4.17.1/org/wicketstuff/minis/veil/VeilResources.java and I can not remove. Someone could help me with this case? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Veil-behavior-of-wicketstuff-minis-tp2228127p4330008.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: Veil behavior of wicketstuff-minis
In my method I call this protected void onSubmit(AjaxRequestTarget target, Form? form) { form.add(new Veil()); target.addComponent(form); -- method to be execute --- form.add(new DisabledVeil()); target.addComponent(form); The class viel : public class Veil extends VeilResources { private static final long serialVersionUID = 8017992550548909810L; private Component component; private String cssClassName; public Veil() { } public Veil(String cssClassName) { if (!Strings.isEmpty(cssClassName)) this.cssClassName = cssClassName; } public void bind(Component component) { super.bind(component); if (this.component != null) { throw new IllegalStateException( This behavior is already bound to component. An instance of this behavior cannot be reused between components. Bound component: + this.component.toString()); } this.component = component; } private String getCssClassName() { return (this.cssClassName != null) ? this.cssClassName : wicket-veil; } public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderOnDomReadyJavascript(VeilResources.Javascript.show(this.component)); } The class disable viel public class DisabledVeil extends Veil { private static final long serialVersionUID = 66447383785577749L; public DisabledVeil() { } public DisabledVeil(String cssClassName) { super(cssClassName); } public boolean isEnabled(Component component) { return (super.isEnabled(component)) (component.isEnabled()) (component.isEnableAllowed()); } } the class resource: public class VeilResources extends AbstractBehavior implements IHeaderContributor { private static final long serialVersionUID = -4054673989711649496L; private static final ResourceReference JS = new JavascriptResourceReference(VeilResources.class, wicket-veil.js); private static final ResourceReference CSS = new ResourceReference(VeilResources.class, wicket-veil.css); public static final String DEFAULT_CSS_CLASS_NAME = wicket-veil; @Override public void bind(Component component) { super.bind(component); component.setOutputMarkupId(true); } @Override public void renderHead(IHeaderResponse response) { super.renderHead(response); response.renderJavascriptReference(JS); response.renderCSSReference(CSS); } public static class Javascript { public static String hide(Component component) { return Generic.hide(component.getMarkupId()); } public static String show(Component component) { return Generic.show(component.getMarkupId()); } public static String show(Component component, String className) { return Generic.show(component.getMarkupId(), className); } public static String toggle(Component component) { return Generic.toggle(component.getMarkupId()); } public static String toggle(Component component, String className) { return Generic.toggle(component.getMarkupId(), className); } public static class Generic { public static String hide(String markupId) { return Wicket.Veil.toggle(' + markupId + ');; } public static String show(String markupId) { return show(markupId, wicket-veil); } public static String show(String markupId, String className) { return Wicket.Veil.show(' + markupId + ', {className:' + className + '});; } public static String toggle(String markupId) { return toggle(markupId, wicket-veil); } public static String toggle(String markupId, String className) { return Wicket.Veil.toggle(' + markupId + ', {className:' + className + '});; } } } } when i call the class disable
Re: Wicket webshere 7
Its work with the servlet, but I had to change the implementation that you gave me through the link. In my application when I put all the code was it not working so I had to put only the following code: servlet servlet-namewicket.application/servlet-name servlet-classorg.apache.wicket.protocol.http.WicketServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valuemyApplication/param-value /init-param /servlet servlet-mapping servlet-namewicket.application/servlet-name url-pattern/*/url-pattern /servlet-mapping Only this and its work.. Thanks a lot to everyone who helped me -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4327096.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 webshere 7
Yes, my application is running with the filter Wicket Filter. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-websphere-7-tp4310810p4321364.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
Wicket webshere 7
Hi, I have a big problem with websphere and wicket because of several ajax behavior that does not work when it is configured in webphere. Someone has gone through some configuration problem with websphere wicket that could help me? Being that we've set the property called com.ibm.ws.webcontainer.invokefilterscompatibility and dont work. thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-webshere-7-tp4310810p4310810.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: Palette and onComponentTagBody
I'm wondering how I didnt think about that before *slap* Thank you very much... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Palette-and-onComponentTagBody-tp4241432p4242524.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: Palette and onComponentTagBody
And how I'm supposed to provide my own MyPalette.html? I tried here to override /onComponentTagBody/ and add the html component to the response, but it didnt worked as expected. Can you show me how I can do it? Thanks... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Palette-and-onComponentTagBody-tp4241432p4242467.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: Palette select the data with one click
I used the AjaxFormChoiceComponentUpdatingBehavior in the palette but, it works with the method onchange and the method click does not work. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Palette-select-the-data-with-one-click-tp3839870p3855729.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