2 Replies Latest reply on Apr 28, 2009 11:08 AM by Andreas Fagerlönn

    s:link not displayed

    Andreas Fagerlönn Newbie
      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
        • 1. Re: s:link not displayed
          Tomasz Wilczynski Newbie

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

          • 2. Re: s:link not displayed
            Andreas Fagerlönn Newbie
            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"
                 <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" />

            <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 id="container">
                      <div id="sidebar">
                           <ui:insert name="sidebar"/>
                      <div id="content">
                           <ui:insert name="content"/>
                          <ui:include src="conversations.xhtml" />
                 <div id="footer">Created with JBoss Seam 2.0, JSF 1.2, EJB 3 and Facelets</div>

            Anyone? :)