WindowListener deprecated - how Notified of window events
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > WindowListener deprecated - how Notified of window events




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    WindowListener deprecated - how Notified of window events  
Zheng Yi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-26-04 12:33 PM

WindowListener and WindowEvent are deprecated.  The API says to use
PortletWindow.getWindowState().  How is the portlet notified of window
events and where do I use getWindowState()?

thanks







[ Post a follow-up to this message ]



    Re: WindowListener deprecated - how Notified of window events  
Marco Beelen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 08:33 AM

Within the doView()-method for your portlet you can do:
request.getWindow().getWindowState() to determine the WindowState.


Sample code to determine how to use this:

PortletWindow.State portletState = request.getWindow().getWindowState();
if ( PortletWindow.State.MAXIMIZED.equals( portletState ) ) {
include( "maximized.jsp", request, response )
}
else {
include( "normal.jsp", request, response );
}




Zheng Yi wrote:
> WindowListener and WindowEvent are deprecated.  The API says to use
> PortletWindow.getWindowState().  How is the portlet notified of window
> events and where do I use getWindowState()?
>
> thanks
>
>





[ Post a follow-up to this message ]



    Re: WindowListener deprecated - how Notified of window events  
Zheng Yi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 04:34 PM

Does that mean I need to repeat that code in each supported mode?


"Marco Beelen" <marco.beelen@axxius.nl> wrote in message
news:c6l0vb$5es6$1@news.boulder.ibm.com...[vbcol=seagreen]
> Within the doView()-method for your portlet you can do:
> request.getWindow().getWindowState() to determine the WindowState.
>
>
> Sample code to determine how to use this:
>
> PortletWindow.State portletState = request.getWindow().getWindowState();
> if ( PortletWindow.State.MAXIMIZED.equals( portletState ) ) {
> include( "maximized.jsp", request, response )
> }
> else {
> include( "normal.jsp", request, response );
> }
>
>
>
>
> Zheng Yi wrote: 







[ Post a follow-up to this message ]



    Re: WindowListener deprecated - how Notified of window events  
Zheng Yi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-27-04 04:34 PM

How does this effect portlet caching, when does the container call
getLastModified(), in the even phase or render phase?

thanks
"Marco Beelen" <marco.beelen@axxius.nl> wrote in message
news:c6l0vb$5es6$1@news.boulder.ibm.com...[vbcol=seagreen]
> Within the doView()-method for your portlet you can do:
> request.getWindow().getWindowState() to determine the WindowState.
>
>
> Sample code to determine how to use this:
>
> PortletWindow.State portletState = request.getWindow().getWindowState();
> if ( PortletWindow.State.MAXIMIZED.equals( portletState ) ) {
> include( "maximized.jsp", request, response )
> }
> else {
> include( "normal.jsp", request, response );
> }
>
>
>
>
> Zheng Yi wrote: 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:28 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register