Forum  Core :: SDK (Vi...  Bug Reports  Obscuring causes error for CustomControls that define their own XSLT
Previous Previous
 
Next Next
New Post 4/8/2011 4:49 PM
Accepted Answer 
  palli
11838 posts
1st Level Poster




Re: Obscuring causes error for CustomControls that define their own XSLT 

Hi again Jivan,

Here is the text I wrote in the email.

 

First thing I notice is that your ATMTextBoxSkin class is inheriting from ControlSkin. Was that intentional ? I think it must be a mistake, and you want it to inherit from TextBoxSkin.

 

Second, there seems to have been a namechange in the XSLT templates names in the framework. They changed the name, but didn‘t fix the typo J Anyway, there is a template „tplResgisterInputLostFocusEvent“ called two times in your XSLT, and the current name should be „tplResgisterLostFocusEvent“.  I didn‘t check which exact version this changed in, but I am almost sure it‘s included in 6.4.0 Release b. You need to change that name.

 

After those two changes, there‘s no more javascript template error either obscured or not.

 

Third, as a general best practice rule, to support obscuring, you should name all your JavaScript functions with the control name as a prefix. I notice there are a few that are not.

 

For your information,  the way to find things like this out is not always easy, but what I did was to create a Theme, then view the XSLT for the textbox and there I spotted the difference. Please be adviced that while the framework is evolving so rapidly, you need to expect and prepare for changes to the core XSLT, as well as other resources, and it should be a common practice when upgrading the framework to compare the resources you have overridden, or reused in a custom control, and see if there are any differences.

 

Hope this helps,

Palli


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
New Post 4/24/2011 10:08 AM
  jivanro
9 posts
No Ranking


Re: Obscuring causes error for CustomControls that define their own XSLT 

Thank you very much for taking the time to check on this situation.

 I will follow your advice each time I do an upgrade on the Visual Web GUI version.

Best regards,

- Jivan

 
New Post 4/24/2011 1:47 PM
  palli
11838 posts
1st Level Poster




Re: Obscuring causes error for CustomControls that define their own XSLT 

Hi Jivan,

You are most welcome. Just glad to be able to help.

Palli

 


Páll Björnsson - Visual WebGui support team - Email: support@visualwebgui.com
 
Previous Previous
 
Next Next
  Forum  Core :: SDK (Vi...  Bug Reports  Obscuring causes error for CustomControls that define their own XSLT
Azure banner
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS