summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page6
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page2
-rw-r--r--framework/Web/UI/TControl.php2
-rw-r--r--framework/Web/UI/WebControls/TWizard.php2
4 files changed, 6 insertions, 6 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page
index aa43a0f9..a12502f7 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample3.page
@@ -18,14 +18,14 @@ In the following survey, if you are a college student, you will be asked which m
OnCompleteButtonClick="wizard3Completed" >
<com:TWizardStep Title="Background" AllowReturn="false">
- <b><%= $this->Parent->Title %></b>
+ <b><%= $this->Title %></b>
<br/><br/>
<com:TCheckBox ID="StudentCheckBox" Text="I am a college student." />
<br/><br/>
</com:TWizardStep>
<com:TWizardStep Title="Major" AllowReturn="false">
- <b><%= $this->Parent->Title %></b>
+ <b><%= $this->Title %></b>
<br/><br/>
My major is
<com:TDropDownList ID="DropDownList11">
@@ -38,7 +38,7 @@ In the following survey, if you are a college student, you will be asked which m
</com:TWizardStep>
<com:TWizardStep Title="Hobbies" AllowReturn="false">
- <b><%= $this->Parent->Title %></b>
+ <b><%= $this->Title %></b>
<br/><br/>
My favorite Sport is
<com:TDropDownList ID="DropDownList22">
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page
index 8687d842..f4313c7f 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TWizard/Sample4.page
@@ -14,7 +14,7 @@
<prop:HeaderTemplate>
<i>Header Template</i>
<br/>
- <b>Step <%= $this->Parent->Parent->ActiveStepIndex+1 %> of 3</b>
+ <b>Step <%= $this->Parent->ActiveStepIndex+1 %> of 3</b>
</prop:HeaderTemplate>
<prop:SideBarTemplate>
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index cc6a6740..78c5bdfc 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -1103,7 +1103,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable
$control->_page=null;
$control->_namingContainer=null;
$control->_tplControl=null;
- $control->_stage=self::CS_CONSTRUCTED;
+ //$control->_stage=self::CS_CONSTRUCTED;
if(!($control->_flags & self::IS_ID_SET))
$control->_id='';
else
diff --git a/framework/Web/UI/WebControls/TWizard.php b/framework/Web/UI/WebControls/TWizard.php
index 0b44872b..794fb4da 100644
--- a/framework/Web/UI/WebControls/TWizard.php
+++ b/framework/Web/UI/WebControls/TWizard.php
@@ -188,7 +188,7 @@ class TWizard extends TWebControl implements INamingContainer
*/
public function addParsedObject($object)
{
- if(is_object($object))
+ if($object instanceof TWizardStep)
$this->getWizardSteps()->add($object);
}