[英]How can i trim string in jsf xhtml?
如何使用onblur="this.value=jQuery.trim(this.value)"/>
或其他字符串修剪字符串?
<h:form id="form" styleClass="edit">
<c:forEach var="component" items="${categoryEdit.components}">
<ui:include src="#{component.url}">
<ui:param name="component" value="#{component}"
onblur="this.value=jQuery.trim(this.value)"/>
</ui:include>
</c:forEach>
</h:form>
在網上找到了此內容,請嘗試遵循以下說明,
接口轉換器
https://docs.oracle.com/javaee/5/api/javax/faces/convert/Converter.html
創建一個自定義轉換器
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.