What steps will reproduce the problem?
1. Create a instance to TActiveDatePicker, for example:
$this->txtFecha = new TActiveDatePicker();
2. Try set $this->txtFecha->getClientSide()->setOnLoading("some script");
OR
Try set $this->txtFecha->getClientSide()->setOnComplete("some script")
3. I get error: "Component property 'TDatePickerClientScript.setOnLoading' is
not defined."
Source File
/var/www/prado-3.1.11/framework/TComponent.php (221)
0210: {
0211: if (count($params)>0)
0212: if ($params[0] && !($params[0] instanceof
TJavaScriptString))
0213: $params[0] = new TJavaScriptString($params[0]);
0214: return call_user_func_array(array($this, $jsmethod),
$params);
0215: }
0216:
0217: if (($getset=='set') and method_exists($this,
'getjs'.$propname))
0218: throw new
TInvalidOperationException('component_property_readonly',get_class($this),$name)
;
0219: }
0220:
0221: throw new
TInvalidOperationException('component_property_undefined',get_class($this),$name
);
0222: }
0223:
0224: /**
0225: * Determines whether a property is defined.
0226: * A property is defined if there is a getter or setter method
0227: * defined in the class. Note, property names are case-insensitive.
0228: * @param string the property name
0229: * @return boolean whether the property is defined
0230: */
0231: public function hasProperty($name)
0232: {
0233: return
What is the expected output? What do you see instead?
I expected set the script using setOnLoading() and setOnComplete() method,
others componets works fine, for example: TActiveButton, TActiveDropDownList,
TActiveImageButton, TActiveLinkButton, They have the method getClientSide
implemented,
What version of the product are you using? On what operating system?
I use the last version from svn repository
Please provide any additional information below.
Thanks for your help.
Original issue reported on code.google.com by jaimea.g...@gmail.com on 16 May 2012 at 1:46
Original issue reported on code.google.com by
jaimea.g...@gmail.com
on 16 May 2012 at 1:46