Package net.sf.jportlet.portlet

Examples of net.sf.jportlet.portlet.PortletException


        /* Render */
        Portlet.Markup markup = request.getClient(  ).getMarkup(  );
        String         templatePath = ( String ) __templatePaths.get( markup );
        if ( templatePath == null )
        {
            throw new PortletException( "No template for markup: " + markup );
        }

        VelocityService srv = ( VelocityService ) getPortletContext(  ).getService( VelocityService.NAME );
        srv.merge( templatePath, request, response );
        if ( _log.isDebugEnabled(  ) )
View Full Code Here


            return Interceptor.CONTINUE;
        }
        catch ( IOException io )
        {
            throw new PortletException( io );
        }
    }
View Full Code Here

            __log.debug( "Adding Portlet. name=" + name );
        }

        if ( _portletDescriptors.put( name, descriptor ) != null )
        {
            throw new PortletException( "Duplicate portlet: " + name );
        }
    }
View Full Code Here

            {
                throw (PortletException)cause;
            }
            else
            {
                throw new PortletException( e );
            }
        }
    }
View Full Code Here

        {
            return beforeService( proxy, event.getPortletRequest(), event.getPortletResponse());
        }
        catch( IOException io )
        {
            throw new PortletException( io );
        }
    }
View Full Code Here

                stmt.execute(  );
            }
        }
        catch ( Exception e )
        {
            throw new PortletException( e );
        }
        finally
        {
            try
            {
                close( null, stmt, cnn );
            }
            catch ( Exception e )
            {
                throw new PortletException( e );
            }
        }
    }
View Full Code Here

                _messageListener = ( MessageListener ) clazz.newInstance(  );
            }
        }
        catch ( Exception e )
        {
            throw new PortletException( e );
        }
    }
View Full Code Here

            {
                doCancel( event, request );
            }
            else
            {
                throw new PortletException( "Invalid command: " + action + "/" + command );
            }
           
            PortletResponse response = event.getPortletResponse();
            PortletURI nextURI = response.createURI(Portlet.Mode.EDIT, PortletWindow.State.MAXIMIZED );
            event.setNextURI( nextURI );
        }
        else
        {
            throw new PortletException( "Invalid action: " + action );
        }
    }
View Full Code Here

                Bookmark bookmark = getBookmarkManager( event ).findBookmark( id );
                request.setAttribute( "bookmark", bookmark );
            }
            catch ( ObjectNotFoundException e )
            {
                throw new PortletException( "Bookmark#" + id + " not found" );
            }
        }
        else
        {
            ValidationHelper.addError( "no_selection", event);
View Full Code Here

        notifyDataChanged(event);
            }
            catch ( MalformedURLException e )
            {
                throw new PortletException( "Bad URL: " + url, e );
            }
            catch ( ObjectNotFoundException e )
            {
                throw new PortletException( "The bookmark you are tring to update no longer exist", e );
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.sf.jportlet.portlet.PortletException

Copyright © 2018 www.massapicom. 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.