Re: setting and reading a JS variable from Wicket?

2011-11-03 Thread anantasthana
You can pass variables to wicket using wcall like: var wcall = wicketAjaxGet('${url}'+'?&lat='+p.coords.latitude.toFixed(2)+'&lon='+p.coords.longitude.toFixed(2)); now in my wicket web page i have a AbstractDefaultAjaxBehavior which receives this value i am embedding this url for the AbstractDe

setting and reading a JS variable from Wicket?

2011-11-03 Thread infiniter
I've got simple wizard implemented as a JS slider. In some steps there is a skip button and in the last step you can save the data. So this is actually just a form with controls in every slide, and the data in the steps that were skipped must not be saved when submitting the form. What I wanna do i

Why would this cause an error, session sharing and session classcast issues

2011-11-03 Thread Brown, Berlin [GCG-PFS]
Using wicket 1.4.13 (yea, I know I need to upgrade) I am getting a classcastexception error on wicket session classes with session sharing between webapps. This feature is supported by our web application server, IBM WebSphere Most of the time this works fine but for some reason, we get the er

Re: Hiding subclass components

2011-11-03 Thread Igor Vaynberg
its not in 1.5 -igor On Thu, Nov 3, 2011 at 3:01 PM, Allen Gilbert wrote: > Override MarkupContainer.add()? It's final, so I can't... > > On Thu, Nov 3, 2011 at 4:46 PM, Igor Vaynberg wrote: >> override add() and funnel everything into a non-transparent >> webmarkupcontainer. >> >> -igor >> >>

Re: Hiding subclass components

2011-11-03 Thread Allen Gilbert
Override MarkupContainer.add()? It's final, so I can't... On Thu, Nov 3, 2011 at 4:46 PM, Igor Vaynberg wrote: > override add() and funnel everything into a non-transparent > webmarkupcontainer. > > -igor > > On Thu, Nov 3, 2011 at 2:40 PM, Allen Gilbert wrote: >> Hello, >> >> I've defined an a

Re: Hiding subclass components

2011-11-03 Thread Igor Vaynberg
override add() and funnel everything into a non-transparent webmarkupcontainer. -igor On Thu, Nov 3, 2011 at 2:40 PM, Allen Gilbert wrote: > Hello, > > I've defined an abstract subclass of WebPage (BasePage) that knows > whether or not a user can access the content of any concrete page.  If > a

Hiding subclass components

2011-11-03 Thread Allen Gilbert
Hello, I've defined an abstract subclass of WebPage (BasePage) that knows whether or not a user can access the content of any concrete page.  If a user does not have access, I don't want to block them from landing on the page; instead, I'd like to show some page-specific content instructing them h

Re: invalid URL when using a pageparameter that contains a quote

2011-11-03 Thread Ryan
1.5.2 works as expected (no backslash in the url). Ryan On Thu, Nov 03, 2011 at 01:07:33PM -0700, Igor Vaynberg exclaimed: >Does it happen with 1.5.x? > >-igor >On Nov 3, 2011 12:20 PM, "Ryan" wrote: > >> Using Wicket 1.4.19 and doing something simple such as this: >> >> public HomePage(final P

Re: invalid URL when using a pageparameter that contains a quote

2011-11-03 Thread Igor Vaynberg
Does it happen with 1.5.x? -igor On Nov 3, 2011 12:20 PM, "Ryan" wrote: > Using Wicket 1.4.19 and doing something simple such as this: > > public HomePage(final PageParameters parameters) { >parameters.add("meh", "someone's link"); >add(new BookmarkablePageLink("link",HomePage.cl

invalid URL when using a pageparameter that contains a quote

2011-11-03 Thread Ryan
Using Wicket 1.4.19 and doing something simple such as this: public HomePage(final PageParameters parameters) { parameters.add("meh", "someone's link"); add(new BookmarkablePageLink("link",HomePage.class, parameters)); } The url that is generated for the link is: 127.0.0.1:8080/my

Re: abort loading lazy components

2011-11-03 Thread Martin Grigorov
Here is something that I didn't know so far: http://stackoverflow.com/questions/930237/javascript-cancel-stop-image-requests/1468452#1468452 It seems there is a way to simulate browser's stop button with JavaScript. Try to use that code from IAjaxCallDecorator#decorateScript() for your AjaxLink.

Re: what could have caused this: a page ID in listener URL getting a wrong page instance

2011-11-03 Thread Kent Tong
Hi Martijn, Thanks for the pointer! I'll give it a go. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: HTTP Response Splitting issue when reaching Wicket through AJP

2011-11-03 Thread Igor Vaynberg
please create a jira issue. -igor On Thu, Nov 3, 2011 at 7:02 AM, Gert-Jan Schouten wrote: > Hello! > > The problem is that a hacker can now post URL's that look like they're going > to your site on some forum or in an email. But when the user actually clicks > on the link, a custom header could

Re: Is there a way to be notified when a tab in a TabbedPanel is selected?

2011-11-03 Thread armandoxxx
Just a question ... what happens with other instances ? are they "forgotten" (null-ed) ? My problem is that I'm trying to put a PDFObject (displays PDF file in a div in a browser ) panel and JWPlayer (flash video player) into tab panel. So I have to know if "older" versions of these panels are

Orders of CSS files

2011-11-03 Thread Илья Нарыжный
Hello, Is there some way to specify "final" CSS file which will be used by browsers at the end - and that's why can rewrite some CSS rules? We have following case: we use "wicketstuff tagit autocomplite" component. This component contribute some CSS to the header. But we need to overwrite some cs

Re: HTTP Response Splitting issue when reaching Wicket through AJP

2011-11-03 Thread Gert-Jan Schouten
Hello! The problem is that a hacker can now post URL's that look like they're going to your site on some forum or in an email. But when the user actually clicks on the link, a custom header could redirect the user to a malicious site. In the example, I used "EvilHeader", but it could be any h

RE: abort loading lazy components

2011-11-03 Thread Michal Wegrzyn
I've just debugged and indeed problem is that there is no component with id "29". So clearly Wicket looks for an lazy "children" component from outdated DataView component. Michal > -Original Message- > From: Michal Wegrzyn [mailto:michal.wegr...@onior.com] > Sent: Wednesday, November 0

Re: HTTP Response Splitting issue when reaching Wicket through AJP

2011-11-03 Thread Martin Grigorov
Hi, Can you describe what exactly is the problem with these custom headers ? On Thu, Nov 3, 2011 at 2:04 PM, Gert-Jan Schouten wrote: > Hello all, > > When having a Wicket application installed on Tomcat and you call that > application through HTTP, Wicket is protected against HTTP Response > Sp

HTTP Response Splitting issue when reaching Wicket through AJP

2011-11-03 Thread Gert-Jan Schouten
Hello all, When having a Wicket application installed on Tomcat and you call that application through HTTP, Wicket is protected against HTTP Response Splitting. However, when you call Tomcat through AJP (for example through an apache httpd proxy), HTTP Response Splitting becomes possible. To

Re: Capturing requests to bookmarkable page and respond with 'static' page

2011-11-03 Thread Dirk Forchel
Yes, but not on my local machine. Strange enough, only the Panel example updates the name attribute correctly ... Oh dear, I found the problem. My local IDE made the String "name" final. So the PropertyModel could not update the value correctly. Now it works. Cheers. -- View this message in conte

Re: what could have caused this: a page ID in listener URL getting a wrong page instance

2011-11-03 Thread Martijn Dashorst
Upgrade to latest in 1.4.x. AFAIK there were some issues with session sharing due to lingering thread locals. Martijn On Thu, Nov 3, 2011 at 10:47 AM, Kent Tong wrote: > Hi, > > My users are frequently getting "internal errors" after a few minutes > of inactivity. From the log I can see that mos

Re: Capturing requests to bookmarkable page and respond with 'static' page

2011-11-03 Thread Martin Grigorov
On Thu, Nov 3, 2011 at 12:04 PM, Martin Grigorov wrote: > On Thu, Nov 3, 2011 at 12:01 PM, Dirk Forchel wrote: >> Hi Martin, >> do you mean the "asemail" package with the MailTemplate page? Unfortunately >> this example is not visible live (see >> http://www.wicket-library.com/wicket-examples/ind

Re: Capturing requests to bookmarkable page and respond with 'static' page

2011-11-03 Thread Martin Grigorov
On Thu, Nov 3, 2011 at 12:01 PM, Dirk Forchel wrote: > Hi Martin, > do you mean the "asemail" package with the MailTemplate page? Unfortunately > this example is not visible live (see > http://www.wicket-library.com/wicket-examples/index.html). But I'm able to I'll update that site soon. > run t

Re: Capturing requests to bookmarkable page and respond with 'static' page

2011-11-03 Thread Dirk Forchel
Hi Martin, do you mean the "asemail" package with the MailTemplate page? Unfortunately this example is not visible live (see http://www.wicket-library.com/wicket-examples/index.html). But I'm able to run these examples locally with the latest checkout. But if you type in your name into the input fi

what could have caused this: a page ID in listener URL getting a wrong page instance

2011-11-03 Thread Kent Tong
Hi, My users are frequently getting "internal errors" after a few minutes of inactivity. From the log I can see that mostly this is caused by: org.apache.wicket.WicketRuntimeException: component foo not found on page XYZ[id = 3], listener interface... The weird thing is that there is no "foo" c

Re: Determine the latest page in multi tabbed browsing

2011-11-03 Thread Martin Grigorov
Hi, In my application we also had similar needs and here is how we solved it. When an Ajax event is handled we also update the URL's hash with all necessary information to redo the same event (target.appendJavaScript('updateHash("someValue")')). When back button is clicked http://tkyk.github.com/j

RE: abort loading lazy components

2011-11-03 Thread Michal Wegrzyn
Disabling request logger didn't help, however if this only a trace issue then it does not matter through. Even if not, then still this is caused by the main issue, which is that probably Wicket tries to get lazy component that should be dropped. Best regards, Michal Wegrzyn > -Original Mes

Re: Determine the latest page in multi tabbed browsing

2011-11-03 Thread Dirk Arnoldt
there are two reasons: 1) our wicket 1.5 application makes heavy use of AJAX e.g. switching panels. As far as I know the wicket back button support has problems with AJAX - the DOM modifications are not reflected correctly (see https://issues.apache.org/jira/browse/WICKET-271) 2) our application

Re: Capturing requests to bookmarkable page and respond with 'static' page

2011-11-03 Thread Martin Grigorov
Hi, On Thu, Nov 3, 2011 at 10:35 AM, Dirk Forchel wrote: > Based on the staticpages examples in Wicket 1.4 we used a > CapturingBookmarkablePageRequestTargetUrlCodingStrategy to capture requests > to a bookmarkable page with page parameters and respond with a 'static' page > afterwards. During th

Capturing requests to bookmarkable page and respond with 'static' page

2011-11-03 Thread Dirk Forchel
Based on the staticpages examples in Wicket 1.4 we used a CapturingBookmarkablePageRequestTargetUrlCodingStrategy to capture requests to a bookmarkable page with page parameters and respond with a 'static' page afterwards. During the capture phase (CapturingBookmarkablePageRequestTarget#onCapture()

Re: template navigation using ajax

2011-11-03 Thread Martin Grigorov
AjaxLink#onClick(AjaxRequestTarget target) { rightPanel = rightPanel.replaceWith(new SomePanel(rightPanel.getId())); target.add(rightPanel); } On Thu, Nov 3, 2011 at 3:32 AM, pen wrote: > This is the wicket page example > http://www.wicket-library.com/wicket-examples/template/wicket/bookma

Re: How to clear PageMap in Wicket 1.5?

2011-11-03 Thread Martin Grigorov
Hi Matthias, On Thu, Nov 3, 2011 at 9:30 AM, Matthias Keller wrote: > Hi Martin > > I see this is getting in the same direction as it was with Wicket 1.4 - it > just doesn't work as expected. > The method you propose results in the next page shown as expected and going > back is not possible anym

Re: How to clear PageMap in Wicket 1.5?

2011-11-03 Thread Matthias Keller
Hi Martin I see this is getting in the same direction as it was with Wicket 1.4 - it just doesn't work as expected. The method you propose results in the next page shown as expected and going back is not possible anymore. But so is clicking on anything on the next page then - those links seem