在 JSF 中如果考虑国际化问题,则导航标签都是从message.properties文件中取出来的,一般使用<h:outputText>标签取出来,由于要在取出来的±上面加链接,所以不能嵌套使用<span>标签。
<span class="bodylink" >
>
<a href="../firstpage.faces">
<h:outputText value="#{msgs.FirstPage}" styleClass="breadcrumb"></h:outputText>
</a>
>
<a href="accountym.faces">
<h:outputText value="#{msgs.AccountYmDate}" styleClass="breadcrumb">
</h:outputText>
</a><br>
<hr width="95%" color="#c2dbf8" noshade="noshade" SIZE="1">
</span>
>
<a href="../firstpage.faces">
<h:outputText value="#{msgs.FirstPage}" styleClass="breadcrumb"></h:outputText>
</a>
>
<a href="accountym.faces">
<h:outputText value="#{msgs.AccountYmDate}" styleClass="breadcrumb">
</h:outputText>
</a><br>
<hr width="95%" color="#c2dbf8" noshade="noshade" SIZE="1">
</span>