"Manfred Klug" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Re: [shale][clay] Reusing the components declaring in the snippet body. Proposal > > > This proposal is not about the way how to magically force existing component > > to do what they can do. It is only about maximizing reusing of the html > > elements. > > > > Look at the hrolodex.html . There are two main table there with data. One is > > very small and it is wrapped with jsfid="contactTable". The Second one is a > > huge table and it's not converted to the panelGrid. If you decide to do it > > now, you have to recreate almost the whole page. > > Sorry, my last answer was a bit short. > > Maybe we need a way to remove tags without jsfid but we should not change the > meaning of allowBody='false'. > I agree that the meaning of the allowBody was a really weak part of the proposal. When I sent ideas to Gary couple days before the original post, I used allowBody='????' in the example code, because It was not so clear for me how to mark that it is only a striping our of the html tags without jsfid.
I suggest, allowBody misleads from the very begining. When we say <component jsfid="AddressPanel" allowBody="false" extends="panelGrid"/> we did not mean that the body is not allowed for this particular AddressPanel that is extended from the panelGrid. We mean that we want to ignore the body on the html tag that references to this AddressPanel. (Allowing body (allowing children) is determined in tld for panelGrid, originally). So, the allowBody="false" mostly means ignoreHtmlBody="true". That was the primary reason I reinvested the existing attribute in the proposal. I.e. I meant ignoreOnlyHtmlBody="true" for allowBody="false" Probably, it is possible to introduce the stripHtmlBody attribute here, but I am not sure this is a best solution. > The developer may have a very very good reason why he want to ignore the body > (e.g. incompatibilities of the current content with the component). > In my original idea, if developer wants to ignore the body totally, she just do not have to provide the jsfids for any tags of the body. > __________________________________________________________ > Mit WEB.DE FreePhone mit hoechster Qualitaet ab 0 Ct./Min. > weltweit telefonieren! http://freephone.web.de/?mc=021201 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]