Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B71AE200CFA for ; Tue, 5 Sep 2017 15:20:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B5BA1161869; Tue, 5 Sep 2017 13:20:03 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B2DB9161867 for ; Tue, 5 Sep 2017 15:20:01 +0200 (CEST) Received: (qmail 95389 invoked by uid 500); 5 Sep 2017 13:19:58 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 93732 invoked by uid 99); 5 Sep 2017 13:19:56 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Sep 2017 13:19:56 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 6296DF5538; Tue, 5 Sep 2017 13:19:53 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: lukaszlenart@apache.org To: commits@struts.apache.org Date: Tue, 05 Sep 2017 13:20:04 -0000 Message-Id: In-Reply-To: <69fc81e303cc448d87bb70a9bfd3a27d@git.apache.org> References: <69fc81e303cc448d87bb70a9bfd3a27d@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [12/14] struts-site git commit: Updates exported docs archived-at: Tue, 05 Sep 2017 13:20:03 -0000 http://git-wip-us.apache.org/repos/asf/struts-site/blob/b16cc4ef/content/docs/crud-demo-i.html ---------------------------------------------------------------------- diff --git a/content/docs/crud-demo-i.html b/content/docs/crud-demo-i.html index 6715a74..8e6d6b3 100644 --- a/content/docs/crud-demo-i.html +++ b/content/docs/crud-demo-i.html @@ -34,20 +34,6 @@ under the License. color: #666; } - - - - - - - - - - - - - - - - - - - -

CSS XHTML theme header

The header used by the HTML tags in the css_xhtml theme is complicated. Unlike the xhtml theme, the CSS theme does not use a labelposition attribute. Instead, the label position is defined by CSS rules.

- -

Note that the fieldErrors, usually caused by Validation, are displayed in a div block before the element is displayed.

CSS XHTML theme footer

And the controlfooter.ftl contents:

- -

Special Interest

Two css_xhtml templates of special interest are head and form.

Head template

The css_xhtml head template is similar to the xhtml head template. The difference is that CSS is used to provide the layout.

- -

The head includes a style sheet.

- -

Form template

The css_xhtml form template is almost exactly like the xhtml form template, including support for Pure JavaScript Client Side Validation. The difference is that instead of printing out an opening and closing <table> element, there are no elements. Instead, the CSS rules for the individual HTML tags are assumed to handle all display logic. However, as noted, client-side validation is still supported.

+

The css_xhtml theme provides all the basics that the simple theme provides and adds several features.

Wrapping the Simple Theme

The xhtml theme uses the "wrapping" technique descr ibed by Extending Themes. Let's look at how the HTML tags are wrapped by a standard header and footer. For example, in the textfield template, text.ftl, the controlheader.ftl and controlfooter.ftl templates are wrapped around the simple template.

{snippet:id=all|lang=xml|url=struts2/core/src/main/resources/template/simple/text.ftl}

CSS XHTML theme header

The header used by the HTML tags in the css_xhtml theme is complicated. Unlike the xhtml theme, the CSS theme does not use a labelposition attribute. Instead, the label position is defined by CSS rules.

{snippet:id=all|lang=xml|url=struts2/core/src/main/resources/template/css_xhtml/controlheader.ftl}

Note that the fie ldErrors, usually caused by Validation, are displayed in a div block before the element is displayed.

CSS XHTML theme footer

And the controlfooter.ftl contents:

{snippet:id=all|lang=xml|url=struts2/core/src/main/resources/template/css_xhtml/controlfooter.ftl}

Special Interest

Two css_xhtml templates of special interest are head and form.

Head template

The css_xhtml head template is similar to the xhtml head template. The difference is that CSS is used to provide the layout.

{snippet:id=all|lang=xml|url=struts2/core/src/main/resources/template/css_xhtml/head.ftl}

The head includes a style sheet.

{snippet:id =all|lang=xml|url=struts2/core/src/main/resources/template/css_xhtml/styles.css}

Form template

The css_xhtml form template is almost exactly like the xhtml form template, including support for Pure JavaScript Client Side Validation. The difference is that instead of printing out an opening and closing <table> element, there are no elements. Instead, the CSS rules for the individual HTML tags are assumed to handle all display logic. However, as noted, client-side validation is still supported.

http://git-wip-us.apache.org/repos/asf/struts-site/blob/b16cc4ef/content/docs/customvalidator-annotation.html ---------------------------------------------------------------------- diff --git a/content/docs/customvalidator-annotation.html b/content/docs/customvalidator-annotation.html index e3c052d..e86dc66 100644 --- a/content/docs/customvalidator-annotation.html +++ b/content/docs/customvalidator-annotation.html @@ -152,7 +152,7 @@ under the License.

Examples

-
http://git-wip-us.apache.org/repos/asf/struts-site/blob/b16cc4ef/content/docs/date-validator.html ---------------------------------------------------------------------- diff --git a/content/docs/date-validator.html b/content/docs/date-validator.html index 72f1657..ebe813b 100644 --- a/content/docs/date-validator.html +++ b/content/docs/date-validator.html @@ -161,7 +161,7 @@ using expression can be slightly slower, see the example below.

Examples

-
http://git-wip-us.apache.org/repos/asf/struts-site/blob/b16cc4ef/content/docs/default-workflow-interceptor.html ---------------------------------------------------------------------- diff --git a/content/docs/default-workflow-interceptor.html b/content/docs/default-workflow-interceptor.html index cba3b9e..a9eccfb 100644 --- a/content/docs/default-workflow-interceptor.html +++ b/content/docs/default-workflow-interceptor.html @@ -191,7 +191,7 @@ an action / field error is found.

Examples

-