seeing the actual stacktrace would be more helpful...

-igor


On Tue, Mar 25, 2008 at 8:59 AM, Ryan O'Hara <[EMAIL PROTECTED]> wrote:
> Hey,
>
>  I'm new to Wicket.  I'm trying to create a tabbed header, which will
>  load Tab classes when hovered.  The tab classes are panels, as well.
>  I tried making hoverMenu a panel, but I was getting some errors about
>  it not finding markup.  Any help would be greatly appreciated.  Below
>  is a code snippet.
>
>  Thanks,
>  Ryan
>
>  public class TabbedHeader extends Panel {
>      private Label hoverMenu;
>
>      public TabbedHeader(final String panelId){
>          super(panelId);
>          hoverMenu = new Label("hoverMenu", new Model());
>          hoverMenu.setOutputMarkupId(true);
>
>          Link link = new Link("loginLink") {
>              public void onClick(){
>                  setResponsePage(Login.class);
>              }
>          };
>          add(link);
>          link.add(new Label("login", "Login"));
>          link.add(new AjaxEventBehavior("onmouseover") {
>              protected void onEvent(AjaxRequestTarget target){
>                  hoverMenu.setModelObject(LoginTab.class);
>                  target.addComponent(hoverMenu);
>              }
>          });
>
>         //more tab links below
>         ...
>  }
>
>  ---------------------------------------------------------------------
>  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]

Reply via email to