You need to sign in to do that
Don't have an account?
![onlinenanda onlinenanda](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Dyanamic id for inputText in DataTable
How to set dynamic id for inputText filed in Datatable. In following code
<apex:dataTable value="{!udas}" var="uda" cellPadding="4" border="1">
<apex:column >
<apex:facet name="header" >Name</apex:facet>
{!uda.udaName}
</apex:column>
<apex:column >
<apex:facet name="header" >Type</apex:facet>
{!uda.udaType}
</apex:column>
<apex:column >
<apex:facet name="header" >Value</apex:facet>
<apex:inputText value="{!uda.value}" id="{!uda.udaName}" />
</apex:column>
</apex:dataTable>
I need to set id as name so that when i pull out value i can get corrosponding name.
Since id field is of type string it is not accepting "{!uda.udaName}" .
IS there any other workaround to set dynamic id setting or how to know the field name for a inputText Field which is being created dynamically.
See this post:
http://community.salesforce.com/sforce/board/message?board.id=Visualforce&message.id=9754