Re: Performance tuning Wicket[1.5]...
Maybe bottleneck is somewhere else? SQL request maybe? Some eager loading... On 29 August 2012 10:31, nino martinez wael wrote: > A little feedback. First I tried visualVM (did not provide enough detail > for this "extreme" optimization), then jprofiler (had trouble getting it to > work), but yourkit gave the best result. However there was little I could > do, other than removing an unnecessary filter (character encoding fix for > tomcat/wicket).. Other than that there werent many hotspots. > > regards Nino > > 2012/8/27 nino martinez wael > >> Yup, I'll do that another round.. Although I'll use visualvm... >> >> >> 2012/8/27 Martin Grigorov >> >>> Fire Yourkit/JProfiler and see what they say. >>> >>> On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael >>> wrote: >>> > Hi >>> > >>> > Im seeing a load on our server. >>> > >>> > Tried these settings in wicketapplication: >>> > >>> > getPageSettings().setVersionPagesByDefault(false); >>> > getStoreSettings().setInmemoryCacheSize(200); >>> > And in our MainPage: >>> > setVersioned(false); >>> > >>> > All of our services are being cached, so it's not the backend thats the >>> > problem.. Im using LDM's everywhere. >>> > >>> > Our main page are using ajax to refresh itself. And load >>> > turns linearly bad, until max load on somewhere around 100 sessions. >>> > >>> > Memory are not a problem, wicket app uses very little around 100 mb and >>> > server has 4gb. CPU are a AMD opteron 2.2 ghz. >>> > >>> > >>> > -- >>> > Best regards / Med venlig hilsen >>> > Nino Martinez >>> >>> >>> >>> -- >>> Martin Grigorov >>> jWeekend >>> Training, Consulting, Development >>> http://jWeekend.com >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> -- >> Best regards / Med venlig hilsen >> Nino Martinez >> >> > > > -- > Best regards / Med venlig hilsen > Nino Martinez -- Best regards Alexandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page version and forms
Nope, 1.5 Well, I am not quite sure that my statement is correct. while tree project has some kind of examples, there are no real documentation. Let's consieder http://www.mysticcoders.com/blog/autocomplete-with-an-object/ -> my opinion is that sometimes one may want to make an impression quickly looking through a short how-to instead of downloading code, trying to assemble it (btw, your instruction doesn't work) and digging through the code. It works most of the time if time is not a question. On 22 August 2012 11:24, Sven Meier wrote: > Are you using wicket-tree or the new components in Wicket 6? > > Please be more specific what information you're looking for. I'll gladly > provide more info in javadoc or in the wiki. > > Sven > > Alex Shubert schrieb: > >>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
Re: page version and forms
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. >>>>>> >&g
Re: page version and forms
Martin, does it really makes any difference? Lack of stateless navigation does ( https://issues.apache.org/jira/browse/WICKET-1086 ) Anyway, I explained solution in my prev letter. Thanks! On 21 August 2012 16:59, 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: >>>>>>> U
Re: page version and forms
It's obvious that selection of leafs (implemented as BookmarcableLinks) is NOT handled by Ajax. BookmarkableFolderContent.java : 62 PageParameters parameters = new PageParameters(); parameters.add("foo", foo.getId()); return new BookmarkablePageLink(id, tree.getPage() .getClass(), parameters); Or you can take a look at FB console and see network activity. On 21 August 2012 16:48, Pointbreak wrote: > The tree node selections are fully handled by ajax requests, so they > will (obviously) never change the url of the page. Change the selection > of e.g. the dropdown for "Content", and you will see that the url > changes. > > There are ways to have forms without version/id information in the URL. > Search this list for e.g. NoVersionMount. Such solutions do change how > Wicket behaves with the back-button/page-refresh, since a new version of > the page will always be returned in that case. > > On Tue, Aug 21, 2012, at 13:16, Alex Shubert wrote: >> [...] >> 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-unsubscr...@wicket.apache.org >> >>>> For additional commands, e-mail: users-h...@wicket.apache.org >> >>>> >> >>> >> >>> >> >>> >> >>> -- >> >>> Martin Grigorov >> >>> jWeekend >> >>> Training, Consulting, Development >> >>> http://jWeekend.com >> >>> >> >>> - >> >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >>> For additional commands, e-mail: users-h...@wicket.apache.org >> >>> >> >> >> >> >> >> >> >> -- >> >> Best regards >> >> Alexandr >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > >> > >> > >> > -- >> > Martin Grigorov >> > jWeekend >> > Training, Consulting, Development >> > http://jWeekend.com >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> > For additional commands, e-mail: users-h...@wicket.apache.org >> > >> >> >> >> -- >> Best regards >> Alexandr >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards Alexandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page version and forms
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 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... If someone wonder how to determine why his page is stateful here is the solution: if (!isPageStateless()) { visitChildren(Component.class, new IVisitor() { @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-unsubscr...@wicket.apache.org >>>>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Martin Grigorov >>>>> jWeekend >>>>> Training, Consulting, Development >>>>> http://jWeekend.com >>>>> >
Re: page version and forms
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-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>> >>> >>> >>> -- >>> Martin Grigorov >>> jWeekend >>> Training, Consulting, Development >>> http://jWeekend.com >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >> >> >> >> -- >> Best regards >> Alexandr >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards Alexandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: page version and forms
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-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> > > > > -- > Martin Grigorov > jWeekend > Training, Consulting, Development > http://jWeekend.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- Best regards Alexandr - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OutputStreams and Panels
Julian, may you provide a small hello-world project? I would like to see how all this work. I heard never before about BIRT and have no idea is it any good. thanks On 9 July 2011 03:40, Julian Sinai wrote: > I should add that I used BIRT 3.7 for this. > > Julian > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: using a different pagemap
I have a question then. What pagemap actually for? In javadoc there are only #FIXME javadoc. Is there some documentation on this? Also it is mentioned in multi window support but still no clues what impact does it have on modal windows on multiwindows at all.. Someone? Thank you. -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page->ModalWindow[Form]->ModalWindow[Form] problem
ParentPage 1. creates a SomeObject. Not a model or something. 2. Creates a modalpage with a private field assigned to SomeObject 3. Shows ModalWindow with it's content set to another page. So I have to keep in a window's content page a reference to a caller page in order to set result value? Nice, thanks. On 17 June 2011 19:54, Andrea Del Bene wrote: > If I understand right you should not pass to ModalWindow: > > -model of parent page > -an instance of parent page > > In these two scenarios when you close ModalWindow Wicket restore the > original version of parent page, that is the version existing before opening > modal window. > To avoid this problem instead of page instance you should pass to your > ModalWindow a PageReference to your parent page. > > PS: If you look at examples bundled with Wicket (ModalContent1Page.java) > you'll see that the ModalWindow with page content uses PageReference. > >> Andrea, I have a strange feeling. Why to speak about page version if >> there are no such problem transmitting modal result from modal to >> page. Such example exists even in a example bundle... >> >> I feel I miss something here. >> >> On 17 June 2011 16:14, Andrea Del Bene wrote: >>> >>> The issue is here: https://issues.apache.org/jira/browse/WICKET-3809 >>> >>> I trust in you, a colleague On 17 June 2011 15:15, Andrea Del Bene wrote: > > I'm going to open an issue on JIRA >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page->ModalWindow[Form]->ModalWindow[Form] problem
Andrea, I have a strange feeling. Why to speak about page version if there are no such problem transmitting modal result from modal to page. Such example exists even in a example bundle... I feel I miss something here. On 17 June 2011 16:14, Andrea Del Bene wrote: > The issue is here: https://issues.apache.org/jira/browse/WICKET-3809 > > >> I trust in you, a colleague >> >> On 17 June 2011 15:15, Andrea Del Bene wrote: >>> >>> I'm going to open an issue on JIRA >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page->ModalWindow[Form]->ModalWindow[Form] problem
I trust in you, a colleague On 17 June 2011 15:15, Andrea Del Bene wrote: > I'm going to open an issue on JIRA -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Page->ModalWindow[Form]->ModalWindow[Form] problem
Page. I found your discussion with Marieke Vandamme. Looks very similiar to my case. On 17 June 2011 14:02, Andrea Del Bene wrote: > Hi Alex, > > maybe I'm facing the same problemyour modal windows' content is a Page > or a Panel? -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Page->ModalWindow[Form]->ModalWindow[Form] problem
Hello I got a strange problem with multiply Modal Windows. Let's imagine we have an Entity A with field of entity B (1 to 1 relation) . Now we create the Edit page, which contains a form and some edit fields. One of that field is the Label with "add" AjaxButton. Add button creates a new modal window with edit fields for that B Entity. In a model of a first ModalWindow we have brandly new Entity. B in turn have it's field of C with Add button. So I show second modal window where I create and fill Entity C. Now if I press submit on the second modal window debugger shows me correct model update with a new C, things are going as expected. But after pressing submit on the first modal window, it's model accessed in a Page just looks like a very first version of a page with newly created model. All looks like there was no calling ModalWindow.show and all of the actions at all. Debugger shows that the model "disappears" somewhere in a request cycle process. This can be reproduced really easy, cos you even have nothing to do on the second modal window, you can just show and close it. Wicket 1.4.17 Java 6-23. Do I miss something? Any serialization flag I have no idea about? -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and "toolbar"
It looks like WebMarkupContainer does not require ID at all. It somehow unusuall 2011/2/11 Robert Dahlström : > As far as I can tell yes. But maybe someone with better knowledge can > enlighten us? > > /Robert -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and "toolbar"
So, the "toolbar" id just droppped out? It is used only as a marker? 2011/2/11 Robert Dahlström : > In the addToolbar() method you have: > WebMarkupContainer item = new ToolbarContainer(container.newChildId()); > > That's where the magic happens :) > > Regards > Robert -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DataTable and "toolbar"
Sure thing, but how exactly does it works if there are no such ID in html markup for DataTable? =) This was the question. On 11 February 2011 16:18, Pedro Santos wrote: > Hi, u use this id to create an AbstractToolbar to be add to DataTable using > one of its method like: > DataTable#addTopToolbar > DataTable#addBottomToolbar > > On Fri, Feb 11, 2011 at 11:08 AM, Alex Shubert wrote: > >> Hello >> >> Recently I found public static final String TOOLBAR_COMPONENT_ID = >> "toolbar"; >> in DataTable sources but can't find such ID in markups. How exactly >> does it works? >> >> Thanks >> >> -- >> Best regards >> Alex >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Pedro Henrique Oliveira dos Santos > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DataTable and "toolbar"
Hello Recently I found public static final String TOOLBAR_COMPONENT_ID = "toolbar"; in DataTable sources but can't find such ID in markups. How exactly does it works? Thanks -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable DefaultDataTable
DefaultDataTable.setItemReuseStrategy(DefaultItemReuseStrategy.getInstance()); doent change anything. ICellPopulator#populateItem is not called. Something is broken in the Danish Kingdom Or in my Wicket knowledge :) On 26 December 2010 22:27, Jeremy Thomerson wrote: > On Sun, Dec 26, 2010 at 1:20 PM, Alex Shubert wrote: >> Jeremy >> >> thanks for your patience. that last thing is what I meaning. But how >> to make row call repopulate on it's column. I mean, it is not a >> problem to visit every child of rowItem and filter all of IColumn >> descendants. But there are no reason to call populateItem on IColumn >> as I have no idea what to do with received Components. Is it correct >> that you this approach suggest to re-implement all class from >> AbstractDataGridView? Or do I miss something? > > No, absolutely not. I'd recommend doing it the first way I suggested. > But, alas, you don't want to because you think that it will use too > many resources. :) In the lack of that, you'll have to play around > with iterating through the columns for the row and repopulate them. > >> P.S. : it is strange a bit, but I did not set reusable strategy... and >> still no #populateItem calls. I have to look in the sources, I guess. > > Breakpoints are your friend. If you think there's a bug, create a > quickstart and send it in. You'll likely find your problem while > doing so. > > -- > Jeremy Thomerson > http://wickettraining.com > Need a CMS for Wicket? Use Brix! http://brixcms.org > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable DefaultDataTable
Jeremy thanks for your patience. that last thing is what I meaning. But how to make row call repopulate on it's column. I mean, it is not a problem to visit every child of rowItem and filter all of IColumn descendants. But there are no reason to call populateItem on IColumn as I have no idea what to do with received Components. Is it correct that you this approach suggest to re-implement all class from AbstractDataGridView? Or do I miss something? P.S. : it is strange a bit, but I did not set reusable strategy... and still no #populateItem calls. I have to look in the sources, I guess. > > One other alternative would involve manually doing the repopulate > yourself. Presumably your link is in one of the columns in the row. > At that point, it has a reference to the table and the row item. It > could iterate through the columns of the table and call populateItem > manually for that particular row. > > -- > Jeremy Thomerson > http://wickettraining.com > Need a CMS for Wicket? Use Brix! http://brixcms.org > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable DefaultDataTable
Sure. But it doesnt look like a solution for it's resource consumption. So, again: after any cell click I need to announce the rw and the row must, in turn, somehow command only it's cells to repopulate their content. I know, how to do it without any framework, but wicket way to do it unclear for me. > populateItem is called to create the component hierarchy for your > table every time it needs to be recreated. If you put a break point -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable DefaultDataTable
Ummm interface IColumn extends ICellPopulator and there are no place to insert that code. It is possible in ICellPopulator and, as I said before, the #populateItem is called only once so you just cant read the state from row. I'll try to explain: what I need is to trigger row cells repopulation on user click on any cell in that row. so, it may be described as: cell clicked -> row announced-> every cell in that row repaint/replaces it's content On 26 December 2010 21:16, Jeremy Thomerson wrote: > Well, in the IColumn is where it actually creates a label to display > something in the table. If you want to have it editable, that's where > you need the > > if (foo) { rowItem.add(new Label(...)); } else { rowItem.add(new > TextField(...)) } > > logic. > > On Sun, Dec 26, 2010 at 11:58 AM, Alex Shubert wrote: >> Implementing what? The one reason why we cant move to Knopp's >> implementation is huge relaying on IColumn and all that things. So, we >> already have enough IColumn implementation. What exactly you suggest >> to overload? >> >> On 26 December 2010 20:09, Jeremy Thomerson >> wrote: >>> You might have better success implementing it in your IColumn >>> implementations since they generate the components for each cell. >>> >>> On Sun, Dec 26, 2010 at 4:55 AM, alex shubert >>> wrote: >>>> Hello >>>> >>>> Currently I am working on Editable DefaultDatatable. My first attempt >>>> was to override >>>> protected Item newRowItem >>>> with >>>> final Item item = super.newRowItem(id, index, tiModel); >>>> item.add(new AjaxFormSubmitBehavior("onclick") { >>>> >>>> naively thought that adding rowItem to ajax target will trigger >>>> ICellPopulator#populateItem call for every cell so I have a chance to >>>> read special metaData from parent rowItem and if it exists return >>>> TextField instead Label for every cell iin a row.. It seems I was >>>> wrong - item repopulation does not happens. >>>> >>>> I need any advice how may I implement such behaviour, except switching >>>> to Knopp's code. It just impossible right now becouse there are >>>> already implemented filter functionality. >>>> >>>> Thank's in advance. >>>> >>>> P.S.: I hope I am not alone who works now and does not shopping. >>>> -- >>>> Best regards >>>> Alex >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >>> >>> >>> -- >>> Jeremy Thomerson >>> http://wickettraining.com >>> Need a CMS for Wicket? Use Brix! http://brixcms.org >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> >> -- >> Best regards >> Alex >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Jeremy Thomerson > http://wickettraining.com > Need a CMS for Wicket? Use Brix! http://brixcms.org > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Editable DefaultDataTable
Implementing what? The one reason why we cant move to Knopp's implementation is huge relaying on IColumn and all that things. So, we already have enough IColumn implementation. What exactly you suggest to overload? On 26 December 2010 20:09, Jeremy Thomerson wrote: > You might have better success implementing it in your IColumn > implementations since they generate the components for each cell. > > On Sun, Dec 26, 2010 at 4:55 AM, alex shubert wrote: >> Hello >> >> Currently I am working on Editable DefaultDatatable. My first attempt >> was to override >> protected Item newRowItem >> with >> final Item item = super.newRowItem(id, index, tiModel); >> item.add(new AjaxFormSubmitBehavior("onclick") { >> >> naively thought that adding rowItem to ajax target will trigger >> ICellPopulator#populateItem call for every cell so I have a chance to >> read special metaData from parent rowItem and if it exists return >> TextField instead Label for every cell iin a row.. It seems I was >> wrong - item repopulation does not happens. >> >> I need any advice how may I implement such behaviour, except switching >> to Knopp's code. It just impossible right now becouse there are >> already implemented filter functionality. >> >> Thank's in advance. >> >> P.S.: I hope I am not alone who works now and does not shopping. >> -- >> Best regards >> Alex >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Jeremy Thomerson > http://wickettraining.com > Need a CMS for Wicket? Use Brix! http://brixcms.org > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Editable DefaultDataTable
Hello Currently I am working on Editable DefaultDatatable. My first attempt was to override protected Item newRowItem with final Item item = super.newRowItem(id, index, tiModel); item.add(new AjaxFormSubmitBehavior("onclick") { naively thought that adding rowItem to ajax target will trigger ICellPopulator#populateItem call for every cell so I have a chance to read special metaData from parent rowItem and if it exists return TextField instead Label for every cell iin a row.. It seems I was wrong - item repopulation does not happens. I need any advice how may I implement such behaviour, except switching to Knopp's code. It just impossible right now becouse there are already implemented filter functionality. Thank's in advance. P.S.: I hope I am not alone who works now and does not shopping. -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FormComponentPanel + unknown collection type
Oh, I fouled myself There nothing to do with setType at all and WiA uses explicit call only instead of generics. So, if there are code such as mine, all one have to do is properly assembly object on it's way to model. private Collection modelField; @Override protected void onInitialize() { super.onInitialize(); collection = getModelObject(); } @Override protected void convertInput() { collection.clear(); collection.addAll(group.getConvertedInput()); setConvertedInput(collection); } } The solution was prompted by #updateModel() God bless open source and all Wicket authors =)) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: FormComponentPanel + unknown collection type
Anyone? ( On 6 December 2010 15:59, alex shubert wrote: > Hello! > > I got a problem with type mysmatch then implementing custom component. > > First of all, the code^ > public class EnumCheckGroup extends > FormComponentPanel> { > > public EnumCheckGroup(final String id, final IModel Collection> model, final Class enumClass) { > //noinspection unchecked > super(id, (IModel>) model); > > group = new CheckGroup("checkgroup", model); > ... > } > > That model comes from: > CompoundPropertyModel formModel = new > CompoundPropertyModel(service.createGroup()); > .. > EnumCheckGroup checkGroup = new EnumCheckGroup("roles", > formModel.bind("roles"), RoleEnum.class); > > Roles is a set of Enum and has getter and setter like Set getRoles / > Group setRoles(Set) > > all of that renders already filled Set without problems, but fails to > set with type mismatch. PropertyResolver#setValue receives value as > ArrayList while property is a Set. > If I call setType(getModelObject.getClass) on CheckGroup it tryes to > convert every Check to PersistentSet (hibernate proxy for a Set) so it > doesnt look like a solution. > > Call of setType(getModelObject.getClass) in beforeRender() changes nothing. > > Any ideas? Thanks in advance... > -- > Best regards > Alex > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FormComponentPanel + unknown collection type
Hello! I got a problem with type mysmatch then implementing custom component. First of all, the code^ public class EnumCheckGroup extends FormComponentPanel> { public EnumCheckGroup(final String id, final IModel> model, final Class enumClass) { //noinspection unchecked super(id, (IModel>) model); group = new CheckGroup("checkgroup", model); ... } That model comes from: CompoundPropertyModel formModel = new CompoundPropertyModel(service.createGroup()); .. EnumCheckGroup checkGroup = new EnumCheckGroup("roles", formModel.bind("roles"), RoleEnum.class); Roles is a set of Enum and has getter and setter like Set getRoles / Group setRoles(Set) all of that renders already filled Set without problems, but fails to set with type mismatch. PropertyResolver#setValue receives value as ArrayList while property is a Set. If I call setType(getModelObject.getClass) on CheckGroup it tryes to convert every Check to PersistentSet (hibernate proxy for a Set) so it doesnt look like a solution. Call of setType(getModelObject.getClass) in beforeRender() changes nothing. Any ideas? Thanks in advance... -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Martijn thanks for your patience and help. Sometimes I miss obvious things. Only one question left: why onComponentTagBody implemented on ListView if it's never called? I miss something clear again? On 3 December 2010 18:18, Martijn Dashorst wrote: > Read the ListView javadoc: it states that a ListView has no markup > itself. Override ListItem's onComponentTagBody instead... > > Martijn > > On Fri, Dec 3, 2010 at 4:15 PM, alex shubert wrote: >> Looks like onComponentTagBody is never called for ListView >> I overrided it with copy-paste from Panel and .. nothing. Even If I >> replace method body with Exception nothing happens... >> >> >> >> On 3 December 2010 17:45, Martin Grigorov wrote: >>> you need to call MarkupContainer#renderAssociatedMarkup() >>> >>> see https://gist.github.com/468502 for an example with >>> WebMarkupContainerWithAssociatedMarkup >>> >>> On Fri, Dec 3, 2010 at 3:36 PM, alex shubert wrote: >>> >>>> Hello >>>> >>>> I got the following error trying to provide custom render for ListView >>>> >> WicketMessage: The component(s) below failed to render. A common problem >>>> is that you have added a component in code but forgot to reference it in >>>> the >>>> markup (thus the component will never be rendered). >>>> >>>> New class signature is >>>> private abstract class EnumListView extends ListView implements >>>> IMarkupResourceStreamProvider >>>> >>>> I was sure getMarkupResourceStream will be called then EnumListView is >>>> to be added to a page. >>>> But it never happens, debug pointer never suspends execution at this point. >>>> >>>> What may be wrong? (except my English ofc) >>>> >>>> -- >>>> Best regards >>>> Alex >>>> >>>> - >>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>>> For additional commands, e-mail: users-h...@wicket.apache.org >>>> >>>> >>> >> >> >> >> -- >> Best regards >> Alex >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Looks like onComponentTagBody is never called for ListView I overrided it with copy-paste from Panel and .. nothing. Even If I replace method body with Exception nothing happens... On 3 December 2010 17:45, Martin Grigorov wrote: > you need to call MarkupContainer#renderAssociatedMarkup() > > see https://gist.github.com/468502 for an example with > WebMarkupContainerWithAssociatedMarkup > > On Fri, Dec 3, 2010 at 3:36 PM, alex shubert wrote: > >> Hello >> >> I got the following error trying to provide custom render for ListView >> >> WicketMessage: The component(s) below failed to render. A common problem >> is that you have added a component in code but forgot to reference it in the >> markup (thus the component will never be rendered). >> >> New class signature is >> private abstract class EnumListView extends ListView implements >> IMarkupResourceStreamProvider >> >> I was sure getMarkupResourceStream will be called then EnumListView is >> to be added to a page. >> But it never happens, debug pointer never suspends execution at this point. >> >> What may be wrong? (except my English ofc) >> >> -- >> Best regards >> Alex >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: IMarkupResourceStreamProvider for ListView
Martin, thanks a lot. On 3 December 2010 17:45, Martin Grigorov wrote: > you need to call MarkupContainer#renderAssociatedMarkup() > > see https://gist.github.com/468502 for an example with > WebMarkupContainerWithAssociatedMarkup > > On Fri, Dec 3, 2010 at 3:36 PM, alex shubert wrote: > >> Hello >> >> I got the following error trying to provide custom render for ListView >> >> WicketMessage: The component(s) below failed to render. A common problem >> is that you have added a component in code but forgot to reference it in the >> markup (thus the component will never be rendered). >> >> New class signature is >> private abstract class EnumListView extends ListView implements >> IMarkupResourceStreamProvider >> >> I was sure getMarkupResourceStream will be called then EnumListView is >> to be added to a page. >> But it never happens, debug pointer never suspends execution at this point. >> >> What may be wrong? (except my English ofc) >> >> -- >> Best regards >> Alex >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
IMarkupResourceStreamProvider for ListView
Hello I got the following error trying to provide custom render for ListView >> WicketMessage: The component(s) below failed to render. A common problem is >> that you have added a component in code but forgot to reference it in the >> markup (thus the component will never be rendered). New class signature is private abstract class EnumListView extends ListView implements IMarkupResourceStreamProvider I was sure getMarkupResourceStream will be called then EnumListView is to be added to a page. But it never happens, debug pointer never suspends execution at this point. What may be wrong? (except my English ofc) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: webapp shutdown listeners
Why dont you add you very own listener to servlet container? -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Problem on wicket-auth-role ve Spring-security integration
Let me guess may be the reason is that document is pretty outdated and provides no help if one looking for a how-to manual? It just looks pretty useless for whos already familiar with JAAS and SpringSecurity 'cos they will not found anything new and almost unhelpful for whom doesn't . :) For unknown reason the page looks locked so one can't propose new version. 2010/12/2 Altuğ Bilgin Altıntaş : > why you don't just use Spring Security + Wicket ? > > > > 2010/12/2 Taner Diler > >> Hi, >> >> I'm trying to integrate Wicket-auth-roles 1.4.9 and Spring Security 3.0.4 >> by >> following >> https://cwiki.apache.org/WICKET/spring-security-and-wicket-auth-roles.html >> . >> >> @AuthorizeAction and @AuthorizeInstantiation annotations are not working. >> >> The blog says " >> >> The only filter we need defined from Acegi is the >> HttpSessionContextIntegrationFilter. This filter will ensure that the >> SecurityContext is transported to and from the HttpSession onto the Thread >> context. All authorization is delegated to the wicket-auth-roles module >> which uses Annotations (@AuthorizeInstantiation)." >> >> So how can I make configuration to provide this? >> > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxButton + Form
Sure. Just add a Form and AjaxButton and see. I replaced Button with Link as assembly of object to be ready before button handler called sounds reasonable for me. On 1 December 2010 17:46, Andrea Del Bene wrote: > That sounds strange. AjaxButton implements IFormSubmittingComponent > interface, hence it should first invoke its onsubmit method and then parent > form's onSubmit (as described in Form class JavaDoc). > > Is your AjaxButton inside form's hierarchy? >> >> It is >> public final void onFormSubmitted() >> >> No, Form#onSubmit is not called at all. After successful execution of >> internal submission trace proceed to >> AjaxButton#onSubmit(AjaxRequestTarget target, Form form) >> >> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxButton + Form
It is public final void onFormSubmitted() No, Form#onSubmit is not called at all. After successful execution of internal submission trace proceed to AjaxButton#onSubmit(AjaxRequestTarget target, Form form) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: AjaxButton + Form
Thanks for your response. Looks like I misunderstand the very purpose of the component. But anyway, this is NOT submission. I mean, if you trace the call to the end, you'll find that no call of overridden Form#onSubmit happens. only Form#onSubmission called. That's why I stay confused. Although it is good to know that Model object is validated and assembled on AJAX call arrival... -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
AjaxButton + Form
Hello! May someone explain me, why AjaxButton must call his parent form onSubmittion? It surely did becouse of @Override protected void onEvent(AjaxRequestTarget target) { getForm().getRootForm().onFormSubmitted(); ... Why to submit form if it's Ajax request? The real example: I have a filterForm with some fileds where entered data can be malformed and as so may not be used in filtering. So, I mistyped something in filter fileds alredy forget about that and pressing "add" button. But as FilterForm uses onSubmission user receives error message that does not related with his latest activity. May be there are any way to say AjaxButton not to call form validation at least? Or the right way is to put such buttons in separate form? But what if this is "delete current line" button? -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: visural-wicket 0.6.5 released!
I must ask it: why did you make such fat header at your page? Did you every try to take a look at this in 1600*900 notebook screen? All you writings begins in bottom second part of the screen. It is not my busenees of course, but why dont you kill that nice picture and resize header to just contain "pragmatic" without strong empty white line? Ah, forget it. At least you did not add banner on the top of all of that :) -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: visural-wicket 0.6.5 released!
Looks good. Thanks for your work. P.S.: Whoa! And with examples too! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
take a look In all the Wicket examples, you have to put all files in the same package directory. This means putting the markup files and the java files next to one another. (c) http://wicket.apache.org/learn/examples/markupinheritance.html -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Look, you have java classes in path like com\consisint\frontend\pages and corresponding HTML in \FrontEnd\FrontEnd\WebContent\views You have to have HTML files in the same folder where you compilled classes are. Something like $ls com\consisint\frontend\pages ThirdByRolMain.class ThirdByRolMain.html ThirdByRolPolicy.class ThirdByRolPolicy.html Do ot and run you code again. > The two class is in package com.consisint.frontend.pages. > > And the html in C:\programs\FrontEnd\FrontEnd\WebContent\views . - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
That day is too long for me. What about html files names? May be typo or incorrect place? Or maybe you build script does not move html to the same packet as corresponding java classes is? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
Sorry, did'nt unfold your message. It looks like you forgot to insert in parent markup. That tags mark the place where inherited component will be placed. I hope I didnt miss anything now. On 23 November 2010 15:55, alex shubert wrote: > replace > with > > > -- > Best regards > Alex > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: error in heritance
replace with -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
FilterToolbar
Hello I wonder why FilterToolbar requires IFilterStateLocator? It already requres FilterForm which has method #getStateLocator and there no another constructor for 4.13. FilterForm can not be instantiated without locator for Exception in nested class. If you forget: public FilterToolbar(final DataTable table, final FilterForm form, final IFilterStateLocator stateLocator) So, what is the profit in this? Why can't we just have Locator from the form? -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Example of Ajax DataView update
final DefaultDataTable view; AjaxButton deleteSelected = new AjaxButton("delete-selected") { @Override protected void onSubmit(AjaxRequestTarget target, Form form) { target.addComponent(view); } On 22 November 2010 11:05, javax wrote: > > Hi! > Can you show me an example of Ajax update of a paging table (I use DataView > for it)? > > Thank you! > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Example-of-Ajax-DataView-update-tp3053204p3053204.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 > > -- -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DefaultDataTable, FilteredColumn and Calendar.Class
Hello! As it always happens someday I found myself with domain entity containing calendar field in one hand and my lovely IColumnGenerator in other. the probllem is that while my generator successfuly populates List> reading @ViewColumn annotation from entityes fileds, I do not know yet, how do I have implement filtered column for Calendar or Date types. My first desire was to subclass FilteredPropertyColumn but that I got trapped by doubts. For example public class Book { ... @ViewColumn Calendar published; ... } Now I am reading annotation on field and checks it type. After that I made custom Filter implementation (drop-dows, TextInput ) and render it by myself or leave it for default rendering. But how do I have to create field for Calendar? I cant find in source of TextFilteredPropertyColumn any evidence it knows how to hanlde such types. Do I miss something? Or it's ok to make filter manually (DatePicker for example), and render it as string. Also, may I count such manner of column populating via annotations acceptable? Or may be I invented one more bicycle that already exists in Wicket? If so where does he live? Thanks in advance! -- Best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
WeakReference
Hello! I got a question about that often WeakReference usage in Wicket code. For example, private WeakReference> accessDeniedPage; in Settings. So my question is: why did author used WeakReference here? Isn't it somehow unsafe as that reference to accessDeniedPage may be just GC-ed somewhere during container work? And second part. I found a caution about not using strong reference to injected Spring beans for the danger of serialization of a whole Spring container. Ok, but what about @SpringBean? Is that works somehow different and uses some sort of Detachable model already? P.S.: forgive my strange English pls, it is not my native language. P.S.S. I would highly appreciate if someone with strong English correct my mistakes in private letter :) Thank you for reading all of this! -- best regards Alex - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org