2 Replies Latest reply on Apr 28, 2009 11:08 AM by faa

    s:link not displayed

    faa
      Hi,
      Using seam 2.1.1GA & JBoss 4.2.3. In one of my facelets I have below s:link declared.

      <s:link id="register" view="/register.xhtml" value="Register" />

      its not rendered in browser, no link is dsiplayed in view.

      Why? any ideas?

      Tnx in advance
      Andreas
        • 1. Re: s:link not displayed
          wilczarz.wilczarz.gmail.com

          Check if the link is inside <ui:composition>.

          • 2. Re: s:link not displayed
            faa
            Facelet template.xhtml included in seamframework 2.1.1GA (example jee5\booking) will not render declared s:link tags.

            template.xhtml pasted in.

            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:h="http://java.sun.com/jsf/html"
                  xmlns:s="http://jboss.com/products/seam/taglib">
            <head>
                 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
                 <title>JBoss Suites: Seam Framework</title>
                 <link href="css/screen.css" rel="stylesheet" type="text/css" />
            </head>
            <body>

            <div id="document">
                 <div id="header">
                      <div id="title"><img src="img/hdr.title.gif" alt="JBoss Suites: seam framework demo"/></div>
                      <div id="status">
                        Welcome #{user.name}
                        | <s:link id="search" view="/main.xhtml" value="Search" propagation="none"/>
                        | <s:link id="settings" view="/password.xhtml" value="Settings" propagation="none"/>
                        | <s:link id="logout" action="#{identity.logout}" value="Logout"/>
                      </div>
                 </div>
                 <div id="container">
                      <div id="sidebar">
                           <ui:insert name="sidebar"/>
                      </div>
                      <div id="content">
                           <ui:insert name="content"/>
                          <ui:include src="conversations.xhtml" />
                      </div>
                 </div>
                 <div id="footer">Created with JBoss Seam 2.0, JSF 1.2, EJB 3 and Facelets</div>
            </div>
            </body>
            </html>

            Anyone? :)