>> And one more specific question regarding Wicket template system. For my
>> web
>> application, I'll most likely need some part of each page that either
>> displays some information about the logged in user, or otherwise a form
>> allowing the user to log in. With some other framework, I'd have a
>> conditional test and then output the appropriate HTML. None of the
>> examples
>> that I have seen on "components" have this kind of conditional output so
>> I
>> was simply wondering how one would go about developing such component
>> with
>> Wicket?
>
> add(new UserInfoPanel("userInfo") {
>   public boolean isVisible() {
>     return getSession().getLoggedUser() != null;
>   }
> };
>
> add(new LoginPanel("loginPanel") {
>   public boolean isVisible() {
>    return getSession().getLoggedUser() == null;
>   }
> });

Yes, this I understand, but without the ability to have conditional tests
in the template, I can't see how you can tell between the two cases when
writing your "HTML".

Could you please include some example template code as well?

Thanks!

Matthias



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to