Examples of IUIComponent


Examples of org.pentaho.platform.api.ui.IUIComponent

        return;

      }
      response.setCharacterEncoding( LocaleHelper.getSystemEncoding() );
      // TODO switch this to the interface once stable
      IUIComponent component = (IUIComponent) session.getAttribute( componentName );
      if ( component == null ) {
        component = getComponent( componentName );
        if ( component == null ) {
          response.setContentType( "text/html" ); //$NON-NLS-1$
          StringBuffer buffer = new StringBuffer();
          PentahoSystem
              .get( IMessageFormatter.class, userSession )
              .formatErrorMessage(
                "text/html", Messages.getInstance().getString( "UIServlet.ACTION_FAILED" ),
                Messages.getInstance().getErrorString( "UIServlet.ERROR_0002_COMPONENT_INVALID" ), buffer ); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
          outputStream.write( buffer.toString().getBytes( LocaleHelper.getSystemEncoding() ) );
          return;
        }
        session.setAttribute( componentName, component );
      }

      if ( !component.validate() ) {
        // TODO need an error here
        return;
      }
      String baseUrl =
          request.getScheme()
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.