在 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>