[ 
http://issues.apache.org/jira/browse/MYFACES-193?page=comments#action_63112 ]
     
sean schofield commented on MYFACES-193:
----------------------------------------

Here is a copy of email to the JCP on this ...

This is just to comment on the prependId attribute (4.1.4.2).  While I
think this is a good start, it does not address all of the occasions
where faces might alter the id of a component.  There is still the
problem of <h:dataTable> and <f:subview>.   In an email sent to the
MyFaces list Adam Winer mentioned something about subview not being
required for server-side includes.  Can you please elaborate on that?

Plus there is still the matter of dataTable.  Can you add prependId to
dataTable?  That leaves the data contained inside dataTable.  Ideally
that could be represented with [rowIndex] appended to the id instead
of the '_rowIndex'.  The MyFaces project has an extended data table
<x:dataTable> that solves this problem.

   <h:form id="dataTable">
       <x:dataTable value="#{forceIdBean.choices}" var="choice">
           <h:column>
               <x:inputText id="widget" value="#{choice}"
forceId="true" forceIdIndex="true"/>
           </h:column>
       </x:dataTable>
   </h:form>

yields

<table>
<tbody>
<tr><td><input id="widget[0]" name="widget[0]" type="text"
value="foo"/></td></tr>
<tr><td><input id="widget[1]" name="widget[1]" type="text"
value="bar"/></td></tr>
<tr><td><input id="widget[2]" name="widget[2]" type="text"
value="buzz"/></td></tr>
</tbody>
</table>

> forceId does not work on inputHidden
> ------------------------------------
>
>          Key: MYFACES-193
>          URL: http://issues.apache.org/jira/browse/MYFACES-193
>      Project: MyFaces
>         Type: Bug
>  Environment: myFaces nightly build 4-14-2005
>     Reporter: Tim Pyle
>     Assignee: sean schofield
>     Priority: Minor

>
> forceId is not working on the inputHidden component. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to