Re: [Wicket-user] About putting other resources in classpath

2006-12-18 Thread Johan Compagner
yes make it a wicket component. On 12/18/06, Carfield Yim [EMAIL PROTECTED] wrote: Also, is it possible to make img tag work for image at classpath On 12/18/06, Carfield Yim [EMAIL PROTECTED] wrote: For the directory I am now putting CSS, there is also a HTML that I use to use

[Wicket-user] ajax component caching

2006-12-18 Thread Carfield Yim
look like there is strangle browser cache for ajax component (modalwindow is the one I get this problem) . Even if I setup HTTP to no-cache: response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache); //response.setHeader(Cache-Control, private);

Re: [Wicket-user] ajax component caching

2006-12-18 Thread Matej Knopp
Why should be the css not cached? Where do you put the code you are mentioning? Because request that fetches css (and other resources) is different than request for a page / ajax request and wicket treats it differently. What's the reason of not caching css? -Matej Carfield Yim wrote: look

Re: [Wicket-user] ajax component caching

2006-12-18 Thread Carfield Yim
I am now put the CSS to classpath, after the CSS the browser don't get the new one. And this only happen in ModalWindows, normal webpage will fetch the CSS after it change On 12/18/06, Matej Knopp [EMAIL PROTECTED] wrote: Why should be the css not cached? Where do you put the code you are

Re: [Wicket-user] ajax component caching

2006-12-18 Thread Erik van Oosten
There is indeed a good case for not caching css in development mode. It is a mortal sin in deployment mode. Erik. Carfield Yim wrote: I am now put the CSS to classpath, after the CSS the browser don't get the new one. And this only happen in ModalWindows, normal webpage will fetch the

Re: [Wicket-user] HTML ids in 2.0-SNAPHOT are being generated even when hardcoded

2006-12-18 Thread Otan
why do I still get this exception: SEVERE: cannot update component that does not have setOutputMarkupId property set to true. Component: [MarkupContainer [Component id = title, page = openknowledge.EditPage, path = 5:editForm:title.RequiredTextField, isVisible = true, isVersioned = false]]

[Wicket-user] wicket-stuff svn issues

2006-12-18 Thread Ryan Sonnek
I know this isn't a core wicket issue, but is anyone else having issues with the wicket-stuff svn on sourceforge? I'm getting: 405 Method Not Allowed (https://svn.sourceforge.net) - Take Surveys. Earn Cash. Influence the

Re: [Wicket-user] wicket-stuff svn issues

2006-12-18 Thread Erik van Oosten
I guess you missed Martijn's e-mail: http://www.nabble.com/Wicket-Stuff-SVN-repository-change-tf2760948.html#a7697553 Regards, Erik. Ryan Sonnek schreef: I know this isn't a core wicket issue, but is anyone else having issues with the wicket-stuff svn on sourceforge? I'm getting: 405

Re: [Wicket-user] AjaxSubmitButton and not adding it to a Form

2006-12-18 Thread ChuckDeal
It gets there fine, its this line: if (submit.getForm() == Form.this that is the problem. submit (which is the button) does not belong to a Form, it is supposed to contain a reference to a Form instead. SInce it can't find a Form object for the button it throws an exception throw new

Re: [Wicket-user] DefaultButtonImageResource to get image

2006-12-18 Thread wicketmarsh
I mean root of the app. i don't want to harcode the button image in html I know we can use packageResource.get(scope,path) for ImageButton class, i.e. new ImageButton(sbutton, packageResource.get(A.class,a.gif) ) this needs images to be put into java class package and i want it in web app root

Re: [Wicket-user] Fwd: Firefox and ModalWindow

2006-12-18 Thread Andrew Klochkov
Yep, I randomly have the same problem - page expired after closing modal window. And if I recreate the page which shows the modal - it doesn't solve the problem. But if I recreate http session - everything is OK and after that I can't repeat the error. I just realized that the modal window

Re: [Wicket-user] HTML ids in 2.0-SNAPHOT are being generated even when hardcoded

2006-12-18 Thread Igor Vaynberg
try now -igor On 12/18/06, Otan [EMAIL PROTECTED] wrote: why do I still get this exception: SEVERE: cannot update component that does not have setOutputMarkupId property set to true. Component: [MarkupContainer [Component id = title, page = openknowledge.EditPage, path =

Re: [Wicket-user] DefaultButtonImageResource to get image

2006-12-18 Thread Igor Vaynberg
class staticimage extends webcomponent { public staticimage(string id, imodel model) { super(id, model); } protected void oncomponenttag(tag) { checkcomponenttag(tag, img); tag.put(src, getModelObjectAsString()); } } -igor On 12/18/06,

[Wicket-user] Bean Edit Panel

2006-12-18 Thread Ayodeji Aladejebi
What happened to Bean Edit Panel? i once saw a component in wicket extensions called bean edit where one can pass a bean reference to a panel and edit it...why was it removed and where to..cuz i found myself needing it du i just go ahead and write what i need or no need to re invent the

[Wicket-user] A question about wicket versions

2006-12-18 Thread Ian Clarke
I'm resending this in its own thread as it is a separate question: I'm currently using Wicket 1.2.2. I know the current version is 1.2.3, and there is a 2.0 in the works. My project is scheduled for launch around April of next year, and we have used Quickstart as a starting point. Should we be

Re: [Wicket-user] A question about wicket versions

2006-12-18 Thread Igor Vaynberg
On 12/18/06, Ian Clarke [EMAIL PROTECTED] wrote: I'm resending this in its own thread as it is a separate question: I'm currently using Wicket 1.2.2. I know the current version is 1.2.3, and there is a 2.0 in the works. My project is scheduled for launch around April of next year, and we

Re: [Wicket-user] A question about wicket versions

2006-12-18 Thread Ian Clarke
On 12/18/06, Igor Vaynberg [EMAIL PROTECTED] wrote: On 12/18/06, Ian Clarke [EMAIL PROTECTED] wrote: if you are using jdk 1.5 you can upgrade to 2.x, but you have to keep in mind 2.x is still very much a moving target. what that means is that sometimes things break, sometimes even important

Re: [Wicket-user] A question about wicket versions

2006-12-18 Thread Igor Vaynberg
indeed. pro wicket covers 1.2.x, and has a small appendix on 2.0 wicket in action will cover 2.x but wont be out for some time if you want to use something that is stable and has more bells and whistles than 1.2.x then i would go with 1.x 1.3 should be coming soon and will be our first

Re: [Wicket-user] HTML ids in 2.0-SNAPHOT are being generated even when hardcoded

2006-12-18 Thread Otan
It works fine now. Thanks On 19/12/06, Igor Vaynberg [EMAIL PROTECTED] wrote: try now -igor On 12/18/06, Otan [EMAIL PROTECTED] wrote: why do I still get this exception: SEVERE: cannot update component that does not have setOutputMarkupId property set to true. Component:

Re: [Wicket-user] ajax component caching

2006-12-18 Thread Carfield Yim
Where do you put the code you are mentioning? Because request that Forget to mention about this, I put this block of code at onBeginRequest() of my custom IRequestCycleFactory.newRequestCycle() . Which, I suppose the CSS put at class will change the HTTP response header when somebody request it.

Re: [Wicket-user] ajax component caching

2006-12-18 Thread Carfield Yim
On 12/18/06, Erik van Oosten [EMAIL PROTECTED] wrote: There is indeed a good case for not caching css in development mode. It is a mortal sin in deployment mode. Exactly, but look like it is hard to not cache CSS for AJAX request, and I just double confirmed that for normal webpage, it work

[Wicket-user] How can I do URL mapping in wicket?

2006-12-18 Thread Carfield Yim
This is much more complicate than what I thought, I try to add some code to isPageAuthorized() method when the user login as also change the onBeginRequest() method, but it does work and it is hard to figure out what going wrong. Is there already any support of URL mapping that say map

Re: [Wicket-user] How can I do URL mapping in wicket?

2006-12-18 Thread Nick Heudecker
Are you talking about page mounting? Take a look at mountBookmarkablePage(...) in the Application class. On 12/18/06, Carfield Yim [EMAIL PROTECTED] wrote: This is much more complicate than what I thought, I try to add some code to isPageAuthorized() method when the user login as also change

Re: [Wicket-user] How can I do URL mapping in wicket?

2006-12-18 Thread Carfield Yim
On 12/19/06, Nick Heudecker [EMAIL PROTECTED] wrote: Are you talking about page mounting? Take a look at mountBookmarkablePage(...) in the Application class. I don't know why but I cannot get it to work, After I add the map, say mountBookmarkablePage(/signup, Registration.class); If

Re: [Wicket-user] How can I do URL mapping in wicket?

2006-12-18 Thread Erik van Oosten
Perhaps you made Registration protected with some kind of authorization scheme? Erik. Carfield Yim schreef: I don't know why but I cannot get it to work, After I add the map, say mountBookmarkablePage(/signup, Registration.class); If I go to URL: