Bruno, thanks for the reply. I am looking at a file called forceId.jsp under myfaces-simple-examples that was unwarred from a file I downloaded at http://myfaces.apache.org/binary.cgi .  I grepped the file for "hidden" and I didn't get anything - I am nevertheless sure the example works.  Can you please review the below?  

1.)
<f:view>
 <h:form> without forceId
        <x:inputText   id="a" value="a" />
        <x:inputHidden id="b" value="b" />
  </h:form>
</f:view>

... yields the following.  Notice both controls are prefixed with the autogenerated form id.

 <form id="_id0" name="_id0" method="post" action="" enctype="application/x-www-form-urlencoded"> without forceId
        <input id="_id0:a" name="_id0:a" type="text" value="a"/>
        <input type="hidden" id="_id0:b" name="_id0:b" value="b"/>
  <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="autoScroll"/></form>

2.) But ...

<f:view>
 <h:form>
        <x:inputText   forceId="true" id="a" value="a" />
        <x:inputHidden forceId="true" id="b" value="b" />
  </h:form>
</f:view>

...  yields the following.  Notice that the form id is still prepended for inputHidden.

 <form id="_id0" name="_id0" method="post" action="" enctype="application/x-www-form-urlencoded"> with forceId
        <input id="a" name="a" type="text" value="a"/>
        <input type="hidden" id="_id0:b" name="_id0:b" value="b"/>
  <input type="hidden" name="_id0_SUBMIT" value="1"/><input type="hidden" name="autoScroll"/></form>

The only other code in the JSP are the following three lines.  I get the same behavior if the id for the form is specified.  I'm using the 1.0.9 release.  Thanks again for the reply.
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html" prefix="h" %>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%>
<[EMAIL PROTECTED] prefix="x" uri="http://myfaces.apache.org/extensions" %>

Dennis Byrne

Reply via email to