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 advance.

Best,
Andreas


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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:


while the site you reference:
http://wicketstuff.org/wicket/
for the images leads to:
http://wicketstuff.org/wicket/images/wicket/bookmarkable/org.apache.wicket.examples.images.Home?1
and the third image's html is:


So, assuming that wicket14 is wicket 1.4 stuff,
the site you gave me matches what I get when I build
1.5-M3.

Thanks.

Richard

On 01/06/2011 05:00 PM, Igor Vaynberg wrote:

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
  wrote:


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: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




--
Quis custodiet ipsos custodes

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
 wrote:
>
> 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: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: users-h...@wicket.apache.org



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 
To: users@wicket.apache.org
Date:   01/04/2011 09:22 PM
Subject:Re: Feedback messages with parameter substitution



Folks,

I found the solution from the thread "Using getString with
parameters<
http://apache-wicket.1842946.n4.nabble.com/Usage-of-getString-with-parameters-model-td1875254.html
>
".

And this is what I did in the properties file..

message.fileAlreadyUploaded=The file ${0} is already uploaded
(Note the $ sign)

And in the java code..

error(getString("message.fileAlreadyUploaded", new Model(new
String[]{fileUpload.getClientFileName()})));

It worked like a charm.

On Wed, Jan 5, 2011 at 10:00 AM, James  wrote:

> Dear friends,
>
> Please forgive me if this question is asked before and answered. I
> seriously searched for this in the mailing list and other areas and 
couldn't
> find any solution.
>
> I've seen great examples of using StringResourceModel for parameter
> substitution in components like Label.
>
> But what I want is to display a feedback message, say an error message 
with
> some dynamic values in it. Something like "The file abc.txt is already
> uploaded", where "abc.txt" shall be dynamic.
>
> So the localized text in the properties file would be something like
> "message.fileAlreadyUploaded=The file {0} is already uploaded".
>
> I've tried using something like this...
>
> 
> error(getString("message.fileAlreadyUploaded", new Model(new
> String[]{fileUpload.getClientFileName()})));
> 
>
> but that' doesn't work..I also tried using StringResourceModel but to no
> avail.
>
> I know I'm doing something wrong, please guide me to solve this problem.
>
> --
> Thanks & Regards,
> James
>



-- 
Thanks & Regards,
James





Notice: This communication, including any attachments, is intended solely 
for the use of the individual or entity to which it is addressed. This 
communication may contain information that is protected from disclosure 
under State and/or Federal law. Please notify the sender immediately if 
you have received this communication in error and delete this email from 
your system. If you are not the intended recipient, you are requested not 
to disclose, copy, distribute or take any action in reliance on the 
contents of this information.

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 to create your own AttributePrepender.

On Thu, Jan 6, 2011 at 4:27 PM, Per Newgro  wrote:

> 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 the direction
> Per
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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 the direction
Per

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  wrote:

>
> 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
> would
> like to return to the client.
> 2. Ingest (clear content before) that content into the response.
> This way I eliminating all components and leaving only my component to be
> rendered.
> In your solution I have to put the anniotation/tag on ALL the components.
> one by one by one...
> In the example of wicket-examples, they were using ti disable/hide only one
> component..
>
> Thanks :)
> --
> 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-tp3177106p3177319.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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 use authorization interfaces implies in to annotate all your
components, only those that may be not visible due some authorization
restriction (or yours as suggested).

On Thu, Jan 6, 2011 at 10:20 AM, simon  wrote:

>
> 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
> would
> like to return to the client.
> 2. Ingest (clear content before) that content into the response.
> This way I eliminating all components and leaving only my component to be
> rendered.
> In your solution I have to put the anniotation/tag on ALL the components.
> one by one by one...
> In the example of wicket-examples, they were using ti disable/hide only one
> component..
>
> Thanks :)
> --
> 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-tp3177106p3177319.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


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 would
like to return to the client.
2. Ingest (clear content before) that content into the response.
This way I eliminating all components and leaving only my component to be
rendered.
In your solution I have to put the anniotation/tag on ALL the components.
one by one by one...
In the example of wicket-examples, they were using ti disable/hide only one
component..

Thanks :)
-- 
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-tp3177106p3177319.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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  wrote:

>
> 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
> library, the app seems to pass the load stress test.
>
> More info as I make more test.
>
> Thanks to all.
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3177253.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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 have to annotate/tag somehow the components which you want to
manage.

On Thu, Jan 6, 2011 at 12:03 PM, simon  wrote:

>
> 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 just a part of it
> is determined within the parameters passed to the page (from the client) in
> page c'tor.
>
> Any other ideas? :) Thanks,
> 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-tp3177106p3177219.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


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
library, the app seems to pass the load stress test.

More info as I make more test.

Thanks to all.
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-web-site-down-with-a-few-hits-tp3174117p3177253.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 just a part of it
is determined within the parameters passed to the page (from the client) in
page c'tor.

Any other ideas? :) Thanks,
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-tp3177106p3177219.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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"));
   target.addComponent(page.get("content"));
}

On Thu, Jan 6, 2011 at 7:34 AM, simon  wrote:

>
> 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  wicket:id=”content”>.  (Actually I’m using the an “inheritance” model: a
> base page for all pages and each page implements its  code)
> What I’m trying to do is to return to the browser only the content within
> the  without the logo or menu bar.
> I was struggling with a solution (although I’m not a newbie with Wicket),
> Maybe I have to do something with RequestCycle/ Response?
> (BTW: this behavior is desirable not all the time, only in the case that
> the
> request consists some parameter that I should decide)
> Any idea? reference?
> Thanks a lot for any input.
>
>
> --
> 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-tp3177106p3177106.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos


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 .  (Actually I’m using the an “inheritance” model: a
base page for all pages and each page implements its  code) 
What I’m trying to do is to return to the browser only the content within
the  without the logo or menu bar. 
I was struggling with a solution (although I’m not a newbie with Wicket),
Maybe I have to do something with RequestCycle/ Response? 
(BTW: this behavior is desirable not all the time, only in the case that the
request consists some parameter that I should decide) 
Any idea? reference? 
Thanks a lot for any input. 


-- 
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-tp3177106p3177106.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org