Re: Error in the semantics of names. AjaxLazyLoadPanel.java

2013-05-07 Thread Martin Grigorov
Fixed. Thanks! On Wed, May 8, 2013 at 12:53 AM, Raul wrote: > > 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. > * > * @

Re: How to unit test AttributeModifier

2013-05-07 Thread Martin Grigorov
Also check AttributeModifierTest in wicket-core/src/test/java/.. On Tue, May 7, 2013 at 5:31 PM, Igor Vaynberg wrote: > 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 > wrote: >

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

2013-05-07 Thread Martin Grigorov
Check https://github.com/apache/wicket/blob/master/wicket-examples/src/main/java/org/apache/wicket/examples/ajax/builtin/modal/ModalContent1Page.java On Tue, May 7, 2013 at 4:54 PM, smallufo wrote: > Hi , I found no "IPageReference" class . > If you mean PageReference , I finally found the solu

Re: Server and client side validation

2013-05-07 Thread Cedric Gatay
Hi, I've not yet tried to plug it inside a modal window. But I see no reason for it to fail. Le 7 mai 2013 20:15, "Gabriel Landon" a écrit : > Hi Cedric, > > Yes I've seen what you have done. > Did you manage to make it works with forms in ModalWindow? > > Regards, > > Gabriel. > > > > > -- > Vi

[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: Link deleteLink = new AjaxFallbackLink("deleteLink") { @Override public void onClick(AjaxRequestTarget target) { commentService.deleteComment(user, comment, ip);

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 c

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: http://apache-wicket.1842946.n4.nabble.com/

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, p...@

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 li

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: http://apache-wicket.1

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, DaWicketUs

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: 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 wrote: > Hello, > > Is it possible to unit test an AttributeModifier? > > I have a simple component: > > WebMarkupContainer container = new We

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) teste

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, Илья Нарыжный 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: > protect

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 wrote: > Hi, > > In resolve() method we're trying to catch & handle InvalidUrlException to > prevent exception due to multiple clicks on a button. > In respond() method we're l

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 > Hi, > > You should not keep references to other page instances. > Ins

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: 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 1

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. Select persons cellpadding="2"> Select Name Email Phone

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 Rieh

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: 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 wrote: > Has no one ever done this? Any guidelines as to how to implement it? > > > On 01/05/2013 10:29 AM, Bertran

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 GenericPage extends EntityPage implements IMarkupResourceStreamProvider, IMarkupCacheKeyProvider Then in public IResourceStream getMarkupResourceStream(final MarkupContai

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 wrote: > I've got a listener that does the error handling in Wicket 6

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 set