title: Set attribute of standard HTML-tag using JSF
body: <p>Me again about JSF. This time I have another JSF page, looking like:</p>
  
  <pre><code>&lt;%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%&gt;
  &lt;%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%&gt;
  &lt;%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
  &lt;html&gt;
      &lt;f:loadBundle var="messages" basename="ch.bfh.web2.stundenplan.Messages"/&gt;
      &lt;head&gt;
          &lt;link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/style.css"&gt;
          &lt;script type="text/javascript" src="${pageContext.request.contextPath}/script.js"&gt;    &lt;/script&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
          &lt;title&gt;Insert title here&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;f:view&gt;
              &lt;h1&gt;&lt;h:outputText value="#{messages.graphicalTitle}"/&gt;&lt;h:commandButton value="#{messages.btnBack }" type="submit" action="return"&gt;&lt;/h:commandButton&gt;&lt;/h1&gt;
              &lt;h:outputText value="#{displayCalendarBean.text}"&gt;&lt;/h:outputText&gt;
              &lt;iframe src="#{displayCalendarBean.calendarSource }" style=" border-width:0 " width="800" height="600" frameborder="0" scrolling="no"&gt;&lt;/iframe&gt;
          &lt;/f:view&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This time, JSF complains about the <code>iframe</code>. What I really would like to do is something like</p>
  
  <pre><code>&lt;iframe src="someUrl.php?param1=#{someBean.someProperty}&amp;param2=#{someBean.someProperty2}"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>But i thought maybe it doesn't work that way. So I generate the entire property in the bean and try to put it in there entirely.</p>
  
  <p>What do I need to do to have the EL expression replaced?</p>
  
  <p><hr>
  <strong>Edit</strong>:
  Error: <code>org.apache.jasper.JasperException: /displayCalendar.jsp(17,16) #{...} is not allowed in template text</code></p>
  
  <p>I'm using JSF 2.0 on Dynamic Web Module 2.5 with Java 1.5. And this doesn't come from eclipse but a MyFaces' error page is shown. I could post the component tree but I think it doesn't change anything here.</p>
  
  <p>Stack trace:</p>
  
  <pre><code>javax.faces.FacesException: org.apache.jasper.JasperException: /displayCalendar.jsp(17,16) #{...} is not allowed in template text
  at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap(ExceptionHandlerImpl.java:241)
  at org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:156)
  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:258)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
  at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
  at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
  at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
  at java.lang.Thread.run(Thread.java:662)
  Caused by: org.apache.jasper.JasperException: /displayCalendar.jsp(17,16) #{...} is not allowed in template text
  at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
  at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
  at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:102)
  at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:706)
  at org.apache.jasper.compiler.Node$ELExpression.accept(Node.java:958)
  at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
  at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
  at org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:865)
  at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1530)
  at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
  at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2411)
  at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2417)
  at org.apache.jasper.compiler.Node$Root.accept(Node.java:495)
  at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2361)
  at org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1763)
  at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:347)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
  at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:589)
  at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
  at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:368)
  at org.apache.myfaces.view.jsp.JspViewDeclarationLanguage.buildView(JspViewDeclarationLanguage.java:94)
  at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:66)
  at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:239)
  ... 13 more
  </code></pre>
  
  <hr>
  
  <p>Maybe there's another way: I would like to use Google Calendar API using the <a href="http://code.google.com/intl/en/apis/calendar/publish/" rel="nofollow">publish tools</a>. Any even better way to do this?</p>