-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8dddd1d
commit 77f65c2
Showing
4 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version='1.0' encoding='UTF-8' ?> | ||
<!DOCTYPE html> | ||
<ui:composition template="/applayout/pageTemplate.xhtml" | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:b="http://bootsfaces.net/ui" | ||
xmlns:ui="http://java.sun.com/jsf/facelets"> | ||
|
||
<ui:define name="content"> | ||
<style> | ||
td { | ||
padding: 8px; | ||
} | ||
</style> | ||
<h1>Focus (<b:focus />)</h1> | ||
|
||
<p><code><b:focus></code> allows you to define the field that gets the input focus when the page is loaded.</p> | ||
<h1>Basic usage</h1> | ||
<p>Simply put <code><b:focus target="someId" ></code> somewhere in your JSF page. The input field bearing this | ||
id gets the input focus.</p> | ||
<ui:include src="FocusAttributes.xhtml" /> | ||
|
||
<script type="text/javascript"> | ||
SyntaxHighlighter.all(); | ||
</script> | ||
<br /> | ||
<br /> | ||
<br /> | ||
<br /> | ||
</ui:define> | ||
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version='1.0' encoding='UTF-8' ?> | ||
<!DOCTYPE html> | ||
<ui:fragment | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:b="http://bootsfaces.net/ui" | ||
xmlns:ui="http://java.sun.com/jsf/facelets"> | ||
|
||
<b:panel look="info"> | ||
<f:facet name="heading"> | ||
<b>Attributes of <b:focus ></b> | ||
</f:facet> | ||
<div class="table-responsive"> | ||
<table class="table table-striped table-hover" | ||
style="background-color: #fff"> | ||
<thead> | ||
<tr> | ||
<th>Attribute</th> | ||
<th>Default value</th> | ||
<th>Description</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>id</td> | ||
<td>(none)</td> | ||
<td>Unique identifier of the component in a namingContainer.</td> | ||
</tr> | ||
<tr> | ||
<td>rendered</td> | ||
<td>false</td> | ||
<td>Boolean value to specify the rendering of the component, when set to false the component will not be rendered.</td> | ||
</tr> | ||
<tr> | ||
<td>target</td> | ||
<td>(none)</td> | ||
<td>Id of the element to focus.</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</b:panel> | ||
</ui:fragment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters