---
# System prepended metadata

title: JSF
tags: [JSF]

---

---
tags: JSF
---

# JSF

**f：validateRequired** 是JSF 2.0中的新驗證器標記，用於確保輸入字段不為空。例如
```
<h:inputSecret id="password" value="#{user.password}">
    <f:validateRequired />	
</h:inputSecret>
```

也可以使用“ required”屬性
```
<h:inputSecret id="password" value="#{user.password}" required="true" />		
```

# Primefaces

http://www.primefaces.org:8080/showcase/ui/data/datatable/reorder.xhtml