Guess i misunderstood you the first time.
For a layout as you described here i recommend the following:
Hard code the top level menu items and either use swarm to hide the
items or use the isVisible technique i told you about.
use swarm to hide tabs (http://wicketstuff.org/wicketsecurity/tabs/)
or copy the technique used there.
For your third level, use a ListView or DataView, you can add links or
if you want something really fancy panels to the items in the list,
this way you don't have to know upfront which or how many reports you
have.

You  could use a ListView for your top level menu too but since those
items are known up front there is not that much to gain by doing it
that way.

Maurice


On Jan 27, 2008 8:42 PM,  <[EMAIL PROTECTED]> wrote:
> Thanks for your help. I'm obviously new to Wicket. I come from roll-your-own 
> / Struts JSP land, and would really like to use Wicket, but the inability to 
> create ad-hoc links is going to be a serious design issue. My layout has a 
> top-level nav (Dashboard, Reports, Admin, Logout) -- obviously these can be 
> hard-coded in the HTML file and security enabled as you described earlier.
>
> I have a TabbedPanel that supports each top-level link -- ie Reports has 
> three tabs, 'My Reports', 'Trading', 'Compliance', etc.
>
> Finally, within each tab, the third nav-level would be a list of links on the 
> left side of the page. Thus, for the Reports-->My Reports I'd like a list of 
> the last 5 reports for that user on the left, and then JasperReports on the 
> right to display that report. Pretty simply layout.
>
> If you cannot create a link without first knowing what that link is in the 
> HTML, this simply won't work. Yes, I could create a model that places the 
> last 5 into a DropDownChoice, but my users are not going to like this UI.
>
> Hopefully this gives you a better understanding of what I'm trying to do w/ 
> Wicket. Can you elaborate on the 'problems of hiding an item', and will I 
> even be able to generate a Jasper report from within a Wicket Page?
>
> I kept this off the list, but will re-post if you want.
>
> Kind regards,
> -Matt
>
>
>
> Mr Mean wrote:
> >
> > I'm guessing you want an alternative to display those reports because
> > of the problems hiding an item?
> > Why not put some logic in your model and have it decide which items to
> > pass to your dropdownchoice, or adjust your query that fills the
> > model.
> >
> > Maurice
> >
> > On Jan 27, 2008 6:30 PM, mgiedt <[EMAIL PROTECTED]> wrote:
> >>
> >> Great, that handles my security question, thanks. Now if my two users
> >> have
> >> access to different reports, the only way to present this is through a
> >> DropDownChoice (with each report as an item) as opposed to rows of anchor
> >> tags?
> >>
> >> Could you suggest an alternative display strategy?
> >>
> >> With thanks,
> >> -Matt
> >> --
> >> View this message in context:
> >> http://www.nabble.com/Dynamic-Link-Generation-tp15114204p15121505.html
> >>
> >> Sent from the Wicket - User mailing list archive at Nabble.com.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> Quoted from:
> http://www.nabble.com/Dynamic-Link-Generation-tp15114204p15121804.html
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to