package org.apache.jsp.webcontent.birt.pages.dialog;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.Iterator;
import java.util.Collection;
import org.eclipse.birt.report.resource.BirtResources;
import org.eclipse.birt.report.presentation.aggregation.IFragment;

public final class ParameterDialogFragment_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.List<java.lang.String> _jspx_dependants;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.List<java.lang.String> getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
        throws java.io.IOException, javax.servlet.ServletException {

    final javax.servlet.jsp.PageContext pageContext;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html; charset=utf-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, false, 0, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write("\n");
      out.write('\n');
      java.util.Collection fragments = null;
      fragments = (java.util.Collection) _jspx_page_context.getAttribute("fragments", javax.servlet.jsp.PageContext.REQUEST_SCOPE);
      if (fragments == null){
        throw new java.lang.InstantiationException("bean fragments not found within scope");
      }
      out.write('\n');
      out.write('\n');
      out.write("\n");
      out.write("<DIV CLASS=\"birtviewer_parameter_dialog\">\n");
      out.write("\t<TABLE CELLSPACING=\"2\" CELLPADDING=\"2\" ID=\"parameter_table\" CLASS=\"birtviewer_dialog_body\">\n");
      out.write("\t\t<TR VALIGN=\"top\">\n");
      out.write("\t\t\t<TD>\n");
      out.write("\t\t\t\t<TABLE STYLE=\"font-size:8pt\">\n");
      out.write("\t\t\t\t\t<TR HEIGHT=\"5px\"><TD></TD></TR>\n");
      out.write("\t\t\t\t\t");

					if ( fragments.size( ) <= 0 )
					{
					
      out.write("\n");
      out.write("\t\t\t\t\t\t<TR>\n");
      out.write("\t\t\t\t\t\t\t<TD>");
      out.print( BirtResources.getMessage( "birt.viewer.error.noparameter" ) );
      out.write("\n");
      out.write("\t\t\t\t\t\t\t</TD>\n");
      out.write("\t\t\t\t\t\t</TR>\n");
      out.write("\t\t\t\t\t");

					}
					else
					{
					
      out.write("\n");
      out.write("\t\t\t\t\t\t<TR><TD COLSPAN=\"2\">");
      out.print( BirtResources.getMessage( "birt.viewer.required" ) );
      out.write("</TD></TR>\n");
      out.write("\t\t\t\t\t");

						if ( fragments != null )
						{
							Iterator childIterator = fragments.iterator( );
							while ( childIterator.hasNext( ) )
							{
							    IFragment subfragment = ( IFragment ) childIterator.next( );
								if ( subfragment != null )
								{
									subfragment.service( request, response );
								}
							}
						}
					}
					
      out.write("\n");
      out.write("\t\t\t\t\t<TR HEIGHT=\"5px\"><TD></TD></TR>\n");
      out.write("\t\t\t\t</TABLE>\n");
      out.write("\t\t\t</TD>\n");
      out.write("\t\t</TR>\n");
      out.write("\t\t<TR>\n");
      out.write("\t\t\t<TD>\n");
      out.write("\t\t\t\t<DIV id=\"birt_hint\" style=\"font-size:12px;color:#000000;display:none;position:absolute; z-index:300;background-color: #F7F7F7; layer-background-color: #0099FF; border: 1px #000000 solid;filter:Alpha(style=0,opacity=80,finishOpacity=100);\">\n");
      out.write("\t\t\t\t</DIV>\t\t\n");
      out.write("\t\t\t</TD>\n");
      out.write("\t\t</TR>\n");
      out.write("\t\t\n");
      out.write("\t</TABLE>\t\n");
      out.write("</DIV>");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try { out.clearBuffer(); } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
