Hi all,

I am trying to write a custom component which picks up data from an external source and has to display said data in two ways, similiar to a portlet. First an intro title and text then after clicking on the link a full blown article with photo and body title. The client may eventually go for portlets but as of writing there is no portlet container.

The first part is working, I generate a table in which there is an intro title followed by the intro text in the next row. Styling works for both parts :-)

Now whene I click on the read further link I want to explode the contentlet and take over full screen...but how? I tried manipulating servletresponse and got new data plus some original data. I tried to forward and dispatch to another jsp which seems to be working but I'm not passing any data along. I tried to write some text to the context but it's not displaying in the next page. here's some code I've been playing with, would appreciate tips on how to achieve this

String view = "/page2.jsp"

LifecycleFactory lifecycleFactory = (LifecycleFactory) FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); Lifecycle lifecycle = lifecycleFactory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); ApplicationFactory appFactory = (ApplicationFactory) FactoryFinder
                   .getFactory(FactoryFinder.APPLICATION_FACTORY);
           Application application = appFactory.getApplication();
           ViewHandler viewHandler = application.getViewHandler();
UIViewRoot viewRoot = viewHandler.createView(context, view);
           viewRoot.setViewId(view);
           context.setViewRoot(viewRoot);
context.getResponseWriter().writeText("collie", null); lifecycle.render(context);

/Colin


Reply via email to