Re: ResourceReference for resource in webapp dir

2012-02-09 Thread Martin Grigorov
Hi, I recommend you to read again the article. See below some improvements: On Wed, Feb 8, 2012 at 7:33 PM, Kayode Odeyemi drey...@gmail.com wrote: On Wed, Feb 8, 2012 at 3:58 PM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, Everything is possible. See

Re: Expiration of unversioned pages in Wicket 1.5

2012-02-09 Thread Martin Grigorov
Hi, I'm not sure whether this is the fix for this problem but we improved org.apache.wicket.request.cycle.RequestCycle#setResponsePage(Page) to set statelessHint to false even for stateless pages because without saving them in the store we are not able to find them later after the redirect. If

Re: continueToOriginalDestination seems to be incorrectly retaining destination across multiple logins

2012-02-09 Thread Martin Grigorov
Hi, The intercept data should be cleaned at org.apache.wicket.RestartResponseAtInterceptPageException, line 211 - InterceptData.clear(); Put a breakpoint there and see what happens. On Wed, Feb 8, 2012 at 7:55 PM, Evan Sable e...@novelution.com wrote: Hi, I'm using wicket 1.5-SNAPSHOT along

Re: Expiration of unversioned pages in Wicket 1.5

2012-02-09 Thread vineet semwal
what if RequestCycle#setResponsePage(Page) would have delegated to RequestCycle#setResponsePage(ClassPage) or RequestCycle#setResponsePage(ClassPage,Pageparameters) after checking whether the page#isstateless? but then user wouldnt be able to pass state from constructor if he wanted .. On Thu,

Re: wizard starting background task

2012-02-09 Thread Thomas Götz
N. Metzger wrote: 1) I start the background task in a lazy load panel, but haven't figured out yet how to display a progress bar while the lazy load is executing. You might also take a look at http://wicket.visural.net/examples/submitters (hit the Calculate X*Y (Modal) button). Cheers,

Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Matt
Hi everybody, I've got some issue about the DatePicker. I'm using Wicket 1.4.17 with wicket extension 1.4.17 as well. I'v got a modal window, with a form and inside a datetextfield with a datepicker. Everything is working fine with firefox but not with IE8. In fact, i can display the calendar

HTML5 offline storage

2012-02-09 Thread nino martinez wael
Hi Have any of you tried using wicket with HTML 5 offline mode, and somehow resynching data when coming online? regards Nino

JQWicket BlockUIBehavior does not work after target.addComponent()

2012-02-09 Thread vov
Hi All, Simple example: - final BlockUIBehavior blockBehavior = new BlockUIBehavior(); final FormVoid form = new FormVoid(form); AjaxButton ajaxButton = new AjaxButton(block) { @Override

Re: Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Martin Grigorov
Hi, There is an open issue about this: https://issues.apache.org/jira/browse/WICKET-4282 Unfortunately it doesn't have a quickstart to debug. Please attach one and we will try to fix it. Thanks! On Thu, Feb 9, 2012 at 3:12 PM, Matt matthieu.laurent-...@sgcib.com wrote: Hi everybody, I've got

RE: Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Wilhelmsen Tor Iver
When i put my mouse over one of those buttons (close or change month), i don't have the pointer cursor and when i click it does nothing. Welcome to the wonderful world of IE compatibility mode. You probably need to add a DOCTYPE declaration to the top of your HTML: !DOCTYPE html PUBLIC

Re: HTML5 offline storage

2012-02-09 Thread robert.mcguinness
nino, i'm about to start a coding effort with offline storage and wicket. i'll keep you posted with any findings. rob -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/HTML5-offline-storage-tp4372779p4372803.html Sent from the Users forum mailing list archive at

Re: Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Matt
Hi and thanks for the quick response. I have already read this jira issue but it is not exactly the same as my problem (though it's about ie8, so a fix woul be not to use it :p) ... i'm really busy so i donno if can make a quickstart app ... . -- View this message in context:

Re: HTML5 offline storage

2012-02-09 Thread nino martinez wael
Great:) 2012/2/9 robert.mcguinness robert.mcguinness@gmail.com nino, i'm about to start a coding effort with offline storage and wicket. i'll keep you posted with any findings. rob -- View this message in context:

call a javascript

2012-02-09 Thread cosmindumy
Hello again, I want to call a javascript when a java event. Actually on method mymethod() from my button I want to set a javascript and the first time the button is rerendered to call it. How can I do this? Thanks -- View this message in context:

Re: wizard starting background task

2012-02-09 Thread N. Metzger
To give you more information: I can ope a new page (or modal window) and start the wicketstuff progress bar with a new ajax button on that page. I can also open a new page with the ajax lazy load panel that will display the indicating gif while loading stuff in the background. What I'm looking

RE: Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Matt
Wilhelmsen Tor Iver wrote You probably need to add a DOCTYPE declaration to the top of your HTML: lt;!DOCTYPE html PUBLIC quot;-//W3C//DTD XHTML 1.0 Transitional//ENquot; quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtdquot;gt; html xmlns=http://www.w3.org/1999/xhtml;

RE: Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Matt
Mathieu Laurent Objet Direct consultant for SGCIB ITEC matthieu.laurent-...@sgcib.com From: Matt [via Apache Wicket] [mailto:ml-node+s1842946n4373065...@n4.nabble.com] Sent: Thursday, February 09, 2012 3:36 PM To: LAURENT Matthieu (EXT) ItecCttRrc Subject: RE: Problem DatePicker, ModalWindow

Re: Expiration of unversioned pages in Wicket 1.5

2012-02-09 Thread Igor Vaynberg
this is a bad idea. what if the user does MyPage p=new MyPage(); p.setSomeFlag(true); setResponsePage(p); wicket doesnt know that the instance of MyPage is prestine, so it cannot make the decision to throw it away and redirect to another instance. -igor On Thu, Feb 9, 2012 at 12:42 AM, vineet

StatelessForm: Cannot login

2012-02-09 Thread rene
Hello, I have a strange problem with StatelessForms in combination with login in: On my MainPage are two stateless forms. One for registration and one for the login (registration isn't implemented yet). When I try to log in, Wicket creates a new User() and saves it in the Session (I made this

Re: [1.5.4] addorReplace and then later visitor in same request

2012-02-09 Thread Igor Vaynberg
youve removed this from page hierarchy so you can no longer say this.getPage(). call getPage() on the component that replaced this -igor On Thu, Feb 9, 2012 at 5:27 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I have a problem where I first call addOrReplace on a components

Re: wizard starting background task

2012-02-09 Thread Thomas Götz
Simply implement your own FinishButton, e.g. extend AjaxButton and put your logic in it's unSubmit(…) method. Therefore you will have to override Wizard#newButtonBar(final String id) and provide your own impl, but WizardButtonBar does not have very much logic, so that's acceptable IMHO.

Re: wicket and javascript

2012-02-09 Thread Martin Grigorov
See https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/autocomplete-tagit-parent/autocomplete-tagit/src/main/java/org/wicketstuff/tagit/TagItAjaxBehavior.java#L114 and few lines above how this template is populated On Thu, Feb 9, 2012 at 7:18 PM, mukesh kumar

Re: StatelessForm: Cannot login

2012-02-09 Thread Per Newgro
If i understood your usecase correctly you're app is still stateless if you logged in. Afaik no session is created for stateless pages. So after you've logged in the session is away for your next page. And then the user is away to. You could debug it by print the hashcode of getSession() in

Re: wizard starting background task

2012-02-09 Thread N. Metzger
Yes, I tried that, too. I'm having problems ordering events. So I overwrite the finish button which then starts the background task as well as opens up a modal window with the progress bar. Szenario 1) The background process is started by the modal window itself and I need to add a form that

Re: StatelessForm: Cannot login

2012-02-09 Thread Per Newgro
And maybe this javadoc helps Session#bind() /** * Force binding this session to the application's {@link ISessionStore session store} if not * already done so. * p * A Wicket application can operate in a session-less mode as long as stateless pages are used. *

Re: [1.5.4] addorReplace and then later visitor in same request

2012-02-09 Thread nino martinez wael
Doh and thanks again! On Feb 9, 2012 5:57 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: youve removed this from page hierarchy so you can no longer say this.getPage(). call getPage() on the component that replaced this -igor On Thu, Feb 9, 2012 at 5:27 AM, nino martinez wael

Re: wizard starting background task

2012-02-09 Thread nino martinez wael
Then pass the reference around so it is possible:) On Feb 9, 2012 6:47 PM, N. Metzger nmetz...@odu.edu wrote: Yes, I tried that, too. I'm having problems ordering events. So I overwrite the finish button which then starts the background task as well as opens up a modal window with the progress

Re: Expiration of unversioned pages in Wicket 1.5

2012-02-09 Thread vineet semwal
yeah very true if it was done that way then user's state will be lost in this use case,thanks ! On Thu, Feb 9, 2012 at 9:27 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: this is a bad idea. what if the user does MyPage p=new MyPage(); p.setSomeFlag(true); setResponsePage(p); wicket

Re: Wicket in a Dot Net World

2012-02-09 Thread nino martinez wael
Ohh crap. :( thats bad. The worst part are it being closed source. For me it would mean changing jobs. Theres just too many things. Build server unit testing version control etc are a whole new thing. Just in those things a huge investment buying licenses (afaik all are $/commercial in ms land) .

Re: StatelessForm: Cannot login

2012-02-09 Thread René Bernhardsgrütter
Hi Per, thank you very much for your answers. Yes, that was it. I added WiaSession.get().bind(); to my LoginPanel and now it works as it should :-) Every time when the LoginPanel is showed, the session will be binded. Phu, I was trying to fix that over three days ^^ Regards, René On

Re: StatelessForm: Cannot login

2012-02-09 Thread Per Newgro
lol. Next time ask the community earlier. I always try to solve my problems alone. Sometimes it helps to build a quickstart and focus to the problem. But if i realy don't have an idea and google is not helping to - then i ask here. Normally you get help in short time. Btw: Thanks to all

Very simple Wicket test to verify panel type...

2012-02-09 Thread Bjørn Grønbæk
Hi, I'm just starting out with Wicket and WicketTester... I have a page that adds one of several panels, depending of its PageParameter. I would like to verify that behaviour with WicketTester... but how to? The code is something like this: String type = null; Panel p = null;

Re: Wicket Ajax direction and roadmap regarding push-like updates

2012-02-09 Thread Pierre Goupil
I was using wicketstuff-push with Wicket 1.4. And it used to prevent me from unit-testing because of NPEs in the push code, IIRC. Regards, Pierre Goupil On Wed, Feb 8, 2012 at 5:58 PM, pkc pkci...@gmail.com wrote: Sounds promising. As a wicket user, I would like to see a very tight

RE: Problem DatePicker, ModalWindow and IE8

2012-02-09 Thread Chris Colman
I had a similar problem. After trying many things the only solution was to do as the devs suggested: make sure the ModalWindow that opens the modal with the form in it is ITSELF in a form. Not sure why this is the only way to get modal forms with DatePickers working on IE 8 - it just is. We fixed

Re: Expiration of unversioned pages in Wicket 1.5

2012-02-09 Thread David Rain
On Thu, Feb 9, 2012 at 1:37 PM, Martin Grigorov mgrigorov at apache.org wrote: Hi, I'm not sure whether this is the fix for this problem but we improved org.apache.wicket.request.cycle.RequestCycle#setResponsePage(Page) to set statelessHint to false even for stateless pages because

Re: Very simple Wicket test to verify panel type...

2012-02-09 Thread Hans Lesmeister
Hi, panelid instead of :panelid? You can dump the Component-Tree to the console with tester.dumpXXX Am 09.02.12 21:59 schrieb Bjørn Grønbæk unter bjorn.gronb...@endomondo.com: Hi, I'm just starting out with Wicket and WicketTester... I have a page that adds one of several panels,

Re: Very simple Wicket test to verify panel type...

2012-02-09 Thread Martin Grigorov
Hi One way to see the component paths is: org.apache.wicket.util.tester.BaseWicketTester#debugComponentTrees Another way is by using DebugBar from wicket-devutils. At http://www.wicket-library.com/wicket-examples/forminput , in the top-right corner there is a link Inspector, click it and it will