Passing the component that is checked to IRoleCheckingStrategy.hasAnyRole()

2007-07-19 Thread Bart Molenkamp
Hi, In IRoleCheckingStrategy, the method hasAnyRole() only gets a collection of roles to check against. Would it be possible to pass the component that is checked as well? I'm trying to integrate Wicket with Acegi security, and I want to let Acegi's AccessDecisionManager check if the

yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread Johan Compagner
the current version (2.2) isn't made for injection (what we could do for example if we have an ajax tabpanel) But 2.3 which is about the get released i think says this in the code: // If the library is being injected after window.onload, it // is not safe to document.write

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread James McLaughlin
The injecting flag is used only by the new yuiloader functionality, which will resolve and load library dependencies. Before this, you would need to specify each dep by hand. For some reason, the yui event prefers to use document.write to create the script node over document.createElement if not

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread Matej Knopp
To filter header contribution in wicket there you can set the id attribute of the script. Otherwise it will be filtered by URL. So if you have the contribution twice with same javascript url, it will be filtered. -Matej On 7/19/07, James McLaughlin [EMAIL PROTECTED] wrote: The injecting flag

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread Johan Compagner
On 7/19/07, James McLaughlin [EMAIL PROTECTED] wrote: The injecting flag is used only by the new yuiloader functionality, which will resolve and load library dependencies. Before this, you would need to specify each dep by hand. For some reason, the yui event prefers to use document.write to

Re: Passing the component that is checked to IRoleCheckingStrategy.hasAnyRole()

2007-07-19 Thread Erik van Oosten
Hi Bart, You can study the wicket-auth-roles project to see how you can use authorization based on roles. Wicket-auth-roles does this at the component level. Better yet, this (still incomplete but useable) wiki page shows you how to integrate Acegi with Wicket:

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread James McLaughlin
Is there anyway to set the id or some other token when using a JavascriptResourceRef? Both wicket-datetime and wicket-contrib-yui use it to load script. thx, jim On 7/19/07, Matej Knopp [EMAIL PROTECTED] wrote: To filter header contribution in wicket there you can set the id attribute of the

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread James McLaughlin
what do you mean? that 2.2 didn't use document.write()? No, I was merely puzzling over why they would use document.write, and the only place YAHOO_config.injecting is checked is in a condition that decides whether to use document.createElement or document.write. Must be some kind of IE quirk.

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread Matej Knopp
Well, actually, there is none. The reference is filtered only by URL. You can submit a feature request for adding an ID to it. -Matej On 7/19/07, James McLaughlin [EMAIL PROTECTED] wrote: Is there anyway to set the id or some other token when using a JavascriptResourceRef? Both wicket-datetime

Re: yahoo components and the use of yahoo.js/event.js

2007-07-19 Thread James McLaughlin
Done https://issues.apache.org/jira/browse/WICKET-771 thanks, jim On 7/19/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 7/19/07, Matej Knopp [EMAIL PROTECTED] wrote: Well, actually, there is none. The reference is filtered only by URL. You can submit a feature request for adding an ID to

Ajax + FormTester

2007-07-19 Thread Marek Gilbert
Greetings. I've been trying to figure out how to do a WicketTester based test of an Ajax-enabled form sequence. The basic idea of the code under test is to have a bunch of panels on a single page, where navigation between panels is gated by server-side validation implemented as Ajax

Re: getWrappedModel and getChainedModel (Component.getInnerMostModel())

2007-07-19 Thread Eelco Hillenius
we also have IChainingModel shouldn't we also test for that? because çurrently the behavior is that we only test for WramModels to get to the innermost model but what is then the big difference with IChainingModel? Hey, didn't you code that stuff? :) Eelco