[jboss-cvs] jboss-seam/examples/blog/view ...

Gavin King gavin.king at jboss.com
Wed Jan 24 22:30:54 EST 2007


  User: gavin   
  Date: 07/01/24 22:30:54

  Modified:    examples/blog/view    nav.xhtml
  Added:       examples/blog/view    index.xml
  Removed:     examples/blog/view    index.rss
  Log:
  working atom feed
  
  Revision  Changes    Path
  1.3       +1 -1      jboss-seam/examples/blog/view/nav.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: nav.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/view/nav.xhtml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -b -r1.2 -r1.3
  --- nav.xhtml	11 Oct 2006 05:23:22 -0000	1.2
  +++ nav.xhtml	25 Jan 2007 03:30:54 -0000	1.3
  @@ -12,6 +12,6 @@
        
        <h:outputLink value="post.xhtml">[Write new post]</h:outputLink>
        
  -     <h:outputLink value="index.rss">[RSS]</h:outputLink>
  +     <h:outputLink value="index.xml">[Atom feed]</h:outputLink>
   
   </span>
  
  
  
  1.1      date: 2007/01/25 03:30:54;  author: gavin;  state: Exp;jboss-seam/examples/blog/view/index.xml
  
  Index: index.xml
  ===================================================================
  <?xml version="1.0"?>        
  <feed xmlns="http://www.w3.org/2005/Atom" 
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:s="http://jboss.com/products/seam/taglib">
        
  <f:view contentType="application/xhtml+xml">
  
    <title>#{blog.name}</title>
    <subtitle>#{blog.description}</subtitle>
    <link href="http://localhost:8080/seam-blog"/>
    <rights>This is open source, silly!</rights>
    
    <ui:repeat value="#{blog.recentBlogEntries}" var="blogEntry">
    <entry>
      <title>#{blogEntry.title}</title>
      <link href="http://localhost:8080/seam-blog/seam/entry.xhtml?blogEntryId=#{blogEntry.id}"/>
      <published>
          <h:outputText value="#{blogEntry.date}">
              <f:convertDateTime timezone="#{blog.timeZone}" pattern="yyyy-MM-dd'T'HH:mm:ss'Z'"/>
          </h:outputText>
      </published>
      <summary type="xhtml">
          <div xmlns="http://www.w3.org/1999/xhtml">
              <s:formattedText value="#{blogEntry.excerpt==null ? blogEntry.body : blogEntry.excerpt}"/>
          </div>
      </summary>
    </entry>
    </ui:repeat>
  
  </f:view>
  
  </feed>
  
  
  



More information about the jboss-cvs-commits mailing list