Re: [Wicket-user] Re: Servlet forward to a JSP

2005-11-14 Thread Juergen Donnerstag
Shouldn't we add such functionality to core? Or at least extension. I understand that the way it is implemented is because he didn't want to patch core, but I assume it can be put into core and made available to users more easily: no specific request and response wrapper etc. Juergen On

Re: [Wicket-user] Keeping images outside of WEB-INF

2005-11-14 Thread Johan Compagner
Of course you save youre files to a server you have to know the folder where you have write access. Then you can load them from that location just as fine as reading them from a database. On 11/12/05, yongbl [EMAIL PROTECTED] wrote: Hi all, I wanted to display images that has been uploaded to a

Re: [Wicket-user] Preserve form state

2005-11-14 Thread Johan Compagner
I will take this mail into account when i start workign on the Form Aware things (for example the selection change handler from a DropDown must also use the form) johan On 11/13/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi.I know this has been discussed already, but still I'm opening it oncemore.

Re: [Spam] [Wicket-user] New to question on Wicket Application concept ?

2005-11-14 Thread Alexandru Popescu
#: Johan Compagner changed the world a bit at a time by saying on 11/14/2005 12:04 PM :# it is recommended but not really a requirement (it works for the examples project just fine to have multiply Applications in one WebApplication) Is there anything else than what I mentioned when

Re: [Spam] [Wicket-user] New to question on Wicket Application concept ?

2005-11-14 Thread Johan Compagner
1 thats easy. Just make sure you say: RequestCycle.setRedirect(false) on the pages you don't want a redirect to. If you use multiply webapplications then you must have X WicketServlets that all run under different (dir) context of course. On 11/14/05, Alexandru Popescu [EMAIL PROTECTED] wrote:

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Alexandru Popescu
#: Gili changed the world a bit at a time by saying on 11/14/2005 6:33 AM :# Ok, I've submitted http://www.wicket-wiki.org.uk/wiki/index.php/Thread_Safety Gili According to Igor, the 3 bullet item is not valid, or at least this is my understanding. Considering that a request is

[Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Hi. In Component class, the flag FLAG_HAS_ROOT_MODEL is set only if the model is CompoundPropertyModel. Why do we have ICompoundModel then? Shouldn't it only check if the model implements ICompoundModel? -Matej --- SF.Net email is

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Johan Compagner
No because components can have a ICompoundModel but not be the root because they got there model from the root. (see initModel()) johan On 11/14/05, Matej Knopp [EMAIL PROTECTED] wrote: Hi.In Component class, the flag FLAG_HAS_ROOT_MODEL is set only if themodel is CompoundPropertyModel. Why do

[Wicket-user] alternative for onrender() for extended Panel?

2005-11-14 Thread Marco van de Haar
We built a custom Tooltip which extends panel. In order to make ik IE compatible we need to render a simple IFRAME with some static content after we render our component. We want to make our Tooltip easy to extend, so I can not put it in HTML. Normally you could put something like

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Sorry, I still don't understand. What shoud I do if I want to have my own compound model, that is not derived from CompoundPropertyModel? Why is in Component#setModel a check, whether the model is instance of CompoundPropertyModel instand of ICompoundModel? -Matej Johan Compagner wrote: No

Re: [Wicket-user] alternative for onrender() for extended Panel?

2005-11-14 Thread Juergen Donnerstag
why not add it inside the panel? Juergen On 11/14/05, Marco van de Haar [EMAIL PROTECTED] wrote: We built a custom Tooltip which extends panel. In order to make ik IE compatible we need to render a simple IFRAME with some static content after we render our component. We want to make our

[Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-14 Thread James Yong
Johan Compagner jcompagner at gmail.com writes: Of course you save youre files to a server you have to know the folder where you have write access. Then you can load them from that location just as fine as reading them from a database. Hi, I used a label to generate the img tag. It

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-14 Thread Juergen Donnerstag
Another option could be to use Image and override onComponentTag Juergen On 11/14/05, James Yong [EMAIL PROTECTED] wrote: Johan Compagner jcompagner at gmail.com writes: Of course you save youre files to a server you have to know the folder where you have write access. Then you can

[Wicket-user] Using the same PagingNavigator on the same page yields OutOfMemoryError

2005-11-14 Thread Andrew Berman
Ok, when using Wicket 1.1, I was able to do this: div wicket:id=pagingNavigator/div div wicket:id=pagingNavigator/div This allowed me to have the paging navigator at the top and bottom of the data. However, when using HEAD, I get java.lang.OutOfMemoryError: Java heap space. It works if I

[Wicket-user] Re: Using the same PagingNavigator on the same page yields OutOfMemoryError

2005-11-14 Thread Andrew Berman
I just did another test and did this: div wicket:id=pagingNavigator/div div wicket:id=pagingNavigator/div I put them right after each other. Now the page infinitely builds PagingNavigators and the screen just keeps going. It just keeps going and going. --Andrew On 11/14/05, Andrew

Re: [Wicket-user] Re: Using the same PagingNavigator on the same page yields OutOfMemoryError

2005-11-14 Thread Juergen Donnerstag
Yes it is illegal. It was in the past as well, but we didn't check it. In order to support per-component re-render there has to be a 1:1 match. Juergen On 11/14/05, Andrew Berman [EMAIL PROTECTED] wrote: I just did another test and did this: div wicket:id=pagingNavigator/div div

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Johan Compagner
Form form = new Form(); form.setModel(new MyCompoundModel); // set a compound model so it is the root! TextField tf = new TextField(); // no model! then tf.initModel() will get the forms model and use it as its own BUT it is not the root. johan On 11/14/05, Matej Knopp [EMAIL PROTECTED] wrote:

Re: [Wicket-user] Security / Page Access / Page Construction / IAuthorizationStrategy

2005-11-14 Thread Igor Vaynberg
if you are only working with bookmarkable pages, then yes, a pagefactory can handle the security. If, however, you want to extend this to non-bookmarkable pages you have two options: use the HEAD version and implement the IAuthorizationPolicy, or if you need a more stable code base to work off, do

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Igor Vaynberg
yes, a page instance is only accessed by 1 thread per request per user. -Igor On 11/14/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Gili changed the world a bit at a time by saying on11/14/2005 6:33 AM :# Ok, I've submitted http://www.wicket-wiki.org.uk/wiki/index.php/Thread_Safety

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Johan Compagner
at the same time.On 11/14/05, Igor Vaynberg [EMAIL PROTECTED] wrote: yes, a page instance is only accessed by 1 thread per request per user. -Igor On 11/14/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Gili changed the world a bit at a time by saying on11/14/2005 6:33 AM :# Ok, I've

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Still, this is not what I'm asking for. class Component { ... public Component setModel(final IModel model) { ... // If a compound model is explicitly set on this component if (model instanceof CompoundPropertyModel) {

Re: [Wicket-user] Re: Using the same PagingNavigator on the same page yields OutOfMemoryError

2005-11-14 Thread Andrew Berman
Since it is illegal, I think Wicket should be throwing an Exception instead of yielding an OutOfMemoryError --AndrewOn 11/14/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Yes it is illegal. It was in the past as well, but we didn't check it.In order to support per-component re-render there

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Alexandru Popescu
#: Johan Compagner changed the world a bit at a time by saying on 11/14/2005 6:18 PM :# at the same time. What do you mean? per request there is only 1 thread. or are you saying that during a request multiple threads are used? (this is contradicting with the servlet spec in fact, so I

[Wicket-user] Wait Screen

2005-11-14 Thread Dipu
Hi, In my project, one of the paths through the flow involves a step that may take as long as a minute or two. I would like to show a wait screen during this time. When the back-ground process is complete, I would like the wait screen to forward to the next page.Any suggestions as to how

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Matej Knopp
I assume he meant that multiple (different) threads can access the page/session during page lifecycle. But not during one request. -Matej Alexandru Popescu wrote: #: Johan Compagner changed the world a bit at a time by saying on 11/14/2005 6:18 PM :# at the same time. What do you mean?

Re: [Wicket-user] Re: Using the same PagingNavigator on the same page yields OutOfMemoryError

2005-11-14 Thread Juergen Donnerstag
Agreed. Would you please of a bug for it. Thanks Juergen On 11/14/05, Andrew Berman [EMAIL PROTECTED] wrote: Since it is illegal, I think Wicket should be throwing an Exception instead of yielding an OutOfMemoryError --Andrew On 11/14/05, Juergen Donnerstag [EMAIL PROTECTED] wrote:

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Igor Vaynberg
we are talking about within the context of processing a request no? we sync on the session so only one request-processing thread can be inside a page instance during the processing of the request, so that the page code does not need to be threadsafe. whats the problem here? -Igor On 11/14/05,

Re: [Wicket-user] Re: Using the same PagingNavigator on the same page yields OutOfMemoryError

2005-11-14 Thread Andrew Berman
https://sourceforge.net/tracker/index.php?func=detailaid=1356696group_id=119783atid=684975 On 11/14/05, Juergen Donnerstag [EMAIL PROTECTED] wrote: Agreed. Would you please of a bug for it. ThanksJuergenOn 11/14/05, Andrew Berman [EMAIL PROTECTED] wrote: Since it is illegal, I think Wicket should

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Johan Compagner
ahh i read youre first message wrong because how it was written :) Why do we have ICompoundModel then? fixed it. johan On 11/14/05, Matej Knopp [EMAIL PROTECTED] wrote: Still, this is not what I'm asking for.class Component {...public Component setModel(final IModel model){...// If a compound

Re: [Wicket-user] Component and FLAG_HAS_ROOT_MODEL

2005-11-14 Thread Matej Knopp
Okay, I should have written it in a different way. I just wasn't sure if it was a bug or an intention :) -Matej Johan Compagner wrote: ahh i read youre first message wrong because how it was written :) Why do we have ICompoundModel then? fixed it. johan On 11/14/05, *Matej Knopp* [EMAIL

Re: [Spam] [Wicket-user] New to question on Wicket Application concept ?

2005-11-14 Thread Alexandru Popescu
#: Johan Compagner changed the world a bit at a time by saying on 11/14/2005 1:00 PM :# 1 thats easy. Just make sure you say: RequestCycle.setRedirect(false) on the pages you don't want a redirect to. I wasn't aware that this is the same as setting the ONE_PASS_RENDER strategy. Thanks.

Re: [Spam] [Wicket-user] New to question on Wicket Application concept ?

2005-11-14 Thread Johan Compagner
it is recommended but not really a requirement (it works for the examples project just fine to have multiply Applications in one WebApplication) On 11/13/05, Alexandru Popescu [EMAIL PROTECTED] wrote: #: Martijn Dashorst changed the world a bit at a time by saying on8/17/2005 9:41 PM :# Huy Do

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Alexandru Popescu
#: Igor Vaynberg changed the world a bit at a time by saying on 11/14/2005 6:49 PM :# we are talking about within the context of processing a request no? we sync on the session so only one request-processing thread can be inside a page instance during the processing of the request, so that

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Gili
The point is still valid. Within the scope of a single request, only one thread will access it at a time, but there is no guarantee the next request to that page will use the same thread. Gili Igor Vaynberg wrote: yes, a page instance is only accessed by 1 thread per request per user.

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Igor Vaynberg
but that is a basic fact of servlet containers. they pool threads, how else can they work? -Igor On 11/14/05, Gili [EMAIL PROTECTED] wrote: The point is still valid. Within the scope of a single request, onlyone thread will access it at a time, but there is no guarantee the nextrequest to that

[Wicket-user] Locale problems

2005-11-14 Thread Gili
Hi, I wanted to add a Dutch version of my website so I created a file Page_nl_NL.html like the one in wicket-examples then changed my locale in FireFox to dutch (which it labeled solely as nl). This didn't work (the Dutch version of the page wouldn't display when I hit it). I then renamed

Re: [Wicket-user] Locale problems

2005-11-14 Thread Gili
Restarting the browser was somehow responsible. That is, if you don't restart the browser between locale changes they don't get picked up. nl_NL works fine. Question: is this caching caused by the browser or Wicket? I seem to remember the Wicket code assumes the locale doesn't change

Re: [Wicket-user] Re: FormFeedbackIndicator

2005-11-14 Thread Phil Kulak
Are you adding the text field? On 11/10/05, Marco van de Haar [EMAIL PROTECTED] wrote: Typo, sorry, ofcourse I meant FormComponentFeedbackIndicator We're trying to test a TextField wit a FormFeedbackIndicator. but we keep getting a 'the following Components failed to render' error on

Re: [Wicket-user] Locale problems

2005-11-14 Thread Juergen Donnerstag
No. Wicket uses the locale information provided by the browser (http header). And only if none is provided, it'll use the remembered one. nl - is the standard dutch language Some languages have dialects (not sure this is the right word.). Think about like US english, UK english, NZ english etc.

[Wicket-user] Hooks again

2005-11-14 Thread Sven Meier
I would like to repeat my request for additional hooks in Wicket, preferrably allowing WebRequestCycle#invokeInterface() to be overriden. I've written before that I don't like the current hooks WebPage#beforeCallComponent() and WebPage#afterCallComponent() in scope of dependecy injection, but

Re: [Wicket-user] Hooks again

2005-11-14 Thread Igor Vaynberg
see protected Page onRuntimeException(final Page page, final RuntimeException e) in the Application class -Igor On 11/14/05, Sven Meier [EMAIL PROTECTED] wrote: I would like to repeat my request for additional hooks in Wicket, preferrably allowing WebRequestCycle#invokeInterface() to be

Re: [Spam] Re: [Wicket-user] Wicket thread safety

2005-11-14 Thread Johan Compagner
i just wanted to do an addition on igors line: yes, a page instance is only accessed by 1 thread per request per user. so that it is completely clear: (in my eyes) yes, a page instance is only accessed by 1 thread per request per user at the same time. because you could have more then 1 request

[Wicket-user] Re: Re: Re: My take on Spring integration

2005-11-14 Thread Maik Dobryn
Hi Igor, I'm very new to Wicket. The last days I tried to figure out how the Spring integration in Wicket works. There is a lot of confusion about the most recent practice. Unforturnatly, no documentation does exist which covers this important technique. So would You please provide a

Re: [Wicket-user] Wait Screen

2005-11-14 Thread Johan Compagner
if you could you can use ajax for this. But in a non ajax way i just use one page that has a meta refresh tag that checks every x seconds if the process is finished. No - redirect to that wait page with the meta refresh Yes - redirect to the result page. johan On 11/14/05, Dipu [EMAIL PROTECTED]

Re: [Wicket-user] Wait Screen

2005-11-14 Thread Nick Heudecker
The META Refresh method is pretty standard for all web app frameworks I've looked at.On 11/14/05, Johan Compagner [EMAIL PROTECTED] wrote:if you could you can use ajax for this. But in a non ajax way i just use one page that has a meta refresh tag that checks every x seconds if the process is

Re: [Wicket-user] Re: Keeping images outside of WEB-INF

2005-11-14 Thread Eelco Hillenius
Or use public class SimpleImage extends WebComponent { public SimpleImage(String id, String imgSrc) { super(id, new Model(imgSrc)); } public SimpleImage(String id, IModel imgSrcModel) { super(id, imgSrcModel); } protected

Re: [Wicket-user] Wait Screen

2005-11-14 Thread Phil Kulak
Meta refresh works and is a nice backup, but with AJAX you don't have to have the user looking at a flickering screen and you can put images and fancy things on the page. Here's how I do it. RedirectHandler.java Description: Binary data

Re: [Wicket-user] Re: Re: Re: My take on Spring integration

2005-11-14 Thread Phil Kulak
It's best to keep your app context beans in the Wicket application. See the wicket-phonebook example in wicket-stuff cvs. On 11/14/05, Maik Dobryn [EMAIL PROTECTED] wrote: Hi Igor, I'm very new to Wicket. The last days I tried to figure out how the Spring integration in Wicket works. There

Re: [Wicket-user] Locale problems

2005-11-14 Thread pepone pepone
I have the same problem with firefox and Spanish but i think the problem is that firefox only provide languajge code and no country code, with Konkeror it runs fine for me On 11/15/05, Johan Compagner [EMAIL PROTECTED] wrote: this is basic resource bundle lookup. if you have a Locale nl then

Re: [Wicket-user] Re: Re: Re: My take on Spring integration

2005-11-14 Thread Igor Vaynberg
While I agree with Phil, a lot of other people do not. the spring integration package is still very much a work in progress and thats why ive spent very little time on the documentation. That said, all the major pieces of it have javadoc and unit tests. What it lacks is an overview, so here it is: