Re: SwramWebApplication and session

2011-01-21 Thread Martin Makundi
Hi! I am not sure what you mean, but we have like this: /** * @see com.myapp.MyApplication#newSession(org.apache.wicket.Request, org.apache.wicket.Response) */ @Override public Session newSession(Request request, Response response) { return session = new MySession(request,

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Martin Grigorov
Try with : in .html: html wicket:id=html in .java: WebMarkupContainer htmlTag = new WebMarkupContainer(html); htmlTag.add(new SimpleAttributeModifier(lang, getSession().getLocale().toString()); htmlTag.setTransparentResolver(true); // check the javadoc of this method On Fri, Jan 21, 2011

Re: Submit form from other form onClick

2011-01-21 Thread Martin Grigorov
Just add temporarily an AjaxButton to your form and see the generated HTML for that button. There you'll see the needed javascript. I suggest you to leave the button and change your code to: Wicket.$('%s').click(); } catch(err) { if (window.console != undefined) { console.log(err); } },

Re: Embedded jetty maven profile.xml

2011-01-21 Thread Martin Grigorov
profile.xml sounds like Maven 1 ?! better ask in Jetty mailing lists 2011/1/21 Altuğ Bilgin Altıntaş alt...@gmail.com I try to start jetty in embedded form but i have problems I need to read properties values in profile.xml before embedded jetty starts. Any suggestions ? Thanks. --

DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
Hello I have a text field with jQuery DatePickerBehavior. When the page is loaded and the field is initially visible, the behavior works just fine. But when toggling the visibility from hidden to visible, the client function is gone. The little date packer icon is gone and so is the click

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Mike Mander
Am 21.01.2011 09:17, schrieb Martin Grigorov: Try with : in .html: html wicket:id=html in .java: WebMarkupContainer htmlTag = new WebMarkupContainer(html); htmlTag.add(new SimpleAttributeModifier(lang, getSession().getLocale().toString()); htmlTag.setTransparentResolver(true); // check

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Martin Grigorov
Yes, sorry. You need to override #isTransparentResolver() WebMarkupContainer htmlTag = new WebMarkupContainer(html) { public boolean isTransparentResolver() { return true; } }; On Fri, Jan 21, 2011 at 12:25 PM, Mike Mander wicket-m...@gmx.de wrote: Am 21.01.2011 09:17, schrieb Martin

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Ernesto Reinaldo Barreiro
How do you toggle visibility? Replacing panels via AJAX or client side JavaScript? The AJAX way will work for sure. I think via JavaScript you will have to manually recreate it when making it visible Ernesto On Fri, Jan 21, 2011 at 12:11 PM, Swanthe Lindgren swanthe.lindg...@megasol.se

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
A drop down box fires an AJAX request and the text field with the date picker has an overridden isVisible() method. On 2011-01-21 12:35, Ernesto Reinaldo Barreiro wrote: How do you toggle visibility? Replacing panels via AJAX or client side JavaScript? The AJAX way will work for sure. I think

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Ernesto Reinaldo Barreiro
Are you using wiquery? If so, can you show me your code or send me a simplified Panel showing this behavior? I use wiquery datepickers on my applications in combination with via AJAX replacements and do not have this issue. Ernesto On Fri, Jan 21, 2011 at 12:41 PM, Swanthe Lindgren

RE: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Wilhelmsen Tor Iver
A drop down box fires an AJAX request and the text field with the date picker has an overridden isVisible() method. You have used setOutputMarkupPlaceholderTag(true) on the component that visibility is toggled for yes? - Tor Iver

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
I have just changed to jQuery DatePickerBehavior from wicket extensions YUI DatePicker, which of course worked just fine in this scenario, but since I want some of the customizations available in jQuery we made a switch. On 2011-01-21 12:49, Ernesto Reinaldo Barreiro wrote: Are you using

Re: How can i change lang attribute in html markup tag?

2011-01-21 Thread Mike Mander
Great Martin. Thanks alot it works as expected. My solution: LocalizedHtmlTag.java import org.apache.wicket.behavior.SimpleAttributeModifier; import org.apache.wicket.markup.html.WebMarkupContainer; public class LocalizedHtmlTag extends WebMarkupContainer { public LocalizedHtmlTag(String

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Ernesto Reinaldo Barreiro
A said: this works fine on my applications using latest versions of wiquery DatePicker [(see 1]) + AJAX replacements. 1-http://www.google.com/codesearch/p?hl=en#pdLMIUTpzpE/trunk/src/main/java/org/odlabs/wiquery/ui/datepicker/DatePicker.java Ernesto On Fri, Jan 21, 2011 at 12:55 PM, Swanthe

About AbstractLink

2011-01-21 Thread Heitor Machado
Hi all, I noticed some days ago that the AbstractLink component when disabled, render itself as a span. Is there some especific motivation for that ? I´m asking because I think that a component/element does not have to change itself in that way, its suposed to be a responsability of its holder,

Re: Question regarding AjaxFormSubmitBehavior

2011-01-21 Thread Daniel Bartl
Many thanks for your feedback! I am well aware of the fact that HTML spec actually does not allow nested forms and that wicket is already doing great job while transforming those nested forms into divs. I also expected that the bigger form gets submitted as well but only the nested one processed

Re: modal window IE8 parent page scrolbar

2011-01-21 Thread vov
Do anybody know solutions for this issue? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/modal-window-IE8-parent-page-scrolbar-tp3056439p3229703.html Sent from the Users forum mailing list archive at Nabble.com.

Wicket with fest assert

2011-01-21 Thread Jarosław Pałka
Hi happy Wicket users! For last couple of months I was using Wicket in 2 projects I am working on. The only thing that drives me crazy from time to time is support for testing. It is obviously better then in any Java web framework I every used, but I think it could be simpler to use and more

Re: About AbstractLink

2011-01-21 Thread Jeremy Thomerson
WebApplication.get().getMarkupSettings().setDefaultBeforeDisabledLink(div); WebApplication.get().getMarkupSettings().setDefaultAfterDisabledLink(/div); On Fri, Jan 21, 2011 at 7:19 AM, Heitor Machado heito...@gmail.com wrote: Hi all, I noticed some days ago that the AbstractLink component

Re: Wicket with fest assert

2011-01-21 Thread Martin Grigorov
Nice! I'll check your work soon. Recently a friend of mine also asked me why we don't include the useful things from EnhancedWicketTester( http://www.paulszulc.com/tag/wickettester/ ) There is a room for improvement in that area. 2011/1/21 Jarosław Pałka jpa...@gmail.com Hi happy Wicket

Re: DatePickerBehavior lost when toggling visibility

2011-01-21 Thread Swanthe Lindgren
Sorry, I didn't get that wiquery also used jQuery. After changing to wiquery I at least got my quickstart-app running On 2011-01-21 13:34, Ernesto Reinaldo Barreiro wrote: A said: this works fine on my applications using latest versions of wiquery DatePicker [(see 1]) + AJAX replacements.

Re: About AbstractLink

2011-01-21 Thread Heitor Machado
Very nice, tanks Jeremy, but the main question is not about SPANs X DIVs, or whatever. And even with this nice snipet, should all disabled links in my app appear with DIVs ? Without exceptions ? tanks Heitor

Re: About AbstractLink

2011-01-21 Thread Jeremy Thomerson
On Fri, Jan 21, 2011 at 10:08 AM, Heitor Machado heito...@gmail.com wrote: Very nice, tanks Jeremy, but the main question is not about SPANs X DIVs, or whatever. And even with this nice snipet, should all disabled links in my app appear with DIVs ? Without exceptions ? A link doesn't have

Re: Question regarding AjaxFormSubmitBehavior

2011-01-21 Thread Igor Vaynberg
you are welcome to submit a jira issue with a unit test/quickstart that demonstrates the problem. -igor On Fri, Jan 21, 2011 at 5:42 AM, Daniel Bartl d.ba...@comsysto.com wrote: Many thanks for your feedback! I am well aware of the fact that HTML spec actually does not allow nested forms and

Re: About AbstractLink

2011-01-21 Thread Igor Vaynberg
afaik anchors in html do not support a disabled attribute. so the only way to make it really unclickable is to not render it as an anchor. of course you can change that by tweaking Jeremy's example WebApplication.get().getMarkupSettings().setDefaultBeforeDisabledLink(a);

Re: About AbstractLink

2011-01-21 Thread Martin Grigorov
On Fri, Jan 21, 2011 at 5:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: afaik anchors in html do not support a disabled attribute. so the only way to make it really unclickable is to not render it as an anchor. of course you can change that by tweaking Jeremy's example

Re: About AbstractLink

2011-01-21 Thread Igor Vaynberg
no, they will replace the span. and iirc em was changed to span a while back as the default -igor On Fri, Jan 21, 2011 at 8:42 AM, Martin Grigorov mgrigo...@apache.org wrote: On Fri, Jan 21, 2011 at 5:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: afaik anchors in html do not support a

Re: Wicket with fest assert

2011-01-21 Thread Anton Bessonov
Of course! https://cwiki.apache.org/WICKET/type-safe-testing-in-wicket.html It must be built in :) There is a room for improvement in that area. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: About AbstractLink

2011-01-21 Thread uudashr
Sent from my BlackBerry® powered by Sinyal Kuat INDOSAT -Original Message- From: Heitor Machado heito...@gmail.com Date: Fri, 21 Jan 2011 14:08:25 To: users@wicket.apache.org Reply-To: users@wicket.apache.org Subject: Re: About AbstractLink Very nice, tanks Jeremy, but the main