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()