Package org.apache.ecs

Examples of org.apache.ecs.StringElement


        Content content = null;
        try {
            content = this.getContentMarkup( this.getURL( provider ) ).getContent();
        } catch ( Exception e ) {
            logger.error("Exception",  e);
            return new StringElement( "Can't use this provider: " + e.getMessage() );
        }
       
        Select select = new Select();
        select.setName( "topic" );
View Full Code Here


            PortletWrapper wrapper = (PortletWrapper)portlet;
            if (!wrapper.getAllowView(rundata))
            {
                if (JetspeedResources.getBoolean("defaultportletcontrol.hide.decorator", true))
                {
                    return new StringElement("");
                }
            }
        }
       
        return portlet.getContent( rundata );
View Full Code Here

            s= e.toString();
        }
       
        TurbineVelocity.requestFinished(context);

        return new StringElement( s );
    }
View Full Code Here

            String message = "JSPViewProcessor: Could not include the following JSP Page:  [" + template + "] :\n\t"
                             + e.getMessage();
            logger.error(message, e);

            return new StringElement(message);
        }

        return new ElementContainer();
    }
View Full Code Here

            // Clear any portlets that exist in this set
            if (this.portlets != null)
            {
                this.portlets.clear();
            }
            return new StringElement(CustomLocalization.getString("SECURITY_NO_ACCESS", rundata));
        }
        else
        {
            if ( logger.isDebugEnabled() )
            {
View Full Code Here

            PortletWrapper wrapper = (PortletWrapper)portlet;
            if (!wrapper.getAllowView(rundata))
            {
                if (JetspeedResources.getBoolean("defaultportletcontrol.hide.decorator", true))
                {               
                    return new StringElement("");
                }
            }
        }

        // Create a new Velocity context and load default
        // application pull tools
        Context context = TurbineVelocity.getContext();
       
        context.put("data", rundata );
        context.put("actions", buildActionList( rundata, portlet ) );
        context.put("conf", getConfig() );
        context.put("skin", portlet.getPortletConfig().getPortletSkin() );

        // Put the request and session based contexts
        TurbinePull.populateContext(context, rundata);
       
        if ( portlet.getName().equals(jdata.getCustomized())
             && (!portlet.providesCustomization()) )
        {           
            context.put("portlet",JetspeedTool.getCustomizer(portlet));
            context.put("portlet_instance",JetspeedTool.getCustomizer(portlet));
        }
        else
        {
            context.put("portlet", portlet );
            if (PersistenceManager.getInstance(portlet, jdata) == null)
            {
              context.put("portlet_instance", portlet );
            }
            else
            {
              context.put("portlet_instance", PersistenceManager.getInstance(portlet, jdata) );
            }
        }
           
        // allow subclasses to add elements to the context
        buildContext( rundata, context );
       
        String theme = getConfig().getInitParameter("theme","default.vm");

        String s = "";
        try
        {
            String template = TemplateLocator.locateControlTemplate(rundata,theme);
            TurbineVelocity.handleRequest(context, template, rundata.getOut());
        }
        catch( Exception e )
        {
            logger.error( "Exception while creating content ", e );
            s = e.toString();
        }

        TurbineVelocity.requestFinished(context);

        return new StringElement( s );
    }
View Full Code Here

            {
                s= e.toString();
            }
        }

        return new StringElement( s );
    }
View Full Code Here

        catch( Exception e )
        {
            s = e.toString();
        }

        return new StringElement( s );
    }
View Full Code Here

    @author <A HREF="mailto:burton@apache.org">Kevin A. Burton</A>
    @version $Id: PollPortlet.java,v 1.3 2001/03/07 07:12:35 taylor Exp $
    */   
    private TD getColumn( String data ) {
       
        return getColumn( new StringElement( data ) );
       
    }
View Full Code Here

        default:
            text.append("MODE = UNKNOWN");
            break;
        }

        return (new StringElement(text.toString()));
    }
View Full Code Here

TOP

Related Classes of org.apache.ecs.StringElement

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.