Re: CSRF protection and preserving page mount names

2011-12-06 Thread Martin Grigorov
Hi, See https://issues.apache.org/jira/browse/WICKET-4140 There is a quickstart that shows how to do it. On Mon, Dec 5, 2011 at 11:40 PM, Dan Alvizu dalv...@pingidentity.com wrote: Hello, I'm migrating from wicket 1.4 to 1.5 and I am looking to port the cross site request forgery (CSRF)

RE: Freemarker+ExtJS vs Wicket questions

2011-12-06 Thread Wilhelmsen Tor Iver
Plus another problem I see is if I have to use separate templates for each script tag I may end up with lots of small files so my logic will be peppered around. How is that much different from using a bunch of Wicket classes with templates instead of placing all webapp logic in a

Re: Event or Notice when a ListView's Model changes

2011-12-06 Thread hfriederichs
I'm trying to do this, to send an Event in the DataView's onBeforeRender(), but now I encounter another issue. On the receiving side of the Event, in the onEvent(Component component, IEvent? event), I need a AjaxRequestTarget. Can I create an AjaxRequestTarget and pass it with the Event? I tried

Tree selection form component? (was: Re: Component for chained/dependent drop downs?)

2011-12-06 Thread Emmanouil Batsis (Manos)
On 11/19/2011 05:09 PM, Emmanouil Batsis (Manos) wrote: I was wondering if anyone has implemented a reusable component for handling hierarchical/dependent dropdowns as I'm thinking of having a go at it... I hijacked the thread as it seems relevant. At first I was after a component that adds

Re: Internationalization on panels

2011-12-06 Thread cosmindumy
Hi again, I have a curiosity. It's not my problem, but I want to know if is there a solution for the following problem. Now when I change the locale I refresh the whole page. (target.add(MyPage)). But I loose all the changes the user has made. (if he completed some fields) But how can I make to

Re: Event or Notice when a ListView's Model changes

2011-12-06 Thread Hans Lesmeister 2
Hi, hfriederichs wrote I'm trying to do this, to send an Event in the DataView's onBeforeRender(), but now I encounter another issue. On the receiving side of the Event, in the onEvent(Component component, IEvent? event), I need a AjaxRequestTarget. Can I create an AjaxRequestTarget

Updating Child Component Markup from Ajax

2011-12-06 Thread Richard W. Adams
I know that I need to call AjaxRequestTarget.addComponent() to re-render a component from Ajax, and that I must have previously called component.setOutputMarkupId(true). But the javadocs for AjaxRequestTarget aren't clear on whether only this single component is updated, or whether all its

Re: Updating Child Component Markup from Ajax

2011-12-06 Thread Sven Meier
Do I need to call setOutputMarkupId(true) on each individual child as well? no, just the top most component you want to be redrawn has to have a markup id. All its decendants will be updated as well. Sven Am 06.12.2011 14:54, schrieb Richard W. Adams: I know that I need to call

Re: Updating Child Component Markup from Ajax

2011-12-06 Thread Richard W. Adams
Ok, that's what I thought. My problem is that my child components AREN'T being updated. I've verified that the parent component (a group box) has a markup ID, and I'm adding the parent component to the AjaxRequestTarget. I set break points in the model class for the child value getter methods

Re: Updating Child Component Markup from Ajax

2011-12-06 Thread Martin Grigorov
Check Ajax Debug Window for any errors. Maybe the parent component is connected with wicket:container or also have .setRenderBodyOnly(true). Check that the produced markup for the parent component has id attribute. On Tue, Dec 6, 2011 at 3:25 PM, Richard W. Adams rwada...@up.com wrote: Ok,

Re: Updating Child Component Markup from Ajax

2011-12-06 Thread Richard W. Adams
Finally figured it out. I was calling the AjaxRequestTarget.addCopmonent() inside a modal content, instead of from the page where I created the modal. Basically, it was trying update the wrong page (wrong set of markup). Thanks for the insights. From: Martin Grigorov mgrigo...@apache.org

AjaxPagingNavigation.newPagingNavigationLink returning Link instead of AbstractLink?

2011-12-06 Thread infiniter
I've got staleless paging navigation that stores stuff in the page parameters. Now I need to create its AJAX version... When creating the AjaxPagingNavigation.newPagingNavigationLink I realized it returns a Link instance instead of an AjaxLink or AbstractLink (PagingNavition returns an

Re: AjaxPagingNavigation.newPagingNavigationLink returning Link instead of AbstractLink?

2011-12-06 Thread Martin Grigorov
Hi, It looks like a bug. Create a ticket please. On Tue, Dec 6, 2011 at 4:36 PM, infiniter infini...@gmail.com wrote: I've got staleless paging navigation that stores stuff in the page parameters. Now I need to create its AJAX version... When creating the

Re: how to implement a Form with Ajax Paginated List of Checkboxes?

2011-12-06 Thread heapifyman
Hi, I have the same problem and I would appreciate if you could post a code example of how you solved your problem? Specifically what you put into the AjaxCheckBox' onUpdate() method? Thanks 2011/8/11 bad boy badmas...@yahoo.com AjaxFormChoiceComponentUpdatingBehavior did not work. For some

problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
Hi, I have a problem wih AjaxFallbackLink on IE. I have a captcha image and I want when I click on image to chage the image. Everything worked fine, but I noted on another machine that on my production server on IE when I click on image I got a null pointer exception. The problem is that on my

Re: CSRF protection and preserving page mount names

2011-12-06 Thread Dan Alvizu
That works, thanks! On Tue, Dec 6, 2011 at 1:06 AM, Martin Grigorov mgrigo...@apache.orgwrote: Hi, See https://issues.apache.org/jira/browse/WICKET-4140 There is a quickstart that shows how to do it. On Mon, Dec 5, 2011 at 11:40 PM, Dan Alvizu dalv...@pingidentity.com wrote: Hello,

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread Martin Grigorov
On Tue, Dec 6, 2011 at 5:41 PM, cosmindumy cosmind...@yahoo.com wrote: Hi, I have a problem wih AjaxFallbackLink on IE. I have a captcha image and I want when I click on image to chage the image. Everything worked fine, but I noted on another machine that on my production server on IE when I

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
I'm not at office now but most surely this line is Registration.java:787 : target.addComponent(captchaImage); and I think target is null. I think I had this problem before in another context, but then target was null all the time, on all browsers. I changed AjaxFallbackLink with AjaxLink and it

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread Nicklas Johnson
I believe target is null when you're in fallback mode with an AjaxFallbackLink. You'll need to check for null and handle things accordingly, as though it were a normal link. On 12/6/11 10:24 AM, cosmindumy cosmind...@yahoo.com wrote: I'm not at office now but most surely this line is

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread Martin Grigorov
On Tue, Dec 6, 2011 at 7:48 PM, Nicklas Johnson njohn...@cisco.com wrote: I believe target is null when you're in fallback mode with an AjaxFallbackLink.  You'll need to check for null and handle things accordingly, as though it were a normal link. Yes, IE is famous with its restrictions

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
Yes, IE is famous with its restrictions installed on a Server version of Windows. Some setting disallows Ajax.. But why on other machines it works. Is a problem with my IE? -- View this message in context:

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread cosmindumy
I believe target is null when you're in fallback mode with an AjaxFallbackLink. You'll need to check for null and handle things accordingly, as though it were a normal link. What means fallback mode? how can I refresh the component if target is null? -- View this message in context:

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread Martin Grigorov
On Tue, Dec 6, 2011 at 8:02 PM, cosmindumy cosmind...@yahoo.com wrote: Yes, IE is famous with its restrictions installed on a Server version of Windows. Some setting disallows Ajax.. But why on other machines it works. Is a problem with my IE? I think so. Play with its settings (options)

Re: problems with AjaxFallbackLink on IE

2011-12-06 Thread Dan Retzlaff
In fallback mode the entire page is being rendered, so there's no need to identify particular components that changed. Why it's falling back is perhaps an IE issue, but I think you should be prepared for null as Nicklas suggests. On Tue, Dec 6, 2011 at 11:02 AM, cosmindumy cosmind...@yahoo.com

Re: Event or Notice when a ListView's Model changes

2011-12-06 Thread hfriederichs
But when the event is processed, I'm not in an AjaxRequest. Anyway, I have something working, now, I am able to update a version field (by sending an inter-component event in the onBeforeRender() of the ListView that has it's own Form; the Event is processed by another Form at the top of the

AjaxPagingNavigation not updating DataView

2011-12-06 Thread infiniter
I have created AjaxPagingNavigation which is supposed to update a DataView The problem is that when clicking on a page number link to go to another page, the data view does not get updated. When the page is loaded for the first time there are no problems.. but when clicking on the page number

RE: ConcurrentModificationException

2011-12-06 Thread Fang Lin
Thanks, Martin! In the init(), I have: { getMarkupSettings().setStripWicketTags(true); IApplicationSettings settings = getApplicationSettings(); settings.setAccessDeniedPage(AccessErr.class); settings.setPageExpiredErrorPage(SessionErr.class);

Re: ConcurrentModificationException

2011-12-06 Thread Martin Grigorov
No, I don't see anything wrong here. If you are able to reproduce it then we can debug it. On Tue, Dec 6, 2011 at 9:40 PM, Fang Lin fang...@u.washington.edu wrote: Thanks, Martin! In the init(), I have: {   getMarkupSettings().setStripWicketTags(true);    IApplicationSettings settings =

RE: ConcurrentModificationException

2011-12-06 Thread Fang Lin
I have been trying to reproduce it on our dev server this morning, but could not. However I did run into it twice on our production server yesterday. I wonder if you could answer my question Is this exception handler invoked before or after the ErrorPages ? -Original Message- From:

Re: ConcurrentModificationException

2011-12-06 Thread Martin Grigorov
On Tue, Dec 6, 2011 at 11:06 PM, Fang Lin fang...@u.washington.edu wrote: I have been trying to reproduce it on our dev server this morning, but could not. However I did run into it twice on our production server yesterday. I wonder if you could answer my question  Is this exception handler

RE: ConcurrentModificationException

2011-12-06 Thread Fang Lin
I noticed that there are only two types of exceptions handled by this handler so far: 1. WicketRuntimeException : Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at [SearchForm [Component id = search_form]] on component [SearchForm

RE: ConcurrentModificationException

2011-12-06 Thread Fang Lin
I have just run into the ConcurrentModificationException on my dev server. Not that I can reproduce it, but I got more details: 1. my session has expired 2. the PageExpiredErrorPage SessionErr was invoked. Internally it executed this statement: public SessionErr () { super ();

RE: ConcurrentModificationException

2011-12-06 Thread Fang Lin
Should I use scheduleRequestHandlerAfterCurrent instead of replaceAllRequestHandlers ? -Original Message- From: Fang Lin [mailto:fang...@u.washington.edu] Sent: Tuesday, December 06, 2011 3:39 PM To: users@wicket.apache.org Subject: RE: ConcurrentModificationException I have just run

Convert wicket ajax posts do wicket ajax get requests

2011-12-06 Thread Brown, Berlin [GCG-PFS]
I am having issues with IE and ajax post requests. The issue is reported here: http://support.microsoft.com/kb/895954 As a way to address the issue, I was thinking of addressing the application. There are several places with ajax post requests. I was trying to see if I can convert those

Re: Integrating Google maps with wicket web application

2011-12-06 Thread Josh Kamau
Yes . Google for Wicket gmap2 component. I think its in wicketstuff project. regards. Josh. On Wed, Dec 7, 2011 at 9:36 AM, raju.ch raju.challagun...@gmail.com wrote: Hi folks, Is there any plugin or component directly in wicket for Integrating Google maps? -- View this message in

Re: Integrating Google maps with wicket web application

2011-12-06 Thread raju.ch
where can i find this JAR or Can you share me the url? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Google-maps-with-wicket-web-application-tp4167839p4167880.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Integrating Google maps with wicket web application

2011-12-06 Thread raju.ch
The URL https://wicket-stuff.svn.sf.net/svnroot/wicket-stuff/trunk/wicketstuff-core/gmap2-parent is not working it seems -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Google-maps-with-wicket-web-application-tp4167839p4167883.html Sent from the Users

WebApplication.get().getSharedResources.remove()

2011-12-06 Thread John Toncart
Hi folks, in 1.4 I was doing (pseudo code, real code is longer): public class MyPage extends WebPage { public MyPage() { ... DynamicImageResource image = new DynamicImageResource(); image.setImageData(_my_generated_byte_array_); ...

Re: Integrating Google maps with wicket web application

2011-12-06 Thread raju.ch
Thank you very much josh -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Integrating-Google-maps-with-wicket-web-application-tp4167839p4167944.html Sent from the Users forum mailing list archive at Nabble.com.

Re: Integrating Google maps with wicket web application

2011-12-06 Thread Martin Grigorov
http://repo1.maven.org/maven2/org/wicketstuff/wicketstuff-gmap2/1.5.3/ This is the latest version On Wed, Dec 7, 2011 at 8:12 AM, raju.ch raju.challagun...@gmail.com wrote: Thank you very much josh -- View this message in context:

Re: Integrating Google maps with wicket web application

2011-12-06 Thread Josh Kamau
Thanks Martin. On Wed, Dec 7, 2011 at 10:13 AM, Martin Grigorov mgrigo...@apache.orgwrote: http://repo1.maven.org/maven2/org/wicketstuff/wicketstuff-gmap2/1.5.3/ This is the latest version On Wed, Dec 7, 2011 at 8:12 AM, raju.ch raju.challagun...@gmail.com wrote: Thank you very much josh

Re: WebApplication.get().getSharedResources.remove()

2011-12-06 Thread vineet semwal
can i ask why are you dismounting? create your resourcereference that returns your resource,use resourcereference for mounting and Key key =new Key(your ResourceReference) you should also read a very nice martin-g's article on how to mount resources in wicket 1.5