hello everyone,

this is my first post. i have been playing with wicket for a while, trying
to see if it will let me do everything i want it to. while a lot of things
in wicket look very attractive from a programmer-forced-to-do-website-stuff
perspective, i do have one big glaring question. the basic way to "put
stuff" on a website with wicket is to create something in the WebPage, add
it to the WebPage, then add an accompanying tag on the html file.

while that is great for dynamic content, the problem i have is what if i
dont want to show that content at all.

is there a way to conditionally show certain content depending on the java
portion? one example would be that i have a main page. it displays some
content and more importantly, a login box. i want to say "if they are
already logged in, dont show the login box, but instead, show some text that
says the user is logged in". everything else on the page would be different.
one way i can do that is of course to create separate pages for it, but
there will be a lot of html or code duplication. it is theoretically
possible to do so by making your class hierarchy a certain way, but it didnt
seem natural to me. also, having this technique handy will be useful in the
future.

i tried to not "add" anything to the form, but since the html has no
conditionals, i have to add the superset of all the tags of content i want.
wicket does not like that.

please advise and sorry for the length of the email.

thanks,

verbal
-------------------------------------------------------------------------
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