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
venki13118venki13118 

help to rectify java.lang.double error

hi,
i'm using the following code in my page to display sequence no on conditional basis ,but i'm getting the following error
 
            <apex:outputText rendered="{!IF(road.Sequence_Number__c==1,'True','False'}"/>
                                                                              <apex:outputText value="{!road.Sequence_Number__c}"/>
 
 
 Error-  java.lang.double
  can any one plz help me to overcome this Error
TehNrdTehNrd
Try:

<apex: outputText rendered="{!IF(road.Sequence_Number__c = 1,'True','False'}"/>


<apex: outputText value="{!road.Sequence_Number__c}"/>
dchasmandchasman
Slight change - be careful about confusing strings with booleans in rendered and you can simplify things anyway (if(condition, true, false) -> condition)

Code:
<apex: outputText rendered="{!road.Sequence_Number__c = 1}"/>
<apex: outputText value="{!road.Sequence_Number__c}"/>

although I suspect the type conversion issue will still remain - let me know if this does not improve things.