Package org.apache.ecs.xhtml

Examples of org.apache.ecs.xhtml.div.addElement()


                   
                    indexDiv.addElement( "<a href='#"+initialChar+"'>"+initialChar+"</a>" );
                }
                else
                {
                    currentDiv.addElement( ", " );
                }
               
                String link = "<a href='"+
                              context.getURL( WikiContext.VIEW, name )+
                              "'>"+name+"</a>";
View Full Code Here


               
                String link = "<a href='"+
                              context.getURL( WikiContext.VIEW, name )+
                              "'>"+name+"</a>";
               
                currentDiv.addElement( link );
            }
        }
        catch( ProviderException e )
        {
            log.warn("Could not load page index",e);
View Full Code Here

     *  Outputs a HTML-formatted version of a stack trace.
     */
    private String stackTrace( Map< String, String > params, Throwable t ) {
        div d = new div();
        d.setClass( "debug" );
        d.addElement( "Plugin execution failed, stack trace follows:" );
        StringWriter out = new StringWriter();
        t.printStackTrace( new PrintWriter( out ) );
        d.addElement( new pre( out.toString() ) );
        d.addElement( new b( "Parameters to the plugin" ) );

View Full Code Here

        div d = new div();
        d.setClass( "debug" );
        d.addElement( "Plugin execution failed, stack trace follows:" );
        StringWriter out = new StringWriter();
        t.printStackTrace( new PrintWriter( out ) );
        d.addElement( new pre( out.toString() ) );
        d.addElement( new b( "Parameters to the plugin" ) );

        ul list = new ul();
        for( Iterator<Map.Entry< String, String > > i = params.entrySet().iterator(); i.hasNext(); ) {
            Map.Entry< String, String > e = i.next();
View Full Code Here

        d.setClass( "debug" );
        d.addElement( "Plugin execution failed, stack trace follows:" );
        StringWriter out = new StringWriter();
        t.printStackTrace( new PrintWriter( out ) );
        d.addElement( new pre( out.toString() ) );
        d.addElement( new b( "Parameters to the plugin" ) );

        ul list = new ul();
        for( Iterator<Map.Entry< String, String > > i = params.entrySet().iterator(); i.hasNext(); ) {
            Map.Entry< String, String > e = i.next();
            String key = e.getKey();
View Full Code Here

            String key = e.getKey();

            list.addElement( new li( key + "'='" + e.getValue() ) );
        }

        d.addElement( list );

        return d.toString();
    }

    /**
 
View Full Code Here

                   
                    indexDiv.addElement( "<a href='#"+initialChar+"'>"+initialChar+"</a>" );
                }
                else
                {
                    currentDiv.addElement( ", " );
                }
               
                String link = "<a href='"+
                              context.getURL( WikiContext.VIEW, name )+
                              "'>"+name+"</a>";
View Full Code Here

               
                String link = "<a href='"+
                              context.getURL( WikiContext.VIEW, name )+
                              "'>"+name+"</a>";
               
                currentDiv.addElement( link );
            }
        }
        catch( ProviderException e )
        {
            log.warn("Could not load page index",e);
View Full Code Here

                   
                    indexDiv.addElement( "<a href='#"+initialChar+"'>"+initialChar+"</a>" );
                }
                else
                {
                    currentDiv.addElement( ", " );
                }
               
                String link = "<a href='"+
                              context.getURL( WikiContext.VIEW, name )+
                              "'>"+name+"</a>";
View Full Code Here

               
                String link = "<a href='"+
                              context.getURL( WikiContext.VIEW, name )+
                              "'>"+name+"</a>";
               
                currentDiv.addElement( link );
            }
        }
        catch( ProviderException e )
        {
            log.warn("Could not load page index",e);
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.