[jboss-user] [JBoss Portal] - Re: Is it okey to put the logic within doView method instead

2007-02-14 Thread yoyoyoyo
hi, i am interested in the same question too. particularly with myfaces, where we have to use a MyfacesGenericPortlet als the entry point. should i subclass the GenericPortlet? thanks for any suggestion in advance! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic

[jboss-user] [JBoss Portal] - Re: Is it okey to put the logic within doView method instead

2007-02-13 Thread sudarshanacharya
Thank you so much for the suggestion. Is there any example how you can appropriately split a portlet in different classes? Do I have to pass a lot of parameters as arguemts into the methods of such classes? Can I subclass a portlet? What is the better way to do that? Are there any kind of portl

[jboss-user] [JBoss Portal] - Re: Is it okey to put the logic within doView method instead

2007-02-13 Thread [EMAIL PROTECTED]
You should split your portlets in differents classes. You should avoid putting all your stuff in session, you should use request attributes when possible. Putting the logic in doView is really against good practice. It will be executed on every refresh including when you trigger another portlet