Johan Compagner schrieb:

In my case, I don't even need authorization exceptions. It looks like
this:

for (Action a : entity.getActions()) {
        add(new ActionButton(a));
}



So for every link/button you have you have a listview and/or panels in
wicket?

Yes.


Because you can't just not add a button/link if it is specified in the
markup.
Or add one that isn't specified in the markup.

The problem when you use for these kind of things listviews/repeaters is
that design is again must harder to do.

That's true. But on the other hand, there are only a very few pages that have to be designed, because components are reused very often.


I like that a designer can design the complete page including all the menu's
and menuitems so that that page
has all the features.
Then in wicket we will add all menus/menuitems but the security framework
will let them render or not.

These links mostly don't have a model, it only points to another page class
and that page class is specified in the security settings
that a user can see that page or not and based on that the link is not
rendered.. So no model data nothing is specified for this
just pure wicket stuff.
This is in my case a very common usecase.

I understand. In early development stages, a new module in my app works the same.


Timo


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to