I'm having a little trouble understanding how to use Panels correctly.
I'm trying to convert a JSP that has many JSP 2.0 tagfile "includes" of
which I pass objects into so they can display some of the data that the
"master" JSP tag displays.
In Wicket, I've re-created the tagfiles as Panels and I'm trying to pass
data to them from the "master" page class through the Panels'
constructors..like so:
public class HeaderPanel extends Panel
{
public HeaderPanel(String id, Blog blog)
{
super(id);
add(new Label("name", blog.getName()));
add(new Label("synopsis", blog.getSynopsis()));
}
}
I'm guessing that this is the way to do this as I haven't been able to
find any examples stating otherwise.
Am I on the right track? Maybe the wiki could use a JSP-to-Wicket
upgrade path type of document?
Thanks!
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user