Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0EE60DF0A for ; Wed, 22 Aug 2012 07:10:58 +0000 (UTC) Received: (qmail 66237 invoked by uid 500); 22 Aug 2012 07:10:56 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 66199 invoked by uid 500); 22 Aug 2012 07:10:56 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 66165 invoked by uid 99); 22 Aug 2012 07:10:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 07:10:55 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URIBL_DBL_REDIR X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alex.shubert@gmail.com designates 74.125.83.45 as permitted sender) Received: from [74.125.83.45] (HELO mail-ee0-f45.google.com) (74.125.83.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2012 07:10:47 +0000 Received: by eeke53 with SMTP id e53so188835eek.32 for ; Wed, 22 Aug 2012 00:10:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=G14BCfZ1LvZsLvRuxYgckCZv4KTVJzuE9wTS5LQ6TXo=; b=uy/gNCoduh+dAzkjS131HNMWhGXIFpPZyxs6vqL0rRcWyWWiEojaghY/SR5bkc0SNW XZWvbJi1CabFDB6rakV//AQj+bsXLrQe6ol7OE7LQdQwGDDtdCWHf6O2F3+HQ9dXEWWj G2260Nz0Ch/2Mp8oPnpTg+BgW4WLf2ONdwP5RF1u/lAOIl1GL119v+6LtZg3Vz6gm9GD SiMLXrNGKbfGlTnxKNRFE48E1I6MZ5lJ7AkkWzBeOt6PvdKCtF5uIIQhKc121TeEwANE Ee7VZfQA2U7meSvqfSmCAc85uniXj4Hz5nVT+ata9JCOiZjJH9K521YPlikyiPuFWJKt 460g== MIME-Version: 1.0 Received: by 10.14.184.133 with SMTP id s5mr17108382eem.31.1345619427142; Wed, 22 Aug 2012 00:10:27 -0700 (PDT) Received: by 10.14.194.67 with HTTP; Wed, 22 Aug 2012 00:10:27 -0700 (PDT) In-Reply-To: <5033C79B.3070107@meiers.net> References: <5033C79B.3070107@meiers.net> Date: Wed, 22 Aug 2012 11:10:27 +0400 Message-ID: Subject: Re: page version and forms From: Alex Shubert To: users@wicket.apache.org Content-Type: text/plain; charset=UTF-8 Sven while you are here: why no documentation for Tree? Nothing at all? Right now I face a problem - tree do not persist it's state (Bookmarcable links, copied from example) and I have no clue where to see. On 21 August 2012 21:38, Sven Meier wrote: > And the winner is ... Martin! > > On AppEngine I still have Wicket 1.4.x running. > > Sven > > > On 08/21/2012 02:59 PM, Martin Grigorov wrote: >> >> The Google Code repo contains 1.5 but the deployed app is using pre-1.5 >> version. >> I can bet on this. >> >> On Tue, Aug 21, 2012 at 3:37 PM, Alex Shubert >> wrote: >>> >>> Martin, >>> >>> http://wicket-tree.googlecode.com/svn/repo/wicket-tree/wicket-tree-parent/0.5.0/wicket-tree-parent-0.5.0.pom >>> Again, no 1.4 at all. Not in one place. Moreover, >>> '?wicket:interface=:0:1:::' doesn't means 1.4 is in action. Just take >> >> Is there a reason why you don't trust me ? :-) >> wicket:interface is no more used in 1.5+, unless the application adds >> it explicitly. Wicket (the framework) doesn't use it anymore. >> >>> a look at event listener implementation. >>> >>> About the problem: the page I gave link for is really stateless but it >>> is not meant to be, it just happened. If user choose any other tree >>> renders version number eager to appear. >>> The most Wicket problem right now is it's occult state. Wiki is >>> hopelessly outdated, most of the examples refer to 1.2.-1.3 version... >> >> Most of them are actually still valid. >> There are new pages labeled with "wicket15" and "wicket6" which refer >> to the new features in 1.5 and 6.0 respect. >> >>> >>> If someone wonder how to determine why his page is stateful here is >>> the solution: >> >> There is StatelessChecker in wicket-devutils for this task. >> >>> if (!isPageStateless()) { >>> visitChildren(Component.class, new IVisitor>> Component>() { >>> @Override >>> public void component(Component component, >>> IVisit iVisit) { >>> if (!component.isStateless()) { >>> LOGGER.info("Stateful component found [ " >>> + component.getClass().getName() + " : " >>> + component.getMarkupId() + " ]"); >>> >>> // iVisit.stop(component); >>> } >>> } >>> }); >>> } >>> >>> If in need of test detection, extract visitor to separate class and >>> instantiate pages with WicketTester. >>> >>> >>> On 21 August 2012 15:47, Martin Grigorov wrote: >>>> >>>> Sorry for being stubborn but having '?wicket:interface=:0:1:::' in the >>>> url means that this is Wicket pre-1.5 ;-) >>>> >>>> I guess Sven will join this conversation later today and explain in >>>> more details. >>>> >>>> On Tue, Aug 21, 2012 at 2:16 PM, Alex Shubert >>>> wrote: >>>>> >>>>> Martin >>>>> with all my respect but their build script uses >>>>> >>>>> >>>>> org.apache.wicket >>>>> wicket-core >>>>> ${wicket.version} >>>>> >>>>> >>>>> ${wicket.version} derived from parent pom where >>>>> 1.5.0 >>>>> >>>>> So, >>>>> 1. no stateless form >>>>> 2. it is 1.5 >>>>> 3. it's pretty easy to ensure yourself just by looking into code >>>>> http://code.google.com/p/wicket-tree/wiki/RunningExamples It even >>>>> can't be compiled under 1.4 >>>>> >>>>> Anyway: what does your answer has to do with my question? One more >>>>> time: how that example manage not to increase page version shown in >>>>> url on every tree node selection? >>>>> thanks >>>>> >>>>> >>>>> On 21 August 2012 14:39, Martin Grigorov wrote: >>>>>> >>>>>> The deployed examples use Wicket 1.4. >>>>>> >>>>>> http://wicket-tree.appspot.com/?wicket:interface=:0:1::: >>>>>> >>>>>> On Tue, Aug 21, 2012 at 1:35 PM, Alex Shubert >>>>>> wrote: >>>>>>> >>>>>>> They are using >>>>>>> Form form = new Form("form"); >>>>>>> >>>>>>> and still no version in url on round-trips. Also, FilterForm from >>>>>>> Wicket API doesn't extends StatelessForm while your answer states >>>>>>> that >>>>>>> must be the case. >>>>>>> >>>>>>> >>>>>>> On 21 August 2012 14:20, Martin Grigorov >>>>>>> wrote: >>>>>>>> >>>>>>>> Use StatelessForm instead. >>>>>>>> >>>>>>>> On Tue, Aug 21, 2012 at 1:06 PM, Alex Shubert >>>>>>>> wrote: >>>>>>>>> >>>>>>>>> Hello >>>>>>>>> >>>>>>>>> Recently I found wicket tree control >>>>>>>>> >>>>>>>>> http://wicket-tree.appspot.com/nested >>>>>>>>> >>>>>>>>> and one there is a thing I can't understand: while the page >>>>>>>>> contains >>>>>>>>> Form it looks like not versioned. I mean there are no version >>>>>>>>> number >>>>>>>>> in a url. >>>>>>>>> How does it work then? Is there any clear way to build pages >>>>>>>>> containing Form without explicit version number in url except some >>>>>>>>> black magic involved ( modified MountedMapper ) >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Best regards >>>>>>>>> Alexandr >>>>>>>>> >>>>>>>>> >>>>>>>>> --------------------------------------------------------------------- >>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Martin Grigorov >>>>>>>> jWeekend >>>>>>>> Training, Consulting, Development >>>>>>>> http://jWeekend.com >>>>>>>> >>>>>>>> >>>>>>>> --------------------------------------------------------------------- >>>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> Best regards >>>>>>> Alexandr >>>>>>> >>>>>>> --------------------------------------------------------------------- >>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Martin Grigorov >>>>>> jWeekend >>>>>> Training, Consulting, Development >>>>>> http://jWeekend.com >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>>> >>>>> >>>>> >>>>> -- >>>>> Best regards >>>>> Alexandr >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>>> For additional commands, e-mail: users-help@wicket.apache.org >>>>> >>>> >>>> >>>> -- >>>> Martin Grigorov >>>> jWeekend >>>> Training, Consulting, Development >>>> http://jWeekend.com >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>>> For additional commands, e-mail: users-help@wicket.apache.org >>>> >>> >>> >>> -- >>> Best regards >>> Alexandr >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org >>> For additional commands, e-mail: users-help@wicket.apache.org >>> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > -- Best regards Alexandr --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org