RE: Link to last accessed page

2008-02-15 Thread Michael Sparer
I just get the page from the page map as follows: // get this page's ID int currentId = getPage().getPageMapEntry().getNumericId(); // -1 is the version number, -1 means the latest version (i think ...) Page p = getPage().getPageMap().get((currentId-1), -1); that works just fine and fits my

Re: Problem on undeploy

2008-02-15 Thread Sébastien Piller
Hello, I just tried it, and it worked :) I don't know if I can use this directive on my deployment server... I'll have a look with my hoster. After some investigation, I'm now quite sure that it's a Wicket problem. I tried with a very simple project (Hello World) and it made the lock.

Re: wicket-security Custom Access Denied Page

2008-02-15 Thread Maurice Marrink
That is very strange, it should work doing it your way but my way should work too since that is exactly what the hive itself is doing. It might be caused by the equal or hashcode of your permission / principal but then the authorization by the hive should fail too. Would you mind pasting your

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Sven Schliesing
I think I don't get it :( I narrowed down the problem to this test case. It would be great if you could take a look: --- public class WebApplicationTest { public class CustomSession extends WebSession { public CustomSession(Request request) {

Re: AjaxSelfUpdatingTimerBehavior, AjaxFallbackDefaultDataTable and a Form

2008-02-15 Thread Murat Yücel
Well the problem was how to keep the state when all objects was reloaded, but i have made a minor hack. I am placing all selected items in an arraylist and when the screen is refreshed the incoming list will be compared with the arraylist i keep internal. /Murat 2008/2/14, Martin Funk [EMAIL

update modalWindow content

2008-02-15 Thread Fredy Mesia
Hola People, Maybe this is an easy one... I've created a modal window with a panel inside. In the panel there's a link. When I click this link I want the content of this modal window to be completely changed. For that: 1) I get the enclosing window (the modal window) 2) get the content of this

Re: wicketstuff-rome and authentification.

2008-02-15 Thread Murat Yücel
Hi Maurice Can you point me in the right direction? What I need is the following. http://localhost:8080/rssfeed?username=adminpassword=12345678 The username and password should be validated against the database and if it is correct the feed should be generated. I can of course do this with a

Re: wicketstuff-rome and authentification.

2008-02-15 Thread Maurice Marrink
Why not use a filter? Wicket uses them too. I have absolutely no clue how wicketstuff-rome or rss for that matter works but it looks like they are using a regular wicket page. So the question is what do you want? i can think of the following solutions, but there are probably some more i haven't

Model update doesn't work with TabbedPanel?

2008-02-15 Thread Martijn Lindhout
Hi all, I have two 'almost' identical situations, both are using a plain form updating a simple Hibernate POJO. The same code is used for creating new entities and editing existing ones. One situation is really plain in the sense that it is just that, the other one is that the form is wrapped in

Re: Model update doesn't work with TabbedPanel?

2008-02-15 Thread Martijn Lindhout
ok, shame on me. The two cases were not so identical as I said. This was the problem: The working scenario had this: TextField naamField = new TextField(naam, new PropertyModel(getModel(), naam.value)); The not working one this: INawGegevens naw = ((IMedewerker)getModel)).getNawGegevens();

Re: Problem on undeploy

2008-02-15 Thread Johan Compagner
i guess this is a problem of the jvm/jdk itself I guess this is all related to the stupid i can't close a url connection thing because i guess it has something to do with the IInitializers lookup that somehowe holds on the something On Fri, Feb 15, 2008 at 9:29 AM, Sébastien Piller [EMAIL

RE: Problem on undeploy

2008-02-15 Thread Wang, Yuesong
It's not a wicket issue. When Tomcat has to access resources in a jar file of a web app, it may lock it. Another attribute your can try is antiJARLocking, which is a little nicer than autiResourceLocking. You really only need to set these attribute if you do hot redeployment, e.g. in a

Re: How to set no cache header

2008-02-15 Thread Martijn Dashorst
Just override the setHeaders method. I don't know what to say more. Martijn On 2/15/08, pnerkar [EMAIL PROTECTED] wrote: Hi Martijn, I tried but not able to find setHeader method for Page. Can you please explain this bit more ?? Regards, Pankaj. Martijn Dashorst wrote:

Re: How to set no cache header

2008-02-15 Thread pnerkar
Hi Martijn, I tried but not able to find setHeader method for Page. Can you please explain this bit more ?? Regards, Pankaj. Martijn Dashorst wrote: Override the setHeaders method of your page. Martijn On 1/23/08, Sébastien Piller [EMAIL PROTECTED] wrote: Hello guys, I would like

Palette : Set Selected Value

2008-02-15 Thread vincent Renaville
Hello, I use the Palette component and I want to set pre-selected value in the componenent. Soemebody have already done that ? Thanks for your help, Vincent

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Igor Vaynberg
you need to override newsession on the app and return your subclass -igor On Fri, Feb 15, 2008 at 2:00 AM, Sven Schliesing [EMAIL PROTECTED] wrote: I think I don't get it :( I narrowed down the problem to this test case. It would be great if you could take a look:

RE: wicket-security Custom Access Denied Page

2008-02-15 Thread Warren
Maurice, Here is my SimpleCachingHive and my Principal. I did not extend Permissin, I didn't think I had to. I pretty much based my implementation on you tabs example minus the tabs. Should I extend Permission and override hashCode() and equals(Object obj). And if I do, how do I force my hive to

RE: Link to last accessed page

2008-02-15 Thread Warren
Thanks, I will give it a try -Original Message- From: Michael Sparer [mailto:[EMAIL PROTECTED] Sent: Friday, February 15, 2008 1:25 AM To: users@wicket.apache.org Subject: RE: Link to last accessed page I just get the page from the page map as follows: // get this page's ID int

Re: back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread cemeterygate
i overload the setHeads method but still no luck. response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0,must-revalidate, no-store); i had the impressied that i must change the url (maybe by adding anchor has) when search result panel is freshed in order for

Re: Overlay div on ajax call

2008-02-15 Thread Jason Anderson
you might take a look at how IndicatingAjaxLink/Button show/hide the ajax loading indicator or just use it to show your hidden veil during an ajax operation On Thu, Feb 14, 2008 at 1:43 PM, JulianS [EMAIL PROTECTED] wrote: Martijn Dashorst wrote: See wicketstuff-minis' veil

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Timo Rantalaiho
On Fri, 15 Feb 2008, Igor Vaynberg wrote: you need to override newsession on the app and return your subclass But he did it here, no? public class MyApplication extends SpringWebApplication { private SpringComponentInjector springComponentInjector;

Multiple Homepage Mountpoints for Localization

2008-02-15 Thread oliverw
Hi I just wanted to make sure that my idea makes some sense if implemented this way. My prerequisites: 1. I want to mount my homepage and all it's children (which are not that many) multiple times at different mountpoints 2. Each mountpoint is prefixed with a language identifier which

Re: back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread cemeterygate
i tried that, still no luck. After i hit back button on user detail page, the research result is gone. Here is what i did, I have a search page which contains two panels, a search form panel and a search result panel. upon click on submit button, the AjaxSelfUpdatingTimerBehavior kicks in and

Re: back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread Igor Vaynberg
response.setHeader(Cache-Control, no-store); -igor On Fri, Feb 15, 2008 at 10:44 AM, cemeterygate [EMAIL PROTECTED] wrote: i overload the setHeads method but still no luck. response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0,must-revalidate,

back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread cemeterygate
I am using AjaxSelfUpdatingTimerBehavior to refresh the search result panel. I go to one of the search result, then hit back button, the search result panel is disappear. I thought back button is supported by wicket natively, but appearantly it doesn't in this case. So, what's the work around

Re: Overlay div on ajax call

2008-02-15 Thread Timo Rantalaiho
On Thu, 14 Feb 2008, JulianS wrote: If you have an example you can share I'd appreciate it. Sorry, I don't have a practical example to share just now, but it was nearly basic IAjaxIndicatorAware usage, just check that out. I think that maybe after the place of the indicator in HTML we

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Igor Vaynberg
right, missed it. i guess the next step would be to set a breakpoint there and see if its ever called. if not, set a breakpoint in websession constructor and see why that is invoked instead of the overridden factory. -igor On Fri, Feb 15, 2008 at 10:25 AM, Timo Rantalaiho [EMAIL PROTECTED]

Re: back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread James Carman
Perhaps we could set up some utility class for these hard-coded values. Something like... HeaderUtils.setCacheControl(HeaderUtils.CACHE_NO_STORE); If we're JDK5+, then I'd make a CacheControl enum maybe. On 2/15/08, Igor Vaynberg [EMAIL PROTECTED] wrote: response.setHeader(Cache-Control,

Re: Multiple Homepage Mountpoints for Localization

2008-02-15 Thread Jonathan Locke
what about writing or subclassing a url coding strategy to use the first part of the url to set the session's locale? oliverw wrote: Hi I just wanted to make sure that my idea makes some sense if implemented this way. My prerequisites: 1. I want to mount my homepage and all it's

AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown
Hi Guys, The AjaxFallbackDefaultDataTable (with SortableDataProvider) component that I'm using is not refreshing in IE6, but works fine with firefox. The Wicket Ajax Debugger says: ERROR: Error while parsing response: Object required INFO: Invoking post-call handler(s)... INFO: invoking

Re: back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread cemeterygate
maybe the problem lies on SearchPage is a home page. So when user hit back button, wicket create a new instance of SearchPage. What do you guys think? cemeterygate wrote: i tried that, still no luck. After i hit back button on user detail page, the research result is gone. Here is what

Re: How to set no cache header

2008-02-15 Thread Maurice Marrink
public class BasePage extends WebPage { protected void setHeaders(WebResponse response) { response.setHeader(Pragma, no-cache); response.setHeader(Cache-Control, no-cache, max-age=0, must-revalidate, no-store); } } Maurice On Fri, Feb 15, 2008 at

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to my.CustomSession

2008-02-15 Thread Nino Saturnino Martinez Vazquez Wael
Yeah, put some break points in there, and if you still have trouble provide a quickstart... regards Nino Sven Schliesing wrote: I think I don't get it :( I narrowed down the problem to this test case. It would be great if you could take a look: --- public class

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Igor Vaynberg
please enter a bug report along with a quickstart -igor On Fri, Feb 15, 2008 at 1:12 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: Hi Igor, Its wicket 1.3.1. Thanks, Allan -- The only constant in life is change. - Original Message From: Igor Vaynberg [EMAIL

Exception redirecting to source page

2008-02-15 Thread Cristiano Kliemann
Hi! I have some business runtime exceptions that I want to be automatically catched and its message rendered in the same page that threw it instead of redirecting to an error page. Is there a safe way to do that? These 'business exceptions' are usually thrown in some specific methods like

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Igor Vaynberg
argh, then its fine. do view source and see if its actually in the html source. -igor On Fri, Feb 15, 2008 at 1:15 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: Btw, the javascript that im referring to is my javascript found in the markup. But when I see the ajax debug it appends the ^

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown
Will do. ( https://issues.apache.org/jira/browse/WICKET-1349 ) Thanks, Wen Tong -- The only constant in life is change. - Original Message From: Igor Vaynberg [EMAIL PROTECTED] To: users@wicket.apache.org Sent: Friday, February 15, 2008 1:15:52 PM Subject: Re:

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown
It's not in the HTML. So that's probably just in the Ajax Debugger window. What does it mean to IE when this error occur? ERROR: Error while parsing response: Object required INFO: Invoking post-call handler(s)... INFO: invoking failure handler(s)... Regards, Wen Tong -- The

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Igor Vaynberg
it doesnt mean anything to IE. it probably means you have invalid markup somewhere, for example a div inside a span. -igor On Fri, Feb 15, 2008 at 1:35 PM, Beyonder Unknown [EMAIL PROTECTED] wrote: It's not in the HTML. So that's probably just in the Ajax Debugger window. What does it

Spring applicationContext.xml error

2008-02-15 Thread rmattler
I'm trying to get a Hibernate Spring Wicket app working and I'm stuck. Don't know where to start. Any help would be appreciated. If this is the wrong forum let me know. Thanks is advance. I'm get the following error: Error creating bean with name 'txManagerBean' defined in ServletContext

Re: back button issue with AjaxSelfUpdatingTimerBehavior, anyone had the same problem?

2008-02-15 Thread cemeterygate
I just did, it turned out the back button is creating a new instance of the page. Therefore, nothing is display on the page. I am trying to figure out how to return an instance instead of class when home page is loaded. I will look into hybridurlcodingstrategy. Thank you. igor.vaynberg wrote:

RE: How to NOT use wicket's Role class

2008-02-15 Thread Bruce McGuire
Hi Jonathan. Thanks for the information, no need for the apology. I am loving developing in Wicket. I just wish I had started earlier. Bruce. -Original Message- From: Jonathan Locke [mailto:[EMAIL PROTECTED] Sent: Thursday, 14 February, 2008 03:25 PM To: users@wicket.apache.org

Re: AjaxFallbackDefaultDataTable not refreshing in IE6

2008-02-15 Thread Beyonder Unknown
Btw, the javascript that im referring to is my javascript found in the markup. But when I see the ajax debug it appends the ^ character. Thanks, Wen Tong -- The only constant in life is change. - Original Message From: Beyonder Unknown [EMAIL PROTECTED] To: users@wicket.apache.org

Linking two DropDownChoices

2008-02-15 Thread Bruce McGuire
Hello. I have two DropDownChoices, both with Models (Databinder's HibernateObjectModel). One is subordinate to the other, in that when the first one's value changes, I would like to clear the second one, forcing the user to select from the second one, or perhaps setting the second one to a

Re: Spring applicationContext.xml error

2008-02-15 Thread James Carman
You need to check your classpath. The asm library is required for Hibernate. Download hibernate and check the lib directory. It has a file that explains when/why you need certain dependencies. On 2/15/08, rmattler [EMAIL PROTECTED] wrote: I'm trying to get a Hibernate Spring Wicket app

Re: Multiple Homepage Mountpoints for Localization

2008-02-15 Thread oliverw
Possible. Although I have to admit that the HybridUrlCodingStrategy source code looks quite intimidating :) Without debugging through the whole thing I do not even know where to begin. Jonathan Locke wrote: what about writing or subclassing a url coding strategy to use the first part of

RE: How to NOT use wicket's Role class

2008-02-15 Thread Jonathan Locke
well, spread the word! ;-) Bruce McGuire-2 wrote: Hi Jonathan. Thanks for the information, no need for the apology. I am loving developing in Wicket. I just wish I had started earlier. Bruce. -Original Message- From: Jonathan Locke [mailto:[EMAIL PROTECTED] Sent:

Best way of dashboard panels to be customised as part of a user profile.

2008-02-15 Thread Ned Collyer
Hi, If i have a dashboard (kinda like how Jira has its dashboards), if i want to persist the arrangement of panels, and the type .. what are my options? At the moment I'm thinking of using a list of widgets which will consist of the fully qualified dashboard widget class name, and a list of

Re: How to NOT use wicket's Role class

2008-02-15 Thread James Carman
Speaking of spreading the word, I'm planning on giving a talk on Wicket to our local Java users group next month. Are there any resources out there that you would suggest that I use? On 2/15/08, Jonathan Locke [EMAIL PROTECTED] wrote: well, spread the word! ;-) Bruce McGuire-2 wrote: