Problem if JBoss doesn’t recognise xhtml

September 17, 2009 by javastudent

To file web.xml need add:

<servlet>
<servlet-name>JSF</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JSF</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>

HTML Tag

September 16, 2009 by javastudent

HTML <span> Tag


Example

A text with a span element that can be styled with CSS:

<p>My mother has <span class=”blue”>light blue</span> eyes.</p>

Try it yourself


Definition and Usage

The <span> tag provides no visual change by itself.

The <span> tag provides a way to add a hook to a part of a text or a part of a document.

When the text is hooked in a span element you can add styles to the content, or manipulate the content with for example JavaScript.

FacesMessage

September 16, 2009 by javastudent

FacesMessage represents a single validation (or other) message, which is typically associated with a particular component in the view. A FacesMessage instance may be created based on a specific messageId. The specification defines the set of messageIds for which there must be FacesMessage instances.

Application

September 16, 2009 by javastudent

Application represents a per-web-application singleton object where applications based on JavaServer Faces (or implementations wishing to provide extended functionality) can register application-wide singletons that provide functionality required by JavaServer Faces. Default implementations of each object are provided for cases where the application does not choose to customize the behavior.

FacesContext

September 16, 2009 by javastudent

FacesContext contains all of the per-request state information related to the processing of a single JavaServer Faces request, and the rendering of the corresponding response. It is passed to, and potentially modified by, each phase of the request processing lifecycle.

September 15, 2009 by javastudent

Повинно бути перед початком форми

Web beans will use the type of the field to locate the web bean to be injected.

September 15, 2009 by javastudent

Web beans will use the type of the field to locate the web bean to be injected.

Deployment descriptors

September 7, 2009 by javastudent

Deployment descriptors describe the contents of deployment units and configure components and applications to their environment. They also externalize the relationships between components, so those relationships can be managed without writing or changing program code. Deployment tools usually automatically generate deployment descriptors, so you do not have to edit and manage them directly.

Seam component could be

September 7, 2009 by javastudent

Seam component could be:
A simple POJO
a stateless Session Bean
a stateful Session Bean
a JPA entity and so on

adorn

September 7, 2009 by javastudent

adorn [] 1) украшать; быть украшением Syn: beautify , decorate , embellish , ornament 2) приукрашивать, привирать adorn [] () 1) to decorate she adorned her hair with flowers 2) to increase the beauty, distinction, etc., of • Etymology: via Old French from Latin adōrnāre, from ōrnāre to furnish , prepare Derived words: adornment adorn украшать; декорировать