public void doEdit(IPortalComponentRequest req.....
{
IPageContext myContext=PageContextFactory.createPageContext(req,res);
Document mydoc=myContext.createDocument("absexample");
Form myForm = myContext.createFormDocument("example");
mydoc.addComponent(myForm);
IResource rs=req.getResource(IResource.IMAGE,"images/SAPPortals_opt2.gif");
logo=new Image(rs.getResourceInformation().getURL(req),"Logo");
myinput=new InputField("input");
myinput.setDesign(InputFieldDesign.STANDARD);
mybutton=new Button("mybutton");
mybutton.setText("Personalize");
mybutton.setOnClick("Personalize");
mytray=new Tray();
mytray.addComponent(logo);
myForm.addComponent(mytray);
mydoc.render(myContext);
}
Is this how we create abstractportalcomponent?Iam trying to use this for iview custom personalization..Iam able to open this from the personalize link ..but wud see a blank page instead...
if i do some response.write("") statements, then i wud see those...
Y can't i render buttons and other htmlb stuff ??
Help me out, iam stuck here!
Thanks