Hello,

I want to make work a signin component i have included in a page. When a 
user signs in, i retrieve the corresponding user record from DB, and put 
it a session property.
Then i hide the signin component, and make visible a new panel, 
presenting a signout button, and a welcome message : "welcome <username>".
I fail to render it :

    public SignInSuccess(String id) {
        super(id);
        add(new Label("username", new PropertyModel(getCustomSession()
                .getUser(), "firstName")));
        SignOutForm signOut = new SignOutForm("signOutForm");
        add(signOut);

    }

It gives me the following error :

java.lang.IllegalArgumentException: Parameter modelObject cannot be null


What did i miss ?

Thanks for your help

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to