• sailaja.vemparala
  • NEWBIE
  • 0 Points
  • Member since 2012

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

Hi,

 

I have a very simple Vf pge which accepts an inputtextfield and i want this to be passed on to the controller and the text inputed in appended with hello and shown in the textbox.

 

Here is my code

 

 

public with sharing class tpagecontroller {
public string  b1 {get;set;}

    public string getval() {
b1=b1+'hello' ;

        return b1;
    }



public tpagecontroller()
{

}


}

 

 

VF page

 

 

<apex:page controller="tpagecontroller">
<apex:form >
<apex:pageBlock id="qer">
<apex:inputText value="{!b1}"/>
<apex:commandButton action="{!getval}"   value="click" reRender="qer" />
  <!-- Begin Default Content REMOVE THIS -->
  <h1>Congratulations</h1>
  This is your new Page
  <!-- End Default Content REMOVE THIS -->
  </apex:pageBlock>
  </apex:form>
</apex:page>

 

 

I am getting this error which i click the button

 

 

java.lang.IllegalArgumentException: Illegal view ID dddhello. The ID must begin with / 

 

 

  • March 16, 2011
  • Like
  • 0