Error reporting on locked page maps, revisited

2010-03-31 Thread Vincent Lussenburg
Hi all, I kindly request you to take a look at the following issue: http://issues.apache.org/jira/browse/WICKET-2796 It's a small issue, but if you like the solution, I'll be happy to create a patch for it. If not, you can go ahead and close it as a won't-fix ;-). Kind regards, Vincent.

Re: Catch Wicket.Error with FireBug

2010-03-31 Thread MattyDE
Thanks a lot Perdro! This works very nice (if u using jQuery): script type=text/javascript $(document).ready( function(){ WicketAjaxDebug.originalLogError = WicketAjaxDebug.logError; WicketAjaxDebug.logError =

Handling jquery events

2010-03-31 Thread Josh Kamau
Hi Team; I know i can write java code that handles javascript events e.g onChange() using Behaviours. Question: Is there way i can handle in the same way jquery events? or custom javascript events? Kind regards Josh

RE: Handling jquery events

2010-03-31 Thread Stefan Lindner
Hi Josh, take a look at jWicket in wicketstuff core. There you can find a lot of examples how yo can re-act on jQuery events. E.g. ondrop, onresize, onclose, onstart... Stefan -Ursprüngliche Nachricht- Von: Josh Kamau [mailto:joshnet2...@gmail.com] Gesendet: Mittwoch, 31. März 2010

Re: Handling jquery events

2010-03-31 Thread Josh Kamau
Thanks Stefan. i will. On Wed, Mar 31, 2010 at 12:22 PM, Stefan Lindner lind...@visionet.dewrote: Hi Josh, take a look at jWicket in wicketstuff core. There you can find a lot of examples how yo can re-act on jQuery events. E.g. ondrop, onresize, onclose, onstart... Stefan

RE: Handling jquery events

2010-03-31 Thread Stefan Lindner
Hi Josh, take a look at the DatePicker class. Ist almost simple. The general way is to generate a wicket ajax call and to catch the call in the respond method of your AjaxBehavior. The DatePicker responds e.g. to th onclose oder onselected method of jQuery-ui-datepicker. Stefan

Re: Handling jquery events

2010-03-31 Thread Josh Kamau
Would you mind to post a code sample? lets say the javascript event is onDrop() what do i write on the serverside that will handle the said methods. You can post an example on the serverside code. On Wed, Mar 31, 2010 at 12:32 PM, Stefan Lindner lind...@visionet.dewrote: Hi Josh, take a

Wicket Tester

2010-03-31 Thread Svante Reutland
Hi!im trying to run wicket tester on my application. but I cannot get it to work.this is what I have done so far: WicketTester tester = new WicketTester(); tester.startPage(Login.class); FormTester formTester = tester.newFormTester(loginForm);

Re: Wicket Tester

2010-03-31 Thread Martin Makundi
Hi! You must create wickettester with your application. wickettester = new WicketTester(new MyApplication()); 2010/3/31 Svante Reutland svantepo...@hotmail.com: Hi!im trying to run wicket tester on my application. but I cannot get it to work.this is what I have done so far:

Re: Wicket Tester

2010-03-31 Thread svantepower
lol why didnt I see that. must be the lack of coffe ;) Thanks for your help! -- View this message in context: http://old.nabble.com/Wicket-Tester-tp28094649p28094705.html Sent from the Wicket - User mailing list archive at Nabble.com.

Re: A web site developed with Wicket

2010-03-31 Thread Gustavo Henrique
could you release the wicket code for us? that would be a great help for the community. thanks!

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
Well as far as I know the default balancer in apache supports this yes. On Mon, Mar 29, 2010 at 2:22 PM, Martijn Dashorst martijn.dasho...@gmail.com wrote: Are you using sticky sessions? Martijn On Fri, Mar 26, 2010 at 5:15 PM, Wayne Pope waynemailingli...@googlemail.com wrote: One more

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Richard Wilkinson
Hi Wayne, As far as I know mod_proxy_balancer does not have sticky sessions on by default, you have to tell it what cookie to use. Am am assuming that you have multiple tomcats (or similar) behind apache, are you using any sort of session replication for them? Does this exception occur when you

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
Hi Richard my mistake we have the following setting: ProxyPass / balancer://cluster/ stickysession=JSESSIONID nofailover=Off This problem happens from time to time in production with no pattern that we can find. We have a 'shared' firewall that hosts the SSL cert, going to the apache instance

Re: Wicket and JEE6

2010-03-31 Thread James Carman
Ok, I think I've got the conversation stuff working properly. My current example is a version of the numberguess game which makes the Game bean a @ConversationScoped object. It's not a good example of a conversation per se, but I'd like to beef up the example application to show off more of what

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Richard Wilkinson
Ok, If you can replicate the problem by the following: 1) shutting down tomcat 1, therefore ensuring that you go to tomcat 2, 2) going to a page on your site (that has some ajax on there), 3) starting up tomcat 1, then shutting down tomcat 2, therefore ensuring that the next request goes to

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Martijn Dashorst
Not only all the classes need to implement Serializable, but their properties need to be serializable as well... public class MyFoo implements Serializable { private Connection connection = ... } is not completely serializable martijn On Fri, Mar 26, 2010 at 3:42 PM, Wayne Pope

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
Hi Martin, I think we can confidently say that its not a serialization issue as its a very simple component/panel that is used a lot. The pageexpiredexception I experience on this component was the first time we'd seen it. We see these exceptions seemlying randomly in the production logs. On

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
Hi Richard, thanks for the reply. I'll have a look at trying to make the failover fail again - but the last time we tested it was working fine so unless there is a core problem with the apache balancer and tomcat I don't know what I can do. There are probably other reasons why you might see a

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Richard Wilkinson
Hi, Ok, anyone else please correct me if i am wrong, but afaik: The pagemap holds a finite number of pages in it, each time you access a new page it gets added to the page map, how many pages it holds depends on which implementation of page map you are using, which usually depends on which type

Re: A web site developed with Wicket

2010-03-31 Thread Erdinc
Hi, I don't think to release the source code of the application for now, but I am trying to collect the techniques I applied in my wicket projects by maintaining an open source project - EasyWicket - http://easywicket.sourceforge.net From: Gustavo Henrique

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
Thanks for the explanation Richard. We do have setAutomaticMultiWindowSupport set to false, because when we had it set to true we had some problems (I cannot remember what exactly - something to do with url mounting I think). Thing is when I experienced this issue I only had one tab open - it

automatic palette sorting

2010-03-31 Thread wic...@geofflancaster.com
Is there a way to automatically sort the available and selected items in a palette as they are changed? mail2web.com – What can On Demand Business Solutions do for you? http://link.mail2web.com/Business/SharePoint

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Richard Wilkinson
afaik, the default SecondLevelCacheSessionStore works by keeping the current page in session (in memory) and uses DiskPageStore as its second level cache, which stores all the other pages in a file on disk. I don't believe that this DiskPageStore is clustered, because it is an actual file on the

Re: automatic palette sorting

2010-03-31 Thread robert.mcguinness
not sure if this is the best solution but this is how we solved it (basically customized the Palette component to fit our needs). in palette.js include the following function and call in Wicket.Palette.updateRecorder and Wicket.Palette.remove Wicket.Palette.sortOptions=function(box) {

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
I don't believe that this DiskPageStore is clustered, because it is an actual file on the machine. If this is the case then although the current page will be clustered by tomcat, the previous pages wont be, so wont be available on the other machine. This could cause the exception you are

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Martijn Dashorst
The last page is kept in the session such that it is transferred across the cluster. Each node in the cluster should then update the local pagestore with that page. Matej has written quite a bit about this behavior on this list, so searching might help. Martijn On Wed, Mar 31, 2010 at 5:02 PM,

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Richard Wilkinson
OK, so so long as all cluster machines are running, they will all have the same contents in their DiskPageMap, and you should never see the exception, however, if one machine goes down for a bit, any pages visited during that time will not be transferred to it when it comes back up, meaning that

possible bug?

2010-03-31 Thread Vladimir Kovalyuk
It seems the following trick does not work for nested forms: protected void onRender(final MarkupStream markupStream) { // clear multipart hint, it will be set if necessary by the visitor this.multiPart = ~MULTIPART_HINT; // Force multi-part on if any child form

Re: PageExpiredException - getting this when the session hasn't timeout

2010-03-31 Thread Wayne Pope
Actually - to be clear - we have 2 tomcat instances on the same machine, but I don't see this being the issue. So back to the drawing board again :-( On Wed, Mar 31, 2010 at 6:27 PM, Richard Wilkinson richardjohnwilkin...@googlemail.com wrote: OK, so so long as all cluster machines are

Re: Wicketstuff updated!

2010-03-31 Thread nino martinez wael
I guess we could start a branch, called wicketstuff-core-attic. Then upgrade them to latest wicket version and see if they work and if not, then remove them. Unless someone wants to fix the errors. 2010/3/28 Major Péter majorpe...@sch.bme.hu: JavaEE-Inject is tested, and OK. It looks like

Re: possible bug?

2010-03-31 Thread Igor Vaynberg
the first thing it does is clear the multipart flag, it then tries to find a multipart component which will set the flag to true again...so if you remove the component that caused multipart to be true it would reset before the render -igor On Wed, Mar 31, 2010 at 9:40 AM, Vladimir Kovalyuk

Link to a panel

2010-03-31 Thread Daniela Valero
Good Afternoon users! I have a hierachy of panels inside my app, Home is the page, there are several childs one of them is a tab panel. I need to set a link to a panel child of home. how can i do this? -- | Daniela Valero No hay vientos favorables para quien no sabe a donde quiere ir!

Re: Link to a panel

2010-03-31 Thread Martin Makundi
;) ? Link to same page? Link to specific tab? ** Martin 2010/3/31 Daniela Valero danielavalero...@gmail.com: Good Afternoon users! I have a hierachy of panels inside my app, Home is the page, there are several childs one of them is a tab panel. I need to set a link to a panel child of

Re: Link to a panel

2010-03-31 Thread Daniela Valero
Yes, Home is the Page class, it have a TabPanel. In the first tab, i have a panel called Policy, there I am calling a ModalWindow, then when the close button is clicked I want to get back to my Policy panel. 2010/3/31 Martin Makundi martin.maku...@koodaripalvelut.com ;) ? Link to same page?

Re: Link to a panel

2010-03-31 Thread Martin Makundi
Ah.. no need to do anything. Is close button ajax button? ** Martin 2010/3/31 Daniela Valero danielavalero...@gmail.com: Yes, Home is the Page class, it have a TabPanel. In the first tab, i have a panel called Policy, there I am calling a ModalWindow, then when the close button is clicked I

Re: Link to a panel

2010-03-31 Thread Daniela Valero
yes 2010/3/31 Martin Makundi martin.maku...@koodaripalvelut.com Ah.. no need to do anything. Is close button ajax button? ** Martin 2010/3/31 Daniela Valero danielavalero...@gmail.com: Yes, Home is the Page class, it have a TabPanel. In the first tab, i have a panel called Policy,

Re: Link to a panel

2010-03-31 Thread Martin Makundi
modal window has a close action: // On close modalWindow.close(target); ** Martin 2010/3/31 Daniela Valero danielavalero...@gmail.com: yes 2010/3/31 Martin Makundi martin.maku...@koodaripalvelut.com Ah.. no need to do anything. Is close button ajax button? ** Martin

Re: Link to a panel

2010-03-31 Thread Daniela Valero
I was tying to do the modal content reusable, like this examplehttp://stuq.nl/weblog/2008-06-05/wicket-how-to-write-a-reusable-modal-window-popupbut that works only for wicket 1.3.3, on actual version throws aMarkupNotFoundException. Then I did my close button with the examples, but I forget pass

Re: Link to a panel

2010-03-31 Thread Daniela Valero
I am getting a WicketRunTimeExeption, when trying to close my modal, this is the message WicketRuntimeException: component tabs:panel:panelChild:table:body:rows:7:cells:3:cell:modal:content:form:close not found on page com.consisint.frontend.pages.Home[id = 0], listener interface = [Request

ModalWindow insise a cell of AjaxDefaultDataTable can't be closed

2010-03-31 Thread Daniela Valero
Good afternoon! I ask for help becouse I have a Ajax data table, inside some links that shows a ModalWindow, the problem is that I can't close that window. On Ajax Debug I got this message: *INFO: * Ajax GET stopped because of precondition check,

Hibernate - OSIV

2010-03-31 Thread Jeffrey Schneller
I think I have the OSIV filter setup correctly but I can't access any lazy loaded properties of my objects. I am not even between requests when this is happening. Does anyone have any ideas? I can't seem to figure this out. I have looked at OSIV in Spring and OSIV in Wicket. I can't seem

Re: Hibernate - OSIV

2010-03-31 Thread James Carman
Loadabledetachablemodel? On Mar 31, 2010 5:47 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I think I have the OSIV filter setup correctly but I can't access any lazy loaded properties of my objects. I am not even between requests when this is happening. Does anyone have any ideas?

RE: Hibernate - OSIV

2010-03-31 Thread Jeffrey Schneller
I don't think that is it. I haven't even put the object into any model yet. I am just calling the dao and then calling the getter. I haven't even gotten to the point where models would be in use. -Original Message- From: jcar...@carmanconsulting.com

Re: RE: Hibernate - OSIV

2010-03-31 Thread James Carman
Have you tried tuning up logging? See when the session is being opened/closed. On Mar 31, 2010 6:06 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I don't think that is it. I haven't even put the object into any model yet. I am just calling the dao and then calling the getter. I

RE: Hibernate - OSIV

2010-03-31 Thread Josh Chappelle
What error are you getting? -Original Message- From: Jeffrey Schneller [mailto:jeffrey.schnel...@envisa.com] Sent: Wednesday, March 31, 2010 4:47 PM To: users@wicket.apache.org Subject: Hibernate - OSIV I think I have the OSIV filter setup correctly but I can't access any lazy loaded

Re: Wicketstuff updated!

2010-03-31 Thread Jeremy Thomerson
there's already an attic - why create a new one? it will just generate more emails to the list whining about i can't find such and such - by those who can't use the search function well. there's nothing special about an ex-core project that means it needs its own attic -- Jeremy Thomerson

IE7 + ajax + cookie = no go?

2010-03-31 Thread Istvan Soos
Hi, I've a page where the user can edit his/her settings through an ajax-updated form. Each time a setting is modified it is being sent to the server side, stored in the session and in the database, and I issue a new cookie that contains the value too. (Of course if the user is not authenticated,