public function prepareDisplay(){
		if($this->id == null && $this->class == null){
			$this->id = (String)(new \OWeb\utils\IdGenerator ());
			$displayId = 'id="'.$this->id.'"';
			$jid = "#".$this->id;
		}else if($this->id == null){
			$displayId = 'class="'.$this->class.'"';
			$jid = ".".$this->class;
		}else{
			$displayId = 'id="'.$this->id.'"';
			$jid = "#".$this->id;
		}
		
		if($this->function == null){
			$ex = new \OWeb\Exception("When creating a Jquery Code Generator you need to call setCallFunction to set up the function that needs to be called");
			$ex = new \OWeb\types\UserException($this->l("Function unset Error Title"), 0, $ex);
			$ex->setUserDescription($this->l("Function unset Error Desc"));
			throw $ex;
		}
		$this->view->id = $displayId;
		
		return $jid;
	}