How should i impliment the ROl and Auth on the AbstractTab .
Please find the below code for ref
final List tabs = new ArrayList();
final AbstractTab ABCTab = new AbstractTab(new Model(ABC)) {
//@Override
Public Panel getPanel(final String panelId) {
How should i impliment the ROl and Auth on the AbstractTab .
Please find the below code for ref
final List tabs = new ArrayList();
final AbstractTab ABCTab = new AbstractTab(new Model(ABC)) {
//@Override
Public Panel getPanel(final String panelId) {
I have the same need of you . Could you share the implementation of
your Secure TabbedPanel?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-authorization-strategy-tp1893255p4665666.html
Sent from the Users forum mailing list archive at Nabble.com.
This is my problem. How do I get the information, if the user has not the
permission to see the panel?
I create a tab list like this:
ListITab tabs = new ArrayListITab();
tabs.add(new AbstractTab(new ModelString(panel)) {
public Panel getPanel(String panelId) {
return new
I take it you configured wicket-auth-roles by doing
getSecuritySettings().setAuthorizationStrategy(...) in your
application's init?
If so, then the security check for that component is done by an
IComponentInstantiationListener that is automatically initialized by
the constructor of Application.
Okay, with your example implementation I can disable the content of the tab.
But the tab itself is still visible. And I am searching a way to disable
this tab itself too.
Jeroen Steenbeeke wrote:
I believe the default behavior is to throw an
UnauthorizedInstantiationException
if
You can extend TabbedPanel and overwrite the newLink() method.
toberger mailto:torben.ber...@gmx.de wrote:
Okay, with your example implementation I can disable the content of
the tab. But the tab itself is still visible. And I am searching a
way to disable this tab itself too.
Jeroen
Hi,
I'm sorry to put such an old topic up.
But I'm searching for a way to secure tabs with wicket-auth-roles and I
don't want to display the tabs when the user has no authorization for its
content panel.
I can't find the source code which is related to. Maybe somone can just add
a little code
Can't you just not add the tab if the user doesn't have the
role/permission required?
On Thu, Jan 7, 2010 at 5:25 PM, toberger torben.ber...@gmx.de wrote:
Hi,
I'm sorry to put such an old topic up.
But I'm searching for a way to secure tabs with wicket-auth-roles and I
don't want to display
Not sure if it is of help to you, but Swarm has an example on how to do this:
http://wicketstuff.org/wicketsecurity/tabs/
You probably want the hide tabs option.
Source is available at
https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicket-security-examples
Maurice
On Nov 27,
That gave me some hints indeed. Thanks !
The authorization needs to be placed on the link (that is created when
overriding the newlink method from TabbedPanel).
Mr Mean wrote:
Not sure if it is of help to you, but Swarm has an example on how to do
this:
On Nov 27, 2007 3:15 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
That gave me some hints indeed. Thanks !
The authorization needs to be placed on the link (that is created when
overriding the newlink method from TabbedPanel).
Yeah, that makes sense :-)
Eelco
Marieke Vandamme schrieb:
Hello,
Is it possible to use TabbedPanel from wicket extensions together with the
wicket auth-roles?
Because TabbedPanel contains AbstractTab (which do not extend Component), I
didn't find a way to set the specific roles for each tab.
Thanks !
Hello,
AbstractTab
Hello,
Thanks for the idea, but I already tried that..
The problem is that the panel is only created when the user clicks on the
according tab, which in my case is too late. I don't want the tab to be
printed if the user is not authorized.
Fridolin Jackstadt wrote:
Marieke Vandamme
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
I don't want the tab to be
printed if the user is not authorized.
so dont add it to the list of itabs you give the panel... ?
-igor
Fridolin Jackstadt wrote:
Marieke Vandamme schrieb:
Hello,
Is it possible to
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
Hello,
Thanks for the idea, but I already tried that..
The problem is that the panel is only created when the user clicks on the
according tab, which in my case is too late. I don't want the tab to be
printed if the user is
That was my last solution, because i hoped it could be integrated with the
auth-roles so i didn't have to check the role myself. Because if i'm right,
before adding the tab to the list, i check with the role from the user's
session?
igor.vaynberg wrote:
On Nov 26, 2007 6:56 AM, Marieke
On Nov 26, 2007 10:38 PM, Marieke Vandamme [EMAIL PROTECTED] wrote:
That was my last solution, because i hoped it could be integrated with the
auth-roles so i didn't have to check the role myself. Because if i'm right,
before adding the tab to the list, i check with the role from the user's
That won't compile.. I guess because AbstractTab doesn't extends Component..
Eelco Hillenius wrote:
On Nov 26, 2007 6:56 AM, Marieke Vandamme [EMAIL PROTECTED] wrote:
Hello,
Thanks for the idea, but I already tried that..
The problem is that the panel is only created when the user
I tried that, but it won't compile. Maybe because AbstractTab doesn't extends
Component?
I can't add the @AuthorizeAction to the panel, because the panel is only
created when the specific tab is clicked.
Eelco Hillenius wrote:
On Nov 26, 2007 10:38 PM, Marieke Vandamme [EMAIL PROTECTED]
20 matches
Mail list logo