Clay Symbols aren't namespace aware - would be nice to have, wouldnt it?
Using a full HTML clay view it is possible to do things like that in a clay view: html xmlns=http://www.w3.org/1999/xhtml; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:clay=http://shale.apache.org/clay; xmlns:s=http://shale.apache.org/core; xmlns:t=http://myfaces.apache.org/tomahawk; t:table ... /t:table /html I can use the components without using spans and the jsfid parameter. But if i use symbols to craft my page this does not work. The template does got the xmlns namespaces in the root html tag, but the symbols which gets replaced with header, footer co like this: div xmlns=http://www.w3.org/1999/xhtml; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:clay=http://shale.apache.org/clay; xmlns:s=http://shale.apache.org/core; xmlns:t=http://myfaces.apache.org/tomahawk; jsfid=void p This is the Header. /p /div need this surrounding div workaround, to get the t:table working for example. Without the div and the namespaces, its brokenand gets not replaced by the jsf component. Should this work, is this a bug? Or is this correct behaviour? It would be nice if the symbols which gets replaced can use the namespaces declared in the root template. kind regards Torsten smime.p7s Description: S/MIME cryptographic signature
RE: Clay - how to set locale Parameter for f:view in html/xml views?
Hi again - did not create the issue yet ( yeah should really do this ), but saw the file AssignViewRootCommand.java, which mentioned the locale. Is it already possible yet, to support the locale UIViewRoot attribute? If yes, how to to so in clay templates? kind regards Torsten smime.p7s Description: S/MIME cryptographic signature
How do i post new message?
Hi, Just joined the Shale user group. I want to implement Shale's clay, and not sure where to get the jar files and javadoc for the same. I have been through the shale's clay page, but couldn't find a way to download jar or other sample apps for that matter. I would apprieciate any help. Regards, Apurva - Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.
Re: How do i post new message?
On 4/8/07, apurva mistry [EMAIL PROTECTED] wrote: Just joined the Shale user group. I want to implement Shale's clay, and not sure where to get the jar files and javadoc for the same. I have been through the shale's clay page, but couldn't find a way to download jar or other sample apps for that matter. I would apprieciate any help. Follow the links here to download the latest release of the framework and example apps: http://shale.apache.org/index.html#download -- Wendy
Clay Symbols aren't namespace aware - would be nice to have, wouldnt it?
Using a full HTML clay view it is possible to do things like that in a clay view: html xmlns=http://www.w3.org/1999/xhtml; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:clay=http://shale.apache.org/clay; xmlns:s=http://shale.apache.org/core; xmlns:t=http://myfaces.apache.org/tomahawk; t:table ... /t:table /html I can use the components without using spans and the jsfid parameter. But if i use symbols to craft my page this does not work. The template does got the xmlns namespaces in the root html tag, but the symbols which gets replaced with header, footer co like this: div xmlns=http://www.w3.org/1999/xhtml; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:clay=http://shale.apache.org/clay; xmlns:s=http://shale.apache.org/core; xmlns:t=http://myfaces.apache.org/tomahawk; jsfid=void p This is the Header. /p /div need this surrounding div workaround, to get the t:table working for example. Without the div and the namespaces, its brokenand gets not replaced by the jsf component. You could add the namespace to the table component too. You can also add an extends attribute. t:table xmlns:t=http://myfaces.apache.org/tomahawk; extends=mytable Should this work, is this a bug? Or is this correct behaviour? I tried to model it like an XML namespace but the clay markup template parser is not validating so you have a mix of html with namespaces. It would be nice if the symbols which gets replaced can use the namespaces declared in the root template. Yeah, that's not a bad idea. We would still need the namespace to be declared in the template file. Clay treats each template as a root. Once the markup is parsed, it can be included in any number of templates without re-parsing. It works more like a dynamic include versus a static include. Are you thinking about something like this? div xmlns:t=@tomahawkns ... kind regards Torsten Gary
RE: Clay - how to set locale Parameter for f:view in html/xml views?
Yeah might be, really lost track of this issue a little bit, although it was my question in 11/06. And i hope i am wrong now with my question: Is a EL Expression supported at: span id=view jsfid=f:view locale=en / works but span id=view jsfid=f:view locale=#{index.myLocale} / which points to a session bean named index for the user which got an english locale, although the view is still german, as its the default browser and webapp language. It should be supported as its allowed to do it,so my question is - my error or not supported yet? ( I guess not because all tests you mentioned use a static coded locale value, but i might be wrong.) kind regards Torsten PS: I really wonder if i should do such mysterious thing to keep my record high ;-), but as long as you don't ban my from the list, i'll keep up the work, finding those ugly bugs. :-) Am Montag, den 09.04.2007, 00:24 + schrieb Gary VanMatre: Hi again - did not create the issue yet ( yeah should really do this ), but saw the file AssignViewRootCommand.java, which mentioned the locale. Is it already possible yet, to support the locale UIViewRoot attribute? If yes, how to to so in clay templates? It is possible and I think it was your idea :-) [1]. You probably lost track. I believe it took a while to get around to it. There are a few examples in the clay testcases [2-4]. However, let us know if you find something that doesn't look right. You have a good record for finding clay bugs :-) kind regards Torsten Gary [1] https://issues.apache.org/struts/browse/SHALE-331 [2] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot1.html?view=markup [3] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot2.html?view=markup [4] http://svn.apache.org/viewvc/shale/framework/trunk/shale-clay/src/test/resources/org/apache/shale/clay/config/viewroot3.html?view=markup smime.p7s Description: S/MIME cryptographic signature
Re: Clay Symbols aren't namespace aware - would be nice to have, wouldnt it?
Hm that makes i a little bit more clear to me. Yeah, something like the example would be nice, although because of the dynamic approach i still have to include something, which i already did at some other root template. So maybe, i'll have to include the namespaces again if i do not use the jsfid approach as the only way to craft things. Thinking about it - its maybe not so bad to have to do this more than once, makes the complete template more reusable, as the namespaces have to be there to get it working and i don't have to rely on some magic root template which maybe has them. So maybe forget it, but its really early here, i'll go sleeping and think about it a little bit later :) Torsten Am Montag, den 09.04.2007, 00:53 + schrieb Gary VanMatre: Using a full HTML clay view it is possible to do things like that in a clay view: html xmlns=http://www.w3.org/1999/xhtml; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:clay=http://shale.apache.org/clay; xmlns:s=http://shale.apache.org/core; xmlns:t=http://myfaces.apache.org/tomahawk; t:table ... /t:table /html I can use the components without using spans and the jsfid parameter. But if i use symbols to craft my page this does not work. The template does got the xmlns namespaces in the root html tag, but the symbols which gets replaced with header, footer co like this: div xmlns=http://www.w3.org/1999/xhtml; xmlns:f=http://java.sun.com/jsf/core; xmlns:h=http://java.sun.com/jsf/html; xmlns:clay=http://shale.apache.org/clay; xmlns:s=http://shale.apache.org/core; xmlns:t=http://myfaces.apache.org/tomahawk; jsfid=void p This is the Header. /p /div need this surrounding div workaround, to get the t:table working for example. Without the div and the namespaces, its brokenand gets not replaced by the jsf component. You could add the namespace to the table component too. You can also add an extends attribute. t:table xmlns:t=http://myfaces.apache.org/tomahawk; extends=mytable Should this work, is this a bug? Or is this correct behaviour? I tried to model it like an XML namespace but the clay markup template parser is not validating so you have a mix of html with namespaces. It would be nice if the symbols which gets replaced can use the namespaces declared in the root template. Yeah, that's not a bad idea. We would still need the namespace to be declared in the template file. Clay treats each template as a root. Once the markup is parsed, it can be included in any number of templates without re-parsing. It works more like a dynamic include versus a static include. Are you thinking about something like this? div xmlns:t=@tomahawkns ... kind regards Torsten Gary smime.p7s Description: S/MIME cryptographic signature