shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary VanMatre (JIRA)" <j...@apache.org>
Subject [jira] Commented: (SHALE-316) tomahawk's panelNavigation2 doesn't keep state when navigating between views
Date Fri, 20 Oct 2006 15:56:28 GMT
    [ http://issues.apache.org/struts/browse/SHALE-316?page=comments#action_38462 ] 
            
Gary VanMatre commented on SHALE-316:
-------------------------------------

I noticed that the JSP example has a different layout (bdefault.faces)

content
       header
       main
            content
       navigation
       footer

There is a problem with the header.html template.  The problem has to do with the support
for the "f:verbatim" within clay templates.  When documents that have namespaces are used
to build the component tree, any text that is under (child of) a namespace node that is not
well-formed, is removed.  The markup parser treats newlines and white space as not well-formed
nodes so that's why they are removed. 

I'll try to find a fix for this problem but in the mean time, use a output text.
<span jsfid="void" 
      xmlns="http://www.w3.org/1999/xhtml" 
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:clay="http://shale.apache.org/clay">

     HEADER - here goes a link to "home page" but nothing gets rendered as the body of the
a tag 
        <h:outputLink value="#{facesContext.externalContext.requestContextPath}/index.jsp"><h:outputText
value="home"/></h:outputLink>

</span>

*** OR ***

Just put the text in a well-formed node like a <span/>

<span jsfid="void" 
      xmlns="http://www.w3.org/1999/xhtml" 
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:clay="http://shale.apache.org/clay">

     HEADER - here goes a link to "home page" but nothing gets rendered as the body of the
a tag 
        <h:outputLink value="#{facesContext.externalContext.requestContextPath}/index.jsp><span>home<span/></h:outputLink>

</span>



> tomahawk's panelNavigation2 doesn't keep state when navigating between views
> ----------------------------------------------------------------------------
>
>                 Key: SHALE-316
>                 URL: http://issues.apache.org/struts/browse/SHALE-316
>             Project: Shale
>          Issue Type: Bug
>          Components: Clay
>    Affects Versions: 1.0.0, 1.0.1, 1.0.2, 1.0.4-SNAPSHOT, 1.0.3
>         Environment: tomcat 5.5.17, myfaces 1.1.4, tomahawk 1.1.3, shale 1.0.4-SNAPSHOT
>            Reporter: Tom Pasierb
>         Assigned To: Gary VanMatre
>         Attachments: clayTests.zip
>
>
> I prepared an example which is attached to the issue entry. Use maven to build the war
or exploded app directory and run it. It should start fine. I described briefly what goes
wrong and what causes it in my opinion.
> Basically clay behaves differently if the order in which the panelNavigation2 and symbols
are placed in the template file changes. This probably doesn't explain much - just look at
the example.
> I hope that the example I provided will be enough to correct the problem ;-)
> Regards,

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message