找不到命名空间 http://www.w3.org/1999/xlink JSF 的库
no library found for namespace http://www.w3.org/1999/xlink JSF
我想在我的登录页面上添加两个图标。当我尝试添加库时,jsf 显示错误 "no library found for namespace http://www.w3.org/1999/xlink"
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:xlink="http://www.w3.org/1999/xlink">
<h:body class="align">
<div class="grid">
<form action="https://httpbin.org/post" method="POST" class="form login">
<img class="logo" src="resources/img/logo%20mailing.png"/>
<div class="form__field">
<label for="login__username"><svg class="icon">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use>
</svg><span class="hidden">Usuário</span></label>
<input id="login__username" type="text" name="username" class="form__input" placeholder="Usuário" required="true"/>
</div>
</form>
</div>
</h:body>
已解决
我需要从 xmlns:xlink="http://www.w3.org/1999/xlink"
更改为 xlink="http://www.w3.org/1999/xlink"
从这里 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use>
到 <use xlink="http://www.w3.org/1999/xlink" href="#user"></use>
我想在我的登录页面上添加两个图标。当我尝试添加库时,jsf 显示错误 "no library found for namespace http://www.w3.org/1999/xlink"
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:xlink="http://www.w3.org/1999/xlink">
<h:body class="align">
<div class="grid">
<form action="https://httpbin.org/post" method="POST" class="form login">
<img class="logo" src="resources/img/logo%20mailing.png"/>
<div class="form__field">
<label for="login__username"><svg class="icon">
<use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use>
</svg><span class="hidden">Usuário</span></label>
<input id="login__username" type="text" name="username" class="form__input" placeholder="Usuário" required="true"/>
</div>
</form>
</div>
</h:body>
已解决
我需要从 xmlns:xlink="http://www.w3.org/1999/xlink"
更改为 xlink="http://www.w3.org/1999/xlink"
从这里 <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#user"></use>
到 <use xlink="http://www.w3.org/1999/xlink" href="#user"></use>