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
 issues that wouldn't let me do what I wanted. Some had browsers issues and
 some had problems that couldn't drop items to the drop container when it was
 empty. We also needed to support different types of drag and drop. In some
 cases we wanted to copy the object that was dropped and sometimes move it. I
 also remembered that some of the other components didn't support dnd between
 multiple containers. I also had problems that some didn't keep an index of
 where in the drop container the item was dropped. And so on. So I was really
 happy when I found the wicket dnd component. It just works and it's simple
 to use!
 
 /Johan
 -- 
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2534197.html
 Sent from the Wicket - User mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 Wicket in the past
 (it was a while ago so I don't remember all of them). Each had different
 issues that wouldn't let me do what I wanted. Some had browsers issues and
 some had problems that couldn't drop items to the drop container when it was
 empty. We also needed to support different types of drag and drop. In some
 cases we wanted to copy the object that was dropped and sometimes move it. I
 also remembered that some of the other components didn't support dnd between
 multiple containers. I also had problems that some didn't keep an index of
 where in the drop container the item was dropped. And so on. So I was really
 happy when I found the wicket dnd component. It just works and it's simple
 to use!

 /Johan
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Possible-to-drag-tables-using-WicketDND-tp2532928p2534197.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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

NameModel nameModel = new NameModel();
nameModel.setPersonName(sakthi);

lblProperty = new Label(lblProperty,new 
StringResourceModel(hello, new
PropertyModel(nameModel, personName)));
frmProperty.add(lblProperty);
}
}
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Internalization-Exceptions-tp2536565p2537105.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 of which
is actually a Portlet.. The Wicket app is running on JBoss with the Portal
stuff running on a separate app server.

  Does anyone know if the Wicket Portal stuff is designed to allow this to
happen?
  Could this be achieved using IFRAME the links off to the Portal server?

  Any other suggestions?

Any help would be greatly appreciated..

Thanks
Chris 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Wicket-Portal-How-to-embed-a-portlet-within-a-Wicket-app-tp2537162p2537162.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



[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 IndicatingAjaxFallbackLink but I do not
get access to the getCallbackUrl method

2. add an AbstractDefaultAjaxBehaviour but: 1. End up with onEvent and
onClick and don't know where to put the serverside logic. 2. Am not able to
get the param value from RequestCycle.

The only method that works for me is to submit the whole form without
validation and get the value from the textfield on the serverside. 

I would prefer not to submit the whole form.

Appreciate your help with this.

Cheers,
Nim


-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2537522.html
Sent from the Wicket - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 IndicatingAjaxFallbackLink but I do not
 get access to the getCallbackUrl method

 2. add an AbstractDefaultAjaxBehaviour but: 1. End up with onEvent and
 onClick and don't know where to put the serverside logic. 2. Am not able to
 get the param value from RequestCycle.

 The only method that works for me is to submit the whole form without
 validation and get the value from the textfield on the serverside.

 I would prefer not to submit the whole form.

 Appreciate your help with this.

 Cheers,
 Nim


 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2537522.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 AjaxFormComponentUpdatingBehavior which can push the 
single field value through to wicket for processing.


You might be able to append the parameter by implementing:

protected IAjaxCallDecorator getAjaxCallDecorator()
{
return null;
}

in your IndicatingAjaxFallbackLink sub class.

But the easiest way is to modify the getCallbackUrl method in the 
behaviour itself.


something like this: (I assume that a Component targetComponent is a 
private field)


@Override
protected final CharSequence getCallbackScript(boolean 
onlyTargetActivePage) {


/*
 * Encode the callback script appending to the url the current 
client side value of the component values.

 */
CharSequence baseUrl = super.getCallbackUrl(onlyTargetActivePage);

String callbackScript = baseUrl + value='+Wicket.$('
+ targetComponent.getMarkupId() + ').value;

String script = wicketAjaxGet(' + callbackScript + );;

return script;

}

This will create urlvalue=Wicket.$(targetComponent.markupID).value

The second part is to fetch the value parameter on the wicket side and 
process it:


Request request = RequestCycle.get().getRequest();

String value = request.getParameter(value);

Regards,

Mike



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 IndicatingAjaxFallbackLink but I do not
get access to the getCallbackUrl method

2. add an AbstractDefaultAjaxBehaviour but: 1. End up with onEvent and
onClick and don't know where to put the serverside logic. 2. Am not able to
get the param value from RequestCycle.

The only method that works for me is to submit the whole form without
validation and get the value from the textfield on the serverside.

I would prefer not to submit the whole form.

Appreciate your help with this.

Cheers,
Nim





-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 has a stack href
 but I also want to invoke some functionality.

 Berlin Brown (POL)




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 onEvent method of the 
AjaxEventBehaviour and not on the onSubmit method of the 
IndicatingAjaxFallbackLink

Cheers,
Nim

Date: Mon, 13 Sep 2010 08:15:42 -0700
From: ml-node+2537614-574240720-160...@n4.nabble.com
To: nim_sa...@hotmail.com
Subject: Re: [wicket newbie] - appending query parameter to ajax link



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 [hidden email] wrote:



 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 IndicatingAjaxFallbackLink but I do not

 get access to the getCallbackUrl method



 2. add an AbstractDefaultAjaxBehaviour but: 1. End up with onEvent and

 onClick and don't know where to put the serverside logic. 2. Am not able to

 get the param value from RequestCycle.



 The only method that works for me is to submit the whole form without

 validation and get the value from the textfield on the serverside.



 I would prefer not to submit the whole form.



 Appreciate your help with this.



 Cheers,

 Nim





 --

 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2537522.html
 Sent from the Wicket - User mailing list archive at Nabble.com.



 -

 To unsubscribe, e-mail: [hidden email]

 For additional commands, e-mail: [hidden email]





-

To unsubscribe, e-mail: [hidden email]

For additional commands, e-mail: [hidden email]








View message @ 
http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2537614.html


To unsubscribe from [wicket newbie] - appending query parameter to ajax link, 
click here.


  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2537685.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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: 
 http://apache-wicket.1842946.n4.nabble.com/Close-modal-window-on-session-timeout-tp2534936p2535578.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





-- 
Anna Simbirtsev
(416) 729-7331

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 put it to home (base) page.

 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/Close-modal-window-on-session-timeout-tp2534936p2535578.html
 Sent from the Wicket - User mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org





 --
 Anna Simbirtsev
 (416) 729-7331




-- 
Anna Simbirtsev
(416) 729-7331

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 

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 AjaxFormComponentUpdatingBehavior which can push the 

single field value through to wicket for processing.


You might be able to append the parameter by implementing:


 protected IAjaxCallDecorator getAjaxCallDecorator()

 {

 return null;

 }


in your IndicatingAjaxFallbackLink sub class.


But the easiest way is to modify the getCallbackUrl method in the 

behaviour itself.


something like this: (I assume that a Component targetComponent is a 

private field)


@Override

 protected final CharSequence getCallbackScript(boolean 

onlyTargetActivePage) {


 /*

  * Encode the callback script appending to the url the current 

client side value of the component values.

  */

 CharSequence baseUrl = super.getCallbackUrl(onlyTargetActivePage);


 String callbackScript = baseUrl + value='+Wicket.$('

 + targetComponent.getMarkupId() + ').value;


 String script = wicketAjaxGet(' + callbackScript + );;


 return script;


 }


This will create urlvalue=Wicket.$(targetComponent.markupID).value


The second part is to fetch the value parameter on the wicket side and 

process it:


 Request request = RequestCycle.get().getRequest();


 String value = request.getParameter(value);


Regards,


Mike



 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 IndicatingAjaxFallbackLink but I do not

 get access to the getCallbackUrl method



 2. add an AbstractDefaultAjaxBehaviour but: 1. End up with onEvent and

 onClick and don't know where to put the serverside logic. 2. Am not able to

 get the param value from RequestCycle.



 The only method that works for me is to submit the whole form without

 validation and get the value from the textfield on the serverside.



 I would prefer not to submit the whole form.



 Appreciate your help with this.



 Cheers,

 Nim






-

To unsubscribe, e-mail: [hidden email]

For additional commands, e-mail: [hidden email]








View message @ 
http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2537637.html


To unsubscribe from [wicket newbie] - appending query parameter to ajax link, 
click here.


  
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-newbie-appending-query-parameter-to-ajax-link-tp2537522p2538012.html
Sent from the Wicket - User mailing list archive at Nabble.com.


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 of wicket-auth-roles to see if there are
any dependencies on the Roles.ADMIN and Roles.USER.  Maybe additional users
can be defined by just adding strings for new user types? Does anyone know
if there are dependencies?
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538164.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 of wicket-auth-roles to see if there are
 any dependencies on the Roles.ADMIN and Roles.USER.  Maybe additional users
 can be defined by just adding strings for new user types? Does anyone know
 if there are dependencies?
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538164.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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: 
http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538173.html
Sent from the Users forum mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 Roles.USER.  If there were, it could have
 been problematic.  Fortunately, there are none.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538173.html
 Sent from the Users forum mailing list archive at Nabble.com.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 mdichiapp...@cardeatech.com wrote:

 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.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
http://svn.carmanconsulting.com/public/wicket-advanced/trunk/src/main/java/com/carmanconsulting/wicket/advanced/web/common/security/SpringSecurityWebApplication.java

You can download the entire application to see how everything is woven together:

http://svn.carmanconsulting.com/public/wicket-advanced/trunk/


On Mon, Sep 13, 2010 at 6:54 PM, Mike Dee mdichiapp...@cardeatech.com wrote:

 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.

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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.

There's most of what you need for Spring Security in the Brix security example 
as well.

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 of 
features in Spring Security before it will save you time in the end.

On Sep 13, 2010, at 6:42 PM, James Carman wrote:

 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 Roles.USER.  If there were, it could have
 been problematic.  Fortunately, there are none.
 --
 View this message in context: 
 http://apache-wicket.1842946.n4.nabble.com/wicket-auth-roles-and-additional-roles-tp2538164p2538173.html
 Sent from the Users forum mailing list archive at Nabble.com.
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org
 
 


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 of 
 features in Spring Security before it will save you time in the end.


But, if you're already using Spring Security, it's quite easy (as you
pointed out) to plug it in.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 (or null if none is selected).

The only way seems to be checking the model but that would not be
updated until after the validation process is complete (I would tnink).

Any ideas?


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 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 (or null if none is selected).

 The only way seems to be checking the model but that would not be
 updated until after the validation process is complete (I would tnink).

 Any ideas?


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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 that comment out all of the 
jdk-1.5-parent/pom.xml defined modules that don't compile right now.  
The only projects that do compile ok right now are:


Java 5:

[INFO] Java 5 Modules - Parent ... SUCCESS [16.250s]
[INFO] Datatable Autocomplete - Parent ... SUCCESS [7.627s]
[INFO] Datatable Autocomplete Common . SUCCESS [23.201s]
[INFO] Datatable Autocomplete  SUCCESS [19.764s]
[INFO] Datatable Autocomplete Examples ... SUCCESS [28.563s]
[INFO] DataTable Autocomplete Test ... SUCCESS [18.097s]
[INFO] Wicket Flot Integration - Parent .. SUCCESS [4.286s]
[INFO] quickstart  SUCCESS [16.350s]
[INFO] quickstart  SUCCESS [26.789s]
[INFO] Google Charts - Parent  SUCCESS [5.514s]
[INFO] Google Charts . SUCCESS [15.615s]
[INFO] Google Charts - Examples .. SUCCESS [22.815s]
[INFO] Wicket-Scala Parent ... SUCCESS [11.054s]
[INFO] Wicket-Scala .. SUCCESS [43.737s]
[INFO] Wicket-Scala Samples .. SUCCESS [32.277s]
[INFO] Wicket-Scala Archetype  SUCCESS [12.001s]
[INFO] Wicket Plugin Framework ... SUCCESS [17.651s]
[INFO] Openlayers Integration - Parent ... SUCCESS [3.723s]
[INFO] Openlayers  SUCCESS [20.301s]
[INFO] Openlayers - Proxy  SUCCESS [23.542s]
[INFO] Openlayers - Examples . SUCCESS [28.241s]


Java 6:

[INFO] Java 6 Modules - Parent ... SUCCESS [14.827s]
[INFO] JavaEE Inject - Parent  SUCCESS [6.364s]
[INFO] JavaEE Inject . SUCCESS [18.333s]
[INFO] JavaEE Inject - Examples .. SUCCESS [4.557s]
[INFO] JavaEE Inject - Example EJB Module  SUCCESS [18.723s]
[INFO] JavaEE Inject - Example Web Module  SUCCESS [24.340s]
[INFO] JavaEE Inject - Example EAR ... SUCCESS [25.315s]
[INFO] Push - Parent . SUCCESS [3.848s]
[INFO] Wicketstuff Push .. SUCCESS [25.481s]
[INFO] Wicket Contrib Cometd Examples  SUCCESS [36.901s]
[INFO] Wicket HTML5 :: Parent  SUCCESS [4.632s]
[INFO] Wicket HTML5 :: Wicket-HTML5 .. SUCCESS [23.867s]
[INFO] Wicket HTML5 :: Wicket-HTML5 Examples . SUCCESS [19.386s]



The wicketstuff-core 1.5-SNAPSHOT's for these modules are available from 
http://oss.sonatype.org/content/repositories/snapshots.


Hopefully most of the other modules can be made to work by the time the 
release candidate phase starts and then we can have matching 
wicketstuff-core releases for them.


Regards,

Mike

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
changed

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 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 (or null if none is selected).

 The only way seems to be checking the model but that would not be
 updated until after the validation process is complete (I would
tnink).

 Any ideas?


 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



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
specific model (implementation of IModel) class for this.  This could be a
Person domain object.  Or maybe NameModel is part of your domain.  But, you
don't need a Wicket IModel named NameModel just for this.



lblProperty = new Label(lblProperty,new
 StringResourceModel(hello, new
 PropertyModel(nameModel, personName)));


Don't use a property model here.  The property model is getting the
personName property from your model and then trying to call
getPersonName on that.  (the property model first calls getPersonName, and
returns the result to the StringResourceModel, which then also calls
getPersonName since you have personName in your properties file.

Instead, you could do this:

Person person = new Person();
person.setFirstName(Jeremy);
person.setLastName(Thomerson);

add(new Label(label, new StringResourceModel(hello, new
Model(person;

Your properties file would look like this:
hello=Hello ${firstName}, ${lastName}

Of course, where I say new Model, you could (and usually will) be using a
model that is passed into the page that contains the person, etc...  If it's
holding a domain object, it is very likely that this will be a
LoadableDetachableModel.


-- 
Jeremy Thomerson
http://www.wickettraining.com