Re: Server and client side validation

2013-05-07 Thread Cedric Gatay
Hi Gabriel, the spin-off from Martin's blog post is available on Maven Central (via Sonatype OSS services). It depends on JSR303 though. Regards, __ Cedric Gatay (@Cedric_Gatay http://twitter.com/Cedric_Gatay) http://code-troopers.com | http://www.bloggure.info | http://cedric.gatay.fr On Tue,

Re: [wicket 6] Modal unable to see page's properties anymore ?

2013-05-07 Thread Martin Grigorov
Hi, You should not keep references to other page instances. Instead pass IPageReference: page.getPageReference(). Later you can do: MyPage page = (MyPage) pageRef.getPage(); page.setXyz(); But in your case I think you should use the Session. If the login is successful then bind a session and

Re: How to preserve current url in error page

2013-05-07 Thread Martin Grigorov
Hi, Use: Class errorPage = application.getApplicationSettings().getInternalErrorPage(); throw new RestartResponseException(new PageProvider(errorPage), RedirectPolicy.NEVER_REDIRECT) On Mon, May 6, 2013 at 6:23 PM, infiniter infini...@gmail.com wrote: I've got a listener that does the error

Re: Dynamic Session.style

2013-05-07 Thread Илья Нарыжный
Hi, We use different approach than styles and variations. We have GenericPage with following definition: public abstract class GenericPageK extends Serializable extends EntityPageK implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider Then in public IResourceStream

Re: Localized urls

2013-05-07 Thread Martin Grigorov
Hi, I think you will need to write custom IRequestMapper. I think the Wicket default ones do not support this out of the box. On Fri, May 3, 2013 at 4:29 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Has no one ever done this? Any guidelines as to how to implement it? On

Scheme-less URLs vs. UrlRenderer

2013-05-07 Thread Jan Riehn
Hello, I would like to introduce a similar pattern as fifty-five's SimpleCDN ( http://blog.55minutes.com/2012/01/simplecdn-and-the-newly-released-fiftyfive-wicket-32/). Thereby I stumbled across the same obstacle as mbrictson: Wicket does not understand scheme-less URLs that start with //.

Re: Scheme-less URLs vs. UrlRenderer

2013-05-07 Thread Martin Grigorov
Hi Jan, This has been improved in 6.7.0 - https://issues.apache.org/jira/browse/WICKET-5065 https://github.com/apache/wicket/blob/master/wicket-core/src/test/java/org/apache/wicket/request/cycle/UrlRendererTest.java?source=c#L510-L538 Time to upgrade ;-) On Tue, May 7, 2013 at 11:23 AM, Jan

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-07 Thread David Beer
Hi Sven Thanks for replying the table is inside a form. Here is the html snippet. form wicket:id=form span wicket:id=group table style=border: 2px dotted #fc0; width: 400px; padding: 5px; tr td valign=topSelect persons/td

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-07 Thread Sven Meier
Hi David, the CheckGroupSelector fails to select all checks, because the first changed check already submits the form and then re-renders the page :(. You can use an AjaxFormChoiceComponentUpdatingBehavior instead of #wantOnSelectionChangedNotifications(true). Regards Sven On 05/07/2013

Re: CheckGroup, CheckGroupSelection and Check behavior

2013-05-07 Thread David Beer
Hi Sven I understand now why the page re-renders thanks for that. This worked well and allows me to enable disable the buttons as needed. Thanks David On 07/05/13 12:26, Sven Meier wrote: Hi David, the CheckGroupSelector fails to select all checks, because the first changed check already

Re: [wicket 6] Modal unable to see page's properties anymore ?

2013-05-07 Thread smallufo
Hi , I found no IPageReference class . If you mean PageReference , I finally found the solution: http://pastebin.com/bes3H9w3 Though the solution seems not so intuitional compared to wicket 1.4 2013/5/7 Martin Grigorov mgrigo...@apache.org Hi, You should not keep references to other page

Re: Migrating WebRequestCycleProcessor from 1.4.x to 6.5.0

2013-05-07 Thread Igor Vaynberg
all these things can be accomplished from inside IRequestCycleListener -igor On Mon, May 6, 2013 at 10:26 PM, iamrakesh iamrakes...@rediffmail.com wrote: Hi, In resolve() method we're trying to catch handle InvalidUrlException to prevent exception due to multiple clicks on a button. In

Re: Change signature of AbstractTree or Model.ofSet

2013-05-07 Thread Igor Vaynberg
jira ticket please. can only be fixed in 7.0 -igor On Sun, May 5, 2013 at 5:30 AM, Илья Нарыжный phan...@ydn.ru wrote: Hello, I have following problem in wicket 6 with trees: Constructor of class org.apache.wicket.extensions.markup.html.repeater.tree.AbstractTree have following signature:

How to unit test AttributeModifier

2013-05-07 Thread Dmitriy Neretin
Hello, Is it possible to unit test an AttributeModifier? I have a simple component: WebMarkupContainer container = new WebMarkupContainer(containerId); container.add(new AttributeModifier(name, anyDynamicValue)); In the unit test: WebMarkupContainer container = (WebMarkupContainer)

Re: How to unit test AttributeModifier

2013-05-07 Thread Igor Vaynberg
attribute modifiers are behaviors, so use component.getbehavior(AttributeModifier.class) to get it. -igor On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello, Is it possible to unit test an AttributeModifier? I have a simple component:

Wicket RepeatingView refresh / rerender ? Possibilities? [List items missing]

2013-05-07 Thread DaWicketUser
Hi Community, i got a little problem with my wicket application. The problem is on a page called OverviewPage, here are some panels like the ListPanel, in which my RepeatingView is. This RepeatingView (List) got some items with a button for each item, if i press the button, i will be redirected

Re: Wicket RepeatingView refresh / rerender ? Possibilities? [List items missing]

2013-05-07 Thread Igor Vaynberg
repeatingviews are manual repeaters - meaning they do not get updated once they are built. you should most likely use a RefreshingView, or navigate back to the page in such a way that a new instance is created which will rebuild the repeatingview. -igor On Tue, May 7, 2013 at 5:59 AM,

custom button in tinymce

2013-05-07 Thread fachhoch
I am using wicket tinymce .I want to add a custom button to tinymce which I can do using tinymce init script , i also want to know if user clicked on this button when the form is submitted at the server side any suggestion on how to ? -- View this message in context:

Re: Server and client side validation

2013-05-07 Thread Gabriel Landon
Hi Cedric, Yes I've seen what you have done. Did you manage to make it works with forms in ModalWindow? Regards, Gabriel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Server-and-client-side-validation-tp4658242p4658631.html Sent from the Users forum mailing

Re: Introducing wicket-continuous-calendar

2013-05-07 Thread Paul Bors
I migrated my project to Wicket 6.x and as a result a new module to support the newer version of Wicket was added for the integration of jQuery-Continuous-Calendar with Wicket 6.x. Feel free to use it if you need it: http://Wicket-Continuous-Calendar.GoogleCode.com - ~ Thank you,

Re: Performance replace panel with AjaxLink.

2013-05-07 Thread Raul
Hello, in this project we are not using unit tests, and I can not add a breakpoint, but I managed to narrow down the error. The call to the constructor of the page disappears, commenting javascript call panel markup. -- View this message in context:

Error in the semantics of names. AjaxLazyLoadPanel.java

2013-05-07 Thread Raul
Error in the semantics of names. AjaxLazyLoadPanel.java I saw a little mistake semantic,:, Class AjaxLazyLoadPanel, Wicket 6.7.0 / ** * Called When the placeholder component is Replaced with the lazy loaded one. * * @ Param target * The Ajax request handler * @ Param component * The lazy loaded

[wicket 6] javascript confirmation via onPrecondition failed.

2013-05-07 Thread smallufo
I want to add a warning dialog when user clicks an ajax deleteLink I saw the following solution: LinkVoid deleteLink = new AjaxFallbackLinkVoid(deleteLink) { @Override public void onClick(AjaxRequestTarget target) { commentService.deleteComment(user, comment,