Re: Possible to drag tables using WicketDND?

2010-09-13 Thread Daan van Etten
Johan and Ernesto: Thanks for the info! Regards, Daan van Etten Op 10 sep 2010, om 12:23 heeft Johan Haleby het volgende geschreven: I've tried numerous different drag and drop components for Wicket in the past (it was a while ago so I don't remember all of them). Each had different

Re: Possible to drag tables using WicketDND?

2010-09-13 Thread Ernesto Reinaldo Barreiro
Graag gedaan. Ernesto On Mon, Sep 13, 2010 at 9:15 AM, Daan van Etten d...@stuq.nl wrote: Johan and Ernesto: Thanks for the info! Regards, Daan van Etten Op 10 sep 2010, om 12:23 heeft Johan Haleby het volgende geschreven: I've tried numerous different drag and drop components for

Re: Wicket Internalization - Exceptions

2010-09-13 Thread v...@wav@gmail.com
Hello, Here is the exact code of the Jave Page class public class I18nPage extends WebPage { private Form frmProperty; private Label lblProperty; public I18nPage() { frmProperty = new Form(frmProperty); add(frmProperty);

Wicket Portal - How to embed a portlet within a Wicket app?

2010-09-13 Thread Chris Brown
Hi all, Using Wicket 1.4.2 at the moment and have played around with Portal functionality (displaying Wicket inside a Portlet) . However, my client now has a requirement to embed a portlet inside the current Wicket application. So, example being... Wicket Page containing several Panels... one

[wicket newbie] - appending query parameter to ajax link

2010-09-13 Thread nimmy
Hi Guys, I'm trying to implement the typical 'check availability' functionality for a username. I have an IndicatingAjaxFallbackLink. I would like to append the value of a form component [username TextField] to the ajax link as a query parameter. I've tried: 1. overriding onComponentTag in the

Re: [wicket newbie] - appending query parameter to ajax link

2010-09-13 Thread Igor Vaynberg
override getcallbackscript(boolean) and return something like: return generateCallbackScript(wicketAjaxGet(' + getCallbackUrl() + myparam='+Wicket.$(id of component).value); -igor On Mon, Sep 13, 2010 at 7:23 AM, nimmy nim_sa...@hotmail.com wrote: Hi Guys, I'm trying to implement the

Re: [wicket newbie] - appending query parameter to ajax link

2010-09-13 Thread Michael O'Cleirigh
I think its easier to attach an ajax behaviour to the text field (like onkeyup) that will push the changes to wicket for validation. You can use target.addComponent(indicator) to get the indication to be shown based on the results of the validation. Look at subclassing

Using external link and adding onClick

2010-09-13 Thread Brown, Berlin [GCG-PFS]
Is there anyway to get ajax behavior or basic onclick functionality with the External Link class. I need an external link that has a stack href but I also want to invoke some functionality. Berlin Brown (POL)

Re: Using external link and adding onClick

2010-09-13 Thread Martin Grigorov
externalLink.add(new AttributeAppender(onclick, your js stuff here)); ? On Mon, Sep 13, 2010 at 5:44 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Is there anyway to get ajax behavior or basic onclick functionality with the External Link class. I need an external link that

RE: [wicket newbie] - appending query parameter to ajax link

2010-09-13 Thread nimmy
Thanks for your help Igor. It worked like a charm. For other readers new to wicket : 1. add an AjaxEventBehaviour(onclick) to the IndicatingAjaxFallbackLink 2. Override getCallbackScript to append the param values as described in the email below 3. Do your server side processing in the

Re: Close modal window on session timeout

2010-09-13 Thread Anna Simbirtsev
When would this java script get executed? I added it to the base page, but does not work. On Sat, Sep 11, 2010 at 7:07 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: Yep, just put it to home (base) page. -- View this message in context:

Re: Close modal window on session timeout

2010-09-13 Thread Anna Simbirtsev
Its working, thank you. On Mon, Sep 13, 2010 at 2:13 PM, Anna Simbirtsev asimbirt...@gmail.com wrote: When would this java script get executed? I added it to the base page, but does not work. On Sat, Sep 11, 2010 at 7:07 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: Yep, just

RE: [wicket newbie] - appending query parameter to ajax link

2010-09-13 Thread nimmy
Thanks for your help Mike Date: Mon, 13 Sep 2010 08:32:00 -0700 From: ml-node+2537637-1380929500-160...@n4.nabble.com To: nim_sa...@hotmail.com Subject: Re: [wicket newbie] - appending query parameter to ajax link I think its easier to attach an ajax behaviour to the text field (like

wicket-auth-roles and additional roles

2010-09-13 Thread Mike Dee
I need more than the two roles defined in wicket-auth-roles. Was thinking about overriding Roles and adding additional roles. However, Roles is a final class. Any reason for that? Maybe that means I'm going about it wrong. Any suggestions on a better way? I'm about to go through the source

Re: wicket-auth-roles and additional roles

2010-09-13 Thread James Carman
You can use any roles you want. They're just strings, right? We use auth-roles with Acegi/Spring Security and we just return whatever roles the user has assigned to them. On Mon, Sep 13, 2010 at 6:30 PM, Mike Dee mdichiapp...@cardeatech.com wrote: I need more than the two roles defined in

Re: wicket-auth-roles and additional roles

2010-09-13 Thread Mike Dee
Yes, you're correct. I was just wondering if within wicket-auth-roles there were references to Roles.ADMIN or Roles.USER. If there were, it could have been problematic. Fortunately, there are none. -- View this message in context:

Re: wicket-auth-roles and additional roles

2010-09-13 Thread James Carman
If you want some example code for Spring Security, I can give you some. It might save you some cycles. On Mon, Sep 13, 2010 at 6:41 PM, Mike Dee mdichiapp...@cardeatech.com wrote: Yes, you're correct.  I was just wondering if within wicket-auth-roles there were references to Roles.ADMIN or

Re: wicket-auth-roles and additional roles

2010-09-13 Thread Mike Dee
Thanks. I'm going to try out wicket-auth-roles first. I think it may be good enough. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538178.html Sent from the Users forum mailing list archive at Nabble.com.

Re: wicket-auth-roles and additional roles

2010-09-13 Thread James Carman
I didn't mean in place of auth-roles. I meant something to adapt auth-roles to Spring Security. But, if you're not using Spring Security now and you don't think you'll need it, it's one more thing you don't have to worry about. On Mon, Sep 13, 2010 at 6:45 PM, Mike Dee

Re: wicket-auth-roles and additional roles

2010-09-13 Thread Mike Dee
Yes, not using Spring Security (yet). But will keep your offer in mind. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538188.html Sent from the Users forum mailing list archive at Nabble.com.

Re: wicket-auth-roles and additional roles

2010-09-13 Thread James Carman
Well, in case you ever need it, here are the two files that would be of interest to you: http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/security/SpringSecuritySession.java

Re: wicket-auth-roles and additional roles

2010-09-13 Thread Brian Topping
FWIW, I use Spring Security for everything I do in Wicket. I was the original author of the Shiro-to-Wicket code on Wicket Stuff (somehow the attributions got lost in there), and if you don't need all the adaptors for stuff like LDAP (maybe Shiro has that by now), it's really worth looking at.

Re: wicket-auth-roles and additional roles

2010-09-13 Thread James Carman
On Mon, Sep 13, 2010 at 7:02 PM, Brian Topping topp...@codehaus.org wrote: The first time I secured a Wicket app, I went through great pains to use someone else's framework.  But the fact is Wicket's security was designed by geniuses, so it's a snap to work with.  You really need to use a lot

DropDownChoice - performing extra validation before model changed

2010-09-13 Thread Chris Colman
Is it possible to test if an item has been selected in a DropDownChoice in an overridden validate method? I want to test and bring up a message box (not just rely on the Feedback panel to show an error message). DropDownChoice doesn't seem to have any methods to get the currently selected item

Re: DropDownChoice - performing extra validation before model changed

2010-09-13 Thread Igor Vaynberg
you can add a validator, it will have access to the value. -igor On Mon, Sep 13, 2010 at 6:32 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to test if an item has been selected in a DropDownChoice in an overridden validate method? I want to test and bring up a message

Preparing wicketstuff-core for wicket 1.5

2010-09-13 Thread Michael O'Cleirigh
Hello, wicketstuff-core trunk started tracking wicket 1.5-SNAPSHOT when the first milestone was released. Now that the second milestone will be out soon I think its time to start working on making the wicketstuff-core projects work with wicket 1.5. I've just committed some changes to trunk

RE: DropDownChoice - performing extra validation before model changed

2010-09-13 Thread Chris Colman
So both form and component validators will have access to the value? Chris -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, 14 September 2010 12:55 PM To: users@wicket.apache.org Subject: Re: DropDownChoice - performing extra validation before model

Re: DropDownChoice - performing extra validation before model changed

2010-09-13 Thread Jeremy Thomerson
On Mon, Sep 13, 2010 at 10:33 PM, Chris Colman chr...@stepaheadsoftware.com wrote: So both form and component validators will have access to the value? Yes -- Jeremy Thomerson http://www.wickettraining.com

Re: Wicket Internalization - Exceptions

2010-09-13 Thread Jeremy Thomerson
Some comments are inline in your code On Mon, Sep 13, 2010 at 4:09 AM, v...@wav@gmail.com vela@gmail.comwrote: NameModel nameModel = new NameModel(); nameModel.setPersonName(sakthi); What is a NameModel? I just want you to be aware that you don't need a