<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Illuminate Required Fields via ExtJS</title>
	<atom:link href="http://blog.edseek.com/archives/2009/04/19/illuminate-required-fields-via-extjs/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.edseek.com/archives/2009/04/19/illuminate-required-fields-via-extjs/</link>
	<description>Thursday next week is indeed time for a thorough insight into the swirling red debian vortex. -- leeta</description>
	<pubDate>Fri, 10 Feb 2012 03:07:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Chris</title>
		<link>http://blog.edseek.com/archives/2009/04/19/illuminate-required-fields-via-extjs/#comment-36510</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 22 Mar 2011 12:01:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.edseek.com/?p=840#comment-36510</guid>
		<description>I upgraded your post by allowing CompositeField's labels that are merged from the labels of the fields it contains.


Ext.apply(Ext.layout.FormLayout.prototype, {
    originalRenderItem:Ext.layout.FormLayout.prototype.renderItem,
    renderItem:function(c, position, target){
        if(c &#38;&#38; !c.rendered &#38;&#38; c.isFormField &#38;&#38; c.allowBlank === false) {
            if (c.fieldLabel) {
                c.fieldLabel = c.fieldLabel + ' *';
            }
        }
        if (c &#38;&#38; !c.rendered &#38;&#38; c.isFormField &#38;&#38; c instanceof Ext.form.CompositeField) {
            var labels = [];
            for (var i=0, j = c.items.items.length; i &#60; j; i++) {
                var field=c.items.items[i];
                if(field &#38;&#38; !field.rendered &#38;&#38; field.isFormField &#38;&#38; field.allowBlank === false) {
                    if (field.fieldLabel) {
                        field.fieldLabel = field.fieldLabel + ' *';
                    }
                }
                labels.push(c.items.items[i].fieldLabel);
            }
            c.fieldLabel = c.initialConfig.fieldLabel &#124;&#124; c.buildLabel(labels);
        }
        this.originalRenderItem.apply(this, arguments);
    }
});</description>
		<content:encoded><![CDATA[<p>I upgraded your post by allowing CompositeField&#8217;s labels that are merged from the labels of the fields it contains.</p>
<p>Ext.apply(Ext.layout.FormLayout.prototype, {<br />
    originalRenderItem:Ext.layout.FormLayout.prototype.renderItem,<br />
    renderItem:function(c, position, target){<br />
        if(c &amp;&amp; !c.rendered &amp;&amp; c.isFormField &amp;&amp; c.allowBlank === false) {<br />
            if (c.fieldLabel) {<br />
                c.fieldLabel = c.fieldLabel + &#8216; *&#8217;;<br />
            }<br />
        }<br />
        if (c &amp;&amp; !c.rendered &amp;&amp; c.isFormField &amp;&amp; c instanceof Ext.form.CompositeField) {<br />
            var labels = [];<br />
            for (var i=0, j = c.items.items.length; i &lt; j; i++) {<br />
                var field=c.items.items[i];<br />
                if(field &amp;&amp; !field.rendered &amp;&amp; field.isFormField &amp;&amp; field.allowBlank === false) {<br />
                    if (field.fieldLabel) {<br />
                        field.fieldLabel = field.fieldLabel + &#8216; *&#8217;;<br />
                    }<br />
                }<br />
                labels.push(c.items.items[i].fieldLabel);<br />
            }<br />
            c.fieldLabel = c.initialConfig.fieldLabel || c.buildLabel(labels);<br />
        }<br />
        this.originalRenderItem.apply(this, arguments);<br />
    }<br />
});</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://blog.edseek.com/archives/2009/04/19/illuminate-required-fields-via-extjs/#comment-36168</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 30 Apr 2010 18:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.edseek.com/?p=840#comment-36168</guid>
		<description>Very useful - works great!</description>
		<content:encoded><![CDATA[<p>Very useful - works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joshua</title>
		<link>http://blog.edseek.com/archives/2009/04/19/illuminate-required-fields-via-extjs/#comment-36072</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Thu, 29 Oct 2009 19:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.edseek.com/?p=840#comment-36072</guid>
		<description>Thank you for sharing this!</description>
		<content:encoded><![CDATA[<p>Thank you for sharing this!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

