Posts

Showing posts with the label custom-controls

Debugging the InitializeComponent function in the Visual Studio designer

Image
Clash Royale CLAN TAG #URR8PPP Debugging the InitializeComponent function in the Visual Studio designer In testing a number of changes to a custom WinForms control I'm encountering some issues which only occur when loading a form hosting the custom control in the Visual Studio designer. As a result, I'd like to understand if there is any method for debugging and stepping through (or logging in some way) the behaviour of the custom control's code when the Visual Studio designer loads. Well what's stopping you from just stepping into it as normal? I've just tried it and it seems fine. – Jon Skeet Feb 8 '14 at 21:54 I must be missing something obvious as the breakpoints in the custom control's code don't seem to be triggering when firing up the designer. – Chris Co...

Creating custom component based on Primefaces'

Image
Clash Royale CLAN TAG #URR8PPP Creating custom component based on Primefaces' <p:diagram> I've been lurking this helping community for years now and yet never posted because I usually find what I need before asking. I have read through those articles : How to render a composite component using a custom renderer? What is the relationship between component family, component type and renderer type? and yet i'm stuck trying to create my own component based on Primefaces <p:diagram> . The component in itself almost fits my needs but I would need the web browser to be able to correctly interpret HTML tags such as <mark>, <strong> for the data attribute of the Element of the <p:diagram> . I have yet to found a solution without implementing my own component. Knowing a bit how JSF's <h:outputText> gives the option (through the escape tag) to interpret HTML tags correctly, I thought about adding this tag and it's behaviour to the <...