src/Easy/Element/Textarea.php
public function render()
    {

        
        $disabledStr = ($this->getEnabled() == "N") ? "DISABLED=\"true\"" : "";
        $style = $this->getStyle();
        $func = $this->getFunction(); 
    	if($formobj->errors[$this->objectName]){
			$func .= "onchange=\"this.className='$this->cssClass'\"";
		}else{
			$func .= "onfocus=\"this.className='$this->cssFocusClass'\" onblur=\"this.className='$this->cssClass'\"";
		}        
        $sHTML .= "<TEXTAREA NAME=\"" . $this->objectName . "\" ID=\"" . $this->objectName ."\" $disabledStr $this->htmlAttr $style $func>".$this->value."</TEXTAREA>";        
    	
        if($this->selectFrom){
        	$fromList = array();
	        $this->getFromList($fromList);
	        $valueArray = explode(',', $this->value);
	        $sHTML .= "<UL ID=\"" . $this->objectName ."_suggestion\" class=\"input_textarea_suggestion\" >";
	        if ($this->blankOption) // ADD a blank option
	        {
	            $entry = explode(",",$this->blankOption);
	            $text = $entry[0];
	            $value = ($entry[1]!= "") ? $entry[1] : null;
	            $entryList = array("val" => $value, "txt" => $text );
	            $sHTML .= "<LI><H3>".$entryList['txt']."</H3></LI>";
	        }
	        
	        foreach ($fromList as $option)
	        {            
	            $sHTML .= "<LI><A href=\"javascript:;\" onclick=\"$('".$this->objectName."').value+='".$option['val']."'\" >".$option['txt']."</A></LI>";        	
	        }
	        $sHTML .= "</UL>";
        }
        return $sHTML;
    }
public function render()
    {

        
        $disabledStr = ($this->getEnabled() == "N") ? "DISABLED=\"true\"" : "";
        $style = $this->getStyle();
        $func = $this->getFunction(); 
    	if($formobj->errors[$this->objectName]){
			$func .= "onchange=\"this.className='$this->cssClass'\"";
		}else{
			$func .= "onfocus=\"this.className='$this->cssFocusClass'\" onblur=\"this.className='$this->cssClass'\"";
		}        
        $sHTML .= "<TEXTAREA NAME=\"" . $this->objectName . "\" ID=\"" . $this->objectName ."\" $disabledStr $this->htmlAttr $style $func>".$this->value."</TEXTAREA>";        
    	
        if($this->selectFrom){
        	$fromList = array();
	        $this->getFromList($fromList);
	        $valueArray = explode(',', $this->value);
	        $sHTML .= "<UL ID=\"" . $this->objectName ."_suggestion\" class=\"input_textarea_suggestion\" >";
	        if ($this->blankOption) // ADD a blank option
	        {
	            $entry = explode(",",$this->blankOption);
	            $text = $entry[0];
	            $value = ($entry[1]!= "") ? $entry[1] : null;
	            $entryList = array("val" => $value, "txt" => $text );
	            $sHTML .= "<LI><H3>".$entryList['txt']."</H3></LI>";
	        }
	        
	        foreach ($fromList as $option)
	        {            
	            $sHTML .= "<LI><A href=\"javascript:;\" onclick=\"$('".$this->objectName."').value+='".$option['val']."'\" >".$option['txt']."</A></LI>";        	
	        }
	        $sHTML .= "</UL>";
        }
        return $sHTML;
    }
Render, draw the element according to the mode

@return string HTML text