[DISCUSS] Security Frameworks

2012-10-17 Thread Jeremy Thomerson
Our of curiosity: among the wider community: what security framework(s) do you use with with Wicket, and why? [ ] I use my own custom framework [ ] I use Shiro [ ] I use Spring Security [ ] I use WASP/Swarm [ ] Other (please specify) And don't forget the "why". -- Jeremy Thomerson http://w

Re: Clueless on this error

2012-10-17 Thread Stephen Walsh
I'll review when I get home. Thanks for the quick reply. __ Stephen Walsh On Oct 17, 2012, at 14:44, "Richard W. Adams" wrote: > Just a guess, but based on ClassNotFoundException: > com.campingawaits.CampingAwaitsApp, it sounds like something changed your > classpath

Re: Clueless on this error

2012-10-17 Thread Richard W. Adams
Just a guess, but based on ClassNotFoundException: com.campingawaits.CampingAwaitsApp, it sounds like something changed your classpath so the class loader can no longer find this class. _ I have yet to meet a C compiler that is

Re: Clueless on this error

2012-10-17 Thread Francois Meillet
The class com.campingawaits.CampingAwaitsApp is missing. It's not in the deployment.campingawaits-1.0-SNAPSHOT.war. And as this class is necessary at the startup, the app could not start. François Le 17 oct. 2012 à 20:29, Stephen Walsh a écrit : > Randomly got this today. Tried upgrading to

Clueless on this error

2012-10-17 Thread Stephen Walsh
Randomly got this today. Tried upgrading to 6.1.1, a fresh install of JBoss and still didn't have any luck fixing it… Thoughts? 13:23:15,991 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/campingawaits-1.0-SNAPSHOT]] (MSC service thread 1-3) Exception starting filt

Re: issue with file download out of form component

2012-10-17 Thread Maxim Solodovnik
I'll take a look at it On Wed, Oct 17, 2012 at 12:59 AM, seba.wag...@gmail.com < seba.wag...@gmail.com> wrote: > Hi, > > I did follow this tutorial to create a download via Ajax in a form: > > https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow > > The sli

Re: issue with file download out of form component

2012-10-17 Thread Maxim Solodovnik
Hello Martin, I have modified the code and have removed AjaxDownloader (since it is not really necessary). NullPointerException somehow happens while post parameters parsing (getCallbackURL) is not working anymore. I believe this is somehow connected with custom HomePageMapper https://svn.apache

Re: issue with file download out of form component

2012-10-17 Thread Maxim Solodovnik
Thanks a lot! Those NullPointer exceptions makes makes me mad :( (we use customized Tomcat 6 in our project) And I get them all the time. I get rid of all callback URL and all parameters passed via URL. Thanks!! :) On Wed, Oct 17, 2012 at 5:11 PM, Martin Grigorov wrote: > There was a response fr

Re: issue with file download out of form component

2012-10-17 Thread Martin Grigorov
On Wed, Oct 17, 2012 at 12:45 PM, seba.wag...@gmail.com wrote: > Hi Martin, > > thanks for committing a patch that fast! > I see your patch at: http://markmail.org/message/ntjpnxce6uw44ejt > But I don't know what SNAPSHOTs are compiled from that one. > Will this fix be in the next 6.2.0-SNAPSHOT o

Re: issue with file download out of form component

2012-10-17 Thread seba.wag...@gmail.com
Hi Martin, thanks for committing a patch that fast! I see your patch at: http://markmail.org/message/ntjpnxce6uw44ejt But I don't know what SNAPSHOTs are compiled from that one. Will this fix be in the next 6.2.0-SNAPSHOT or 6.0.0-SNAPSHOT ? We sync our dependencies from: https://repository.apach

Re: issue with file download out of form component

2012-10-17 Thread Martin Grigorov
There was a response from Maxim from OpenMeetings team, but users@wicket.apache.org was not in CC: Hello Martin, I have modified the code and have removed AjaxDownloader (since it is not really necessary). NullPointerException somehow happens while post parameters parsing (getCallbackURL) is not

Re: Thread safety of various Wicket classes?

2012-10-17 Thread Jochen Mader
First of all: You shouldn't start optimizing without having an actual problem. I don't see a real benefit in sharing a validator between several components. ON THE OTHER SIDE There shouldn't be a problem using Validators across several component instances as I am not aware of a single stateful va

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Martin Grigorov
On Wed, Oct 17, 2012 at 10:11 AM, Thijs wrote: > Yes I know. > This is something we just silently ignored over the last years, as it was > not affecting any functionality. > But now with the red flashing debug window it's getting annoying. (So some > good has come from that ) And we were wondering

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Thijs
Yes I know. This is something we just silently ignored over the last years, as it was not affecting any functionality. But now with the red flashing debug window it's getting annoying. (So some good has come from that ) And we were wondering if what we did was actually wrong ;) Thijs On 17-

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Bas Gooren
And to add to this: make sure you call setOutputMarkupPlaceholderTag(true) before you render the (possibly invisible) component for the first time. Suppose your component is hidden (setVisible(false)) on the first render. If you now call setOutputMarkupPlaceholderTag(true) in the ajax request

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Thijs
Thanks Bas and Martin, I'll have to update company rules then ;-) Thijs On 17-10-2012 9:56, Bas Gooren wrote: Thijs, We've been working with wicket for a number of years now, and yes, we have two rules (that feel very natural after those years...): - Do I need to replace this component ove

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Martin Grigorov
On Wed, Oct 17, 2012 at 9:52 AM, Thijs wrote: > > > On 17-10-2012 9:40, Martin Grigorov wrote: >> >> Hi, >> >> On Wed, Oct 17, 2012 at 9:27 AM, Thijs wrote: >>> >>> Revisiting this. >>> I'm still having some troubles with this. >>> >>> Say I have: >>> Label a; >>> add(a = Label(...) >>> { onConfi

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Bas Gooren
Thijs, We've been working with wicket for a number of years now, and yes, we have two rules (that feel very natural after those years...): - Do I need to replace this component over AJAX: call setOutputMarkupId(true) - Idem, but can the component itself be hidden (usually quite visible as we

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Thijs
On 17-10-2012 9:40, Martin Grigorov wrote: Hi, On Wed, Oct 17, 2012 at 9:27 AM, Thijs wrote: Revisiting this. I'm still having some troubles with this. Say I have: Label a; add(a = Label(...) { onConfigure(){setVisible(*false due to some condition*)}}); a.setOutputMarkupId(true); add(new A

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Martin Grigorov
Hi, On Wed, Oct 17, 2012 at 9:27 AM, Thijs wrote: > Revisiting this. > I'm still having some troubles with this. > > Say I have: > Label a; > add(a = Label(...) > { onConfigure(){setVisible(*false due to some condition*)}}); > a.setOutputMarkupId(true); > > add(new AjaxLink(..){ > onClick(Aja

Re: Add an invisible component to an AjaxRequestTarget target

2012-10-17 Thread Thijs
Revisiting this. I'm still having some troubles with this. Say I have: Label a; add(a = Label(...) { onConfigure(){setVisible(*false due to some condition*)}}); a.setOutputMarkupId(true); add(new AjaxLink(..){ onClick(AjaxRequestTarget t){t.add(a);} }; In this case the debug window will sta

Re: issue with file download out of form component

2012-10-17 Thread Martin Grigorov
Hi, On Tue, Oct 16, 2012 at 7:59 PM, seba.wag...@gmail.com wrote: > Hi, > > I did follow this tutorial to create a download via Ajax in a form: > https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow > > The slightly modified code can be seen here: > https:/

Re: highlight invalid fields with custom Validation Framework?

2012-10-17 Thread Martin Grigorov
On Wed, Oct 17, 2012 at 8:22 AM, delta458 wrote: > Hi Martin, > thanks so much for the replies... almost done, some little questions still > there.. I got it working, could you verify that its right what I made? :) > > 1) > *//Had Error: Wrong number of type arguments, required 2 - It works when I

Re: Solved // Re: Page expiration error on AJAX call

2012-10-17 Thread Martin Grigorov
Hi, On Wed, Oct 17, 2012 at 7:24 AM, Ondrej Zizka wrote: > You were right, like usually :) > > What's the preffered way for CDI fields - making them transient, or the > class serializable? CDI injects serializable proxy instead of your bean, so there is no reason to make it serializable. Do you