title: Problem with h:form and p:ajax (Mojarra 2.0.2 and Primefaces 2.0.2)
body: <p>I have got this site:</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  
  &lt;html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.prime.com.tr/ui"&gt;
  
  &lt;h:head&gt;&lt;/h:head&gt;
  &lt;h:body&gt;
  
  
      &lt;h:form id="form-some"&gt;
          &lt;h:inputText id="copingFilePhaseFocus"&gt;
              &lt;p:ajax event="focus" actionListener="#{installationController.startCopyingWarFile}" /&gt;
          &lt;/h:inputText&gt;
      &lt;/h:form&gt;
  
  
  &lt;/h:body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And backing bean:</p>
  
  <pre><code>@ManagedBean(name = "installationController")
  @SessionScoped
  public class InstallationController implements IPluginInstallationListener {
  
      // Some methods here (...)
  
      public void startCopyingWarFile(ActionEvent event) {
          System.out.println("\n\n\n\nStarted\n\n\n\n");
      }
  }
  </code></pre>
  
  <p>This code was working under MyFaces 2.0.0. But under MyFaces 2.0.2 or Mojarra 2.0.2 does not.
  By telling "does not work" I mean that clicking (focusing) input text does not triggering actionListener (Text "Started" does not appear on standard output).
  Has anybody similar problem ?</p>
  
  <p>EDIT 1 (After changing p:ajax to f:ajax):</p>
  
  <pre><code>    &lt;p:outputPanel id="copingFilePhase"&gt;
          &lt;p:accordionPanel speed="0.2"
              rendered="#{pluginInstallerWebBean.copingFilePhase}"&gt;
              &lt;p:tab
                  title="#{msg['installPlugin.copyingWar']} ... #{pluginInstallerWebBean.copingFilePhaseState}"&gt;
                  &lt;h:form prependId="false"&gt;
                      &lt;p:focus for="copingFilePhaseFocus" /&gt;
                      &lt;h:inputText id="copingFilePhaseFocus"
                          rendered="#{pluginInstallerWebBean.copingFilePhaseFocus}"
                          style="display:none;"&gt;
                          &lt;f:ajax event="focus"
                              render="copingFilePhase obtainingPluginInformationPhase"
                              listener="#{installationController.startCopyingWarFile}" /&gt;
                      &lt;/h:inputText&gt;
                  &lt;/h:form&gt;
                  #{msg['installPlugin.copyingWarDescription']}
              &lt;/p:tab&gt;
          &lt;/p:accordionPanel&gt;
      &lt;/p:outputPanel&gt;
  
      &lt;p:outputPanel id="obtainingPluginInformationPhase"&gt;(...)&lt;/p:outputPanel&gt;
  </code></pre>
  
  <p>And the error is:</p>
  
  <blockquote>
    <p>javax.faces.FacesException: 
    contains an unknown id
    'copingFilePhase' - cannot locate it
    in the context of the component
    copingFilePhaseFocus</p>
  </blockquote>