Re: Sending data to a wicket form through a POST from an external site

2009-08-25 Thread Igor Vaynberg
and why would they need that? what is the advantage of that vs simply using pageparameters? -igor On Mon, Aug 24, 2009 at 9:24 PM, Anton Veretennikovanton.veretenni...@gmail.com wrote: They mean trigger a form submit somehow as if it was a wicket form as I understood. -- Tony On Tue, Aug

Re: Sending data to a wicket form through a POST from an external site

2009-08-25 Thread Martin Makundi
I guess it would be possible with a stateless form? ** Martin 2009/8/25 Igor Vaynberg igor.vaynb...@gmail.com: and why would they need that? what is the advantage of that vs simply using pageparameters? -igor On Mon, Aug 24, 2009 at 9:24 PM, Anton Veretennikovanton.veretenni...@gmail.com

Hide component when instantiating component not authorized to

2009-08-25 Thread Kees van Dieren
Hi all, We would like to hide a Panel marked with @AuthorizeInstantiation(RoleNotAuthorizedTo); The default behaviour is that wicket sends AccessDeniedPage. We are using wicket 1.3.7. I implemented the desired solution by duplicating the complete

Re: Hide component when instantiating component not authorized to

2009-08-25 Thread Wilhelmsen Tor Iver
I implemented the desired solution by duplicating the complete org.apache.wicket.authentication.AuthenticatedWebApplication class in our source tree, What was wrong with implementing IAuthorizationStrategy.isActionAuthorized() and adding getSecuritySettings().setAuthorizationStrategy(new

SV: Hide component when instantiating component not authorized to

2009-08-25 Thread Wilhelmsen Tor Iver
What was wrong with implementing IAuthorizationStrategy.isActionAuthorized() and adding getSecuritySettings().setAuthorizationStrategy(new YourParticularImplementation()); in your Application.init()? The action to test for is Component.RENDER. Ah, perhaps the other method is more to your

Wicket and FindBugs

2009-08-25 Thread Wilhelmsen Tor Iver
It seems that our developers frequently mistakenly forget to use item.add() and end up writing add() in ListView sublasses and the like. This sounds like a job for FindBugs, do anyone know of any existing FindBugs plugin that deals with common mistakes in Wicket code? Med vennlig hilsen TOR

Re: RequestCycle bug at urlFor?

2009-08-25 Thread Vytautas Čivilis
Hi Francisco. It's certainly the same location in code, but the issues are a bit different. I've filed the bug at https://issues.apache.org/jira/browse/WICKET-2434 Vytautas francisco treacy wrote: Hi Vytautas, Honestly I don't know if it's the same problem but I did went through lots of

Updating DIV with Wicket Response

2009-08-25 Thread AKPALICH
I have a page built in SpringMVC. I have a iFrame in this page that renders a Wicket Page. I want to replace the iFrame with a DIV and load the Wicket page inside the DIV using Ajax. I used Prototype to load the wicket page. The page loads but the wicket javascript does not work anymore. I

Re: Updating DIV with Wicket Response

2009-08-25 Thread Martin Makundi
Hi! Are you trying to do a server side include? ** Martin 2009/8/25 akpal...@upcontractor.up.com: I have a page built in SpringMVC. I have a iFrame in this page that renders a Wicket Page. I want to replace the iFrame with a DIV and load the Wicket page inside the DIV using Ajax. I used

Re: Truncating DataTable content

2009-08-25 Thread Linda van der Pal
Just in case anybody is interested in the solution. I've extended ChoiceFilteredPropertyColumn (as that was the type of column I was using for my AjaxFallbackDefaultDataTable) and have overridden populateItem (which was originally implemented in PropertyColumn). In that method I both truncate

Re: Absolute urls in forms

2009-08-25 Thread Erik van Oosten
I added a patch in Jira. Regards, Erik. Erik van Oosten wrote: Anyways, you can make all URLs absolute by following the hints in https://issues.apache.org/jira/browse/WICKET-1974. You'll need to patch Wicket as the issue is not yet solved. (I really should make the patch, its

Re: Nial Darbey: ClassCast exception when invoking MySession.get() from Maven test phase

2009-08-25 Thread Nial Darbey
Igor,thanks for that. Yes, the solution was in passing the DummyApplication to the WicketTester constructor. Nial 2009/8/20 Igor Vaynberg igor.vaynb...@gmail.com are you making wicket tester instantiate your own application class? -igor On Thu, Aug 20, 2009 at 3:09 AM, Nial

Re: Absolute urls in forms

2009-08-25 Thread Steen Larsen
Thanks 2009/8/25 Erik van Oosten e.vanoos...@grons.nl: I added a patch in Jira. Regards,    Erik. Erik van Oosten wrote: Anyways, you can make all URLs absolute by following the hints in https://issues.apache.org/jira/browse/WICKET-1974. You'll need to patch Wicket as the issue is

Re: at least one-validation?

2009-08-25 Thread Stefan Malmesjö
Yeah, I got that part. Easy in theory, a bit more complicated in real life :) I'm doing something wrong, and I can't figure out what. My IFormValidator doesn't seem to get the request params correctly. If, in validate(), I use getInput() on the FormComponents, then I get null no matter what

Re: Regarding datepicker popup when inputfield pressed

2009-08-25 Thread copenhag copenhagen
Hi, A very nice solution to the this problem could be as Michael Mosmann suggested: initStart3 = function() { Wicket.DateTime.init( { you should extend the input tag with -- onfocus=initStart3.showCalendar() The problem is that in the wicket-date.js the showCalendar

Re: Hide component when instantiating component not authorized to

2009-08-25 Thread Igor Vaynberg
you can use oncomponentaction(action) { if action==component.render return false; } to hide any components that should not be visible. -igor On Tue, Aug 25, 2009 at 12:42 AM, Kees van Dierenkeesvandie...@gmail.com wrote: Hi all, We would like to hide a Panel marked with

Replacing content in a ModalWindow issue

2009-08-25 Thread Doug Leeper
I have looked at the ModalWindow javadoc, searched through Nabble, and tried several different approaches but I cannot do the following. I have a ModalWindow showing a Panel A. This panel has a link that when selected, it is to show a ModalWindow with another Panel B. Ideally,

Re: Replacing content in a ModalWindow issue

2009-08-25 Thread Martin Makundi
Off the top of my head, you do not need anything special. Just show the same modal window again after the callback. Unless the modal window is cleaned up only after callbakc. BTW: Why close the modal window in the first place? Why not just replace the content while the modal window is open? Just

Re: at least one-validation?

2009-08-25 Thread vineet semwal
what is attribute search panel and how are you actually creating the list of form components? following is the easiest way .. 1. create a list of formcomponent say a arraylist 2)in popolulate method of your listview,add the textfields or any other fc to list. so by the end of method you have a

Re: Quick model/user/session question

2009-08-25 Thread Dane Laverty
Progress is being made. Thanks again for your suggestion, Martijn. I discovered this thread ( http://www.nabble.com/Storing-user-entity-in-session--td22113666.html#a22113666) where you discussed putting the user in the RequestCycle in some more detail. That helped me rebuild my RequestCycle [1].

Re: Quick model/user/session question

2009-08-25 Thread Dane Laverty
I'm using dbcp, as per below. I'll try switching over to c3p0 and see if that helps. bean id=dataSourceOracle class=org.apache.commons.dbcp.BasicDataSource destroy-method=close property name=driverClassName value=${jdbc.oracle.driver}/ property name=url

Re: Quick model/user/session question

2009-08-25 Thread Edward Zarecor
There's no connection pool size defined. Is the default pool size for dbcp 1? Ed. On Aug 25, 2009 5:29 PM, Dane Laverty danelave...@gmail.com wrote: I'm using dbcp, as per below. I'll try switching over to c3p0 and see if that helps. bean id=dataSourceOracle

Re: Quick model/user/session question

2009-08-25 Thread Dane Laverty
Good point. Now that I've switched to c3p0, I'm getting more debug info, i.e.: DEBUG - BasicResourcePool - [managed: 3, unused: 1, excluded: 0] DEBUG - BasicResourcePool - [managed: 3, unused: 0, excluded: 0] DEBUG - BasicResourcePool - [managed: 4, unused: 1, excluded: 0] DEBUG -

FileUploadField bug in Chrome with ajax?

2009-08-25 Thread Tauren Mills
I haven't confirmed this is really a bug yet, but it looks like there may be a problem using Ajax form submit with FileUploadField in Chrome. I'm using Wicket 1.4.1. Using an ajaxbutton submitted form, I get this error in wicket-ajax-debug: ERROR: Wicket.Ajax.Call.failure: Error while parsing