[Wicket-user] A problem with using SubmitLink
Hi Wicket version 1.2.4 Note: The scenario explained below works perfectly well for a Link. Usage : I am using a submit Link in my form to perform a delete operation . I disable the link when there is nothing to delete [ I maintain a list for this ] and when the user checks some items to be deleted , i enable the link and add a onClick attribute to call a javascript confirmation box via a behavior. Finally i use AjaxRequestTarget.addComponent to render. Problem : Wicket complains that the delete link cannot be found even though i set markupid to true in all relevant places. So while debugging i figured out that onComponentTag of SubmitLink does not call super.onComponentTag . By introducing this call in the method, I could see the id value[markup id] in source code. HOWEVER this did not solve my problem fully because onClick did not call my Javascript function. So on examining the Ajax Debug window output, I could see 2 onclicks added for submitlink response. Questions : 1 why doesnt current onComponentTag call super.onComponetTag ? 2 How do i ensure that my javascript call gets invoked before the submit operation? -Regards swaroop - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Adding extra row to table in ListView
I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new SimpleDateFormat(h:mma); ReportRow rr = (ReportRow) item.getModelObject(); Date update = getStartDate(rr.getStartTime()); if (current == null || current.getTime() update.getTime()) { current = update; item.add(new Label(date,dateDateFormat.format(rr.getStartTime(; } else { item.add(new Label(lastName,rr.getLastName())); item.add(new Label(firstName,rr.getFirstName())); item.add(new Label(startTime,timeDateFormat.format(rr.getStartTime(; item.add(new Label(endTime,timeDateFormat.format(rr.getEndTime(; } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sessionless Wicket?
In 1.3 you can use stateless pages (with stateless links and stateless forms). However, you'll have to sacrifice the programming model in favor of statelessness a little. I'm not really sure it's worth it. -Matej On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I know that I read somewhere that there is, or is going to be, a way to run your wicket application without creating a session (until absolutely necessary). We have a site that has mostly been converted to Wicket now, and almost all of it is state-less data The URLs are all bookmarkable (98% of them are), so there is not much state to track. We don't need a full object graph of all your pages and components, except for on very few pages once you have signed in. We're experiencing out of memory problems increasingly with an increase in traffic. I'm not holding much in the session, but objects are held in pages and components I now believe we should have used detachable models for many things rather than directly holding a reference to a DB-backed object. Should I start by going back and retrofitting many of those private references within components to use detachable models so that the objects are not held in memory? Any other suggestions? Thank you! Jeremy Thomerson texashuntfish.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Request problem with new window tabs (Wicket 1.3 snapshot)
Ok I have spent a fair amount of time putting together a wicket example of my two problems. It is a netbeans project but pretty bare-bones so it should be pretty easy to get working in other IDE's. I have attached it here so if any of the wicket-gurus out there would take a quick look I would very much appreciate it. Basically there were two problems and this is how I reproduced them: Problem 1 - Ajax failing to update (requesting wrong page version maybe..?) Happens on all browsers (IE, Firefox, opera tested.) Open up firefox and paste app URL Click on Tab 3 (ajax request will put tab 3 up) Click back on Tab 1 Open up second tab and paste URL Go back to first tab and look at Wicket Ajax debug. Update is failling because the server is sending Component ID's which don't exist on the client. They've got their pages mixed up. Problem 2 - Back button - Forward button failure Happens only on Firefox (I think) so maybe a browser problem ? Open up firefox and go to any site, I usually used google Paste app URL into browser. Click on Tab 3 Click the back button to go back to google. Wait a while for page to 'expire'. Doesn't seem to take more than about 30 secs - 1min. Click forward. Server is contacted and page reset, showing tab 1. Click on a subtab of tab1. You'll get an error saying the page couldn't find the component/behavior, as if it still thinks it is on Tab 3 (?) Anyways, thats about all I can add for now. If someone would be so kind as to have a quick look at the attached project and offer some feedback, that would be awesome. Cheers, Dean RedFury wrote: Sorry for replying to my own post, but I found another problem which seems to be related or the same thing. I'm not sure if its wicket 1.3 or my code but I'm going to try to write a simple app to demonstrate the problem then submit it here. Anyways, if I open my browser (firefox latest, fully updated) and start on a different, non-wicket page (say google) Then go to my wicket app. I have a bunch of ajaxed tabs which start out on tab 1 when the page loads. Each tab loads in a bunch of new html components in a panel, replacing the old panel. So I click on tab 2 and new html gets ajaxed in, replacing a lot of the old components in tab 1. Then I click 'back' to go back to the non-wicket page. I sit on that page until the wicket-page has timed out, then click forward now. Now the server loads my page again, and its reset back to its original form with tab 1 showing. However, if I try to perform an ajax action within that tab, I get a server error telling me that it couldn't find the panel, because the server has got some weird state where even though it fetched me the reset page, it still thinks I'm on the modified page when I submit an ajax request. All this is very weird and probably doesn't make much sense without a solid example, so I'm going to try to put one together and hopefully some wicket guru can find out if its a bug or something I'm doing in my code which I shouldn't be. Cheers, Dean RedFury wrote: Hi Matej, I got the latest SVN trunk and it did indeed fix the 'session expired' problem. However, another problem with opening a new tab still persists and I think it may have to do with page cloning combined with dynamic ajax page updates. I will try to explain as best I can but I'm not overly familiar with the internal workings of wicket. My app has 1 main page, and everything else is loaded dynamically using Ajax. I perform the following steps after deploying my app: -Open firefox and paste the link to my wicket servlet. A new page, Page A, is created on the server using PageMap A. By default, my Page A is constructed with 5 tab options, with the contents for Tab 1 loaded. -I click on tab 2 in Page A. This sends of an AJAX request which dynamically replaces panels on Page A (specifically replaces tab-content-panel-1 with tab-content_panel-2.) - I open a new tab and paste the servlet link into it. The following occurs: - Two new pages appear to be created (at least my Page A constructor is called twice), lets call them Page B and Page C. Page B uses Pagemap A again, and by default is created with Tab 1 loaded again. Page C uses a new pagemap (PageMap B) and all subsequent ajax requests from the second tab appear to go to Page C, as you would expect. - Back in Tab A, the next ajax request is activated and this is when things go bad ... I get errors because its trying to update components that don't exist on the page. Upon inspection, what is happening is that the AJAX request from Tab 1 seems to be targetting a different page, with different page state, quite possibly page B. It's AJAX error spits out the ID's of things it can't find and they are all ID's that belong to components inside Tab-Panel-1. So the AJAX request to the server grabs
Re: [Wicket-user] Problem with concurren ajax requests on page
You seem to be using 1.2, is that right? -Matej On 4/30/07, RedFury [EMAIL PROTECTED] wrote: Hi all, just want to say that I've relatively new to Wicket but am loving every minute of it! In just a few weeks of learning and programming I have been able to create a robust, javascripted, ajaxified app for our company. Great work to the devs! However, I have one problem which I'm a little unsure how to solve, its not an inherent problem with Wicket but more a problem with my ajax in wicket. I will try to go into as much detail as possible. I have a page with a set of tabs. Each tab will replace the main body of the page with different components using ajax. this is all working great. On top of this, the main page of the app has a global timer (using AbstractAjaxTimerBehavior) which does any updates required for the current tab. So lets say I have component C1 on tab T1 (T1 is a wicket panel which I replace when needed.) The ajax update will call an update() function which is overloaded for the different tab types. So T1.update() will call target.addComponent(C1); etc.. The problem I am having is in the timing between the ajax timer request and the ajax update request when the user hits a new tab. I am getting the following error: java.lang.NullPointerException at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveListenerIn terfaceTarget(DefaultRequestTargetResolverStrategy.java:295) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolveRenderedPa ge(DefaultRequestTargetResolverStrategy.java:228) at wicket.request.compound.DefaultRequestTargetResolverStrategy.resolve(DefaultRe questTargetResolverStrategy.java:153) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.resolve(Abstract CompoundRequestCycleProcessor.java:48) at wicket.RequestCycle.step(RequestCycle.java:992) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) So it seems what is happening (this is my guess) is that the ajax requests for the timer update and the new tab update are being sent almost simultaneously. The first request is processed by the server and this actually changes the comoponents on the page. Then the second request comes in and its target behavior no longer exists because the first request replaced that component (panel) with something different. So I guess what I'm looking for is ideas on how to solve this problem? How does Wicket ajax work client side? Does it organize ajax request-response cycles one at a time, or can they be sent simultaneously? Also, is there a way I can hoook into the client code and stop the timer update from being called if we've already got a pending page-change ajax request. So I've waffled a bit, in short how do I stop the second ajax request from referencing behavior that the first one just got rid of ? Thanks, Red Fury -- View this message in context: http://www.nabble.com/Problem-with-concurren-ajax-requests-on-page-tf3667503.html#a10247552 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Request problem with new window tabs (Wicket 1.3 snapshot)
Okay, I'll look into it as soon as i get some time. -Matej On 5/3/07, RedFury [EMAIL PROTECTED] wrote: Ok I have spent a fair amount of time putting together a wicket example of my two problems. It is a netbeans project but pretty bare-bones so it should be pretty easy to get working in other IDE's. I have attached it here so if any of the wicket-gurus out there would take a quick look I would very much appreciate it. Basically there were two problems and this is how I reproduced them: Problem 1 - Ajax failing to update (requesting wrong page version maybe..?) Happens on all browsers (IE, Firefox, opera tested.) Open up firefox and paste app URL Click on Tab 3 (ajax request will put tab 3 up) Click back on Tab 1 Open up second tab and paste URL Go back to first tab and look at Wicket Ajax debug. Update is failling because the server is sending Component ID's which don't exist on the client. They've got their pages mixed up. Problem 2 - Back button - Forward button failure Happens only on Firefox (I think) so maybe a browser problem ? Open up firefox and go to any site, I usually used google Paste app URL into browser. Click on Tab 3 Click the back button to go back to google. Wait a while for page to 'expire'. Doesn't seem to take more than about 30 secs - 1min. Click forward. Server is contacted and page reset, showing tab 1. Click on a subtab of tab1. You'll get an error saying the page couldn't find the component/behavior, as if it still thinks it is on Tab 3 (?) Anyways, thats about all I can add for now. If someone would be so kind as to have a quick look at the attached project and offer some feedback, that would be awesome. Cheers, Dean RedFury wrote: Sorry for replying to my own post, but I found another problem which seems to be related or the same thing. I'm not sure if its wicket 1.3 or my code but I'm going to try to write a simple app to demonstrate the problem then submit it here. Anyways, if I open my browser (firefox latest, fully updated) and start on a different, non-wicket page (say google) Then go to my wicket app. I have a bunch of ajaxed tabs which start out on tab 1 when the page loads. Each tab loads in a bunch of new html components in a panel, replacing the old panel. So I click on tab 2 and new html gets ajaxed in, replacing a lot of the old components in tab 1. Then I click 'back' to go back to the non-wicket page. I sit on that page until the wicket-page has timed out, then click forward now. Now the server loads my page again, and its reset back to its original form with tab 1 showing. However, if I try to perform an ajax action within that tab, I get a server error telling me that it couldn't find the panel, because the server has got some weird state where even though it fetched me the reset page, it still thinks I'm on the modified page when I submit an ajax request. All this is very weird and probably doesn't make much sense without a solid example, so I'm going to try to put one together and hopefully some wicket guru can find out if its a bug or something I'm doing in my code which I shouldn't be. Cheers, Dean RedFury wrote: Hi Matej, I got the latest SVN trunk and it did indeed fix the 'session expired' problem. However, another problem with opening a new tab still persists and I think it may have to do with page cloning combined with dynamic ajax page updates. I will try to explain as best I can but I'm not overly familiar with the internal workings of wicket. My app has 1 main page, and everything else is loaded dynamically using Ajax. I perform the following steps after deploying my app: -Open firefox and paste the link to my wicket servlet. A new page, Page A, is created on the server using PageMap A. By default, my Page A is constructed with 5 tab options, with the contents for Tab 1 loaded. -I click on tab 2 in Page A. This sends of an AJAX request which dynamically replaces panels on Page A (specifically replaces tab-content-panel-1 with tab-content_panel-2.) - I open a new tab and paste the servlet link into it. The following occurs: - Two new pages appear to be created (at least my Page A constructor is called twice), lets call them Page B and Page C. Page B uses Pagemap A again, and by default is created with Tab 1 loaded again. Page C uses a new pagemap (PageMap B) and all subsequent ajax requests from the second tab appear to go to Page C, as you would expect. - Back in Tab A, the next ajax request is activated and this is when things go bad ... I get errors because its trying to update components that don't exist on the page. Upon inspection, what is happening is that the AJAX request from Tab 1 seems to be targetting a different page, with different page state, quite
Re: [Wicket-user] styling options of AbstractChoice
thx, works like a charm On 5/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: selectoptions is a quick way to do it. if you want total control then put a repeater into the select and create your own options using selectoption. -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: hm, good point. but i still see one limitation with SelectOptions: how can i add a class attribute with a value depending on the option-model. i can't seem to achieve this with adding a behavior to SelectOptions, since the behavior binds to the wrong component. if i missed something, please let me know. tia, gerolf On 5/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: or you can use Select, SelectOption, and SelectOptions in extensions -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: afaik, there is no way to style options of an AbstractChoice (and it's descendants). i could imagine 3 ways to add this (although i don't know which would be the most wicket-like way) 1) expand IChoiceRenderer add methods like String getClass(), String getStyle() to the IChoiceRenderer interface. this will definitely break existing code, and is probably not the best way to go 2) create new interface IStyledChoiceRenderer extending IChoiceRenderer add the mentioned methods to the new interface. things to do in AbstractChoice.appendOptionHtml: +check, whether the renderer is instanceof IStyledChoiceRenderer +add class and/or style attribute if the returned string is not null and length0 3) expand AbstractChoice add the mentioned methods (params like the method isDisabled()) to the class returning an empty string as the default implementation allowing to override these methods if needed. any thoughts from experienced users/devs? gerolf p.s.: i should probably add a jira issue. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] possible to access wicket session via jsp?
if you use the wicket filter then in a jsp (if the filter is in the jsp chain) then you should be able to do: Session.get() to get the session.. johan On 5/3/07, Benjamin Ranck [EMAIL PROTECTED] wrote: This is obviously a horrible hack to take care of a short term problem, but is it possible, using WicketSessionFilter to access the wicket session within a JSP? Any ideas on what the mapping would be? Thanks, Benjamin - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
changed it On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote: hm, i did mess up. there's one more thing left in line 1534: if (positionArray['w']==-1) positionArray['m'] = format.indexOf('w'); the quoted 'm' should be replaced with a w. the right line is: if (positionArray['w']==-1) positionArray['w'] = format.indexOf('w'); after that change, everything works great. sry for that, gerolf On 5/2/07, Johan Compagner [EMAIL PROTECTED] wrote: i applied it look if it works for you now. On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote: thx, jira issue with attached patch: http://wicketstuff.org/jira/browse/WSCAL-1 since it's my first contribution, i hope i didn't mess up ;) gerolf On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i created a jira project for it -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: as for now, i added the week of year pattern 'w' to the wicket-calendar in wicket-stuff. one may click either the week number directly or any day in the desired week. since there is no JIRA project for wicket-calendar (to which i would attach a patch or the whole file), how would you like me to provide this contribution? gerolf On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: This is the one i currently use: https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar it works pretty well for what it should do I haven't heard from the javascript author back that he wants to change the license so its on wicket stuff for the moment. johan On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: i'd like to help un-limit the new datepicker in the datetime project. what i personally need is the ability to select a week or a month. i'm not sure though how much we can change the datepicker itself, because it's a YUI widget. Not sure either. Might be a big pain. If it's too much work, we can try urge Johan/ others more to add their datepicker components. I thought he found one that supports that. however, as i said, i'd really like to contribute... That's always very welcome. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express
Re: [Wicket-user] How to remove a Behaviour?
i think we should be thinking of a remove(IBehavior) It is pretty in line with the rest (think about Swing listeners) And it doesn't sit in the way as far as i can think of. johan On 5/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you cannot remove a behavior currently. what you can do is call stop() on the timerbehavior. -igor On 5/2/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We have a component with an AjaxSelfUpdatingTimerBehavior attached to it. When a certain condition is reached we want to remove the behaviour from its parent before updating it again, to prefent it from going on forever. We couldn't find a way for this. Component has a remove() method, but IBehaviour does not. What is the preferred way to do this? Thanks in advance, Ivo van Dongen -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] from 1.2.6 to 1.3.0 snapshot
thx a lot On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote: changed it On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote: hm, i did mess up. there's one more thing left in line 1534: if (positionArray['w']==-1) positionArray['m'] = format.indexOf('w'); the quoted 'm' should be replaced with a w. the right line is: if (positionArray['w']==-1) positionArray['w'] = format.indexOf('w'); after that change, everything works great. sry for that, gerolf On 5/2/07, Johan Compagner [EMAIL PROTECTED] wrote: i applied it look if it works for you now. On 5/2/07, Gerolf Seitz [EMAIL PROTECTED] wrote: thx, jira issue with attached patch: http://wicketstuff.org/jira/browse/WSCAL-1 since it's my first contribution, i hope i didn't mess up ;) gerolf On 5/1/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i created a jira project for it -igor On 5/1/07, Gerolf Seitz [EMAIL PROTECTED] wrote: as for now, i added the week of year pattern 'w' to the wicket-calendar in wicket-stuff. one may click either the week number directly or any day in the desired week. since there is no JIRA project for wicket-calendar (to which i would attach a patch or the whole file), how would you like me to provide this contribution? gerolf On 5/1/07, Johan Compagner [EMAIL PROTECTED] wrote: This is the one i currently use: https://svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-calendar it works pretty well for what it should do I haven't heard from the javascript author back that he wants to change the license so its on wicket stuff for the moment. johan On 5/1/07, Eelco Hillenius [EMAIL PROTECTED] wrote: i'd like to help un-limit the new datepicker in the datetime project. what i personally need is the ability to select a week or a month. i'm not sure though how much we can change the datepicker itself, because it's a YUI widget. Not sure either. Might be a big pain. If it's too much work, we can try urge Johan/ others more to add their datepicker components. I thought he found one that supports that. however, as i said, i'd really like to contribute... That's always very welcome. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list
Re: [Wicket-user] possible to access wicket session via jsp?
org.apache.wicket.protocol.http.servlet.WicketSessionFilter Eelco On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote: if you use the wicket filter then in a jsp (if the filter is in the jsp chain) then you should be able to do: Session.get() to get the session.. johan On 5/3/07, Benjamin Ranck [EMAIL PROTECTED] wrote: This is obviously a horrible hack to take care of a short term problem, but is it possible, using WicketSessionFilter to access the wicket session within a JSP? Any ideas on what the mapping would be? Thanks, Benjamin - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sessionless Wicket?
Stateless pages are available even in 1.2, but much more limited. Basically, when you have no callbacks, you're page will be stateless and not kept in memory. You'd have to do everything with bookmarkable pages, links and page parameters then. In 1.3, you can use some callbacks while still keeping pages stateless, e.g. using StatelessLink and StatelessForm. There's a simple example showing this in wicket-examples: org.apache.wicket.examples.stateless In your case, if really most of your app is read-only, it's probably worth using that. And finally, a big improvement in 1.3 over 1.2 is that as long as users don't have a HttpSession assigned by the server, and they are only accessing stateless pages, no session will be created by Wicket either, giving you more options in clustering and further decreasing the memory footprint. It is possible to even further optimize bits by digging deeper in Wicket, but for now, this should help quite a lot. Eelco On 5/3/07, Matej Knopp [EMAIL PROTECTED] wrote: In 1.3 you can use stateless pages (with stateless links and stateless forms). However, you'll have to sacrifice the programming model in favor of statelessness a little. I'm not really sure it's worth it. -Matej On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I know that I read somewhere that there is, or is going to be, a way to run your wicket application without creating a session (until absolutely necessary). We have a site that has mostly been converted to Wicket now, and almost all of it is state-less data The URLs are all bookmarkable (98% of them are), so there is not much state to track. We don't need a full object graph of all your pages and components, except for on very few pages once you have signed in. We're experiencing out of memory problems increasingly with an increase in traffic. I'm not holding much in the session, but objects are held in pages and components I now believe we should have used detachable models for many things rather than directly holding a reference to a DB-backed object. Should I start by going back and retrofitting many of those private references within components to use detachable models so that the objects are not held in memory? Any other suggestions? Thank you! Jeremy Thomerson texashuntfish.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour
Thanks Igor and I am curious. Why is it nasty in your opinion? Which parts? I am open to trying other ways that I am not aware of. This is not how I originally wanted to implement it but I have tried many ways so far (different models on different components in the hierarchy, nesting/inheriting models etc) and this is the closest to working so far. Other ways I tried which seemed more elegant had more serious problems in practice especially when compounding and nesting panels more times which I need. John igor.vaynberg wrote: although that is some nasty code wrt to wicket, i dont see why anything would go wrong. try and replicate it in a quickstart and someone will go through it. -igor On 5/2/07, John RDF [EMAIL PROTECTED] wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: Reusable Panels/Nested Forms/Models and weird behaviourhttp://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153 Sent from the Wicket - User mailing list archivehttp://www.nabble.com/Wicket---User-f13976.htmlat Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10301142 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] RadioGroup.. Correct usage (with enum values)?
I have problems with radio groups. According to docs and tutorials the group's model object should be set to the selected radio model object. However, in my case (using enum values which must be set on an enum property) the group's model object always seems to be null. I based my code on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html My code below produces.. test was pressed:null, null, Tenant, CompanyTenant // RadioGroup group = new RadioGroup(reportType, new PropertyModel(getReportTenantDTO(), reportType)); Radio radIndividual = new Radio(individual, new Model(ReportType.Tenant)); Radio radCompany = new Radio(company, new Model(ReportType.CompanyTenant)); group.add(radIndividual); Button test = new Button(test){ protected void onSubmit(){ info(test was pressed: + getReportTenantDTO().getReportType() + , + group.getModelObject() + , + radIndividual.getModelObject() + , + radCompany.getModelObject()); } }; -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour
One thing that I'm wondering is why you declare your components as member variables. It's not really wrong, but it's more code without any advantage, and potentially scope creep (in that you might be tempted to use the components directly rather then to work through models. Eelco On 5/3/07, John RDF [EMAIL PROTECTED] wrote: Thanks Igor and I am curious. Why is it nasty in your opinion? Which parts? I am open to trying other ways that I am not aware of. This is not how I originally wanted to implement it but I have tried many ways so far (different models on different components in the hierarchy, nesting/inheriting models etc) and this is the closest to working so far. Other ways I tried which seemed more elegant had more serious problems in practice especially when compounding and nesting panels more times which I need. John igor.vaynberg wrote: although that is some nasty code wrt to wicket, i dont see why anything would go wrong. try and replicate it in a quickstart and someone will go through it. -igor On 5/2/07, John RDF [EMAIL PROTECTED] wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: Reusable Panels/Nested Forms/Models and weird behaviourhttp://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153 Sent from the Wicket - User mailing list archivehttp://www.nabble.com/Wicket---User-f13976.htmlat Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10301142 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour
The drop down list does not directly relate to the form model (as the visible value is a user readable summary not the data structure I need) and so I need to keep a reference to something even if its a model or two. Take a look at this version which still works with same quirks.. Any better? http://www.nabble.com/file/8198/AddressPanel.java AddressPanel.java John Eelco Hillenius wrote: One thing that I'm wondering is why you declare your components as member variables. It's not really wrong, but it's more code without any advantage, and potentially scope creep (in that you might be tempted to use the components directly rather then to work through models. Eelco On 5/3/07, John RDF [EMAIL PROTECTED] wrote: Thanks Igor and I am curious. Why is it nasty in your opinion? Which parts? I am open to trying other ways that I am not aware of. This is not how I originally wanted to implement it but I have tried many ways so far (different models on different components in the hierarchy, nesting/inheriting models etc) and this is the closest to working so far. Other ways I tried which seemed more elegant had more serious problems in practice especially when compounding and nesting panels more times which I need. John igor.vaynberg wrote: although that is some nasty code wrt to wicket, i dont see why anything would go wrong. try and replicate it in a quickstart and someone will go through it. -igor On 5/2/07, John RDF [EMAIL PROTECTED] wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: Reusable Panels/Nested Forms/Models and weird behaviourhttp://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153 Sent from the Wicket - User mailing list archivehttp://www.nabble.com/Wicket---User-f13976.htmlat Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10301142 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___
[Wicket-user] Wicket-stuff GMAP
Hi Im trying to get the GMAP contribution to work, i've checked it out from svn. But it has a dependency to wicket 1.3 snapshot, which does not exist. ...dependency: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.3.0-incubating-SNAPSHOT/version /dependency ...dependency Does anybody have a jar or a working source, how do I solve this? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-stuff GMAP
Obvoiusly I've tried the 1.3 beta1 release but its not in the maven repo yet. Nino Saturnino Martinez Vazquez Wael wrote: Hi Im trying to get the GMAP contribution to work, i've checked it out from svn. But it has a dependency to wicket 1.3 snapshot, which does not exist. ...dependency: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.3.0-incubating-SNAPSHOT/version /dependency ...dependency Does anybody have a jar or a working source, how do I solve this? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] FormComponentLabel for Radio?
hi, isn't it possible to create a FormComponentLabel for Radio?? best regards, --- jan. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Request problem with new window tabs (Wicket 1.3 snapshot)
Hi About the first problem, it should be fixed since yesterday. Could you please update your wicket to see if it really is? I can't reproduce the second one. I tested it with Firefox 2.0 on OSX and everything works as expected. I remember seeing something like this in 1.5. What FF version do you use? -Matej On 5/3/07, RedFury [EMAIL PROTECTED] wrote: Ok I have spent a fair amount of time putting together a wicket example of my two problems. It is a netbeans project but pretty bare-bones so it should be pretty easy to get working in other IDE's. I have attached it here so if any of the wicket-gurus out there would take a quick look I would very much appreciate it. Basically there were two problems and this is how I reproduced them: Problem 1 - Ajax failing to update (requesting wrong page version maybe..?) Happens on all browsers (IE, Firefox, opera tested.) Open up firefox and paste app URL Click on Tab 3 (ajax request will put tab 3 up) Click back on Tab 1 Open up second tab and paste URL Go back to first tab and look at Wicket Ajax debug. Update is failling because the server is sending Component ID's which don't exist on the client. They've got their pages mixed up. Problem 2 - Back button - Forward button failure Happens only on Firefox (I think) so maybe a browser problem ? Open up firefox and go to any site, I usually used google Paste app URL into browser. Click on Tab 3 Click the back button to go back to google. Wait a while for page to 'expire'. Doesn't seem to take more than about 30 secs - 1min. Click forward. Server is contacted and page reset, showing tab 1. Click on a subtab of tab1. You'll get an error saying the page couldn't find the component/behavior, as if it still thinks it is on Tab 3 (?) Anyways, thats about all I can add for now. If someone would be so kind as to have a quick look at the attached project and offer some feedback, that would be awesome. Cheers, Dean RedFury wrote: Sorry for replying to my own post, but I found another problem which seems to be related or the same thing. I'm not sure if its wicket 1.3 or my code but I'm going to try to write a simple app to demonstrate the problem then submit it here. Anyways, if I open my browser (firefox latest, fully updated) and start on a different, non-wicket page (say google) Then go to my wicket app. I have a bunch of ajaxed tabs which start out on tab 1 when the page loads. Each tab loads in a bunch of new html components in a panel, replacing the old panel. So I click on tab 2 and new html gets ajaxed in, replacing a lot of the old components in tab 1. Then I click 'back' to go back to the non-wicket page. I sit on that page until the wicket-page has timed out, then click forward now. Now the server loads my page again, and its reset back to its original form with tab 1 showing. However, if I try to perform an ajax action within that tab, I get a server error telling me that it couldn't find the panel, because the server has got some weird state where even though it fetched me the reset page, it still thinks I'm on the modified page when I submit an ajax request. All this is very weird and probably doesn't make much sense without a solid example, so I'm going to try to put one together and hopefully some wicket guru can find out if its a bug or something I'm doing in my code which I shouldn't be. Cheers, Dean RedFury wrote: Hi Matej, I got the latest SVN trunk and it did indeed fix the 'session expired' problem. However, another problem with opening a new tab still persists and I think it may have to do with page cloning combined with dynamic ajax page updates. I will try to explain as best I can but I'm not overly familiar with the internal workings of wicket. My app has 1 main page, and everything else is loaded dynamically using Ajax. I perform the following steps after deploying my app: -Open firefox and paste the link to my wicket servlet. A new page, Page A, is created on the server using PageMap A. By default, my Page A is constructed with 5 tab options, with the contents for Tab 1 loaded. -I click on tab 2 in Page A. This sends of an AJAX request which dynamically replaces panels on Page A (specifically replaces tab-content-panel-1 with tab-content_panel-2.) - I open a new tab and paste the servlet link into it. The following occurs: - Two new pages appear to be created (at least my Page A constructor is called twice), lets call them Page B and Page C. Page B uses Pagemap A again, and by default is created with Tab 1 loaded again. Page C uses a new pagemap (PageMap B) and all subsequent ajax requests from the second tab appear to go to Page C, as you would expect. - Back in Tab A, the next ajax request is activated and this is when
[Wicket-user] Applet not loaded in 1.2.6, but in 1.2.5, and viceversa, depending on codebase [jetty-server]
Dear people, I have found the following strange behavior in wicket-1.2.6: Since long time ago I've been using wicket-1.2.5, and testing a webPage where there's an applet with the following codebase: param name=codebase value=lib / Yesterday, I decided to update to wicket-1.2.6, and then, while testing this webPage again, I found ClassNotFoundException during applet's loading. So, after a little time doing try-and-error, I noticed that changing the codebase to the following, then it worked fine: param name=codebase value=../lib / I am using the lightweight jetty-server with the configuration inherited from wicket-examples. Nothing has changed during this development time, then, only the classpath in my Eclipse project, were I just changed to wicket-1.2.6. Any idea why is this happening? Thank you ;) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour
Yeah, looks better to me. As a matter of good practice (imho), you could probably make the form a static internal class and make the members private instead of package private. Though that's just taste I guess. :) Eelco On 5/3/07, John RDF [EMAIL PROTECTED] wrote: The drop down list does not directly relate to the form model (as the visible value is a user readable summary not the data structure I need) and so I need to keep a reference to something even if its a model or two. Take a look at this version which still works with same quirks.. Any better? http://www.nabble.com/file/8198/AddressPanel.java AddressPanel.java John Eelco Hillenius wrote: One thing that I'm wondering is why you declare your components as member variables. It's not really wrong, but it's more code without any advantage, and potentially scope creep (in that you might be tempted to use the components directly rather then to work through models. Eelco On 5/3/07, John RDF [EMAIL PROTECTED] wrote: Thanks Igor and I am curious. Why is it nasty in your opinion? Which parts? I am open to trying other ways that I am not aware of. This is not how I originally wanted to implement it but I have tried many ways so far (different models on different components in the hierarchy, nesting/inheriting models etc) and this is the closest to working so far. Other ways I tried which seemed more elegant had more serious problems in practice especially when compounding and nesting panels more times which I need. John igor.vaynberg wrote: although that is some nasty code wrt to wicket, i dont see why anything would go wrong. try and replicate it in a quickstart and someone will go through it. -igor On 5/2/07, John RDF [EMAIL PROTECTED] wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: Reusable Panels/Nested Forms/Models and weird behaviourhttp://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153 Sent from the Wicket - User mailing list archivehttp://www.nabble.com/Wicket---User-f13976.htmlat Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10301142 Sent from the Wicket
[Wicket-user] AbstractRequestTargetUrlCodingStrategy is throwing an error now...
Wicket 1.3 (revision 534800, updated 08:00am EST 5/3/07) I finsihed updating my code to the trunk yesterday and my pages were loading correctly. I did an SVN update this morning just to pick up the latest changes and now AbstractRequestTargetUrlCodingStrategy is throwing an exception URL fragment has unmatched key/value pair: mode/:/0 The action: click an AjaxLink that does something similar to the following: StringBuffer sb = new StringBuffer(128); sb.append(window.location.href='); sb.append(/app/specChange/specChangePage/mode/add); sb.append(';); target.appendJavascript(sb.toString()); Upon debugging the problem, AbstractRequestTargetUrlCodingStrategy.decodeParameters actually gets called twice; first with /mode/add (as expected), but then (i can't tell exactly when, but around the time the page is actually rendering) it gets called with mode/:/0 (not expected, and incorrect which is causing the exception). There were only a handful of files changed in SVN between me updating on the morning or 02MAY07 and 03MAY07. So, can anyone help me find where the URL might be getting changed? Chuck -- View this message in context: http://www.nabble.com/AbstractRequestTargetUrlCodingStrategy-is-throwing-an-error-now...-tf3686373.html#a10304607 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Header contributions and AjaxLink
I think I may have found a bug with header contributions, AjaxLink, and Internet Explorer. Here's a test page: html body div wicket:id=subComponent/div /body /html ---8--- public class TestPage extends WebPage { public TestPage() { add(new SubComponent(subComponent)); } } SubComponent is defined as follows: html head wicket:head wicket:link link rel=stylesheet type=text/css href=SubComponent.css /wicket:link /wicket:head /head body wicket:panel a wicket:id=link href=#Click Me/a span wicket:id=label/span /wicket:panel /body /html ---8--- public class SubComponent extends Panel { private int count = 0; public SubComponent(String id) { super(id); add(new AjaxLink(link) { @Override public void onClick(AjaxRequestTarget target) { count++; target.addComponent(SubComponent.this); } }); add(new Label(label, new PropertyModel(this, count))); setOutputMarkupId(true); } public int getCount() { return count; } } Under Firefox this works fine: clicking the Click Me link causes the count to increment on the page. But under IE, the number does not get updated on the page (even though the count is being incremented on the server). The debug window gives the following error: INFO: INFO: Initiating Ajax GET request on /arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0random=0.8818904450460203 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (656 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution![CDATA[head xmlns:wicket=http://wicket.sourceforge.net; link href=/arp/resources/com.td.idcs.arp.dev.SubComponent/SubComponent_en_US.css rel=stylesheet type=text/css /head]]/header-contributioncomponent id=subComponent ![CDATA[div id=subComponent a href=# onclick=var wcall=wicketAjaxGet('/arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0', function() { }, function() { });return !wcall; id=subComponent_linkClick Me/a span3/span /div]]/component/ajax-response ERROR: Error while parsing response: Object required INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... The problem appears to be the wicket:head portion of the SubComponent. Comment this out and it works correctly on both IE and Firefox. Note that SubComponent.css is empty. I've tried this on Wicket 1.2.4 and 1.2.6. Any thoughts? jk - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Test Case - Nested Forms/Models and weird behaviour
OK. Below is a test case quick start application eclipse project that produces the quirks I have been describing. ftp://ftpuser:[EMAIL PROTECTED]/wicket-quickstart-1.2.6.rar The test procedure to reproduce strange behaviour is as follows. 1. Enter postcode in first address. 2. Hit address search (you will then see your postcode appearing in other fields unexpectedly) 3. Select first option from first drop down and hit use address (This will appear to work apart from the extraneous postcodes) 4. Select second option from first drop down and hit use address (then all addresses will be filled unexpectedly) I suspect this behaviour relates to nested forms as without the outer form it appears to work as expected. I am also beginning to suspect that this may be the root of my other problem with radio groups behaving oddly. Hope this helps and thanks, John John RDF wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. http://www.nabble.com/file/8180/AddressPanel.java AddressPanel.java http://www.nabble.com/file/8181/AddressPanel.html AddressPanel.html http://www.nabble.com/file/8182/AddressDO.java AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10305933 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sessionless Wicket?
Thanks to everyone for their help - I'm starting right away to convert everything to detachable models for all domain objects that are loaded into components... Eelco, I am curious about your statement when you have no callbacks, you're page will be stateless and not kept in memory... Most of my pages have no callbacks (by callback, I'm assuming that you mean a link that would have reference to wicket components in the URL, meaning that it is storing the state of that component so that it can further interact with it). I have taken great care to control the URLs of the application, so almost every page has only components that have standard URLs, with no references to any components, etc. The forms will obviously have a call back, and certain links (particularly if you are signed in as an administrator - a lot of links appear to edit and delete content that are all direct callbacks with obviously no direct URL encoding / decoding so that you can not use them outside of your session). So, how do I know if it's storing the pages in memory? Is there something I can do to tell it not to? Thanks! Jeremy On 5/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Stateless pages are available even in 1.2, but much more limited. Basically, when you have no callbacks, you're page will be stateless and not kept in memory. You'd have to do everything with bookmarkable pages, links and page parameters then. In 1.3, you can use some callbacks while still keeping pages stateless, e.g. using StatelessLink and StatelessForm. There's a simple example showing this in wicket-examples: org.apache.wicket.examples.stateless In your case, if really most of your app is read-only, it's probably worth using that. And finally, a big improvement in 1.3 over 1.2 is that as long as users don't have a HttpSession assigned by the server, and they are only accessing stateless pages, no session will be created by Wicket either, giving you more options in clustering and further decreasing the memory footprint. It is possible to even further optimize bits by digging deeper in Wicket, but for now, this should help quite a lot. Eelco On 5/3/07, Matej Knopp [EMAIL PROTECTED] wrote: In 1.3 you can use stateless pages (with stateless links and stateless forms). However, you'll have to sacrifice the programming model in favor of statelessness a little. I'm not really sure it's worth it. -Matej On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I know that I read somewhere that there is, or is going to be, a way to run your wicket application without creating a session (until absolutely necessary). We have a site that has mostly been converted to Wicket now, and almost all of it is state-less data The URLs are all bookmarkable (98% of them are), so there is not much state to track. We don't need a full object graph of all your pages and components, except for on very few pages once you have signed in. We're experiencing out of memory problems increasingly with an increase in traffic. I'm not holding much in the session, but objects are held in pages and components I now believe we should have used detachable models for many things rather than directly holding a reference to a DB-backed object. Should I start by going back and retrofitting many of those private references within components to use detachable models so that the objects are not held in memory? Any other suggestions? Thank you! Jeremy Thomerson texashuntfish.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sessionless Wicket?
please we need something in wicket-examples on this wicket stateless best pratice cuz it still kind of not easy pulling the whole stuff together at times. it would be nice to have some 4-page example that shows best practices for stateless arch. thanks On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: Thanks to everyone for their help - I'm starting right away to convert everything to detachable models for all domain objects that are loaded into components... Eelco, I am curious about your statement when you have no callbacks, you're page will be stateless and not kept in memory... Most of my pages have no callbacks (by callback, I'm assuming that you mean a link that would have reference to wicket components in the URL, meaning that it is storing the state of that component so that it can further interact with it). I have taken great care to control the URLs of the application, so almost every page has only components that have standard URLs, with no references to any components, etc. The forms will obviously have a call back, and certain links (particularly if you are signed in as an administrator - a lot of links appear to edit and delete content that are all direct callbacks with obviously no direct URL encoding / decoding so that you can not use them outside of your session). So, how do I know if it's storing the pages in memory? Is there something I can do to tell it not to? Thanks! Jeremy On 5/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Stateless pages are available even in 1.2, but much more limited. Basically, when you have no callbacks, you're page will be stateless and not kept in memory. You'd have to do everything with bookmarkable pages, links and page parameters then. In 1.3, you can use some callbacks while still keeping pages stateless, e.g. using StatelessLink and StatelessForm. There's a simple example showing this in wicket-examples: org.apache.wicket.examples.stateless In your case, if really most of your app is read-only, it's probably worth using that. And finally, a big improvement in 1.3 over 1.2 is that as long as users don't have a HttpSession assigned by the server, and they are only accessing stateless pages, no session will be created by Wicket either, giving you more options in clustering and further decreasing the memory footprint. It is possible to even further optimize bits by digging deeper in Wicket, but for now, this should help quite a lot. Eelco On 5/3/07, Matej Knopp [EMAIL PROTECTED] wrote: In 1.3 you can use stateless pages (with stateless links and stateless forms). However, you'll have to sacrifice the programming model in favor of statelessness a little. I'm not really sure it's worth it. -Matej On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I know that I read somewhere that there is, or is going to be, a way to run your wicket application without creating a session (until absolutely necessary). We have a site that has mostly been converted to Wicket now, and almost all of it is state-less data The URLs are all bookmarkable (98% of them are), so there is not much state to track. We don't need a full object graph of all your pages and components, except for on very few pages once you have signed in. We're experiencing out of memory problems increasingly with an increase in traffic. I'm not holding much in the session, but objects are held in pages and components I now believe we should have used detachable models for many things rather than directly holding a reference to a DB-backed object. Should I start by going back and retrofitting many of those private references within components to use detachable models so that the objects are not held in memory? Any other suggestions? Thank you! Jeremy Thomerson texashuntfish.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express
[Wicket-user] Good Tutorial on core wicket
Hello everyone, I am about to buy this book called pro wickethttp://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sessionless Wicket?
Thanks to everyone for their help - I'm starting right away to convert everything to detachable models for all domain objects that are loaded into components... If you're only working with stateless pages, you don't detachable models as those pages won't be stored to start with. But if you want to reuse the models and components in stateful pages, it is better to have that. Eelco, I am curious about your statement when you have no callbacks, you're page will be stateless and not kept in memory... Most of my pages have no callbacks (by callback, I'm assuming that you mean a link that would have reference to wicket components in the URL, meaning that it is storing the state of that component so that it can further interact with it). Yep. Normal Links, Forms, ajax requests etc. I have taken great care to control the URLs of the application, so almost every page has only components that have standard URLs, with no references to any components, etc. The forms will obviously have a call back, and certain links (particularly if you are signed in as an administrator - a lot of links appear to edit and delete content that are all direct callbacks with obviously no direct URL encoding / decoding so that you can not use them outside of your session). Not sure what you're getting at... So, how do I know if it's storing the pages in memory? Is there something I can do to tell it not to? Yeah, you can give provide a HINT that they shouldn't be stored (that they are stateless) by overriding getStatelessHint on the components you put on the page. Note that if there is just one stateful component on the page, that'll trigger the page to be marked as stateful UNLESS you explicitly mark the page itself stateless (which is a bit cheaper by the way, as it won't iterate over it's children to find out whether it is stateless). The method where this all happens is Page#isPageStateless. Also, if you want to keep track of when user sessions are created, create a custom session store by overriding newSessionStore on Application and let your custom store extend HttpSessionStore or SecondLevelCacheSessionStore and then override onBind which will be called when (new) sessions are bound to the HttpSession. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sessionless Wicket?
There already is an example though. Take a look at org.apache.wicket.examples.stateless. If you have suggestions (patches) to extend that example even more, that'd be great, but there's really not that much to say about it I think. Eelco On 5/3/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: please we need something in wicket-examples on this wicket stateless best pratice cuz it still kind of not easy pulling the whole stuff together at times. it would be nice to have some 4-page example that shows best practices for stateless arch. thanks On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: Thanks to everyone for their help - I'm starting right away to convert everything to detachable models for all domain objects that are loaded into components... Eelco, I am curious about your statement when you have no callbacks, you're page will be stateless and not kept in memory... Most of my pages have no callbacks (by callback, I'm assuming that you mean a link that would have reference to wicket components in the URL, meaning that it is storing the state of that component so that it can further interact with it). I have taken great care to control the URLs of the application, so almost every page has only components that have standard URLs, with no references to any components, etc. The forms will obviously have a call back, and certain links (particularly if you are signed in as an administrator - a lot of links appear to edit and delete content that are all direct callbacks with obviously no direct URL encoding / decoding so that you can not use them outside of your session). So, how do I know if it's storing the pages in memory? Is there something I can do to tell it not to? Thanks! Jeremy On 5/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Stateless pages are available even in 1.2, but much more limited. Basically, when you have no callbacks, you're page will be stateless and not kept in memory. You'd have to do everything with bookmarkable pages, links and page parameters then. In 1.3, you can use some callbacks while still keeping pages stateless, e.g. using StatelessLink and StatelessForm. There's a simple example showing this in wicket-examples: org.apache.wicket.examples.stateless In your case, if really most of your app is read-only, it's probably worth using that. And finally, a big improvement in 1.3 over 1.2 is that as long as users don't have a HttpSession assigned by the server, and they are only accessing stateless pages, no session will be created by Wicket either, giving you more options in clustering and further decreasing the memory footprint. It is possible to even further optimize bits by digging deeper in Wicket, but for now, this should help quite a lot. Eelco On 5/3/07, Matej Knopp [EMAIL PROTECTED] wrote: In 1.3 you can use stateless pages (with stateless links and stateless forms). However, you'll have to sacrifice the programming model in favor of statelessness a little. I'm not really sure it's worth it. -Matej On 5/3/07, Jeremy Thomerson [EMAIL PROTECTED] wrote: I know that I read somewhere that there is, or is going to be, a way to run your wicket application without creating a session (until absolutely necessary). We have a site that has mostly been converted to Wicket now, and almost all of it is state-less data The URLs are all bookmarkable (98% of them are), so there is not much state to track. We don't need a full object graph of all your pages and components, except for on very few pages once you have signed in. We're experiencing out of memory problems increasingly with an increase in traffic. I'm not holding much in the session, but objects are held in pages and components I now believe we should have used detachable models for many things rather than directly holding a reference to a DB-backed object. Should I start by going back and retrofitting many of those private references within components to use detachable models so that the objects are not held in memory? Any other suggestions? Thank you! Jeremy Thomerson texashuntfish.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2
Re: [Wicket-user] Wicket-stuff GMAP
where did you checked out gmap sources from? trunk? i dont know if any wicket 1.3 artifacts are deployed somewhere, but you can checkout wicket source code as well and build it for yourself as a quick workaround. or you can get gmap code from 1.2 branch, that depends on 1.2.* wicket that is available on central repository for sure. /iulian On 5/3/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Obvoiusly I've tried the 1.3 beta1 release but its not in the maven repo yet. Nino Saturnino Martinez Vazquez Wael wrote: Hi Im trying to get the GMAP contribution to work, i've checked it out from svn. But it has a dependency to wicket 1.3 snapshot, which does not exist. ...dependency: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.3.0-incubating-SNAPSHOT/version /dependency ...dependency Does anybody have a jar or a working source, how do I solve this? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding extra row to table in ListView
what you need is a lsitview in a listview the first outputs the date row, and then a listview that outputs rows for that date. makes sense? -igor On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new SimpleDateFormat(h:mma); ReportRow rr = (ReportRow) item.getModelObject(); Date update = getStartDate(rr.getStartTime()); if (current == null || current.getTime() update.getTime()) { current = update; item.add(new Label(date,dateDateFormat.format(rr.getStartTime(; } else { item.add(new Label(lastName,rr.getLastName())); item.add(new Label(firstName,rr.getFirstName())); item.add(new Label(startTime,timeDateFormat.format(rr.getStartTime(; item.add(new Label(endTime,timeDateFormat.format(rr.getEndTime(; } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to remove a Behaviour?
fine by me -igor On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote: i think we should be thinking of a remove(IBehavior) It is pretty in line with the rest (think about Swing listeners) And it doesn't sit in the way as far as i can think of. johan On 5/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you cannot remove a behavior currently. what you can do is call stop() on the timerbehavior. -igor On 5/2/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We have a component with an AjaxSelfUpdatingTimerBehavior attached to it. When a certain condition is reached we want to remove the behaviour from its parent before updating it again, to prefent it from going on forever. We couldn't find a way for this. Component has a remove() method, but IBehaviour does not. What is the preferred way to do this? Thanks in advance, Ivo van Dongen -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup.. Correct usage (with enum values)?
code looks ok, pretty strange. can you create a quickstart so we can see what goes wrong? -igor On 5/3/07, John RDF [EMAIL PROTECTED] wrote: I have problems with radio groups. According to docs and tutorials the group's model object should be set to the selected radio model object. However, in my case (using enum values which must be set on an enum property) the group's model object always seems to be null. I based my code on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html My code below produces.. test was pressed:null, null, Tenant, CompanyTenant // RadioGroup group = new RadioGroup(reportType, new PropertyModel(getReportTenantDTO(), reportType)); Radio radIndividual = new Radio(individual, new Model(ReportType.Tenant )); Radio radCompany = new Radio(company, new Model(ReportType.CompanyTenant)); group.add(radIndividual); Button test = new Button(test){ protected void onSubmit(){ info(test was pressed: + getReportTenantDTO().getReportType() + , + group.getModelObject() + , + radIndividual.getModelObject() + , + radCompany.getModelObject()); } }; -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] FormComponentLabel for Radio?
please add an rfe. -igor On 5/3/07, Jan Kriesten [EMAIL PROTECTED] wrote: hi, isn't it possible to create a FormComponentLabel for Radio?? best regards, --- jan. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Applet not loaded in 1.2.6, but in 1.2.5, and viceversa, depending on codebase [jetty-server]
in 1.2.5 wicket inconsistently used urls /context/servlet?wicket:interface and /context/servlet/?wicket:interface, now it consistently uses the latter. that extra / might be what is causing the problem for you. -igor On 5/3/07, manu [EMAIL PROTECTED] wrote: Dear people, I have found the following strange behavior in wicket-1.2.6: Since long time ago I've been using wicket-1.2.5, and testing a webPage where there's an applet with the following codebase: param name=codebase value=lib / Yesterday, I decided to update to wicket-1.2.6, and then, while testing this webPage again, I found ClassNotFoundException during applet's loading. So, after a little time doing try-and-error, I noticed that changing the codebase to the following, then it worked fine: param name=codebase value=../lib / I am using the lightweight jetty-server with the configuration inherited from wicket-examples. Nothing has changed during this development time, then, only the classpath in my Eclipse project, were I just changed to wicket-1.2.6. Any idea why is this happening? Thank you ;) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Reusable Panels/Nested Forms/Models and weird behaviour
that looks much much better. you can still get rid of those two models for the dropdownlist with: private AddressEntry quickAddress; Private ListAddressEntry quickAddresses=new ArrayListAddressEntry(); and then add(new DropDownChoice(id, new PropertyModel(this, quickAddress), new PropertyModel(this, quickAddresses),...) that way you never actually have to reference model objects directly, your code that deals with these addresses then simply works with those two fields. it keeps wicket out of the way. eg private void performLookup(boolean showAllPremises) { ...ListAddressEntry entries = AddressUtil.getAddresses( getAddress().getPostcode(), showAllPremises); addressListModel.setObject(null, entries); becomes quickAddresses=AddressUtil.getAddresses(getAddress().getPostcode(), showAllPremises); much simpler/cleaner imho -igor On 5/3/07, John RDF [EMAIL PROTECTED] wrote: The drop down list does not directly relate to the form model (as the visible value is a user readable summary not the data structure I need) and so I need to keep a reference to something even if its a model or two. Take a look at this version which still works with same quirks.. Any better? http://www.nabble.com/file/8198/AddressPanel.java AddressPanel.java John Eelco Hillenius wrote: One thing that I'm wondering is why you declare your components as member variables. It's not really wrong, but it's more code without any advantage, and potentially scope creep (in that you might be tempted to use the components directly rather then to work through models. Eelco On 5/3/07, John RDF [EMAIL PROTECTED] wrote: Thanks Igor and I am curious. Why is it nasty in your opinion? Which parts? I am open to trying other ways that I am not aware of. This is not how I originally wanted to implement it but I have tried many ways so far (different models on different components in the hierarchy, nesting/inheriting models etc) and this is the closest to working so far. Other ways I tried which seemed more elegant had more serious problems in practice especially when compounding and nesting panels more times which I need. John igor.vaynberg wrote: although that is some nasty code wrt to wicket, i dont see why anything would go wrong. try and replicate it in a quickstart and someone will go through it. -igor On 5/2/07, John RDF [EMAIL PROTECTED] wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. AddressPanel.javahttp://www.nabble.com/file/8180/AddressPanel.java AddressPanel.html http://www.nabble.com/file/8181/AddressPanel.html AddressDO.java http://www.nabble.com/file/8182/AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: Reusable Panels/Nested Forms/Models and weird behaviour http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10287153 Sent from the Wicket - User mailing list archivehttp://www.nabble.com/Wicket---User-f13976.htmlat Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Header contributions and AjaxLink
please create a jira issue. -igor On 5/3/07, John Krasnay [EMAIL PROTECTED] wrote: I think I may have found a bug with header contributions, AjaxLink, and Internet Explorer. Here's a test page: html body div wicket:id=subComponent/div /body /html ---8--- public class TestPage extends WebPage { public TestPage() { add(new SubComponent(subComponent)); } } SubComponent is defined as follows: html head wicket:head wicket:link link rel=stylesheet type=text/css href=SubComponent.css /wicket:link /wicket:head /head body wicket:panel a wicket:id=link href=#Click Me/a span wicket:id=label/span /wicket:panel /body /html ---8--- public class SubComponent extends Panel { private int count = 0; public SubComponent(String id) { super(id); add(new AjaxLink(link) { @Override public void onClick(AjaxRequestTarget target) { count++; target.addComponent(SubComponent.this); } }); add(new Label(label, new PropertyModel(this, count))); setOutputMarkupId(true); } public int getCount() { return count; } } Under Firefox this works fine: clicking the Click Me link causes the count to increment on the page. But under IE, the number does not get updated on the page (even though the count is being incremented on the server). The debug window gives the following error: INFO: INFO: Initiating Ajax GET request on /arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0random= 0.8818904450460203 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (656 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution![CDATA[head xmlns:wicket=http://wicket.sourceforge.net; link href=/arp/resources/com.td.idcs.arp.dev.SubComponent/SubComponent_en_US.css rel=stylesheet type=text/css /head]]/header-contributioncomponent id=subComponent ![CDATA[div id=subComponent a href=# onclick=var wcall=wicketAjaxGet('/arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0', function() { }, function() { });return !wcall; id=subComponent_linkClick Me/a span3/span /div]]/component/ajax-response ERROR: Error while parsing response: Object required INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... The problem appears to be the wicket:head portion of the SubComponent. Comment this out and it works correctly on both IE and Firefox. Note that SubComponent.css is empty. I've tried this on Wicket 1.2.4 and 1.2.6. Any thoughts? jk - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-stuff GMAP
On 5/3/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Obvoiusly I've tried the 1.3 beta1 release but its not in the maven repo yet. Being able to deploy the artifacts to the central repo is something that is currently being worked on for incubator projects. Until that is sorted out, you'll have to do with the incubator wicket repository mentioned in the release notes. http://people.apache.org/dist/incubator/wicket/*/m2-repo Martijn -- Learn Wicket at ApacheCon Europe: http://apachecon.com Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wicketframework.org - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup.. Correct usage (with enum values)?
Igor, I really suspect it is also related to my other problem post (see AddressPanel test case) with nested forms and models working incorrectly inside, as when I put the same radio button code outside of our app (which needs nested forms and this is a bit of a show stopper for us) the radio buttons then function correctly. I willl add radio buttons to my previous test to confirm if its related when I get a chance. I am also downloading and building 1.3 to see if something there has fixed it since 1.2.6.. Thanks, John igor.vaynberg wrote: code looks ok, pretty strange. can you create a quickstart so we can see what goes wrong? -igor On 5/3/07, John RDF [EMAIL PROTECTED] wrote: I have problems with radio groups. According to docs and tutorials the group's model object should be set to the selected radio model object. However, in my case (using enum values which must be set on an enum property) the group's model object always seems to be null. I based my code on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html My code below produces.. test was pressed:null, null, Tenant, CompanyTenant // RadioGroup group = new RadioGroup(reportType, new PropertyModel(getReportTenantDTO(), reportType)); Radio radIndividual = new Radio(individual, new Model(ReportType.Tenant )); Radio radCompany = new Radio(company, new Model(ReportType.CompanyTenant)); group.add(radIndividual); Button test = new Button(test){ protected void onSubmit(){ info(test was pressed: + getReportTenantDTO().getReportType() + , + group.getModelObject() + , + radIndividual.getModelObject() + , + radCompany.getModelObject()); } }; -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10308615 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Header contributions and AjaxLink
I can look into it if you provide a quick start. -Matej On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: please create a jira issue. -igor On 5/3/07, John Krasnay [EMAIL PROTECTED] wrote: I think I may have found a bug with header contributions, AjaxLink, and Internet Explorer. Here's a test page: html body div wicket:id=subComponent/div /body /html ---8--- public class TestPage extends WebPage { public TestPage() { add(new SubComponent(subComponent)); } } SubComponent is defined as follows: html head wicket:head wicket:link link rel=stylesheet type=text/css href=SubComponent.css /wicket:link /wicket:head /head body wicket:panel a wicket:id=link href=#Click Me/a span wicket:id=label/span /wicket:panel /body /html ---8--- public class SubComponent extends Panel { private int count = 0; public SubComponent(String id) { super(id); add(new AjaxLink(link) { @Override public void onClick(AjaxRequestTarget target) { count++; target.addComponent(SubComponent.this ); } }); add(new Label(label, new PropertyModel(this, count))); setOutputMarkupId(true); } public int getCount() { return count; } } Under Firefox this works fine: clicking the Click Me link causes the count to increment on the page. But under IE, the number does not get updated on the page (even though the count is being incremented on the server). The debug window gives the following error: INFO: INFO: Initiating Ajax GET request on /arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0random=0.8818904450460203 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (656 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution![CDATA[head xmlns:wicket=http://wicket.sourceforge.net; link href=/arp/resources/com.td.idcs.arp.dev.SubComponent/SubComponent_en_US.css rel=stylesheet type=text/css /head]]/header-contributioncomponent id=subComponent ![CDATA[div id=subComponent a href=# onclick=var wcall=wicketAjaxGet('/arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0', function() { }, function() { });return !wcall; id=subComponent_linkClick Me/a span3/span /div]]/component/ajax-response ERROR: Error while parsing response: Object required INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... The problem appears to be the wicket:head portion of the SubComponent. Comment this out and it works correctly on both IE and Firefox. Note that SubComponent.css is empty. I've tried this on Wicket 1.2.4 and 1.2.6. Any thoughts? jk - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] RadioGroup.. Correct usage (with enum values)?
there is no nested form support in 1.2, only 1.3. so that might be it? -igor On 5/3/07, John RDF [EMAIL PROTECTED] wrote: Igor, I really suspect it is also related to my other problem post (see AddressPanel test case) with nested forms and models working incorrectly inside, as when I put the same radio button code outside of our app (which needs nested forms and this is a bit of a show stopper for us) the radio buttons then function correctly. I willl add radio buttons to my previous test to confirm if its related when I get a chance. I am also downloading and building 1.3 to see if something there has fixed it since 1.2.6.. Thanks, John igor.vaynberg wrote: code looks ok, pretty strange. can you create a quickstart so we can see what goes wrong? -igor On 5/3/07, John RDF [EMAIL PROTECTED] wrote: I have problems with radio groups. According to docs and tutorials the group's model object should be set to the selected radio model object. However, in my case (using enum values which must be set on an enum property) the group's model object always seems to be null. I based my code on the tutorial at http://cwiki.apache.org/WICKET/using-radiogroups.html My code below produces.. test was pressed:null, null, Tenant, CompanyTenant // RadioGroup group = new RadioGroup(reportType, new PropertyModel(getReportTenantDTO(), reportType)); Radio radIndividual = new Radio(individual, new Model( ReportType.Tenant )); Radio radCompany = new Radio(company, new Model(ReportType.CompanyTenant)); group.add(radIndividual); Button test = new Button(test){ protected void onSubmit(){ info(test was pressed: + getReportTenantDTO().getReportType() + , + group.getModelObject() + , + radIndividual.getModelObject() + , + radCompany.getModelObject()); } }; -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10301382 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/RadioGroup..-Correct-usage-%28with-enum-values%29--tf3685397.html#a10308615 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] TinyMCE for wicket 1.3 not a panel???
Hey all, I am trying to get a TinyMCEPanel jar for Wicket 1.3. I've gotten the tinymce contrib. from the wicketstuff trunk, and attempted to compile and package it using the maven script. It compiles just fine but when I go to build the packages, I get this error in a few place: c:\Eclipse_WS\wicketstuff\wicket-stuff_trunk\wicket-contrib-tinymce\src\ test\wicket\contrib\tinymce\TinyMCEPanelTest.java:[63,39] incompatible types found : wicket.contrib.tinymce.TinyMCEPanel required: org.apache.wicket.markup.html.panel.Panel and basically this is occurring everywhere the TinyMCEPanel object is being returned. This mcepanel is definitely a sub class of a wicket panel, and I am confident the maven script is using wicket 1.3 incubator snapshot. When I remove the test classes I can build the package just fine. But when I attempt to use this mce jar in my wicket application, I cannot add this TinyMCEPanel object to the markup container because it thinks it is not a component. Basically the same problem the test is having. Does anyone know what is going on with this, or is there a pre-built jar against wicket 1.3 out there which works? Any help is appreciated. Thanks. -Par - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] possible to access wicket session via jsp?
Yep, I was over thinking things all I needed was: filter-mapping filter-nameWicketSessionFilter/filter-name url-pattern/pages/index.jsp/url-pattern /filter-mapping simple simple. Cheers, Benjamin On 5/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: org.apache.wicket.protocol.http.servlet.WicketSessionFilter Eelco On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote: if you use the wicket filter then in a jsp (if the filter is in the jsp chain) then you should be able to do: Session.get() to get the session.. johan On 5/3/07, Benjamin Ranck [EMAIL PROTECTED] wrote: This is obviously a horrible hack to take care of a short term problem, but is it possible, using WicketSessionFilter to access the wicket session within a JSP? Any ideas on what the mapping would be? Thanks, Benjamin - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- /* http://www.benjaminranck.com */ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding extra row to table in ListView
Igor, Yes, that makes sense. However, I get the data for the list using a single HQL query with joins and such. If I changed to a ListView within a ListView, then wouldn't I also need to change to do many HQL queries to build a bunch of small lists within a big list? I don't know what the performance implications would be of making this change. Also, last night I was working on switching it to a DataView instead of a ListView. Could a single DataProvider supply the data for both the outer and inner views? Thanks! Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what you need is a lsitview in a listview the first outputs the date row, and then a listview that outputs rows for that date. makes sense? -igor On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new SimpleDateFormat(h:mma); ReportRow rr = (ReportRow) item.getModelObject(); Date update = getStartDate(rr.getStartTime()); if (current == null || current.getTime() update.getTime()) { current = update; item.add(new Label(date,dateDateFormat.format(rr.getStartTime(; } else { item.add(new Label(lastName,rr.getLastName())); item.add(new Label(firstName,rr.getFirstName())); item.add(new Label(startTime,timeDateFormat.format(rr.getStartTime(; item.add (new Label(endTime,timeDateFormat.format(rr.getEndTime(; } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding extra row to table in ListView
you can still have only one list. then have an imodel implementation that filters that list on the fly. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Yes, that makes sense. However, I get the data for the list using a single HQL query with joins and such. If I changed to a ListView within a ListView, then wouldn't I also need to change to do many HQL queries to build a bunch of small lists within a big list? I don't know what the performance implications would be of making this change. Also, last night I was working on switching it to a DataView instead of a ListView. Could a single DataProvider supply the data for both the outer and inner views? Thanks! Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what you need is a lsitview in a listview the first outputs the date row, and then a listview that outputs rows for that date. makes sense? -igor On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new SimpleDateFormat(h:mma); ReportRow rr = (ReportRow) item.getModelObject(); Date update = getStartDate(rr.getStartTime()); if (current == null || current.getTime() update.getTime()) { current = update; item.add(new Label(date,dateDateFormat.format(rr.getStartTime(; } else { item.add(new Label(lastName,rr.getLastName())); item.add(new Label(firstName,rr.getFirstName ())); item.add(new Label(startTime,timeDateFormat.format(rr.getStartTime(; item.add (new Label(endTime,timeDateFormat.format(rr.getEndTime(; } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Test Case - Nested Forms/Models and weird behaviour
i guess you shouldve mentioned you are using 1.2.6, because nested forms are 1.3 and up. what you can do is change: class AddressForm extends Form to class AddressForm extends WebMarkupContainer and in AddressForm.html change form to div then things should start working properly. of course the whole form will be validated, when you press lookup. which is not something you want, but you have to live with until you go 1.3 or create validators that only validate conditionally. -igor On 5/3/07, John RDF [EMAIL PROTECTED] wrote: OK. Below is a test case quick start application eclipse project that produces the quirks I have been describing. ftp://ftpuser:[EMAIL PROTECTED]/wicket-quickstart-1.2.6.rar The test procedure to reproduce strange behaviour is as follows. 1. Enter postcode in first address. 2. Hit address search (you will then see your postcode appearing in other fields unexpectedly) 3. Select first option from first drop down and hit use address (This will appear to work apart from the extraneous postcodes) 4. Select second option from first drop down and hit use address (then all addresses will be filled unexpectedly) I suspect this behaviour relates to nested forms as without the outer form it appears to work as expected. I am also beginning to suspect that this may be the root of my other problem with radio groups behaving oddly. Hope this helps and thanks, John John RDF wrote: I am still having real trouble making truly reusable panels for domain objects that work consistently without quirky behaviour. I attach my code for an address panel. It contains a form as it has buttons for looking up streets from the postcode. This panel needs to be embedded with multiple instances in same page and/or other forms and panels. The lookup etc works except it has some strange side effects. When I first enter a postcode and press the lookup button, all the other postcode fields are populated further down the page. Then when I select an address from the now populated drop down list, and then press use selected button, all the remaining fields of all other address forms also get populated! This weird behaviour only occurs in a downwards direction thoughout the page and only when the user has not already entered something in a field. Can people please look at the code below. I cannot see why it should behave this way. http://www.nabble.com/file/8180/AddressPanel.java AddressPanel.java http://www.nabble.com/file/8181/AddressPanel.html AddressPanel.html http://www.nabble.com/file/8182/AddressDO.java AddressDO.java The form that adds these panels does it as below add(new AddressPanel(proposedAddress, getCreditCheckDTO().getProposedAddress())); add(new AddressPanel(currentAddress, getCreditCheckDTO().getCurrentAddress())); add(new AddressPanel(previousAddress, getCreditCheckDTO().getPreviousAddress())); The form has a compound property model has a pojo for its model object. This is returned by getCreditCheckDTO(). Thanks in advance, John -- View this message in context: http://www.nabble.com/Reusable-Panels-Nested-Forms-Models-and-weird-behaviour-tf3680964.html#a10305933 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-stuff GMAP
Yup got the one from trunk, and later I grabbed the one you mention (1.2) Have sometrouble compiling it but I think its my machine thats acting up. Iulian Costan wrote: where did you checked out gmap sources from? trunk? i dont know if any wicket 1.3 artifacts are deployed somewhere, but you can checkout wicket source code as well and build it for yourself as a quick workaround. or you can get gmap code from 1.2 branch, that depends on 1.2.* wicket that is available on central repository for sure. /iulian On 5/3/07, *Nino Saturnino Martinez Vazquez Wael * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Obvoiusly I've tried the 1.3 beta1 release but its not in the maven repo yet. Nino Saturnino Martinez Vazquez Wael wrote: Hi Im trying to get the GMAP contribution to work, i've checked it out from svn. But it has a dependency to wicket 1.3 snapshot, which does not exist. ...dependency: dependency groupIdorg.apache.wicket/groupId artifactIdwicket/artifactId version1.3.0-incubating-SNAPSHOT/version /dependency ...dependency Does anybody have a jar or a working source, how do I solve this? regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket-stuff GMAP
Martijn Dashorst wrote: On 5/3/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Obvoiusly I've tried the 1.3 beta1 release but its not in the maven repo yet. Being able to deploy the artifacts to the central repo is something that is currently being worked on for incubator projects. Until that is sorted out, you'll have to do with the incubator wicket repository mentioned in the release notes. http://people.apache.org/dist/incubator/wicket/*/m2-repo Martijn ahh thanks:) - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Right, I'll start to compile things. On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it
[Wicket-user] DatePicker for a label
Is there a way to use the DatePicker with a label component? I would like to be able to select a date from the DatePicker and change the value of the label and also to be able to capture the new value to persist it. Does anybody have any ideea on how can I do id? Thanks, Dragos - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker for a label
you will have to create a panel that contains a hiddeninputfield to capture the input, the label, and the datepicker. then create javascript that wires all these together. -igor On 5/3/07, Dragos Bobes [EMAIL PROTECTED] wrote: Is there a way to use the DatePicker with a label component? I would like to be able to select a date from the DatePicker and change the value of the label and also to be able to capture the new value to persist it. Does anybody have any ideea on how can I do id? Thanks, Dragos - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of
Re: [Wicket-user] Header contributions and AjaxLink
https://issues.apache.org/jira/browse/WICKET-527 Quickstart attached to the JIRA. Thanks! jk On Thu, May 03, 2007 at 06:48:14PM +0200, Matej Knopp wrote: I can look into it if you provide a quick start. -Matej On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: please create a jira issue. -igor On 5/3/07, John Krasnay [EMAIL PROTECTED] wrote: I think I may have found a bug with header contributions, AjaxLink, and Internet Explorer. Here's a test page: html body div wicket:id=subComponent/div /body /html ---8--- public class TestPage extends WebPage { public TestPage() { add(new SubComponent(subComponent)); } } SubComponent is defined as follows: html head wicket:head wicket:link link rel=stylesheet type=text/css href=SubComponent.css /wicket:link /wicket:head /head body wicket:panel a wicket:id=link href=#Click Me/a span wicket:id=label/span /wicket:panel /body /html ---8--- public class SubComponent extends Panel { private int count = 0; public SubComponent(String id) { super(id); add(new AjaxLink(link) { @Override public void onClick(AjaxRequestTarget target) { count++; target.addComponent(SubComponent.this ); } }); add(new Label(label, new PropertyModel(this, count))); setOutputMarkupId(true); } public int getCount() { return count; } } Under Firefox this works fine: clicking the Click Me link causes the count to increment on the page. But under IE, the number does not get updated on the page (even though the count is being incremented on the server). The debug window gives the following error: INFO: INFO: Initiating Ajax GET request on /arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0random=0.8818904450460203 INFO: Invoking pre-call handler(s)... INFO: Received ajax response (656 characters) INFO: ?xml version=1.0 encoding=UTF-8?ajax-responseheader-contribution![CDATA[head xmlns:wicket=http://wicket.sourceforge.net; link href=/arp/resources/com.td.idcs.arp.dev.SubComponent/SubComponent_en_US.css rel=stylesheet type=text/css /head]]/header-contributioncomponent id=subComponent ![CDATA[div id=subComponent a href=# onclick=var wcall=wicketAjaxGet('/arp/?wicket:interface=:0:subComponent:link::IBehaviorListenerwicket:behaviorId=0', function() { }, function() { });return !wcall; id=subComponent_linkClick Me/a span3/span /div]]/component/ajax-response ERROR: Error while parsing response: Object required INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... The problem appears to be the wicket:head portion of the SubComponent. Comment this out and it works correctly on both IE and Firefox. Note that SubComponent.css is empty. I've tried this on Wicket 1.2.4 and 1.2.6. Any thoughts? jk - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
[Wicket-user] Encountered issues during quickStack
Hello, I am evaluating Wicket and encountered some issues during development. I found solutions by myself but post here my notes so that the docs may be updated or the bug may be fixed. In the helloWorld example you might consider to explain more precisely that the webpage and the class are places in the same folder and must have the same name. The first one is not at all common to a newbee. Fix for AExampleAjaxCounter example. The modelChanged call was missing and let to old page exception. here is a code snipped fixing the code. private Label label; public Page1() { add(new Label(label1, This is in the subclass Page1)); Model model = new Model() { private int counter = 0; public Object getObject(Component arg0) { return new Integer(counter++); } }; add(new Link(link){ public void onClick() { label.modelChanged(); } }); label =new Label(counter, model); add(label); } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Encountered issues during quickStack
Hello, I apologize for the first issue. But marking this in bold might help even blind people like me. ;-) Sebastian Hennebrueder schrieb: Hello, I am evaluating Wicket and encountered some issues during development. I found solutions by myself but post here my notes so that the docs may be updated or the bug may be fixed. In the helloWorld example you might consider to explain more precisely that the webpage and the class are places in the same folder and must have the same name. The first one is not at all common to a newbee. Fix for AExampleAjaxCounter example. The modelChanged call was missing and let to old page exception. here is a code snipped fixing the code. private Label label; public Page1() { add(new Label(label1, This is in the subclass Page1)); Model model = new Model() { private int counter = 0; public Object getObject(Component arg0) { return new Integer(counter++); } }; add(new Link(link){ public void onClick() { label.modelChanged(); } }); label =new Label(counter, model); add(label); } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding extra row to table in ListView
Igor, Upon further thought, how can a ListView inside a ListView solve this? Wouldn't the hierarchy cause the html to be messed up? I can't have TRs within TRs. The inner listview isn't putting child data inside of the TR, it needs to make TRs that are siblings of the outer listview. The output should be like this: table tr wicket:id=groupView --- Outer listview td wicket:id=groupTitle/td /tr tr wicket:id=dataView --- Inner listview td wicket:id=data/td /tr /table Not like this: table tr wicket:id=groupView --- Outer listview td wicket:id=groupTitle/td tr wicket:id=dataView --- Inner listview td wicket:id=data/td /tr /tr /table What am I not getting? Thanks, Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can still have only one list. then have an imodel implementation that filters that list on the fly. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Yes, that makes sense. However, I get the data for the list using a single HQL query with joins and such. If I changed to a ListView within a ListView, then wouldn't I also need to change to do many HQL queries to build a bunch of small lists within a big list? I don't know what the performance implications would be of making this change. Also, last night I was working on switching it to a DataView instead of a ListView. Could a single DataProvider supply the data for both the outer and inner views? Thanks! Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what you need is a lsitview in a listview the first outputs the date row, and then a listview that outputs rows for that date. makes sense? -igor On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new SimpleDateFormat(h:mma); ReportRow rr = (ReportRow) item.getModelObject(); Date update = getStartDate(rr.getStartTime()); if (current == null || current.getTime() update.getTime()) { current = update; item.add(new Label(date,dateDateFormat.format(rr.getStartTime(; } else { item.add(new Label(lastName,rr.getLastName())); item.add(new Label(firstName,rr.getFirstName())); item.add(new Label(startTime,timeDateFormat.format(rr.getStartTime(; item.add (new Label(endTime,timeDateFormat.format (rr.getEndTime(; } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Adding extra row to table in ListView
you dont have to attach the listview to the trs though in 1.2.6 you can attach it to span and do dataview.newitem(..) { return super.newitem (..).setrenderbodyonly(true); table span wicket:id=groupView --- Outer listview tr td wicket:id=groupTitle/td /tr span wicket:id=dataView --- Inner listview tr td wicket:id=data/td /tr /span /span /table in 1.3 we have a placeholder that makes this easier table wicket:container wicket:id=groupView --- Outer listview tr td wicket:id=groupTitle/td /tr wicket:container wicket:id=dataView --- Inner listview tr td wicket:id=data/td /tr /wicket:container /wicket:container /table advantage of wicket:container is that it will validate markup even at design time, and it is stripped when strip-wicket-tags option is enabled. rarely you do hit these cases where doing this in a jsp is easier because the jsp renders top-down, but in my experience they are few and far in between. and more importantly we have solutions to make them work. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Upon further thought, how can a ListView inside a ListView solve this? Wouldn't the hierarchy cause the html to be messed up? I can't have TRs within TRs. The inner listview isn't putting child data inside of the TR, it needs to make TRs that are siblings of the outer listview. The output should be like this: table tr wicket:id=groupView --- Outer listview td wicket:id=groupTitle/td /tr tr wicket:id=dataView --- Inner listview td wicket:id=data/td /tr /table Not like this: table tr wicket:id=groupView --- Outer listview td wicket:id=groupTitle/td tr wicket:id=dataView --- Inner listview td wicket:id=data/td /tr /tr /table What am I not getting? Thanks, Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can still have only one list. then have an imodel implementation that filters that list on the fly. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Yes, that makes sense. However, I get the data for the list using a single HQL query with joins and such. If I changed to a ListView within a ListView, then wouldn't I also need to change to do many HQL queries to build a bunch of small lists within a big list? I don't know what the performance implications would be of making this change. Also, last night I was working on switching it to a DataView instead of a ListView. Could a single DataProvider supply the data for both the outer and inner views? Thanks! Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what you need is a lsitview in a listview the first outputs the date row, and then a listview that outputs rows for that date. makes sense? -igor On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new SimpleDateFormat(h:mma); ReportRow rr = (ReportRow) item.getModelObject(); Date update = getStartDate(rr.getStartTime()); if (current == null || current.getTime() update.getTime()) { current = update; item.add(new Label(date,dateDateFormat.format(rr.getStartTime(; } else { item.add(new Label(lastName,rr.getLastName ())); item.add(new Label(firstName,rr.getFirstName())); item.add(new
Re: [Wicket-user] Adding extra row to table in ListView
Sweet! I do have it working with an extra tag (where you use the span), but I didn't like that it rendered invalid html. Didn't know about setrenderbodyonly. Thanks for the tip! When I move to 1.3, I'll use the container approach. Thanks Igor! Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you dont have to attach the listview to the trs though in 1.2.6 you can attach it to span and do dataview.newitem(..) { return super.newitem(..).setrenderbodyonly(true); table span wicket:id=groupView --- Outer listview tr td wicket:id=groupTitle/td /tr span wicket:id=dataView --- Inner listview tr td wicket:id=data/td /tr /span /span /table in 1.3 we have a placeholder that makes this easier table wicket:container wicket:id=groupView --- Outer listview tr td wicket:id=groupTitle/td /tr wicket:container wicket:id=dataView --- Inner listview tr td wicket:id=data/td /tr /wicket:container /wicket:container /table advantage of wicket:container is that it will validate markup even at design time, and it is stripped when strip-wicket-tags option is enabled. rarely you do hit these cases where doing this in a jsp is easier because the jsp renders top-down, but in my experience they are few and far in between. and more importantly we have solutions to make them work. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Upon further thought, how can a ListView inside a ListView solve this? Wouldn't the hierarchy cause the html to be messed up? I can't have TRs within TRs. The inner listview isn't putting child data inside of the TR, it needs to make TRs that are siblings of the outer listview. The output should be like this: table tr wicket:id=groupView --- Outer listview td wicket:id=groupTitle/td /tr tr wicket:id=dataView --- Inner listview td wicket:id=data/td /tr /table Not like this: table tr wicket:id=groupView --- Outer listview td wicket:id=groupTitle/td tr wicket:id=dataView --- Inner listview td wicket:id=data/td /tr /tr /table What am I not getting? Thanks, Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can still have only one list. then have an imodel implementation that filters that list on the fly. -igor On 5/3/07, Tauren Mills [EMAIL PROTECTED] wrote: Igor, Yes, that makes sense. However, I get the data for the list using a single HQL query with joins and such. If I changed to a ListView within a ListView, then wouldn't I also need to change to do many HQL queries to build a bunch of small lists within a big list? I don't know what the performance implications would be of making this change. Also, last night I was working on switching it to a DataView instead of a ListView. Could a single DataProvider supply the data for both the outer and inner views? Thanks! Tauren On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: what you need is a lsitview in a listview the first outputs the date row, and then a listview that outputs rows for that date. makes sense? -igor On 5/2/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a custom ListView to generate a table. The content of the table consists of four columns of data. I have that working just fine. But I'd like to add an additional table row on occation to group rows of data in the table. Thus, there would be a groupRow that specifies a date, then many availRows of data for that date, then another groupRow, more availRows, and so forth. Here is some example HTML. I know that this HTML and code will not work the way it is now -- it is just meant to illustrate. The first TR should only be displayed when the date changes. Otherwise, only the second TR should display in each populateItem. table tr wicket:id=groupRow td colspan=4 wicket:id=date/td /tr tr wicket:id=availRow td wicket:id=lastName/td td wicket:id=firstName/td td wicket:id=startTime/td td wicket:id=endTime/td /tr /table Here is the custom ListView's populateItem: protected void populateItem(final ListItem item) { SimpleDateFormat dateDateFormat = new SimpleDateFormat(M/d/); SimpleDateFormat timeDateFormat = new
[Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?
I've got some groovy code which processes an xml file and generates some html. Right now I do it at build time, but would really prefer to do it at run time. I've got some code hooked up which does so, but all I get is an empty page. I'm using wicket 1.3.0-snapshot (prior to the name change) when building the page, I run the following groovy code, where the buffer contains the html I generate. MarkupParser parser = new MarkupParser( new XmlPullParser() ) Markupmarkup = parser.parse( buffer ) def markupStream= new MarkupStream( markup ) page.setMarkupStream( markupStream ) I've tried overriding onRender in the page java code and calling renderComponent with my markup stream, but I still don't get anything showing. It works with the same html generated at build time. Am I way off base and this just won't work, or do I have some details mucked up? Thanks, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?
see IMarkupResourceStreamProvider, there is also an example in wicket-examples that shows custom markup loading. -igor On 5/3/07, Thomas R. Corbin [EMAIL PROTECTED] wrote: I've got some groovy code which processes an xml file and generates some html. Right now I do it at build time, but would really prefer to do it at run time. I've got some code hooked up which does so, but all I get is an empty page. I'm using wicket 1.3.0-snapshot (prior to the name change) when building the page, I run the following groovy code, where the buffer contains the html I generate. MarkupParser parser = new MarkupParser( new XmlPullParser() ) Markupmarkup = parser.parse( buffer ) def markupStream= new MarkupStream( markup ) page.setMarkupStream( markupStream ) I've tried overriding onRender in the page java code and calling renderComponent with my markup stream, but I still don't get anything showing. It works with the same html generated at build time. Am I way off base and this just won't work, or do I have some details mucked up? Thanks, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called pro wicket http://www.amazon.com/Pro-Wicket-Experts-Voice-Java/dp/1590597222/ref=pd_bbs_sr_1/103-4798570-8657439?ie=UTF8s=booksqid=1178205890sr=8-1 . But until it gets here (Argentina) would anyone point me in the right direction to read something on-line. What I am looking for is a tutorial / reference / on-line book / etc. covering the CORE, architecture, vision, a guide on how to structure your design. I have very successfully built a good enough demo, so I got around the reference samples, some docs, and this mailing list. But I cannot say at all that I know wicket. I would very much like to learn more about its internals 'cause I think that will also guide me to better designs by knowing more of wicket potentials. Thanks in advance, f(t) PS: Does the name wicket comes from being a real wicked as in cool or awsome framework or from the name of the cutest EWOK on Episode 6? XD.
[Wicket-user] RadioChoice with ajax in wicket 1.3?
I am getting an error that a RadioChoice control doesn't work via ajax... the getInputAsArray() method on the FormComponent returns null. I did see a post indicating that this was a bug in 1.2... [ wicket-Bugs-1501513 ] RadioGroup/RadioChoice doesn't work with AjaxUpdateBehavior http://www.nabble.com/--wicket-Bugs-1501513---RadioGroup-RadioChoice-doesn%27t-work-with-AjaxUpdateBehavior-tf1740654.html#a4730009 Was this ever resolved? Does it work in 1.3? Thanks, Jamie -- View this message in context: http://www.nabble.com/RadioChoice-with-ajax-in-wicket-1.3--tf3689281.html#a10314203 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Can we vote on this issue? can I call this an issue? Igor gracefully pointed me to the Model article in the wiki, but this article is mostly Object Structure, and How to Apply it... but lacks a little on how is model updated and passed throughout the framework. It surely taught me though. :) Is it possible to ask understood community members to divide papers or small overview articles on different aspects like the ones listed below? And therefore we might have some good data to compile into a nice PDF regarding Wicket's inner workings and architecture. With a good paper like that one, the goal would be to auto-answer questions like this one: *Is it possible to use setMarkupStream to assign html to a web page?* (posted a minute ago by Thomas R. Corbin) This is a question regarding inner workings, because the Answer is some IMarkupResourceStreamProvider, and where is this information a part from articles on How-To's. Wicket is Awsome, this should be written on some paper showing architecture and core components behavior. regards to all, -f(t) On 5/3/07, Matthew Kwong [EMAIL PROTECTED] wrote: I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean. francisco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: our wiki has links to various articles that might be of help to you. browsing the wiki is usually also good. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Hello everyone, I am about to buy this book called
Re: [Wicket-user] Good Tutorial on core wicket
you can feel free to vote, but i would warn to expect very little help from the core committer group. like i said, between doing everything else we have no time to write a book. in fact eelco and martijn are working on wicket in action and so definetely do not have time to write another. i dont know if they are planning on having chapters that cover this stuff. you might want to discuss that with them. maybe they are willing to add user contributions to the book on this, maybe not, maybe they are already writing about this. what we are available for is to answer specific questions. the rest is up to the users. we have the wiki, feel free to collaborate with others and ask us for clarifications/reviews. my 2c. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Can we vote on this issue? can I call this an issue? Igor gracefully pointed me to the Model article in the wiki, but this article is mostly Object Structure, and How to Apply it... but lacks a little on how is model updated and passed throughout the framework. It surely taught me though. :) Is it possible to ask understood community members to divide papers or small overview articles on different aspects like the ones listed below? And therefore we might have some good data to compile into a nice PDF regarding Wicket's inner workings and architecture. With a good paper like that one, the goal would be to auto-answer questions like this one: *Is it possible to use setMarkupStream to assign html to a web page?* (posted a minute ago by Thomas R. Corbin) This is a question regarding inner workings, because the Answer is some IMarkupResourceStreamProvider, and where is this information a part from articles on How-To's. Wicket is Awsome, this should be written on some paper showing architecture and core components behavior. regards to all, -f(t) On 5/3/07, Matthew Kwong [EMAIL PROTECTED] wrote: I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor
Re: [Wicket-user] Good Tutorial on core wicket
the models wiki page is a perfect example of a user-contributed documentation where core committers only reviewed and gave feedback. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Can we vote on this issue? can I call this an issue? Igor gracefully pointed me to the Model article in the wiki, but this article is mostly Object Structure, and How to Apply it... but lacks a little on how is model updated and passed throughout the framework. It surely taught me though. :) Is it possible to ask understood community members to divide papers or small overview articles on different aspects like the ones listed below? And therefore we might have some good data to compile into a nice PDF regarding Wicket's inner workings and architecture. With a good paper like that one, the goal would be to auto-answer questions like this one: *Is it possible to use setMarkupStream to assign html to a web page?* (posted a minute ago by Thomas R. Corbin) This is a question regarding inner workings, because the Answer is some IMarkupResourceStreamProvider, and where is this information a part from articles on How-To's. Wicket is Awsome, this should be written on some paper showing architecture and core components behavior. regards to all, -f(t) On 5/3/07, Matthew Kwong [EMAIL PROTECTED] wrote: I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing else I could do would be nice to help out. Regards, f(t) On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think we have something that is focused on the core architecture. if you have specific questions we will be happy to answer them and maybe you can compile them into a document. it is hard to find time to work specifically on high level documentation because this list, coding, jira, javadoc, etc take up a lot of time. by the time someone gets to a point where they have enough knowledge to write such docs they are usually buried in fixing bugs :) -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: H igor, thanks, but could you be more specific. I do think I browsed the wiki but couldn't find what I was looking for. For instance: http://cwiki.apache.org/WICKET/documentation-index.html appears to list many referential How to's but not core framework architecture. I know there is a little bit in many of the reference samples. But is there a paper on module architecture and core objects. Other than the javadoc I mean.
Re: [Wicket-user] Good Tutorial on core wicket
LOL @ my 2c. My intension is not to point a defect or assign responsibility but to highlight a nice to have document/paper/whatever to address architecture design and core framework inner workings. If Elco is reading this, or Martijn, then please guys, put a chapter on it, or put some chapters on core framework. It would make an important book to have on wicket. regards to all, f(t) PS: Unanswered question, is it or not Wicket named after the ewok? ¬_¬' On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can feel free to vote, but i would warn to expect very little help from the core committer group. like i said, between doing everything else we have no time to write a book. in fact eelco and martijn are working on wicket in action and so definetely do not have time to write another. i dont know if they are planning on having chapters that cover this stuff. you might want to discuss that with them. maybe they are willing to add user contributions to the book on this, maybe not, maybe they are already writing about this. what we are available for is to answer specific questions. the rest is up to the users. we have the wiki, feel free to collaborate with others and ask us for clarifications/reviews. my 2c. -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Can we vote on this issue? can I call this an issue? Igor gracefully pointed me to the Model article in the wiki, but this article is mostly Object Structure, and How to Apply it... but lacks a little on how is model updated and passed throughout the framework. It surely taught me though. :) Is it possible to ask understood community members to divide papers or small overview articles on different aspects like the ones listed below? And therefore we might have some good data to compile into a nice PDF regarding Wicket's inner workings and architecture. With a good paper like that one, the goal would be to auto-answer questions like this one: *Is it possible to use setMarkupStream to assign html to a web page?* (posted a minute ago by Thomas R. Corbin) This is a question regarding inner workings, because the Answer is some IMarkupResourceStreamProvider, and where is this information a part from articles on How-To's. Wicket is Awsome, this should be written on some paper showing architecture and core components behavior. regards to all, -f(t) On 5/3/07, Matthew Kwong [EMAIL PROTECTED] wrote: I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. me too, I also think some more core concept needs more documentation, pro wicket is nice and can get you going with tables, ajax, pages, tabbedpanel etc, but 300pages does not reach to the point of explaining tons of stuffs, especially with new 1.3 features. I was waiting Wicket in action, any news still after the constructor changes drop? Matthew Paolo Di Tommaso wrote: Anyway Francisco is right, I'm also thinking that Wicket is really missing a good tutorial about core concepts. I'm not new to Wicket, I'm using it for about a year, but there still a lot aspects obscure to me like PageMap, page versioning, details of page request cycle and so on. Wicket is really a good framework that covers every details of the web application stack (and they are many and many not just web page rendering ..), but I'm thinking that a good tutorial about Wicket core concepts would be very useful to novice users as well as experts. Thank you. - Paolo On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: as far as models go http://cwiki.apache.org/confluence/display/WICKET/Working+with+Wicket+models -igor On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: I will be glad to help out in any way. Here are my thoughts to the community. If we could talk about core wiket ideas and implementations, for instance: Models (Concept, interfaces, implementations) Session Application Pages Listeners Versioning Request and Response Cycles Page Life Cycle. The thing is, it is not the same (AT ALL) to build a wicket application than it is to build a struts application (Other than struts sucks :P) which are the concepts and design guidelines we should have? That is what I am trying to address. Because of my current infinite ignorance, I might not be the right person to build this type of document. Although I could write some docs after I get an Idea from the Book Pro-Wicket or Wicket-Pro (don't remember just know) and migrate to 1.3, and do some other demos. I think I could start writing in about a month or so. Other than that any thing
Re: [Wicket-user] Good Tutorial on core wicket
On 5/3/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: LOL @ my 2c. i dont speak for everyone on the team -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Have you seen this in the wiki? It's a reasonable start on the sort of thing that I _think_ you're asking for. http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html Scott - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
I wonder why the indentation is all screwed up for the code at the bottom, the markup text looks correct to me... Gili Scott Swank wrote: Have you seen this in the wiki? It's a reasonable start on the sort of thing that I _think_ you're asking for. http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html Scott - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user signature.asc Description: OpenPGP digital signature - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
it is out of date for 1.3 -igor On 5/3/07, Scott Swank [EMAIL PROTECTED] wrote: Have you seen this in the wiki? It's a reasonable start on the sort of thing that I _think_ you're asking for. http://cwiki.apache.org/WICKET/lifecycle-of-a-wicket-application.html Scott - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?
On Thursday 03 May 2007 5:05 pm, Igor Vaynberg escreveu: see IMarkupResourceStreamProvider, there is also an example in wicket-examples that shows custom markup loading. Thanks. I think I'll have to go with the build time option because the getMarkupResourceStream( container, containerClass ) method gets called before any code in my constructor has a chance to look at the PageParameters to find out where the xml file is to be able to build the html. I don't see any way to delay the markup processing/loading until after I can examine the PageParameters. -igor On 5/3/07, Thomas R. Corbin [EMAIL PROTECTED] wrote: I've got some groovy code which processes an xml file and generates some html. Right now I do it at build time, but would really prefer to do it at run time. I've got some code hooked up which does so, but all I get is an empty page. I'm using wicket 1.3.0-snapshot (prior to the name change) when building the page, I run the following groovy code, where the buffer contains the html I generate. MarkupParser parser = new MarkupParser( new XmlPullParser() ) Markupmarkup = parser.parse( buffer ) def markupStream= new MarkupStream( markup ) page.setMarkupStream( markupStream ) I've tried overriding onRender in the page java code and calling renderComponent with my markup stream, but I still don't get anything showing. It works with the same html generated at build time. Am I way off base and this just won't work, or do I have some details mucked up? Thanks, Tom - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to use setMarkupStream to assign html to a web page?
Sounds like a similar bug I had with overriding getVariation on WebPage. This is now fixed in 1.2.6. The wicket authors had to rearrange the ordering of initialization to ensure that my constructor got called before the call to my overridden getVariation method. It could be that they may have to do a similar thing for your case. At the time I proposed a two phase initialization solution like most OO frameworks have adopted: Phase 1: Constructors are called and allowed to return resulting in fully constructed objects. Phase 2: The framework calls 'init' on the fully constructed object - at this point init will be working on fully constructed objects and so avoid the issue I had and the issue you are having with parameters not yet being processed and member data and relationships possibly not being in the correct state. The wicket authors prefer the current, single phase construction approach, over a two phase initialization approach because it avoids the task of writing 'init' methods but given that just about every other OO framework I've ever used uses two phase initialization of objects I think that wicket will continue to suffer bugs like yours and mine. As wicket's popularity snowballs they're going to get more and more propeller head users like you and me that have a great idea and then try and implement it in wicket - often going where no man or woman has gone before and pushing things to the edge of breaking. To date they've been able to rearrange things under the bonnet to work around my issue and I hope they can do that with your issue too but I fear that one day someone is going to come up with a great idea that won't elegantly work with a single phase construction/initialization mechanism. I don't know how what the outcome of that would be. hrm. i would consider that a bug i think. i dont see why it would get called before constructor. can you set a breakpoint in there and paste the stacktrace please. -igor On 5/3/07, Thomas R. Corbin [EMAIL PROTECTED] wrote: I don't see any way to delay the markup processing/loading until after I can examine the PageParameters. Exactly what my problem was. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
I was waiting Wicket in action, any news still after the constructor changes drop? *Still* working on it. Sorry. I've stopped giving estimates as it looks like it's bad luck to give em anyways ;) We're at about 3/4, but with all the changes recently done, and a couple still upcoming and all the other things going on, we'll need a bit of time still. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
PS: Unanswered question, is it or not Wicket named after the ewok? ¬_¬' I think it's the 'door in door' Wicket Jonathan originally was thinking off. But to my knowledge, he put more effort in naming the classes of the framework, than the name itself ;) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
On 5/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can feel free to vote, but i would warn to expect very little help from the core committer group. like i said, between doing everything else we have no time to write a book. in fact eelco and martijn are working on wicket in action and so definetely do not have time to write another. i dont know if they are planning on having chapters that cover this stuff. you might want to discuss that with them. maybe they are willing to add user contributions to the book on this, maybe not, maybe they are already writing about this. what we are available for is to answer specific questions. the rest is up to the users. we have the wiki, feel free to collaborate with others and ask us for clarifications/reviews. my 2c. I agree. And as great as having better documentation would be, we're still giving priority to this list, IRC and fixing bugs and implementing improvements. So I'd say we're better at supporting our current users, than making it easy for new ones to join in. Best thing that can happen is just someone taking it up. Some users have been very helpful with the Wicket (probably at least half of the content is written by users, not team members), and that's really great. Maybe someday someone will take up the job to write the ultimate guide to Wicket. He/ she would should get all the help we could give. :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to remove a Behaviour?
See https://issues.apache.org/jira/browse/WICKET-529 Fine by me too. Eelco On 5/3/07, Igor Vaynberg [EMAIL PROTECTED] wrote: fine by me -igor On 5/3/07, Johan Compagner [EMAIL PROTECTED] wrote: i think we should be thinking of a remove(IBehavior) It is pretty in line with the rest (think about Swing listeners) And it doesn't sit in the way as far as i can think of. johan On 5/2/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you cannot remove a behavior currently. what you can do is call stop() on the timerbehavior. -igor On 5/2/07, Ivo van Dongen [EMAIL PROTECTED] wrote: Hi, We have a component with an AjaxSelfUpdatingTimerBehavior attached to it. When a certain condition is reached we want to remove the behaviour from its parent before updating it again, to prefent it from going on forever. We couldn't find a way for this. Component has a remove() method, but IBehaviour does not. What is the preferred way to do this? Thanks in advance, Ivo van Dongen -- Ivo van Dongen Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax Request problem with new window tabs (Wicket 1.3 snapshot)
Hi, Just checked out the latest code from 1.3 trunk, rebuilt my 1.3 and used it in my project. Problem is still happening for me. Can you verify that the latest source works for you when you run my attached test app and follow my instructions? If it does then something is up because it definitely fails the ajax for me. thanks, Dean Matej Knopp-2 wrote: Hi About the first problem, it should be fixed since yesterday. Could you please update your wicket to see if it really is? I can't reproduce the second one. I tested it with Firefox 2.0 on OSX and everything works as expected. I remember seeing something like this in 1.5. What FF version do you use? -Matej On 5/3/07, RedFury [EMAIL PROTECTED] wrote: Ok I have spent a fair amount of time putting together a wicket example of my two problems. It is a netbeans project but pretty bare-bones so it should be pretty easy to get working in other IDE's. I have attached it here so if any of the wicket-gurus out there would take a quick look I would very much appreciate it. Basically there were two problems and this is how I reproduced them: Problem 1 - Ajax failing to update (requesting wrong page version maybe..?) Happens on all browsers (IE, Firefox, opera tested.) Open up firefox and paste app URL Click on Tab 3 (ajax request will put tab 3 up) Click back on Tab 1 Open up second tab and paste URL Go back to first tab and look at Wicket Ajax debug. Update is failling because the server is sending Component ID's which don't exist on the client. They've got their pages mixed up. Problem 2 - Back button - Forward button failure Happens only on Firefox (I think) so maybe a browser problem ? Open up firefox and go to any site, I usually used google Paste app URL into browser. Click on Tab 3 Click the back button to go back to google. Wait a while for page to 'expire'. Doesn't seem to take more than about 30 secs - 1min. Click forward. Server is contacted and page reset, showing tab 1. Click on a subtab of tab1. You'll get an error saying the page couldn't find the component/behavior, as if it still thinks it is on Tab 3 (?) Anyways, thats about all I can add for now. If someone would be so kind as to have a quick look at the attached project and offer some feedback, that would be awesome. Cheers, Dean RedFury wrote: Sorry for replying to my own post, but I found another problem which seems to be related or the same thing. I'm not sure if its wicket 1.3 or my code but I'm going to try to write a simple app to demonstrate the problem then submit it here. Anyways, if I open my browser (firefox latest, fully updated) and start on a different, non-wicket page (say google) Then go to my wicket app. I have a bunch of ajaxed tabs which start out on tab 1 when the page loads. Each tab loads in a bunch of new html components in a panel, replacing the old panel. So I click on tab 2 and new html gets ajaxed in, replacing a lot of the old components in tab 1. Then I click 'back' to go back to the non-wicket page. I sit on that page until the wicket-page has timed out, then click forward now. Now the server loads my page again, and its reset back to its original form with tab 1 showing. However, if I try to perform an ajax action within that tab, I get a server error telling me that it couldn't find the panel, because the server has got some weird state where even though it fetched me the reset page, it still thinks I'm on the modified page when I submit an ajax request. All this is very weird and probably doesn't make much sense without a solid example, so I'm going to try to put one together and hopefully some wicket guru can find out if its a bug or something I'm doing in my code which I shouldn't be. Cheers, Dean RedFury wrote: Hi Matej, I got the latest SVN trunk and it did indeed fix the 'session expired' problem. However, another problem with opening a new tab still persists and I think it may have to do with page cloning combined with dynamic ajax page updates. I will try to explain as best I can but I'm not overly familiar with the internal workings of wicket. My app has 1 main page, and everything else is loaded dynamically using Ajax. I perform the following steps after deploying my app: -Open firefox and paste the link to my wicket servlet. A new page, Page A, is created on the server using PageMap A. By default, my Page A is constructed with 5 tab options, with the contents for Tab 1 loaded. -I click on tab 2 in Page A. This sends of an AJAX request which dynamically replaces panels on Page A (specifically replaces tab-content-panel-1 with tab-content_panel-2.) - I open a new tab and paste the servlet link into it. The following occurs: - Two new pages appear
[Wicket-user] Using AJAX wicketSubmitFormById like a method call
Hi, I'd like to do something slightly unusual and wrap the wicketSubmitFormById call in another javascript function -- I'm able to do this with no problem by overriding AjaxFormSubmitBehavor.onRenderHeadInitContribution and calling JavascriptUtils.writeJavascript on a wrapped getEventHandler. I can stop the normal attribute for 'onclick' or whatever from appearing inside the component tag by overriding onComponentTag. And by using text input boxes, I can pass 'arguments' to my method on the server inside using FormComponent.getConvertedInput. So far so good. The problem I have is that I'd like to actually 'return' a value back from the server in that Javascript function... so my function ends up looking just like a normal function call inside of my Javascript and returns the value that the server provides. I can see inside of wicket-ajax.js that there are three special tags: component, evaluate and header-contribution, each with their appropriate purpose -- I tried messing around with AjaxRequestTarget.prependJavascript so I could pass something through the 'evaluate' tag, but my javascript isn't sufficient to the task. Then I tried using AjaxRequestTarget.addComponent to modify another TextField and return the value through the DOM tree -- that works fine except for the fact that the order is wrong, so my method returns _before_ the component is updated. Then I noticed this interesting Wicket.Ajax.invokePostCallHandlers() call, which makes me wonder if there is already some nice clean mechanism in place for updating javascript variables thru wicket's java code. Apologies if this all makes no sense, but any advice or suggestions would be much appreciated. The basic requirement is just that I make a call in Javascript and get data back from the server as a 'returned' variable on the client. Thanks, James -- James Renfro Programmer IET Mediaworks, UC Davis [EMAIL PROTECTED] W: 530-754-5097 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using AJAX wicketSubmitFormById like a method call
the short answer is: you cant do that. javascript is asynchronous, so the request will start _and_ your function will continue running. usually what is done is that you create a request object, and then register success and failure handlers that are executed after the request is done. you can do that using iajaxcalldecorator, or what you tried...calling ajaxtarget.appendjavascript() should work as well. if you show us some more code/try to describe your actual usecase we can probably help you more, right now its all very abstract. -igor On 5/3/07, James Renfro [EMAIL PROTECTED] wrote: Hi, I'd like to do something slightly unusual and wrap the wicketSubmitFormById call in another javascript function -- I'm able to do this with no problem by overriding AjaxFormSubmitBehavor.onRenderHeadInitContribution and calling JavascriptUtils.writeJavascript on a wrapped getEventHandler. I can stop the normal attribute for 'onclick' or whatever from appearing inside the component tag by overriding onComponentTag. And by using text input boxes, I can pass 'arguments' to my method on the server inside using FormComponent.getConvertedInput. So far so good. The problem I have is that I'd like to actually 'return' a value back from the server in that Javascript function... so my function ends up looking just like a normal function call inside of my Javascript and returns the value that the server provides. I can see inside of wicket-ajax.js that there are three special tags: component, evaluate and header-contribution, each with their appropriate purpose -- I tried messing around with AjaxRequestTarget.prependJavascript so I could pass something through the 'evaluate' tag, but my javascript isn't sufficient to the task. Then I tried using AjaxRequestTarget.addComponent to modify another TextField and return the value through the DOM tree -- that works fine except for the fact that the order is wrong, so my method returns _before_ the component is updated. Then I noticed this interesting Wicket.Ajax.invokePostCallHandlers() call, which makes me wonder if there is already some nice clean mechanism in place for updating javascript variables thru wicket's java code. Apologies if this all makes no sense, but any advice or suggestions would be much appreciated. The basic requirement is just that I make a call in Javascript and get data back from the server as a 'returned' variable on the client. Thanks, James -- James Renfro Programmer IET Mediaworks, UC Davis [EMAIL PROTECTED] W: 530-754-5097 - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Good Tutorial on core wicket
Right. I'll take this last mail to respond others as well. Sorry to hear your book is still on production as I've read some great articles and blogs and I was looking foward to reading the book. But nevertheless it seams very positive that the reason is so many fixes and upcoming good features. To Scot. Thanks, yes I've read it. And it was helpful. I'll still say that for me, the great magic behind wicket is inside of it, and there is litle written about it. Great achievements in wicket, come, in my opinion, from knowing how it works inside. But I also agree 110% that priority comes first for helping others and improving the framework. best wishes, frank On 5/3/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 5/4/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you can feel free to vote, but i would warn to expect very little help from the core committer group. like i said, between doing everything else we have no time to write a book. in fact eelco and martijn are working on wicket in action and so definetely do not have time to write another. i dont know if they are planning on having chapters that cover this stuff. you might want to discuss that with them. maybe they are willing to add user contributions to the book on this, maybe not, maybe they are already writing about this. what we are available for is to answer specific questions. the rest is up to the users. we have the wiki, feel free to collaborate with others and ask us for clarifications/reviews. my 2c. I agree. And as great as having better documentation would be, we're still giving priority to this list, IRC and fixing bugs and implementing improvements. So I'd say we're better at supporting our current users, than making it easy for new ones to join in. Best thing that can happen is just someone taking it up. Some users have been very helpful with the Wicket (probably at least half of the content is written by users, not team members), and that's really great. Maybe someday someone will take up the job to write the ultimate guide to Wicket. He/ she would should get all the help we could give. :) Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] alternatives to set locale without using session?
Dear all, I have read the wicket examples, wiki, mail lists, etc and it seems that if I need to expliclity change the locale, i need to write codes like: getSession().setLocale(my locale); Now, I can determine the explicity language/locale need to use from the incoming URL. I want to use wicket built in i18n support. My problem is, I cannot/will not use session for nearl all the pages. So, any means to set the locale without using session? Any help/guideline will be welcomed. Thanks. Regards, Wing -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] timeline/schedule/details of future wicket release
after reading different pages by tracing different links from wicket website, it seems that 1.3 / 2.X are under development and have some great changes one of the changes will be session-free, which is essential in my new project, I am interested in getting more details about the new release is there any detail about the timeline/schedule/roadmap/feature of the new wicket release upcoming? this will be very useful in helping me to evaluate wicket to be adapted in my new project many thanks, Wing -- View this message in context: http://www.nabble.com/timeline-schedule-details-of-future-wicket-release-tf3690102.html#a10316643 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] alternatives to set locale without using session?
Can I ask why you don't want to store the locale in the session? It seems that the locale is unarguably session-specific. Cheers, Scott On 5/3/07, ywtsang [EMAIL PROTECTED] wrote: Dear all, I have read the wicket examples, wiki, mail lists, etc and it seems that if I need to expliclity change the locale, i need to write codes like: getSession().setLocale(my locale); Now, I can determine the explicity language/locale need to use from the incoming URL. I want to use wicket built in i18n support. My problem is, I cannot/will not use session for nearl all the pages. So, any means to set the locale without using session? Any help/guideline will be welcomed. Thanks. Regards, Wing -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] alternatives to set locale without using session?
you can override page.getlocale() and return something based on page parameters. havent tried it but sounds like it should work. -igor On 5/3/07, ywtsang [EMAIL PROTECTED] wrote: Dear all, I have read the wicket examples, wiki, mail lists, etc and it seems that if I need to expliclity change the locale, i need to write codes like: getSession().setLocale(my locale); Now, I can determine the explicity language/locale need to use from the incoming URL. I want to use wicket built in i18n support. My problem is, I cannot/will not use session for nearl all the pages. So, any means to set the locale without using session? Any help/guideline will be welcomed. Thanks. Regards, Wing -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] timeline/schedule/details of future wicket release
http://martijndashorst.com/blog/2007/04/20/wicket-130-roadmap/ -igor On 5/3/07, ywtsang [EMAIL PROTECTED] wrote: after reading different pages by tracing different links from wicket website, it seems that 1.3 / 2.X are under development and have some great changes one of the changes will be session-free, which is essential in my new project, I am interested in getting more details about the new release is there any detail about the timeline/schedule/roadmap/feature of the new wicket release upcoming? this will be very useful in helping me to evaluate wicket to be adapted in my new project many thanks, Wing -- View this message in context: http://www.nabble.com/timeline-schedule-details-of-future-wicket-release-tf3690102.html#a10316643 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] alternatives to set locale without using session?
One of the requirements of my project is not to use session, that's why my question is so :) Our website will have different language. Customers can choose for different languages by clicking links like: e.g. /en/... (show english content) /jp/... (show japanese content) /kr/... (show korean content) /zh/ (show chinese content) Therefore I can deduce the language from the request link, it would be nice if we can configure locale without the need of session creation. Regards, Wing Scott Swank wrote: Can I ask why you don't want to store the locale in the session? It seems that the locale is unarguably session-specific. Cheers, Scott On 5/3/07, ywtsang [EMAIL PROTECTED] wrote: Dear all, I have read the wicket examples, wiki, mail lists, etc and it seems that if I need to expliclity change the locale, i need to write codes like: getSession().setLocale(my locale); Now, I can determine the explicity language/locale need to use from the incoming URL. I want to use wicket built in i18n support. My problem is, I cannot/will not use session for nearl all the pages. So, any means to set the locale without using session? Any help/guideline will be welcomed. Thanks. Regards, Wing -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10317292 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] alternatives to set locale without using session?
tbh i see little value of using wicket in a completely stateless application. the big advantage of wicket is the programming model it offers, which you give up when using stateless only components. -igor On 5/3/07, ywtsang [EMAIL PROTECTED] wrote: One of the requirements of my project is not to use session, that's why my question is so :) Our website will have different language. Customers can choose for different languages by clicking links like: e.g. /en/... (show english content) /jp/... (show japanese content) /kr/... (show korean content) /zh/ (show chinese content) Therefore I can deduce the language from the request link, it would be nice if we can configure locale without the need of session creation. Regards, Wing Scott Swank wrote: Can I ask why you don't want to store the locale in the session? It seems that the locale is unarguably session-specific. Cheers, Scott On 5/3/07, ywtsang [EMAIL PROTECTED] wrote: Dear all, I have read the wicket examples, wiki, mail lists, etc and it seems that if I need to expliclity change the locale, i need to write codes like: getSession().setLocale(my locale); Now, I can determine the explicity language/locale need to use from the incoming URL. I want to use wicket built in i18n support. My problem is, I cannot/will not use session for nearl all the pages. So, any means to set the locale without using session? Any help/guideline will be welcomed. Thanks. Regards, Wing -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10316471 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/alternatives-to-set-locale-without-using-%22session%22--tf3690056.html#a10317292 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user