Though age
old, thought of writing this post just to have a placeholder to detail the basic
JSR 286 Portlet flow.
![]() |
JSR 286 based portlet's flow |
By overriding the major methods of GenericPortlet class and adding loggers on each method entry, we can easily view the flow of the portlets lifecycle.
- After deploying the portlet, when it is being invoked for the first time (by visiting a page on which it is added) init method is called.
[2/18/16 17:10:55:925 IST] 000001c5 SystemOut O JSR286LCCheck init method called [2/18/16 17:10:55:926 IST] 000001c5 SystemOut O JSR286LCCheck render method called, mode to be displayed is : view [2/18/16 17:10:55:926 IST] 000001c5 SystemOut O JSR286LCCheck doDispatch method called [2/18/16 17:10:55:926 IST] 000001c5 SystemOut O JSR286LCCheck doView method called
- For all other subsequent calls, init is not invoked. On page refresh:
[2/18/16 17:13:23:309 IST] 00000145 SystemOut O JSR286LCCheck render method called, mode to be displayed is : view [2/18/16 17:13:23:310 IST] 00000145 SystemOut O JSR286LCCheck doDispatch method called [2/18/16 17:13:23:310 IST] 00000145 SystemOut O JSR286LCCheck doView method called
- On Form submit processAction is invoked and flowing is the flow: (Changed the portlet mode here to Edit mode). doDispatch redirects to the requested mode method:
[2/18/16 17:12:03:436 IST] 00000044 SystemOut O JSR286LCCheck processAction method called [2/18/16 17:12:03:741 IST] 00000044 SystemOut O JSR286LCCheck render method called, mode to be displayed is : edit [2/18/16 17:12:03:741 IST] 00000044 SystemOut O JSR286LCCheck doDispatch method called [2/18/16 17:12:03:741 IST] 00000044 SystemOut O JSR286LCCheck doEdit method called
Once the mode is changed, it remains in the same mode till session is over or the mode is changed explicitly.
- When serveResource is called, then only serveResource is called. It acts as an independent method.
[2/18/16 17:12:40:239 IST] 00000145 SystemOut O JSR286LCCheck serveResource method
- When the application is stopped, destroy method is called. Destroy will only be called if the portlet has been initialized / invoked. If the portlet has not been initialized, the destroy method will not be called.
[2/18/16 17:14:13:292 IST] 00000048 ApplicationMg A WSVR0217I: Stopping application: PA_JSR286LCCheck [2/18/16 17:14:13:301 IST] 00000048 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper doDestroy SRVE0253I: [PA_JSR286LCCheck] [/wps/PA_JSR286LCCheck] [/_JSR286LCCheck/jsp/html/JSR286LCCheckPortletView.jsp]: Destroy successful. [2/18/16 17:14:13:302 IST] 00000048 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper doDestroy SRVE0253I: [PA_JSR286LCCheck] [/wps/PA_JSR286LCCheck] [/_JSR286LCCheck/jsp/html/JSR286LCCheckPortletEdit.jsp]: Destroy successful. [2/18/16 17:14:13:302 IST] 00000048 SystemOut O JSR286LCCheck destroy called [2/18/16 17:14:13:302 IST] 00000048 ServletWrappe I com.ibm.ws.webcontainer.servlet.ServletWrapper doDestroy SRVE0253I: [PA_JSR286LCCheck] [/wps/PA_JSR286LCCheck] [JSR286LCCheck]: Destroy successful. [2/18/16 17:14:13:584 IST] 00000048 ApplicationMg A WSVR0220I: Application stopped: PA_JSR286LCCheck
wow! pertandingan yang sangat seru dari meron dan wala untuk anda yang mau menonton klik disini!
ReplyDeletedan dapatkan seputar sabung ayam hanya di sini http://www.ayamkari.co
http://judicockfight.blogdigy.com/type-ayam-filipina-yang-paling-ditakuti-pada-arena-sabung-ayam-5760648
Situs Judi Poker Online Terpercaya
ReplyDeleteLink Alternatif S1288poker
S1288poker Judi POker Online
CS S1288poker
S1288poker Indonesia
* LETS JOIN AND FEEL SENSATION TO PLAY *
ReplyDeleteSabung Ayam Pisau
Sabung Ayam Filipina
Sabung Ayam Bali
Sabungayam
S128 Live
Bandar Sabung Ayam
Jadwal Bola Malam Ini
* VISIT OUR SITE AT *
www.gorengayam.co
* ONLY HERE YOU CAN FEEL CONTINUOUS VICTORY *
https://gulaiayammarketing.blogspot.com/2018/10/peristiwa-perkembangan-sabung-ayam.html
WINNING303 - JUDI BOLA ONLINE | CASINO ONLINE | SLOT ONLINE | POKER ONLINE TERPERCAYA
ReplyDeleteBOLA 303
CASINO 303
TOGEL 303
TOGEL POKER
BO POKER
* KUNJUNGI SITUS KAMI DI *
www.winning303.net
*NB : MENANG BERAPAPUN, PASTI KAMI BAYAR !!! *
* Melayani LiveChat 7 x 24 Jam Nonstop :
- WA : +6281717177303
- BBM : WINNING303
- LINE : WINNING303*
DAFTAR SEKARANG
This comment has been removed by the author.
ReplyDeleteID303 SUDAH BISA DEPOSIT PULSA
ReplyDelete* KUNJUNGI SITUS KAMI DI *
WWW.ID303.INFO
* Melayani LiveChat 7 x 24 Jam Nonstop :
- WA : 08125522303
- BBM : CSID303*
DAFTAR ID GRATIS SABUNG AYAM ONLINE
ReplyDelete* KUNJUNGI SITUS KAMI DI *
WWW.ID303.INFO
MENANG BERAPAPUN, PASTI KAMI BAYAR !!! *
* Melayani LiveChat 7 x 24 Jam Nonstop :
- WA : 08125522303
- BBM : CSID303
BONUS JACKPOT SABUNG AYAM ONLINE
Nonton Sabung Ayam Live !
ReplyDeleteTemukan cara nya dengan klik Kata Sabung Ayam di bawah ini..
Sabung Ayam