• fretus30
  • NEWBIE
  • 0 Points
  • Member since 2009

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

Hello


Here the sample of code:

                 <apex:commandButton value="Edit" />

 

Instead of using hardcoded text "Edit" I would like  populate the value tag  with the dynamic text,   based on the parameter (MSG_002) passed into apex class .

  

    <apex:commandButton value="MSG_002" />

 

   example of apex class code :

       if (msgID== "MSG_002" && user.lang == "en_US" ){ return "Edit"}

      else  if (msgID== "MSG_002" && user.lang == "ru" ){ return "Menyat'"}

      else  if (msgID== "MSG_002" && user.lang == "jp" ){ return "Bblala'"}

 

I have created custom component for  outputText

 

       </apex:page>

               <c:outputTextSF msgId="MSG_0003"  />

       </apex:page>

 

<apex:component controller="LangCompController">

      <apex:attribute name="msgId" type="string"            Description="MessageID" assignTo="{!feedMessageID}"/>

      <apex:componentBody >

                  {!customMessage}

      </apex:componentBody>

</apex:component>

 


But I have no idea how to handle the following components

<apex:commandButton value=””>

< apex:pageBlock helpTitle=””>

< apex:pageBlock title=””>

< apex:column headerValue =””>

< apex:sectionHeader subtitle =””>

 

 

Any thought, ideas how to solve this problem?

 

 

Hi,

 

Here the samle of code:

<apex:commandButton value="Edit" />

 

 

Instead of using hardcoded text "Edit" I would like populate the value with the dynamic text,   based on the parameter (MSG_002) passed into apex class .

  

<apex:commandButton value="MSG_002" />

 

   example of apex class code :

 

       if (msgID== "MSG_002" && user.lang == "en.US" ){ return "Edit"}

  if (msgID== "MSG_002" && user.lang == "en.US" ){ return "Edit"}