Re: highlight invalid fields with custom Validation Framework?

2012-10-17 Thread delta458
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 do IVisitorComponent,Void ;-) public class

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 ozi...@redhat.com 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

Re: highlight invalid fields with custom Validation Framework?

2012-10-17 Thread Martin Grigorov
On Wed, Oct 17, 2012 at 8:22 AM, delta458 delta...@hotmail.com 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 -

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 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

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

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 vonk.th...@gmail.com 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(..){

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 vonk.th...@gmail.com 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*)}});

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

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 vonk.th...@gmail.com wrote: On 17-10-2012 9:40, Martin Grigorov wrote: Hi, On Wed, Oct 17, 2012 at 9:27 AM, Thijs vonk.th...@gmail.com wrote: Revisiting this. I'm still having some troubles with this. Say I have: Label a; add(a = Label(...) {

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

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
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

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 vonk.th...@gmail.com 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

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

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: copy 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)

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:

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 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

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 mgrigo...@apache.orgwrote:

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

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 slightly

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

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 stephen.wa...@me.com a écrit : Randomly got this today.

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 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 rwada...@up.com wrote: Just a guess, but based on ClassNotFoundException: com.campingawaits.CampingAwaitsApp, it sounds like something changed your

[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