function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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>
    <apex:column >
    <apex:facet name="header" >Type</apex:facet>
    <apex:column >
    <apex:facet name="header" >Value</apex:facet>
    <apex:inputText  value="{!uda.value}" id="{!uda.udaName}" />

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.