i'm trying populate the fields of a custom Object. The object are being create but the informations used with InputField doesn't populate.
Fragment of Visualforce
<apex:actionRegion id="formNewSolicitud" immediate="false" rendered="{!grid}">
<apex:outputLabel value="{!$ObjectType.Socitud__c.Fields.Tipo__c.Label}" for="inputTipo"/>
<apex:inputField id="inputTipo" value="{!newSocitud.Tipo__c}" required="true" />
<apex:outputLabel value="{!$ObjectType.Socitud__c.Fields.Comentarios__c.Label}" for="inputComentarios"/>
<apex:inputField id="inputComentarios" value="{!newSocitud.Comentarios__c}" required="true" />
<apex:outputPanel layout="none">
<apex:commandButton value="Salvar" action="{!saveSolicitud}"/>
</apex:outputPanel>
</apex:actionRegion>
Controller
public class TLS_CallClosureController {
public Socitud__c newSocitud {get; set;}
public TLS_CallClosureController() {
newSocitud = new Socitud__c();
}
public PageReference saveSolicitud(){
upsert (newSocitud);
return null;
}
I tested inserting hardcored and worked, but when i use the inputField in Visualforce the object doenst populate.
thanks in advance.