• Andrefec
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hello,

 

I have the next code created:

 

Component.Apex.outputText firstNameField = new Component.Apex.outputText();
firstNameField.value = opp.Primeiro_Nome__c;
firstNameField.label = 'Primeiro Nome';
firstNameField.id = 'firstNameField';

 

 

And it will result on a dynamic Pageblock on a visualpage.

 

Opening it on a page everything is ok, but when i run the test class it give me the next error:

" System.VisualforceException: Invalid value for property label: null"

 

What can i do? I need to complete my test class to move to production.

Thank you

Hello,

 

I have the next code created:

 

Component.Apex.outputText firstNameField = new Component.Apex.outputText();
firstNameField.value = opp.Primeiro_Nome__c;
firstNameField.label = 'Primeiro Nome';
firstNameField.id = 'firstNameField';

 

 

And it will result on a dynamic Pageblock on a visualpage.

 

Opening it on a page everything is ok, but when i run the test class it give me the next error:

" System.VisualforceException: Invalid value for property label: null"

 

What can i do? I need to complete my test class to move to production.

Thank you