Package javax.portlet

Examples of javax.portlet.PortletSession.removeAttribute()


            catch (Exception e)
            {
                throw new PortletException("Failed to update portlet", e);
            }
            PortletSession session = request.getPortletSession();
            session.removeAttribute(PORTLETS);
            session.removeAttribute(CATEGORIES);
            actionResponse.setPortletMode(PortletMode.VIEW);
            actionResponse.setRenderParameter(JSPAGE, page);
        }
        else
View Full Code Here


            {
                throw new PortletException("Failed to update portlet", e);
            }
            PortletSession session = request.getPortletSession();
            session.removeAttribute(PORTLETS);
            session.removeAttribute(CATEGORIES);
            actionResponse.setPortletMode(PortletMode.VIEW);
            actionResponse.setRenderParameter(JSPAGE, page);
        }
        else
        {           
View Full Code Here

        {           
          String reset = request.getParameter("reset");       
            if (reset != null && reset.equals("true"))
            {
                PortletSession session = request.getPortletSession();
                session.removeAttribute(PORTLETS);
                session.removeAttribute(CATEGORIES);
            }
            String category = request.getParameter(CATEGORY);
            if (category != null)
                actionResponse.setRenderParameter(CATEGORY, category);
View Full Code Here

          String reset = request.getParameter("reset");       
            if (reset != null && reset.equals("true"))
            {
                PortletSession session = request.getPortletSession();
                session.removeAttribute(PORTLETS);
                session.removeAttribute(CATEGORIES);
            }
            String category = request.getParameter(CATEGORY);
            if (category != null)
                actionResponse.setRenderParameter(CATEGORY, category);
            String pageNumber = request.getParameter(PAGENUMNER);
View Full Code Here

                AttributeValue attributeValue = (AttributeValue)attributes.get(i);
                if ( attributeValue == null )
                {
                    if ( i == 0 )
                    {
                        portletSession.removeAttribute(name);
                    }
                    else
                    {
                        // remove this and previously retrieved attributeValues as being temporarily
                        while (size > i )
View Full Code Here

            StrutsPortletErrorContext errorContext = (StrutsPortletErrorContext) portletSession.getAttribute(StrutsPortlet.ERROR_CONTEXT);
            if (errorContext != null)
            {
                if (!actionRequest)
                {
                    portletSession.removeAttribute(StrutsPortlet.ERROR_CONTEXT);
                    renderError(res, errorContext);
                }
                return;
            }
View Full Code Here

            {
                // restore possible render context from the session and store it as request attribute for the StrutsServlet to be able to find it
                StrutsPortletRenderContext renderContext = (StrutsPortletRenderContext)portletSession.getAttribute(RENDER_CONTEXT);
                if ( renderContext != null )
                {                       
                    portletSession.removeAttribute(RENDER_CONTEXT);
                    req.setAttribute(RENDER_CONTEXT, renderContext);
                }
            }

            if (log.isDebugEnabled())
View Full Code Here

        {
            PortletSession portletSession = this.portletRequest.getPortletSession(false);
            ;
            if (null != portletSession)
            {
                portletSession.removeAttribute(key);
            }
        }
    }

    /**
 
View Full Code Here

    protected void removeAttribute(String key)
    {
        PortletSession portletSession = getSession();
        if (portletSession != null)
        {
            portletSession.removeAttribute(key, PortletSession.PORTLET_SCOPE);
        }
    }

    protected Enumeration getAttributeNames()
    {
View Full Code Here

    protected void removeAttribute(String key)
    {
        PortletSession portletSession = getSession();
        if (portletSession != null)
        {
            portletSession.removeAttribute(key, PortletSession.PORTLET_SCOPE);
        }
    }

    protected Enumeration getAttributeNames()
    {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.