On 2/14/07, Scott Lusebrink <[EMAIL PROTECTED]> wrote:
> Would a WebResource not lock the rest of the application?
Not if it is defined as a shared resource. If it is component bound -
like Images use resources - it is.
> Ajax is not a
> possibility due to security requirements. This page is already inside its
> own frame, I pretty much need a unsynchronized page. Can you provide an
> example of how to use a webResource to display a table
My earlier example:
public class FooExport extends WebResource {
public static class Initializer implements IInitializer {
public void init(Application application) {
SharedResources res = application.getSharedResources();
res.add("foodata", new FooExport());
}
}
public FooExport() {
setCacheable(false);
}
@Override
public IResourceStream getResourceStream() {
MySession s = (MySession)Session.get();
String uid = s.getUid();
CharSequence bar = DataBase.getInstance().getDataForFoo(uid);
return new StringResourceStream(bar, "text/plain");
}
}
here, 'bar' would be the string with the complete markup (like a
table) as you want it to stream to your (internal) frame.
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user