You need to sign in to do that
Don't have an account?
B2000
Unknown Property-InputText but not for OutputText
I have a wrapper class with an Integer list. In the VF page when I try and save, I get Error: Unknown Property 'xxx 'when I try and use an inputText. However, it saves and displays correctly if I use an outputText. Here is a partial list of the code VF page and class:
<apex:repeat value="{!listWProduct}" var="prd"> <tr> <th style="text-align:center;"><apex:inputcheckbox value="{!prd.isSelected}"/></th> <th style="text-align:left;"><apex:outputField value="{!prd.p2.Name}"/></th> <apex:repeat value="{!prd.listTerm}" var="xxx"> <td style="text-align:center;"> <apex:inputText value="{!xxx}"/> get Unknown Property: 'xxx' when trying to save VF page <apex:outputText value="{!xxx}"/> this works and VF page saves </td> </apex:repeat> </tr> </apex:repeat> public class wProduct implements Comparable { public Product2 p2 {get;set;} public Boolean isSelected {get;set;} public Integer[] listTerm {get;set;} public wProduct (Product2 p2) { this.p2 = p2; isSelected = false; listTerm = new Integer[]{0,0,0,0,0,0,0,0,0,0}; } public Integer compareTo(Object other) { String otherName = other != null ? ((wProduct)other).p2.Name : ''; return p2.Name.compareTo(otherName); } } in class: public wProduct[] listWProduct {get;set;} listWProduct = new wProduct[]{}; for (Product2 p2 : [Select id,Name From Product2]) { listWProduct.add(new wProduct(p2)); }
Did you found the solution for this error.
Plz let me know if you did
Regards,
Amritesh