From 77f65c289580c2e92c565bb49178963b866b7551 Mon Sep 17 00:00:00 2001 From: stephan Date: Tue, 5 Jul 2016 13:50:42 +0200 Subject: [PATCH] added missing documentation --- src/main/webapp/applayout/navbartop.xhtml | 1 + src/main/webapp/forms/Focus.xhtml | 32 +++++++++++++++ src/main/webapp/forms/FocusAttributes.xhtml | 44 +++++++++++++++++++++ src/main/webapp/forms/commandButton.xhtml | 30 ++++++++++++++ 4 files changed, 107 insertions(+) create mode 100644 src/main/webapp/forms/Focus.xhtml create mode 100644 src/main/webapp/forms/FocusAttributes.xhtml diff --git a/src/main/webapp/applayout/navbartop.xhtml b/src/main/webapp/applayout/navbartop.xhtml index 757b9ac3..d752ad80 100644 --- a/src/main/webapp/applayout/navbartop.xhtml +++ b/src/main/webapp/applayout/navbartop.xhtml @@ -65,6 +65,7 @@ + diff --git a/src/main/webapp/forms/Focus.xhtml b/src/main/webapp/forms/Focus.xhtml new file mode 100644 index 00000000..63b1b3ea --- /dev/null +++ b/src/main/webapp/forms/Focus.xhtml @@ -0,0 +1,32 @@ + + + + + + +

Focus (<b:focus />)

+ +

<b:focus> allows you to define the field that gets the input focus when the page is loaded.

+

Basic usage

+

Simply put <b:focus target="someId" > somewhere in your JSF page. The input field bearing this + id gets the input focus.

+ + + +
+
+
+
+
+
diff --git a/src/main/webapp/forms/FocusAttributes.xhtml b/src/main/webapp/forms/FocusAttributes.xhtml new file mode 100644 index 00000000..614b9f7d --- /dev/null +++ b/src/main/webapp/forms/FocusAttributes.xhtml @@ -0,0 +1,44 @@ + + + + + + + Attributes of <b:focus > + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDefault valueDescription
id(none)Unique identifier of the component in a namingContainer.
renderedfalseBoolean value to specify the rendering of the component, when set to false the component will not be rendered.
target(none)Id of the element to focus.
+
+
+
diff --git a/src/main/webapp/forms/commandButton.xhtml b/src/main/webapp/forms/commandButton.xhtml index f9b7421a..25d07b6a 100644 --- a/src/main/webapp/forms/commandButton.xhtml +++ b/src/main/webapp/forms/commandButton.xhtml @@ -441,6 +441,36 @@ +

Custom icons and arbitrary content of a command button

+

You can put arbitrary content in the caption of the command button. + You aren't limited to simple icons and text.

+ + + + This text + + surrounds an image. + + + + + + +

Partial processing with AJAX

The lower row of the example above shows partial processing. Sometimes you don't want to submit an entire form to the server. In our example you can't send the first name unless you've filled the last name, too, because of the constraint violation