How to render only part of a Page (and return only that part)

2011-01-06 Thread simon
Hi, I’m trying to render only part of my Page and only that part should return to the client (the browser). Currently, my page consists of logo bar, menu bar, bread crumbs bar and some div that contains the actual page content, say within div wicket:id=”content”. (Actually I’m using the an

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread Pedro Santos
What about when responding you client just replace the content an return it in AJAX, I think it would implie in you create panels for you contents and not extended pages. Example of an click to a new content: onClick(target){ page.get(content).replace(new Content(content));

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread simon
10x for your quick response.. I'm not sure that your solution is applicable for me. First, I'm not using panels - so replace() cannot be implemented. Second, I do not have an Ajax access point. there is no onClick() or something similar. The criteria on which I decide to render all the page or

Re: Wicket web site down with a few hits

2011-01-06 Thread LucHub
Hi, I tried to kill the process but I found nothing of strange. Right now I think that the problem is probably solved. I throw away a library that I used together with Hibernate (the c3p0 library) that I put ther essentially for autoReconnection problems of the JDBC mysql driver. Avoiding this

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread Martin Grigorov
See authorization interfaces. You can disable rendering of a component (see Component Action.RENDER). Most of the examples out there (e.g. wicket-examples) show a given component when the user has Admin role and hide it for other roles. You should just change the check with your logic. And you

Re: Wicket web site down with a few hits

2011-01-06 Thread Martin Grigorov
it sounds like you were leaking DB connections Thread dump easily will show you this problem. You'll see threads trying to acquire a DB connection and will wait until some of the previous acquired connections is returned to the pool. On Thu, Jan 6, 2011 at 12:27 PM, LucHub luca.abb...@luchub.com

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread simon
Thanks, it's an idea... BUT I would rather prefer to think on a more light solution, i.e. Instead causing all components (except the frame/div I'd to render) invisible (via Action.RENDER mechanism), I think on something like: 1. Get the markup (the result html of the response) of the component I

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread Pedro Santos
Also your page can override the onBeforeRender, test the request for some special parameter, iterate over all components testing they for any visibility rule, and set visibility to false when this test fails. Intercept the generated HTML to do that is not an light solution. I don't think also that

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread Martin Grigorov
See IResponseFilter With this you can modify the final .html response for the page. Release you regex skills and do whatever you need :-) On Thu, Jan 6, 2011 at 1:20 PM, simon si...@redbend.com wrote: Thanks, it's an idea... BUT I would rather prefer to think on a more light solution, i.e.

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread simon
mmm.. THANKS!! That lokks somehow promising... - I will try this and Pedro Santos suggestion. 10X! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-render-only-part-of-a-Page-and-return-only-that-part-tp3177106p3177343.html Sent from the Users forum mailing

Re: How to render only part of a Page (and return only that part)

2011-01-06 Thread simon
Thanks a lot. I will try this (along with 'Martin Grigorov-4' suggestion) Thank you. Simon -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-render-only-part-of-a-Page-and-return-only-that-part-tp3177106p3177345.html Sent from the Users forum mailing list

Show wait cursor on every action

2011-01-06 Thread Per Newgro
Hi, Sorry for post if this is not a wicket releated solution. I would like to present the hourglass (wait cursor) if i click any link (Ajax or not). I know the ajax solution with CallDecorator. But is there a simple way to get that working for both ajax and non-ajax? Thanks for pointing me

Re: Show wait cursor on every action

2011-01-06 Thread Martin Grigorov
when the link is not Ajax then the whole page is reloaded. Depending on the speed this may happen immediately and the cursor will disappear. anyway you need to prepend some javascript in the anchor: link.add(new AttributePrepender(onlick, document.body.style.cursor='busy')); See AttributeAppender

Re: Feedback messages with parameter substitution

2011-01-06 Thread MZemeck
Or... Object[] vars = ...add dynamic file name object StringResourceModel rModel = new StringResourceModel(message.fileAlreadyUploaded, null, vars); error(rModel.getObject()); From: James james.eliye...@gmail.com To: users@wicket.apache.org Date: 01/04/2011 09:22 PM Subject:

Any site running 1.5-M3 examples

2011-01-06 Thread richard emberson
When a milestone release occurs, is there any site that runs the example applications? Richard -- Quis custodiet ipsos custodes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail:

Re: Any site running 1.5-M3 examples

2011-01-06 Thread Igor Vaynberg
http://wicketstuff.org/wicket/ not sure what version it is but its some 1.5.x -igor On Thu, Jan 6, 2011 at 4:57 PM, richard emberson richard.ember...@gmail.com wrote: When a milestone release occurs, is there any site that runs the example applications? Richard -- Quis custodiet ipsos

Re: Any site running 1.5-M3 examples

2011-01-06 Thread richard emberson
For the images example. The site: http://wicketstuff.org/wicket14/ leads to: http://wicketstuff.org/wicket14/images/ third image's html is: img src=?wicket:interface=:0:image3::IResourceListener::/ while the site you reference: http://wicketstuff.org/wicket/ for the images leads to:

When does a Page or Component die?

2011-01-06 Thread Andreas Mueller
Hi all, I have found a lot of convenient API to work with the different lifecycle phases of a page. However, I couldn't find the point in time when a page is actually dead. By dead, I mean there is no chance that wicket will use it again. Any hints are highly appreciated! Thank you very much in