[Wicket-user] WicketTester & border

2007-07-19 Thread Thies Edeling
I have a page containing a border and a form:

GreyRoundedBorder greyBorder = new GreyRoundedBorder("configFrame", new 
ResourceModel("admin.config.title"));
Form configForm = new Form("configForm", new 
CompoundPropertyModel(dbConfig));
greyBorder.add(configForm);

When I want to unit test the form using WicketTester I get a NullPointer on
public Component getComponentFromLastRenderedPage(String path)
{
final Component component = getLastRenderedPage().get(path);

from BaseWicketTester. Apparently getComponentFromLastRenderedPage only 
checks the direct children of the Page and
doesn't travel down the hierarchy. How to get a reference to the 
'nested' Form ?

regards,
Thies



-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket with acegi security.

2007-07-10 Thread Thies Edeling

> i am Marcin and i am interested in project Acegi and Wicket-auth-roles.
> I have a question for this project.
> Is acegi only takes care of the authentication and Wicket-auth-roles does 
> authorization?
> Or acegi can take care of authorization and Wicket take a authentication ?
> SO my question is
> Is wicket and acegi mix this two level of security or acegi can do only 
> authentication and wicket can do only authorization ?
>   
Check out http://cwiki.apache.org/WICKET/acegi-and-wicket-auth-roles.html
auth-roles delegates the authorization & authentication to Acegi

On a related note, does anyone know how to implement Acegi's remember-me 
through auth-roles ?

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Dojo widget loaded by ajax request fails

2007-07-09 Thread Thies Edeling
Added a test project to the jira issue demonstrating the behaviour.

gr,
Thies

Vincent Demay wrote:
> I don't understand, it's work on my side...
>
> could you please create a sample quickstart project in order to 
> investigate on it.
>
> --
> Vincent
>
> Thies Edeling a écrit :
>   
>> Just tried with revision 2633 and I still have the same problem :(
>>
>> Vincent Demay wrote:
>>   
>> 
>>> Hey,
>>> I commited a fix yesterday about that. Is it ok for you now?
>>>
>>> --
>>> Vincent
>>>
>>> Thies Edeling wrote:
>>> 
>>>   
>>>> Vincent Demay wrote:
>>>>   
>>>>   
>>>> 
>>>>> Thies Edeling a écrit :
>>>>>   
>>>>> 
>>>>> 
>>>>>   
>>>>>> Hi all
>>>>>>
>>>>>> Been playing a bit with the wicketstuff dojo contrib. I have some 
>>>>>> problems with adding a DojoDatePicker (or any other Dojo widget) to a 
>>>>>> Panel that's been loaded via an AjaxLink - replacing an existing Panel 
>>>>>> on the Page.
>>>>>>  Firefox just keeps loading infinitely and gives me 2 javascript errors 
>>>>>> right after dojo.js was loaded:
>>>>>>
>>>>>> * GET 
>>>>>> http://localhost:8080/whour/eh/resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior/dojo-0.4/dojo.js
>>>>>>
>>>>>> * Wicket is not defined
>>>>>> 
>>>>>> http://localhost:8080/whour/eh/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
>>>>>> Line 1186
>>>>>>
>>>>>> * dojo.string has no properties
>>>>>> http://localhost:8080/whour/eh/consultant/OverviewPage
>>>>>> Line 1013
>>>>>>
>>>>>> The same code works when I directly add the Panel in the Page's 
>>>>>> constructor. Also when I already have some Dojo stuff on the Page and I 
>>>>>> then refresh a Panel - which uses some Dojo - it works. Seems that Dojo 
>>>>>> initialization through Ajax doesn't properly work or did I do something 
>>>>>> wrong?
>>>>>>
>>>>>>   
>>>>>> 
>>>>>>   
>>>>>>   
>>>>>> 
>>>>> Hi,
>>>>>
>>>>> No, everything you do is rigth. Which wicketstuff-dojo release do you use?
>>>>>
>>>>> I fixed a such bug recently, You can try to get the last release in the 
>>>>> repository : 
>>>>> http://www.wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/
>>>>>
>>>>> If the bug persists please open a jira issue.
>>>>>
>>>>> Thanks for the report
>>>>>   
>>>>> 
>>>>> 
>>>>>   
>>>> Bug persists with the latest version. Opened jira issue: 
>>>> http://wicketstuff.org/jira/browse/DOJO-77
>>>>
>>>> gr,
>>>> Thies
>>>>
>>>>
>>>> -
>>>> This SF.net email is sponsored by DB2 Express
>>>> Download DB2 Express C - the FREE version of DB2 express and take
>>>> control of your XML. No limits. Just data. Click to get it now.
>>>> http://sourceforge.net/powerbar/db2/
>>>> ___
>>>> Wicket-user mailing list
>>>> Wicket-user@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>>>   
>>>>   
>>>> 
>>> 
>>>
>>> -
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> 
>>>
>>> ___
>

Re: [Wicket-user] Wicket Dojo widget loaded by ajax request fails

2007-07-09 Thread Thies Edeling
Just tried with revision 2633 and I still have the same problem :(

Vincent Demay wrote:
> Hey,
> I commited a fix yesterday about that. Is it ok for you now?
>
> --
> Vincent
>
> Thies Edeling wrote:
>> Vincent Demay wrote:
>>   
>>> Thies Edeling a écrit :
>>>   
>>> 
>>>> Hi all
>>>>
>>>> Been playing a bit with the wicketstuff dojo contrib. I have some 
>>>> problems with adding a DojoDatePicker (or any other Dojo widget) to a 
>>>> Panel that's been loaded via an AjaxLink - replacing an existing Panel 
>>>> on the Page.
>>>>  Firefox just keeps loading infinitely and gives me 2 javascript errors 
>>>> right after dojo.js was loaded:
>>>>
>>>> * GET 
>>>> http://localhost:8080/whour/eh/resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior/dojo-0.4/dojo.js
>>>>
>>>> * Wicket is not defined
>>>> 
>>>> http://localhost:8080/whour/eh/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
>>>> Line 1186
>>>>
>>>> * dojo.string has no properties
>>>> http://localhost:8080/whour/eh/consultant/OverviewPage
>>>> Line 1013
>>>>
>>>> The same code works when I directly add the Panel in the Page's 
>>>> constructor. Also when I already have some Dojo stuff on the Page and I 
>>>> then refresh a Panel - which uses some Dojo - it works. Seems that Dojo 
>>>> initialization through Ajax doesn't properly work or did I do something 
>>>> wrong?
>>>>
>>>>   
>>>> 
>>>>   
>>> Hi,
>>>
>>> No, everything you do is rigth. Which wicketstuff-dojo release do you use?
>>>
>>> I fixed a such bug recently, You can try to get the last release in the 
>>> repository : 
>>> http://www.wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/
>>>
>>> If the bug persists please open a jira issue.
>>>
>>> Thanks for the report
>>>   
>>> 
>> Bug persists with the latest version. Opened jira issue: 
>> http://wicketstuff.org/jira/browse/DOJO-77
>>
>> gr,
>> Thies
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>   
>
> 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NumberValidator allowing null fields ?

2007-07-08 Thread Thies Edeling
Martijn Dashorst wrote:
> On 7/8/07, Thies Edeling <[EMAIL PROTECTED]> wrote:
>   
>>  Why does setType set the required flag for primitives?
>> 
>
> How can a primitive type ever be null? If you want to allow null
> values, then the type needs to be Double, Float, Integer, Long, ...
>
> If null is allowed, and an empty value was accepted, Wicket would have
> a hard time processing that value and committing it to the model.
>
>   
True indeed. It would be handy to have this implicit behaviour added to 
the javadoc though :)


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] NumberValidator allowing null fields ?

2007-07-08 Thread Thies Edeling
Apparently setType on a FormComponent (needed for NumberValidator) sets 
the required flag for primitive types. With the required flag set a null 
field never makes it to my validator.

Why does setType set the required flag for primitives?

   /**
* Sets the type that will be used when updating the model for this
* component. If no type is specified String type is assumed.
*
* @param type
* @return this for chaining
*/
   public final FormComponent setType(Class type)
   {
   this.typeName = type == null ? null : type.getName();
   if (type != null && type.isPrimitive())
   {
   setRequired(true);
   }
   return this;
   }


Jonathan Locke wrote:
oh, i should mention that my wicket is not head.  it was frozen a couple 
weeks back, so it's possible this is a regression.  you might want to look

at the revision history for the various classes involved in validation.


Jonathan Locke wrote:
  

maybe this is a bug?  i have a ConstrainedPropertyValidator which extends
AbstractValidator (which implements INullAcceptingValidator) and returns
true for validateOnNullValue() and it works just fine.  you might need to 
trace into the validation code to figure out why it's not calling your

validator.


Thies Edeling wrote:


Hi

How can I have a NumberValidator allow null values ? I tried extending 
the DoubleRangeValidator, implement the INullAcceptingValidator 
interface and returning true for validateOnNullValue but my Validator 
still isn't called. Also not setting the required property on a 
TextField won't give help, when going through the visitFormComponents 
the FormComponent is still listed as not valid when no value is provided 
in the form. Thanks.


gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


  



  


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket Dojo widget loaded by ajax request fails

2007-07-07 Thread Thies Edeling
Vincent Demay wrote:
> Thies Edeling a écrit :
>   
>> Hi all
>>
>> Been playing a bit with the wicketstuff dojo contrib. I have some 
>> problems with adding a DojoDatePicker (or any other Dojo widget) to a 
>> Panel that's been loaded via an AjaxLink - replacing an existing Panel 
>> on the Page.
>>  Firefox just keeps loading infinitely and gives me 2 javascript errors 
>> right after dojo.js was loaded:
>>
>> * GET 
>> http://localhost:8080/whour/eh/resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior/dojo-0.4/dojo.js
>>
>> * Wicket is not defined
>> 
>> http://localhost:8080/whour/eh/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
>> Line 1186
>>
>> * dojo.string has no properties
>> http://localhost:8080/whour/eh/consultant/OverviewPage
>> Line 1013
>>
>> The same code works when I directly add the Panel in the Page's 
>> constructor. Also when I already have some Dojo stuff on the Page and I 
>> then refresh a Panel - which uses some Dojo - it works. Seems that Dojo 
>> initialization through Ajax doesn't properly work or did I do something 
>> wrong?
>>
>>   
>> 
> Hi,
>
> No, everything you do is rigth. Which wicketstuff-dojo release do you use?
>
> I fixed a such bug recently, You can try to get the last release in the 
> repository : 
> http://www.wicketstuff.org/maven/repository/org/wicketstuff/wicketstuff-dojo/1.3.0-SNAPSHOT/
>
> If the bug persists please open a jira issue.
>
> Thanks for the report
>   
Bug persists with the latest version. Opened jira issue: 
http://wicketstuff.org/jira/browse/DOJO-77

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] NumberValidator allowing null fields ?

2007-07-07 Thread Thies Edeling
Hi

How can I have a NumberValidator allow null values ? I tried extending 
the DoubleRangeValidator, implement the INullAcceptingValidator 
interface and returning true for validateOnNullValue but my Validator 
still isn't called. Also not setting the required property on a 
TextField won't give help, when going through the visitFormComponents 
the FormComponent is still listed as not valid when no value is provided 
in the form. Thanks.

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] How to translate "system" messages?

2007-07-07 Thread Thies Edeling
westpine wrote:
> Hi! I need to view "system" wicket messages like "page has expired" on
> another (russian actually) language. How it could be done? 
>   
You could provide a new Page for the session expired page and do the 
translation there:

getApplicationSettings().setPageExpiredErrorPage(SessionExpiredPage.class);

Not sure though how you could translate the standard Wicket messages if 
you want to keep the
original expired page.

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket Dojo widget loaded by ajax request fails

2007-07-07 Thread Thies Edeling
Hi all

Been playing a bit with the wicketstuff dojo contrib. I have some 
problems with adding a DojoDatePicker (or any other Dojo widget) to a 
Panel that's been loaded via an AjaxLink - replacing an existing Panel 
on the Page.
 Firefox just keeps loading infinitely and gives me 2 javascript errors 
right after dojo.js was loaded:

* GET 
http://localhost:8080/whour/eh/resources/org.wicketstuff.dojo.AbstractDefaultDojoBehavior/dojo-0.4/dojo.js

* Wicket is not defined

http://localhost:8080/whour/eh/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js
Line 1186

* dojo.string has no properties
http://localhost:8080/whour/eh/consultant/OverviewPage
Line 1013

The same code works when I directly add the Panel in the Page's 
constructor. Also when I already have some Dojo stuff on the Page and I 
then refresh a Panel - which uses some Dojo - it works. Seems that Dojo 
initialization through Ajax doesn't properly work or did I do something 
wrong?

gr,
Thies



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] link ajax and panel

2007-07-05 Thread Thies Edeling
I posted a little about it some time ago, updating other panels on the 
same page: http://blog.ehour.nl/index.php/archives/18

Ed _ wrote:
> Will that work across panels ? the panel making the request itself 
> does not have the entity to be updated. I ask cause all the examples 
> have both entities in a given page.
>
> thx,
>
> ed
>
> 
> Date: Thu, 5 Jul 2007 14:25:20 -0700
> From: [EMAIL PROTECTED]
> To: wicket-user@lists.sourceforge.net
> Subject: Re: [Wicket-user] link ajax and panel
>
> On 7/5/07, *Ed _* <[EMAIL PROTECTED]
> > wrote:
>
> I am trying to update a panel on a rendered page on click of a
> link.
>
> The panel is essentially an iframe
>
> How would I try and do this without refreshing the entire
> page. Are there any Ajax calls for this.
>
>
> AjaxLink ?
>
> -igor
>
>  
>
> thanks,
>
> ed
>
> 
> 
> Local listings, incredible imagery, and driving directions -
> all in one place! Find it!
> 
>
> 
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> 
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
> 
> Don't get caught with egg on your face.Play Chicktionary!  
> 
> 
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> 
>
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Passing parameters to PageExpired page

2007-07-04 Thread Thies Edeling

Carl-Eric Menzel wrote:

Is there a way to pass along parameters to the LoginPage when it's
registered as the expiry page? On the LoginPage I want to let the user know
that he has to relogin because his session expired however within the
LoginPage I cannot determine the cause anymore.



How about "ExpiredPage extends LoginPage"? That way you have everything the 
LoginPage does and you know exactly where you are.
  
Ah didn't think of that, that'll work. Does Wicket travel up the 
hierarchy tree to look for the markup file? If ExpiredPage.html doesn't 
exist, will it use LoginPage.html?


regards,
Thies
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Passing parameters to PageExpired page

2007-07-04 Thread Thies Edeling
Hi all,

Rather than using the default session expiry page I registered my 
LoginPage with

getApplicationSettings().setPageExpiredErrorPage(LoginPage.class);


Is there a way to pass along parameters to the LoginPage when it's 
registered as the expiry page? On the LoginPage I want to let the user know
that he has to relogin because his session expired however within the 
LoginPage I cannot determine the cause anymore.

gr,
Thies

-- 
http://www.ehour.nl/ 
http://blog.ehour.nl/



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Automatic repaint of component?

2007-06-26 Thread Thies Edeling
Timo Rantalaiho wrote:
> On Tue, 26 Jun 2007, Igor Vaynberg wrote:
>   
>> interface IModelListener { onSet(IModel model) }
>>
>> class ModelMonitor implements IModel {
>>  private final IModel delegate;
>>  private List listeners;
>> 
> ...
>
> That's an interesting approach. Is it OK to keep references
> to Component instances like that? We've thought that it
> would be safer to always get the components dynamically, so
> that you wouldn't get the danger of stale references.
>   
I didn't know that. Is it unsafe to keep references to to Panels etc in 
a class variable of a Page? Why ?
gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Automatic repaint of component?

2007-06-26 Thread Thies Edeling
Timo Rantalaiho wrote:
> On Mon, 25 Jun 2007, Thies Edeling wrote:
>   
>> Say I have panel A and panel B each basing their output on the same 
>> model. When panel B updates the model through an ajax request, is it 
>> possible to have panel A refresh automatically without explicitly adding 
>> it to an AjaxRequestTarget ?
>> 
>
> If the update is just being done with ajax, I don't 
> understand how the HTML of panel A could be updated without 
> it being added to AjaxRequestTarget, refreshing model or 
> not. 
>
> Why don't you want to add panel A to the target? Often it 
> is easy enough to find the component in the update, e.g. by
> using a marker interface and visitChildren / findParent. If 
> you show us some code maybe we can give more specific help.
>   
That's what I'm doing now, redirecting the ajax request to the page the 
panel is embedded in. The page
is then responsible for updating/replacing panels where appropiate.
However with panels being reused on multiple pages and having multiple 
panels on a page, which all can generate
an ajax event, this starts to feel a little clumsy. I'd rather have 
Panels monitor the data they're displaying
and update accordingly. Listeners as Igor suggested might be a bit cleaner.

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Automatic repaint of component?

2007-06-25 Thread Thies Edeling
Hi,

Say I have panel A and panel B each basing their output on the same 
model. When panel B updates the model through an ajax request, is it 
possible to have panel A refresh automatically without explicitly adding 
it to an AjaxRequestTarget ?

gr,
Thies




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] File too long under Vista when extraction Wicket 1.3

2007-06-24 Thread Thies Edeling
NTFS has a 255 character limit on the full path + filename. However the 
longest path in the 1.3 zip is under 200 characters long so when you 
extract to the root of a drive you shouldn't run into any problems, at 
least I didn't when extracting under XP. Check if the full path of the 
files you have problems with exceed the 255 limit.


ZedroS Schwart wrote:

I'm planning to install ubuntu as well, but on a RAID + Wifi pc it's
not that easy.

For I'm trying to do, it's really simple : I've downloaded
apache-wicket-1.3.0-incubating-beta1.zip and I just would like to
unzip it.

And then, after a long while but that's the Vista way isn"it, I'm told
that 8 files' names are too long to be extracted.

When looking at one the files, AdminAnnotationsBookmarkablePage for
example, it appears that this file is really deep in the repository
architecture and, most probably, ends up behind a too long path name
for Vista.

I agree it's vista fault somewhere, but hey, more and more people are
coming into it (or should at least) and it's quite a pain some
wicket's files names are too long no ?

Cheers,
ZedroS

On 6/24/07, "C. Bergström" <[EMAIL PROTECTED]> wrote:
  

ZedroS Schwart wrote:


Hi all

I'm using my brand new vista pc to extract Wicket and I've 8 files too
long to be extracted, like for example
AdminAnnotationsBookmarkablePage.

I'm trying to extract them under d:\wicket, so the root path isn't
that big. Do you have any clue on what to do ?
  

Sure.. may not be the answer you want to hear though ;)


http://www.ubuntu.com/
http://www.freebsd.org/
http://www.opensolaris.org/os/


In truth I don't know and more likely it's a problem with Vista..  NTFS
which to the best of my knowledge is what Vista's default fs is supports
greater than 8.3 naming.. d:\ wouldn't happen to be like fat-8 or
something like that would it?  Beyond this you can try explaining in
more detail what you're doing and maybe someone else can offer assistance.

./C

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
  


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Use of Session

2007-06-22 Thread Thies Edeling
shameless plug: http://blog.ehour.nl/index.php/archives/14
:)

Matthieu Casanova wrote:
> Hi, I'm not familiar with wicket sessions. I understand that I can
> create my own session object that extends the WebSession, and that
> will have some fields containing my sessions datas. In that case I
> have to replace the ISessionFactory of my application.
> The other choice to store datas in the Session is to use the
> getMetaData and setMetaData methods of WebSession ?
> What is the best choice ?
> thanks
>
> Matthieu
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] [announce] Apache Wicket

2007-06-20 Thread Thies Edeling
Cool, congratulations & gefeliciteerd! ;)

Martijn Dashorst wrote:
> We have Graduation! Apache Wicket is established as a top level
> project within the Apache Software Foundation.
>
> >From Greg Stein:
>
>    Original Message 
>   Subject: Apache Board Meeting, June 20, 2007 (new officers!)
>   Date: Wed, 20 Jun 2007 12:45:06 -0700
>   From: Greg Stein
>   Reply-To: members@
>   To: members@
>
>   Hi all,
>
>   Today, the newly-elected Board met for the first time. After we got
>   done with our regular series of project reviews and other reports, we
>   elected a new slate of executive officers. I'm happy to present that
>   list:
>
>Jim Jagielski, Chairman
>Justin Erenkrantz, President
>J Aaron Farr, Treasurer
>Sam Ruby, Exec VP and Secretary
>
>   Welcome guys to your new offices!
>
>   We also established new three projects:
>
>   * Apache Quetzalcoatl: this springs mod_python and related bits out of
>   the HTTPD project into its own TLP. Gregory Trubetskoy is its Chair.
>
>   * Apache Wicket: this is a light webapp framework for Java, graduating
>   from the Incubator into its own TLP. Martijn Dashorst is the new
>   Chair.
>
>   * Apache Commons: this is the venerable Apache Jakarta Commons, now
>   spun out into its own TLP, with Torsten Curdt as its Chair.
>
>   Finally, we swapped a couple PMC Chairs:
>
>   * Will Glass-Hussin replaces Henning Schmiedehausen as the Velocity 
> Chair
>   * David Sean Taylor replaces Santiago Gala as the Portals Chair
>
>   That's it for this month. Please feel free to forward this to any
>   public/private forum as you see fit. If you have any questions, then
>   please don't hesitate to ask myself or any other Director or officer.
>
>   Cheers,
>   -g
>
> We would like to congratulate all Wicket community members with this
> remarkable feat, we couldn't have done this without you!
>
> Furthermore, I like to thank the Board of the Apache Software
> Foundation for the trust they invested in us. We will not disappoint!
>
> We would like to thank Wicket's mentors:
>
> * Alex Karasulu (whose birthday coincidentally is today… what a better
> gift could you receive). Thanks for bringing us on board, and a Happy
> Birthday!!!
>
> * Upayavira, who made the transition even run smoother than thought
> possible. Thanks for guiding us and I hope you'll stay for a long time
> with our project!
>
> * Bertrand Delacretaz, thank you for your help, votes and advise. We
> will miss your involvement, but will certainly see you in the future!
>
> * Sylvain Wallez, also big thanks for helping and guiding us. I hope
> Wicket is still working within Joost
>
> Finally, congratulations to the new officers, PMC Chairs and the other
> two new projects: Apache Quetzalcoatl and Apache Commons! Welcome to
> the club!
>
> !!! Champagne !!!
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxLink works in FF2,IE7, Page Expired in IE6

2007-06-17 Thread Thies Edeling
AjaxLink works in FF2 and IE7, however in IE6 I get a Page Expired 
immediately. I saw some previous threads about the jsessionid not set 
but I doubt this is the same problem as it works in ff2/ie7. Any ideas?

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] No parent in Panel ?

2007-06-17 Thread Thies Edeling
Ah, I did a target.addComponent on the replaced component. The parent of 
that component was set to null after the replaceWith, changing the 
addComponent to the newly created Panel works.

Thies Edeling wrote:
> Some extra info, the No Page found for component happens when I try to 
> replace the Panel
> in the onClick of an AjaxLink:
>
> public void onClick(AjaxRequestTarget target)
> {
> CalendarPanel panel = new CalendarPanel("sidePanel");
> getParent().replaceWith(panel);
> target.addComponent(getParent());
> }
>
> Results in a:
>
> java.lang.IllegalStateException: No Page found for component [MarkupContainer 
> [Component id = sidePanel, page = , path = sidePanel.CalendarPanel]]
>  at org.apache.wicket.Component.getPage(Component.java:1332)
>  at 
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:748)
>  at 
> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:662)
>
>
> gr,
> Thies
>
>
> Thies Edeling wrote:
>   
>> I've got a panel extending the Panel class. When I add that panel to a 
>> Page, getPage can't seem to the find the parent and throws me a 
>> java.lang.IllegalStateException: No Page found for component 
>> [MarkupContainer [Component id = projectOverviewPanel, page = , 
>> path = projectOverviewPanel.ProjectOverviewPanel]]
>>
>> I was assuming the Page was automatically set when the panel was added 
>> or am I mistaken ?
>>
>> gr,
>> Thies
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>   
>> 
>
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] No parent in Panel ?

2007-06-17 Thread Thies Edeling
Some extra info, the No Page found for component happens when I try to 
replace the Panel
in the onClick of an AjaxLink:

public void onClick(AjaxRequestTarget target)
{
CalendarPanel panel = new CalendarPanel("sidePanel");
getParent().replaceWith(panel);
target.addComponent(getParent());
}

Results in a:

java.lang.IllegalStateException: No Page found for component [MarkupContainer 
[Component id = sidePanel, page = , path = sidePanel.CalendarPanel]]
 at org.apache.wicket.Component.getPage(Component.java:1332)
 at 
org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:748)
 at 
org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:662)


gr,
Thies


Thies Edeling wrote:
> I've got a panel extending the Panel class. When I add that panel to a 
> Page, getPage can't seem to the find the parent and throws me a 
> java.lang.IllegalStateException: No Page found for component 
> [MarkupContainer [Component id = projectOverviewPanel, page = , 
> path = projectOverviewPanel.ProjectOverviewPanel]]
>
> I was assuming the Page was automatically set when the panel was added 
> or am I mistaken ?
>
> gr,
> Thies
>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>   



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] No parent in Panel ?

2007-06-17 Thread Thies Edeling
I've got a panel extending the Panel class. When I add that panel to a 
Page, getPage can't seem to the find the parent and throws me a 
java.lang.IllegalStateException: No Page found for component 
[MarkupContainer [Component id = projectOverviewPanel, page = , 
path = projectOverviewPanel.ProjectOverviewPanel]]

I was assuming the Page was automatically set when the panel was added 
or am I mistaken ?

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] noob question about wicket

2007-06-14 Thread Thies Edeling
Also in 1.3? Yesterday I noticed that a Calendar which I retrieved from 
the session and modified afterwards was updated in the session as well.


Thies

Johan Compagner wrote:

when you do this:

CSSession session = (CSSession) getSession();
   
session.setUser(loggedInUser);


then that method:

CSSession.setUser(User)
{
   this.user = user;
   dirty(); <<< You have to do this here!
}

if you alter your session data you have to call dirty
Then you session wil be stored.

johan


On 6/14/07, *verbal evasion* <[EMAIL PROTECTED] 
> wrote:


yeah i got it to work. it wasnt the code, it was some maven
weirdness that was going on. i have a few more questions.
currently, when i login, my authentication mechanism tells me that
i have successfully logged in, but it seems like the session
information is not stored?? i have a print in my isVisible checks
and it always says that the user variable is null. i may be
returning the incorrect ResponsePage?

// in constructor
WebMarkupContainer loggedOut = new WebMarkupContainer("loggedOut") {
public boolean isVisible() {
boolean rv;
rv = ((CSSession) getSession()).getUser() == null;
System.out.println("loggedOut - isVisible? " + rv);
return rv;
}
};   
...

WebMarkupContainer loggedIn = new
WebMarkupContainer("loggedIn") {
public boolean isVisible() {
boolean rv;   
rv = ((CSSession) getSession()).getUser() != null;

System.out.println("loggedIn - isVisible? " +
rv);   
return rv;

}
};
// In submit form
public void onSubmit() {
String userId = getUserId();
String password = getPassword();
   
User loggedInUser = null;
   
try {   
loggedInUser = UserImpl.authenticate(userId,

password);
// Components can access the Session through
getSession()
CSSession session = (CSSession) getSession();   
   
session.setUser(loggedInUser);

System.out.println("Logged in as " + userId);
logger.debug("Logged in as " + userId);
//session.get().info("Logged in as " + userId);   
   
//Index indexPage = new Index(userId, BasePage.this);
//setResponsePage(indexPage);   
setResponsePage(new Index());

} catch (AuthenticationException ae) {
String errMsg = getLocalizer().getString(
"login.errors.invalidCredentials ", this);
// Register this message with the form component.
error(errMsg);
}
}

when i keep logging in, it'll say the following:

20:06:14,806 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,806 INFO  [STDOUT] loggedIn - isVisible? false
20:06:14,810 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,810 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,811 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,811 INFO  [STDOUT] loggedIn - isVisible? false
20:06:14,813 INFO  [STDOUT] loggedIn - isVisible? false
20:06:14,814 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,814 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,815 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,815 INFO  [STDOUT] loggedOut - isVisible? true
20:06:14,816 INFO  [STDOUT] loggedIn - isVisible? false

this is for *one* successful login attempt. why is the constructor
run so many times?  also, the output is wrong. what should i be
returning as the setResponsePage from the onSubmit?

thanks,

verbal





On 6/13/07, *Igor Vaynberg* < [EMAIL PROTECTED]
> wrote:

the form is added to loggedout container, also notice that the
form tag is inside a div wicket:id="loggedout" so it matches
the java hierarchy.

-igor



On 6/13/07, * verbal evasion* < [send email to
[EMAIL PROTECTED] via gmail] [EMAIL PROTECTED]
> wrote:

i tried implementing what you had put and i am stuck
because "loggedin" and "form" are both in the highest
scope of the websitem but in the java code, you have the
"form" added to the "loggedin" WeMarkupContainer. that
doesnt seem to fly with wicket unless i'm doing something
wrong. i tried to take out the html for the login form,
but that just doe

[Wicket-user] Relative path to image for javascript referral

2007-06-03 Thread Thies Edeling
Hi,

This must have been asked a zillion times but I couldn't find the right 
answer in the list archives. Anyway, I have some javascript which does 
an image replacement on a mouseover (need a JS version for browser 
compatibility :( ).
AFAIK JavaScriptReference doesn't update image paths in the javascript 
such as StylesheetReference does with CSS (btw, saw in the archives that 
the plan was to include it in 1.3, was it dropped?). So now I'm 
replacing variables using PackagedTextTemplate which works fine except 
that I can't find an easy way to construct relative paths to images in 
the /img dir of my war. I was expecting getPageRelativePath to help but 
it didn't work.  thx :)

gr,
Thies


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Conditional output

2007-05-29 Thread Thies Edeling
All,

Say that I have an HTML table with data and the last row is a total with 
a colspan to align the value:


Project A
stuff
stuff
5

   

 
5



When col2 is optional I'd do a col2.setVisible(false) on that label but 
the colspan in the total row needs to be adjusted as well. Should I 
create a colspan property in the Page class and do a "> or is there another preferred way? Wondering 
how much I've to 'unlearn' from my JSTL way of doing things :)

Thies
--
http://blog.ehour.nl/


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket & Acegi ?

2007-05-29 Thread Thies Edeling
That's true indeed. My initial reasoning to go with 1.2 was that it was 
most of the available documentation was 1.2 oriented. Although the 
migration guide on the wiki isn't huge, are there major showstoppers 
still in 1.3 ? (this is probably a stale question that can be found in 
the archives but while we're on the topic :))


Johan Compagner wrote:
> you could ofcourse upgrade to 1.3!
> Now you rewrite from struts to wicket but we are moving alone and then 
> you have to rewrite it again to 1.3.
>
> johan
>
>
> On 5/29/07, * Thies Edeling* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 
> wrote:
>
> I'm using 1.2.6 so swarm is not in the picture. Will check out
> auth-roles
> as I'm on java 1.5, thx!
>
> On Tue, 29 May 2007, Maurice Marrink wrote:
>
> > If you are using wicket 1.3 you could try the new wicket security
> > framework swarm. unlike acegi it is not url based but component
> based.
> > It was designed with simplicity in mind so you should be able to get
> > started right away.
> >
> > You can find documentation here
> > http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
> > The documentation is still work in progress but if you have any
> > question you can always ask them on the mailing list.
> >
> > I am not sure if there is an existing wicket-acegi framework but i
> > believe i have heard of people using them together.
> >
> > Optionally if you are using java 1.5 you could check out the
> > wicket-auth-roles project.
> >
> > Maurice
> >
> > On 5/29/07, Thies Edeling <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> wrote:
> >> Hello all,
> >>
> >> I'm migrating an existing Struts app to Wicket and have now
> reached the
> >> point where I have to add authentication/authorization to it.
> >> In the Struts app I used Acegi to add URL-based security.
> Ideally I'd re-use my
> >> existing Acegi config for Wicket but I can't find any
> documentation on how
> >> to do this. The 'Wicket way' of authentication is mentioned on
> the Wiki
> >> somewhere but details are missing.
> >> What's the best way to add simple role-based security to a
> Wicket app?
> >>
> >> thanks in advance,
> >>
> >> Thies
> >> --
> >> http://blog.ehour.nl/ <http://blog.ehour.nl/>
> >>
> >>
>
>



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket & Acegi ?

2007-05-29 Thread Thies Edeling

>> I'm   migrating   an  existing   Struts   app   to  Wicket   and
>> have   now   reached   the   point   where   I   have   to   add
>> authentication/authorization to  it.  In  the Struts app  I used
>> Acegi to add URL-based  security. Ideally I'd re-use my existing
>> Acegi config  for Wicket but  I can't find any  documentation on
>> how to do this. The 'Wicket  way' of authentication is mentioned
>> on the Wiki somewhere but  details are missing.  What's the best
>> way to add simple role-based security to a Wicket app?
>> 
>
> You can  just add acegi  filter in web.xml before  wicket servlet,
> can't you?  Going the "Wicket way" is not strictly necessary, I do
> it  like  this  without  integrating  with  Wicket  authentication
> facilities.
>   
I thought about that too but then I still have to drag in some JSP's for 
the login page and somehow
integrate Acegi's authz taglib for conditional content. Not that it's a 
big deal but it literally all feels
a bit mixed, I prefer to keep it pure.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Wicket & Acegi ?

2007-05-29 Thread Thies Edeling
I'm using 1.2.6 so swarm is not in the picture. Will check out auth-roles 
as I'm on java 1.5, thx!

On Tue, 29 May 2007, Maurice Marrink wrote:

> If you are using wicket 1.3 you could try the new wicket security
> framework swarm. unlike acegi it is not url based but component based.
> It was designed with simplicity in mind so you should be able to get
> started right away.
>
> You can find documentation here
> http://wicketstuff.org/confluence/display/STUFFWIKI/Wicket-Security
> The documentation is still work in progress but if you have any
> question you can always ask them on the mailing list.
>
> I am not sure if there is an existing wicket-acegi framework but i
> believe i have heard of people using them together.
>
> Optionally if you are using java 1.5 you could check out the
> wicket-auth-roles project.
>
> Maurice
>
> On 5/29/07, Thies Edeling <[EMAIL PROTECTED]> wrote:
>> Hello all,
>>
>> I'm migrating an existing Struts app to Wicket and have now reached the
>> point where I have to add authentication/authorization to it.
>> In the Struts app I used Acegi to add URL-based security. Ideally I'd re-use 
>> my
>> existing Acegi config for Wicket but I can't find any documentation on how
>> to do this. The 'Wicket way' of authentication is mentioned on the Wiki
>> somewhere but details are missing.
>> What's the best way to add simple role-based security to a Wicket app?
>>
>> thanks in advance,
>>
>> Thies
>> --
>> http://blog.ehour.nl/
>>
>>
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> ___
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> ___
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] Wicket & Acegi ?

2007-05-29 Thread Thies Edeling
Hello all,

I'm migrating an existing Struts app to Wicket and have now reached the 
point where I have to add authentication/authorization to it.
In the Struts app I used Acegi to add URL-based security. Ideally I'd re-use my
existing Acegi config for Wicket but I can't find any documentation on how 
to do this. The 'Wicket way' of authentication is mentioned on the Wiki 
somewhere but details are missing.
What's the best way to add simple role-based security to a Wicket app?

thanks in advance,

Thies
--
http://blog.ehour.nl/


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user