[jboss-cvs] JBossAS SVN: r103887 - projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Apr 13 02:32:21 EDT 2010
Author: laubai
Date: 2010-04-13 02:32:20 -0400 (Tue, 13 Apr 2010)
New Revision: 103887
Modified:
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Annotations.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Cache.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Components.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Concepts.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Configuration.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Controls.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Conversations.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Drools.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Elenhancements.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Events.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Framework.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Groovy.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Hsearch.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/I18n.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Itext.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jbpm.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Mail.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Persistence.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Remoting.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Security.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Spring.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Testing.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Text.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Tutorial.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Validation.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Webservices.xml
projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Xml.xml
Log:
Fixed all build issues.
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Annotations.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Annotations.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Annotations.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -31,7 +31,7 @@
<literal>@Name</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Name("componentName")]]></programlisting>
+ <programlisting><![CDATA[@Name("componentName")]]></programlisting>
<para>
Defines the Seam component name for a class. This annotation
is required for all Seam components.
@@ -43,7 +43,7 @@
<literal>@Scope</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Scope(ScopeType.CONVERSATION)]]></programlisting>
+ <programlisting><![CDATA[@Scope(ScopeType.CONVERSATION)]]></programlisting>
<para>
Defines the default context of the component. The possible
values are defined by the <literal>ScopeType</literal>
@@ -64,7 +64,7 @@
<literal>@Role</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Role(name="roleName", scope=ScopeType.SESSION)]]></programlisting>
+ <programlisting><![CDATA[@Role(name="roleName", scope=ScopeType.SESSION)]]></programlisting>
<para>
Allows a Seam component to be bound to multiple contexts
variables. The <literal>@Name</literal>/<literal>@Scope</literal>
@@ -93,7 +93,7 @@
<literal>@Roles</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Roles({
+ <programlisting><![CDATA[@Roles({
@Role(name="user", scope=ScopeType.CONVERSATION),
@Role(name="currentUser", scope=ScopeType.SESSION)
})]]></programlisting>
@@ -107,7 +107,7 @@
<literal>@BypassInterceptors</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@BypassInterceptors]]></programlisting>
+ <programlisting><![CDATA[@BypassInterceptors]]></programlisting>
<para>
Disables Seam all interceptors on a particular component or
method of a component.
@@ -119,7 +119,7 @@
<literal>@JndiName</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@JndiName("my/jndi/name")]]></programlisting>
+ <programlisting><![CDATA[@JndiName("my/jndi/name")]]></programlisting>
<para>
Specifies the JNDI name that Seam will use to look up the EJB
component. If no JNDI name is explicitly specified, Seam will
@@ -133,7 +133,7 @@
<literal>@Conversational</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Conversational]]></programlisting>
+ <programlisting><![CDATA[@Conversational]]></programlisting>
<para>
Specifies that a conversation scope component is
conversational, meaning that no method of the component may be
@@ -146,7 +146,7 @@
<literal>@PerNestedConversation</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@PerNestedConversation]]></programlisting>
+ <programlisting><![CDATA[@PerNestedConversation]]></programlisting>
<para>
Limits the scope of a CONVERSATION-scoped component to just
the parent conversation in which it was instantiated. The
@@ -168,14 +168,14 @@
<literal>@Startup</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Scope(APPLICATION) @Startup(depends="org.jboss.seam.bpm.jbpm")]]></programlisting>
+ <programlisting><![CDATA[@Scope(APPLICATION) @Startup(depends="org.jboss.seam.bpm.jbpm")]]></programlisting>
<para>
Specifies that an application scope component is started
immediately at initialization time. This is mainly used for
certain built-in components that bootstrap critical
infrastructure such as JNDI, datasources, etc.
</para>
- <programlisting role="JAVA"><![CDATA[@Scope(SESSION) @Startup]]></programlisting>
+ <programlisting><![CDATA[@Scope(SESSION) @Startup]]></programlisting>
<para>
Specifies that a session scope component is started
immediately at session creation time.
@@ -196,30 +196,30 @@
<literal>@Install</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Install(false)]]></programlisting>
+ <programlisting><![CDATA[@Install(false)]]></programlisting>
<para>
Specifies whether or not a component should be installed by
default. The lack of an <literal>@Install</literal> annotation
indicates a component should be installed.
</para>
- <programlisting role="JAVA"><![CDATA[@Install(dependencies="org.jboss.seam.bpm.jbpm")]]></programlisting>
+ <programlisting><![CDATA[@Install(dependencies="org.jboss.seam.bpm.jbpm")]]></programlisting>
<para>
Specifies that a component should only be stalled if the
components listed as dependencies are also installed.
</para>
- <programlisting role="JAVA"><![CDATA[@Install(genericDependencies=ManagedQueueSender.class)]]></programlisting>
+ <programlisting><![CDATA[@Install(genericDependencies=ManagedQueueSender.class)]]></programlisting>
<para>
Specifies that a component should only be installed if a
component that is implemented by a certain class is installed.
This is useful when the dependency doesn't have a single
well-known name.
</para>
- <programlisting role="JAVA"><![CDATA[@Install(classDependencies="org.hibernate.Session")]]></programlisting>
+ <programlisting><![CDATA[@Install(classDependencies="org.hibernate.Session")]]></programlisting>
<para>
Specifies that a component should only be installed if the
named class is in the classpath.
</para>
- <programlisting role="JAVA"><![CDATA[@Install(precedence=BUILT_IN)]]></programlisting>
+ <programlisting><![CDATA[@Install(precedence=BUILT_IN)]]></programlisting>
<para>
Specifies the precedence of the component. If multiple
components with the same name exist, the one with the higher
@@ -268,7 +268,7 @@
<literal>@Synchronized</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Synchronized(timeout=1000)]]></programlisting>
+ <programlisting><![CDATA[@Synchronized(timeout=1000)]]></programlisting>
<para>
Specifies that a component is accessed concurrently by
multiple clients, and that Seam should serialize requests. If
@@ -282,7 +282,7 @@
<literal>@ReadOnly</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@ReadOnly]]></programlisting>
+ <programlisting><![CDATA[@ReadOnly]]></programlisting>
<para>
Specifies that a JavaBean component or component method does
not require state replication at the end of the invocation.
@@ -294,7 +294,7 @@
<literal>@AutoCreate</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@AutoCreate]]></programlisting>
+ <programlisting><![CDATA[@AutoCreate]]></programlisting>
<para>
Specifies that a component will be automatically created, even
if the client does not specify <literal>create=true</literal>.
@@ -317,32 +317,32 @@
<literal>@In</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@In]]></programlisting>
+ <programlisting><![CDATA[@In]]></programlisting>
<para>
Specifies that a component attribute is to be injected from a
context variable at the beginning of each component
invocation. If the context variable is null, an exception
will be thrown.
</para>
- <programlisting role="JAVA"><![CDATA[@In(required=false)]]></programlisting>
+ <programlisting><![CDATA[@In(required=false)]]></programlisting>
<para>
Specifies that a component attribute is to be injected from a
context variable at the beginning of each component
invocation. The context variable may be null.
</para>
- <programlisting role="JAVA"><![CDATA[@In(create=true)]]></programlisting>
+ <programlisting><![CDATA[@In(create=true)]]></programlisting>
<para>
Specifies that a component attribute is to be injected from a
context variable at the beginning of each component
invocation. If the context variable is null, an instance of
the component is instantiated by Seam.
</para>
- <programlisting role="JAVA"><![CDATA[@In(value="contextVariableName")]]></programlisting>
+ <programlisting><![CDATA[@In(value="contextVariableName")]]></programlisting>
<para>
Specifies the name of the context variable explicitly, instead
of using the annotated instance variable name.
</para>
- <programlisting role="JAVA"><![CDATA[@In(value="#{customer.addresses['shipping']}")]]></programlisting>
+ <programlisting><![CDATA[@In(value="#{customer.addresses['shipping']}")]]></programlisting>
<para>
Specifies that a component attribute is to be injected by
evaluating a JSF EL expression at the beginning of each
@@ -380,19 +380,19 @@
<literal>@Out</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Out]]></programlisting>
+ <programlisting><![CDATA[@Out]]></programlisting>
<para>
Specifies that a component attribute that is a Seam component
is to be passed to its context variable at the end of the
invocation. If the attribute is null, an exception is thrown.
</para>
- <programlisting role="JAVA"><![CDATA[@Out(required=false)]]></programlisting>
+ <programlisting><![CDATA[@Out(required=false)]]></programlisting>
<para>
Specifies that a component attribute that is a Seam component
is to be passed to its context variable at the end of the
invocation. The attribute may be null.
</para>
- <programlisting role="JAVA"><![CDATA[@Out(scope=ScopeType.SESSION)]]></programlisting>
+ <programlisting><![CDATA[@Out(scope=ScopeType.SESSION)]]></programlisting>
<para>
Specifies that a component attribute that is
<emphasis>not</emphasis> a Seam component type is to be
@@ -404,7 +404,7 @@
used (or the <literal>EVENT</literal> scope if the component
is stateless).
</para>
- <programlisting role="JAVA"><![CDATA[@Out(value="contextVariableName")]]></programlisting>
+ <programlisting><![CDATA[@Out(value="contextVariableName")]]></programlisting>
<para>
Specifies the name of the context variable explicitly, instead
of using the annotated instance variable name.
@@ -434,7 +434,7 @@
for example:
</para>
- <programlisting role="JAVA"><![CDATA[@In(create=true) @Out private User currentUser;]]></programlisting>
+ <programlisting><![CDATA[@In(create=true) @Out private User currentUser;]]></programlisting>
<para>
The next annotation supports the <emphasis>manager component</emphasis>
@@ -449,7 +449,7 @@
<literal>@Unwrap</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Unwrap]]></programlisting>
+ <programlisting><![CDATA[@Unwrap]]></programlisting>
<para>
Specifies that the object returned by the annotated getter
method is the thing that is injected instead of the component
@@ -473,14 +473,14 @@
<literal>@Factory</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Factory("processInstance") public void createProcessInstance() { ... }]]></programlisting>
+ <programlisting><![CDATA[@Factory("processInstance") public void createProcessInstance() { ... }]]></programlisting>
<para>
Specifies that the method of the component is used to
initialize the value of the named context variable, when the
context variable has no value. This style is used with methods
that return <literal>void</literal>.
</para>
- <programlisting role="JAVA"><![CDATA[@Factory("processInstance", scope=CONVERSATION) public ProcessInstance createProcessInstance() { ... }]]></programlisting>
+ <programlisting><![CDATA[@Factory("processInstance", scope=CONVERSATION) public ProcessInstance createProcessInstance() { ... }]]></programlisting>
<para>
Specifies that the method returns a value that Seam should use
to initialize the value of the named context variable, when
@@ -530,7 +530,7 @@
<literal>@Logger</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Logger("categoryName")]]></programlisting>
+ <programlisting><![CDATA[@Logger("categoryName")]]></programlisting>
<para>
Specifies that a component field is to be injected with an
instance of <literal>org.jboss.seam.log.Log</literal>. For
@@ -559,7 +559,7 @@
<literal>@RequestParameter</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@RequestParameter("parameterName")]]></programlisting>
+ <programlisting><![CDATA[@RequestParameter("parameterName")]]></programlisting>
<para>
Specifies that a component attribute is to be injected with the
value of a request parameter. Basic type conversions are
@@ -594,7 +594,7 @@
<literal>@Create</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Create]]></programlisting>
+ <programlisting><![CDATA[@Create]]></programlisting>
<para>
Specifies that the method should be called when an instance of
the component is instantiated by Seam. Note that create
@@ -608,7 +608,7 @@
<literal>@Destroy</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Destroy]]></programlisting>
+ <programlisting><![CDATA[@Destroy]]></programlisting>
<para>
Specifies that the method should be called when the context
ends and its context variables are destroyed. Note that
@@ -627,12 +627,12 @@
<literal>@Observer</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Observer("somethingChanged")]]></programlisting>
+ <programlisting><![CDATA[@Observer("somethingChanged")]]></programlisting>
<para>
Specifies that the method should be called when a
component-driven event of the specified type occurs.
</para>
- <programlisting role="JAVA"><![CDATA[@Observer(value="somethingChanged",create=false)]]></programlisting>
+ <programlisting><![CDATA[@Observer(value="somethingChanged",create=false)]]></programlisting>
<para>
Specifies that the method should be called when an event of
the specified type occurs but that an instance should not be
@@ -667,17 +667,17 @@
<literal>@Begin</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Begin]]></programlisting>
+ <programlisting><![CDATA[@Begin]]></programlisting>
<para>
Specifies that a long-running conversation begins when this
method returns a non-null outcome without exception.
</para>
- <programlisting role="JAVA"><![CDATA[@Begin(join=true)]]></programlisting>
+ <programlisting><![CDATA[@Begin(join=true)]]></programlisting>
<para>
Specifies that if a long-running conversation is already in
progress, the conversation context is simply propagated.
</para>
- <programlisting role="JAVA"><![CDATA[@Begin(nested=true)]]></programlisting>
+ <programlisting><![CDATA[@Begin(nested=true)]]></programlisting>
<para>
Specifies that if a long-running conversation is already in
progress, a new <emphasis>nested</emphasis> conversation
@@ -687,12 +687,12 @@
nested conversations to exist concurrently in the same outer
conversation.
</para>
- <programlisting role="JAVA"><![CDATA[@Begin(pageflow="process definition name")]]></programlisting>
+ <programlisting><![CDATA[@Begin(pageflow="process definition name")]]></programlisting>
<para>
Specifies a jBPM process definition name that defines the
pageflow for this conversation.
</para>
- <programlisting role="JAVA"><![CDATA[@Begin(flushMode=FlushModeType.MANUAL)]]></programlisting>
+ <programlisting><![CDATA[@Begin(flushMode=FlushModeType.MANUAL)]]></programlisting>
<para>
Specify the flush mode of any Seam-managed persistence
contexts. <literal>flushMode=FlushModeType.MANUAL</literal>
@@ -744,7 +744,7 @@
<literal>@End</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@End]]></programlisting>
+ <programlisting><![CDATA[@End]]></programlisting>
<para>
Specifies that a long-running conversation ends when this
method returns a non-null outcome without exception.
@@ -769,7 +769,7 @@
<literal>@StartTask</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@StartTask]]></programlisting>
+ <programlisting><![CDATA[@StartTask]]></programlisting>
<para>
<emphasis>Starts</emphasis> a jBPM task. Specifies that a long-running
conversation begins when this method returns a non-null
@@ -818,7 +818,7 @@
<literal>@BeginTask</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@BeginTask]]></programlisting>
+ <programlisting><![CDATA[@BeginTask]]></programlisting>
<para>
Resumes work on an incomplete jBPM task. Specifies that a
long-running conversation begins when this method returns a
@@ -864,7 +864,7 @@
<literal>@EndTask</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@EndTask]]></programlisting>
+ <programlisting><![CDATA[@EndTask]]></programlisting>
<para>
<emphasis>Ends</emphasis> a jBPM task. Specifies that a long-running
conversation ends when this method returns a non-null
@@ -874,7 +874,7 @@
<literal>Transition.setName()</literal> on the built-in
component named <literal>transition</literal>.
</para>
- <programlisting role="JAVA"><![CDATA[@EndTask(transition="transitionName")]]></programlisting>
+ <programlisting><![CDATA[@EndTask(transition="transitionName")]]></programlisting>
<para>
Triggers the given jBPM transition.
</para>
@@ -905,7 +905,7 @@
<literal>@CreateProcess</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@CreateProcess(definition="process definition name")]]></programlisting>
+ <programlisting><![CDATA[@CreateProcess(definition="process definition name")]]></programlisting>
<para>
Creates a new jBPM process instance when the method returns
a non-null outcome without exception. The
@@ -929,7 +929,7 @@
<literal>@ResumeProcess</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@ResumeProcess(processIdParameter="processId")]]></programlisting>
+ <programlisting><![CDATA[@ResumeProcess(processIdParameter="processId")]]></programlisting>
<para>
Re-enters the scope of an existing jBPM process instance
when the method returns a non-null outcome without
@@ -954,7 +954,7 @@
<literal>@Transition</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Transition("cancel")]]></programlisting>
+ <programlisting><![CDATA[@Transition("cancel")]]></programlisting>
<para>
Marks a method as signalling a transition in the current jBPM
process instance whenever the method returns a non-null
@@ -978,7 +978,7 @@
<literal>@Transactional</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Transactional]]></programlisting>
+ <programlisting><![CDATA[@Transactional]]></programlisting>
<para>
Specifies that a JavaBean component should have a similar
transactional behavior to the default behavior of a session
@@ -998,7 +998,7 @@
<literal>@ApplicationException</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@ApplicationException]]></programlisting>
+ <programlisting><![CDATA[@ApplicationException]]></programlisting>
<para>
Synonym for javax.ejb.ApplicationException, for use in a pre -Java EE 5 environment. Applied to an exception to denote that
it is an application exception and should be reported to the
@@ -1034,7 +1034,7 @@
<literal>@Interceptors</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Interceptors({DVDInterceptor, CDInterceptor})]]></programlisting>
+ <programlisting><![CDATA[@Interceptors({DVDInterceptor, CDInterceptor})]]></programlisting>
<para>
Synonym for javax.interceptors.Interceptors, for use in a pre-Java EE 5 environment. Note that this may only be used as a
meta-annotation. Declares an ordered list of interceptors for
@@ -1070,7 +1070,7 @@
<literal>@Redirect</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Redirect(viewId="error.jsp")]]></programlisting>
+ <programlisting><![CDATA[@Redirect(viewId="error.jsp")]]></programlisting>
<para>
Specifies that the annotated exception causes a browser
redirect to a specified view id.
@@ -1103,7 +1103,7 @@
<literal>@HttpError</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@HttpError(errorCode=404)]]></programlisting>
+ <programlisting><![CDATA[@HttpError(errorCode=404)]]></programlisting>
<para>
Specifies that the annotated exception causes a HTTP error to
be sent.
@@ -1147,7 +1147,7 @@
<literal>@WebRemote</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@WebRemote(exclude="path.to.exclude")]]></programlisting>
+ <programlisting><![CDATA[@WebRemote(exclude="path.to.exclude")]]></programlisting>
<para>
Indicates that the annotated method may be called from
client-side JavaScript. The <literal>exclude</literal>
@@ -1177,22 +1177,22 @@
<literal>@Interceptor</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Interceptor(stateless=true)]]></programlisting>
+ <programlisting><![CDATA[@Interceptor(stateless=true)]]></programlisting>
<para>
Specifies that this interceptor is stateless and Seam may
optimize replication.
</para>
- <programlisting role="JAVA"><![CDATA[@Interceptor(type=CLIENT)]]></programlisting>
+ <programlisting><![CDATA[@Interceptor(type=CLIENT)]]></programlisting>
<para>
Specifies that this interceptor is a "client-side"
interceptor that is called before the EJB container.
</para>
- <programlisting role="JAVA"><![CDATA[@Interceptor(around={SomeInterceptor.class, OtherInterceptor.class})]]></programlisting>
+ <programlisting><![CDATA[@Interceptor(around={SomeInterceptor.class, OtherInterceptor.class})]]></programlisting>
<para>
Specifies that this interceptor is positioned higher in
the stack than the given interceptors.
</para>
- <programlisting role="JAVA"><![CDATA[@Interceptor(within={SomeInterceptor.class, OtherInterceptor.class})]]></programlisting>
+ <programlisting><![CDATA[@Interceptor(within={SomeInterceptor.class, OtherInterceptor.class})]]></programlisting>
<para>
Specifies that this interceptor is positioned deeper in
the stack than the given interceptors.
@@ -1210,8 +1210,8 @@
for example:
</para>
- <programlisting role="JAVA"><![CDATA[@Asynchronous public void scheduleAlert(Alert alert, @Expiration Date date) { ... }]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Asynchronous public Timer scheduleAlerts(Alert alert,
+ <programlisting><![CDATA[@Asynchronous public void scheduleAlert(Alert alert, @Expiration Date date) { ... }]]></programlisting>
+ <programlisting><![CDATA[@Asynchronous public Timer scheduleAlerts(Alert alert,
@Expiration Date date,
@IntervalDuration long interval) { ... }]]></programlisting>
@@ -1221,7 +1221,7 @@
<literal>@Asynchronous</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Asynchronous]]></programlisting>
+ <programlisting><![CDATA[@Asynchronous]]></programlisting>
<para>
Specifies that the method call is processed asynchronously.
</para>
@@ -1232,7 +1232,7 @@
<literal>@Duration</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Duration]]></programlisting>
+ <programlisting><![CDATA[@Duration]]></programlisting>
<para>
Specifies that a parameter of the asynchronous call is the
duration before the call is processed (or first processed for
@@ -1245,7 +1245,7 @@
<literal>@Expiration</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Expiration]]></programlisting>
+ <programlisting><![CDATA[@Expiration]]></programlisting>
<para>
Specifies that a parameter of the asynchronous call is the
datetime at which the call is processed (or first processed
@@ -1258,7 +1258,7 @@
<literal>@IntervalDuration</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@IntervalDuration]]></programlisting>
+ <programlisting><![CDATA[@IntervalDuration]]></programlisting>
<para>
Specifies that an asynchronous method call recurs, and that
the annotated parameter is duration between recurrences.
@@ -1338,7 +1338,7 @@
<literal>@DataModel</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@DataModel("variableName")]]></programlisting>
+ <programlisting><![CDATA[@DataModel("variableName")]]></programlisting>
<para>
Returns a property of type <literal>List</literal>,
<literal>Map</literal>, <literal>Set</literal> or
@@ -1374,7 +1374,7 @@
<literal>@DataModelSelection</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@DataModelSelection]]></programlisting>
+ <programlisting><![CDATA[@DataModelSelection]]></programlisting>
<para>
Injects the selected value from the JSF
<literal>DataModel</literal> (this is the element of the
@@ -1414,7 +1414,7 @@
<literal>@DataModelSelectionIndex</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@DataModelSelectionIndex]]></programlisting>
+ <programlisting><![CDATA[@DataModelSelectionIndex]]></programlisting>
<para>
Exposes the selection index of the JSF
<literal>DataModel</literal> as an attribute of the
@@ -1458,7 +1458,7 @@
<literal>@DataBinderClass</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@DataBinderClass(DataModelBinder.class)]]></programlisting>
+ <programlisting><![CDATA[@DataBinderClass(DataModelBinder.class)]]></programlisting>
<para>
Specifies that an annotation is a databinding annotation.
</para>
@@ -1469,7 +1469,7 @@
<literal>@DataSelectorClass</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@DataSelectorClass(DataModelSelector.class)]]></programlisting>
+ <programlisting><![CDATA[@DataSelectorClass(DataModelSelector.class)]]></programlisting>
<para>
Specifies that an annotation is a dataselection annotation.
</para>
@@ -1493,14 +1493,14 @@
<literal>@Namespace</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Namespace(value="http://jboss.com/products/seam/example/seampay")]]></programlisting>
+ <programlisting><![CDATA[@Namespace(value="http://jboss.com/products/seam/example/seampay")]]></programlisting>
<para>
Specifies that components in the current package are associated
with the given namespace. The declared namespace can be used as
an XML namespace in a <literal>components.xml</literal> file to
simplify application configuration.
</para>
- <programlisting role="JAVA"><![CDATA[@Namespace(value="http://jboss.com/products/seam/core", prefix="org.jboss.seam.core")]]></programlisting>
+ <programlisting><![CDATA[@Namespace(value="http://jboss.com/products/seam/core", prefix="org.jboss.seam.core")]]></programlisting>
<para>
Specifies a namespace to associate with a given package.
Additionally, it specifies a component name prefix to be
@@ -1537,14 +1537,14 @@
</para>
<itemizedlist>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Filter(around={"seamComponent", "otherSeamComponent"})]]></programlisting>
+ <programlisting><![CDATA[@Filter(around={"seamComponent", "otherSeamComponent"})]]></programlisting>
<para>
Specifies that this filter is positioned higher in the
stack than the given filters.
</para>
</listitem>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Filter(within={"seamComponent", "otherSeamComponent"})]]></programlisting>
+ <programlisting><![CDATA[@Filter(within={"seamComponent", "otherSeamComponent"})]]></programlisting>
<para>
Specifies that this filter is positioned deeper in the
stack than the given filters.
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Cache.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Cache.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Cache.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -128,7 +128,7 @@
Now you can inject the cache into any Seam component:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("chatroom")
+ <programlisting><![CDATA[@Name("chatroom")
public class Chatroom {
@In PojoCache pojoCache;
@@ -155,7 +155,7 @@
use <literal>components.xml</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[<core:pojo-cache name="myCache" cfg-resource-name="myown/cache.xml"/>]]></programlisting>
+ <programlisting><![CDATA[<core:pojo-cache name="myCache" cfg-resource-name="myown/cache.xml"/>]]></programlisting>
</section>
@@ -176,7 +176,7 @@
blog entries:
</para>
- <programlisting role="XHTML"><![CDATA[<s:cache key="recentEntries-#{blog.id}" region="welcomePageFragments">
+ <programlisting><![CDATA[<s:cache key="recentEntries-#{blog.id}" region="welcomePageFragments">
<h:dataTable value="#{blog.recentEntries}" var="blogEntry">
<h:column>
<h3>#{blogEntry.title}</h3>
@@ -201,7 +201,7 @@
blogger posts a new entry). So you need to evict the cached fragment manually:
</para>
- <programlisting role="JAVA"><![CDATA[public void post() {
+ <programlisting><![CDATA[public void post() {
...
entityManager.persist(blogEntry);
pojoCache.remove("welcomePageFragments", "recentEntries-" + blog.getId() );
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Components.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Components.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Components.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -35,7 +35,7 @@
session context object injected:
</para>
- <programlisting role="JAVA"><![CDATA[@In private Context sessionContext;]]></programlisting>
+ <programlisting><![CDATA[@In private Context sessionContext;]]></programlisting>
<variablelist >
<varlistentry>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Concepts.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Concepts.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Concepts.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -194,13 +194,13 @@
access to several thread-bound instances of the <literal>Context</literal> interface:
</para>
- <programlisting role="JAVA"><![CDATA[User user = (User) Contexts.getSessionContext().get("user");]]></programlisting>
+ <programlisting><![CDATA[User user = (User) Contexts.getSessionContext().get("user");]]></programlisting>
<para>
You may also set or change the value associated with a name:
</para>
- <programlisting role="JAVA"><![CDATA[Contexts.getSessionContext().set("user", user);]]></programlisting>
+ <programlisting><![CDATA[Contexts.getSessionContext().set("user", user);]]></programlisting>
<para>
Usually, however, we obtain components from a context via injection, and place component instances into
@@ -459,7 +459,7 @@
session bean component. We could use an annotation, as follows:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Interceptors(SeamInterceptor.class)
public class LoginAction implements Login {
...
@@ -491,7 +491,7 @@
<literal>@Name</literal> annotation:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
...
@@ -526,7 +526,7 @@
For very large applications, and for built-in seam components, qualified names are often used.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("com.jboss.myapp.loginAction")
+ <programlisting><![CDATA[@Name("com.jboss.myapp.loginAction")
@Stateless
public class LoginAction implements Login {
...
@@ -536,7 +536,7 @@
We may use the qualified component name both in Java code and in JSF's expression language:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton type="submit" value="Login"
+ <programlisting><![CDATA[<h:commandButton type="submit" value="Login"
action="#{com.jboss.myapp.loginAction.login}"/>]]></programlisting>
<para>
@@ -561,7 +561,7 @@
by Seam.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("user")
+ <programlisting><![CDATA[@Name("user")
@Entity
@Scope(SESSION)
public class User {
@@ -586,7 +586,7 @@
us do it at the class level, and take advantage of auto-instantiation.)
</para>
- <programlisting role="JAVA"><![CDATA[@Name("user")
+ <programlisting><![CDATA[@Name("user")
@Entity
@Scope(CONVERSATION)
@Role(name="currentUser", scope=SESSION)
@@ -598,7 +598,7 @@
The <literal>@Roles</literal> annotation lets us specify as many additional roles as we like.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("user")
+ <programlisting><![CDATA[@Name("user")
@Entity
@Scope(CONVERSATION)
@Roles({@Role(name="currentUser", scope=SESSION),
@@ -622,7 +622,7 @@
The built-in components may be injected, just like any Seam components, but they also provide
convenient static <literal>instance()</literal> methods:
</para>
- <programlisting role="JAVA"><![CDATA[FacesMessages.instance().add("Welcome back, #{user.name}!");]]></programlisting>
+ <programlisting><![CDATA[FacesMessages.instance().add("Welcome back, #{user.name}!");]]></programlisting>
</section>
</section>
@@ -676,7 +676,7 @@
variable:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
@In User user;
@@ -687,7 +687,7 @@
or into a setter method:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
User user;
@@ -723,7 +723,7 @@
You can even inject the value of an expression:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
@In("#{user.username}") String username;
@@ -744,7 +744,7 @@
instance variable:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
@Out User user;
@@ -755,7 +755,7 @@
or from a getter method:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
User user;
@@ -772,7 +772,7 @@
An attribute may be both injected and retrieved:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
@In @Out User user;
@@ -783,7 +783,7 @@
or:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("loginAction")
+ <programlisting><![CDATA[@Name("loginAction")
@Stateless
public class LoginAction implements Login {
User user;
@@ -917,7 +917,7 @@
a JMS queue.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("messageSender")
+ <programlisting><![CDATA[@Name("messageSender")
public class MessageSender {
public void sendMessage() {
//do something with JMS
@@ -930,7 +930,7 @@
application:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("messageSender")
+ <programlisting><![CDATA[@Name("messageSender")
@Install(precedence=MOCK)
public class MockMessageSender extends MessageSender {
public void sendMessage() {
@@ -963,7 +963,7 @@
An example of generic logging code:
</para>
- <programlisting role="JAVA"><![CDATA[private static final Log log = LogFactory.getLog(CreateOrderAction.class);
+ <programlisting><![CDATA[private static final Log log = LogFactory.getLog(CreateOrderAction.class);
public Order createOrder(User user, Product product, int quantity) {
if ( log.isDebugEnabled() ) {
@@ -978,7 +978,7 @@
Seam provides a logging API that simplifies this code significantly:
</para>
- <programlisting role="JAVA"><![CDATA[@Logger private Log log;
+ <programlisting><![CDATA[@Logger private Log log;
public Order createOrder(User user, Product product, int quantity) {
log.debug("Creating new order for user: #0 product: #1 quantity: #2", user.username(), product.name(), quantity);
@@ -1004,7 +1004,7 @@
You can use <literal>java.text.MessageFormat</literal> formatted strings:
</para>
- <programlisting role="JAVA"><![CDATA[log.debug("The time is {0,time}", new Date());]]></programlisting>
+ <programlisting><![CDATA[log.debug("The time is {0,time}", new Date());]]></programlisting>
-->
<para>
@@ -1012,7 +1012,7 @@
contexts, it gets even better:
</para>
- <programlisting role="JAVA"><![CDATA[@Logger private Log log;
+ <programlisting><![CDATA[@Logger private Log log;
public Order createOrder(User user, Product product, int quantity) {
log.debug("Creating new order for user: #{user.username} product: #{product.name} quantity: #0", quantity);
@@ -1054,7 +1054,7 @@
the component. For example,
</para>
- <programlisting role="JAVA"><![CDATA[@Name("account")
+ <programlisting><![CDATA[@Name("account")
public class Account extends AbstractMutable
{
private BigDecimal balance;
@@ -1078,7 +1078,7 @@
Or, you can use the <literal>@ReadOnly</literal> annotation to achieve a similar effect:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("account")
+ <programlisting><![CDATA[@Name("account")
public class Account
{
private BigDecimal balance;
@@ -1107,7 +1107,7 @@
entity bean instance. For example,
</para>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("account")
public class AccountManager extends AbstractMutable
{
@@ -1151,7 +1151,7 @@
context by Seam:
</para>
- <programlisting role="JAVA"><![CDATA[@Factory(scope=CONVERSATION)
+ <programlisting><![CDATA[@Factory(scope=CONVERSATION)
public List<Customer> getCustomerList() {
return ... ;
} ]]></programlisting>
@@ -1161,7 +1161,7 @@
variable itself:
</para>
- <programlisting role="JAVA"><![CDATA[@DataModel List<Customer> customerList;
+ <programlisting><![CDATA[@DataModel List<Customer> customerList;
@Factory("customerList")
public void initCustomerList() {
@@ -1184,7 +1184,7 @@
- <programlisting role="JAVA"><![CDATA[@Name("customerList")
+ <programlisting><![CDATA[@Name("customerList")
@Scope(CONVERSATION)
public class CustomerListManager
{
@@ -1203,7 +1203,7 @@
<literal>@Destroy</literal> method of the manager component.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("hens")
+ <programlisting><![CDATA[@Name("hens")
@Scope(APPLICATION)
public class HenHouse {
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Configuration.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Configuration.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Configuration.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -348,7 +348,7 @@
specify your filters in a <literal>web.xml</literal>). Just add the <literal>@Filter</literal>
annotation to your Seam component (which must implement <literal>javax.servlet.Filter</literal>): </para>
- <programlisting role="JAVA"><![CDATA[@Startup
+ <programlisting><![CDATA[@Startup
@Scope(APPLICATION)
@Name("org.jboss.seam.web.multipartFilter")
@BypassInterceptors
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Controls.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Controls.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Controls.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -19,7 +19,7 @@
as follows (facelets only):
</para>
- <programlisting role="XHTML"><![CDATA[<html xmlns="http://www.w3.org/1999/xhtml"
+ <programlisting><![CDATA[<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib">]]></programlisting>
<para>
@@ -90,7 +90,7 @@
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:button id="cancel"
+ <programlisting><![CDATA[<s:button id="cancel"
value="Cancel"
action="#{hotelBooking.cancel}"/>]]></programlisting>
<para>
@@ -193,7 +193,7 @@
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:link id="register" view="/register.xhtml"
+ <programlisting><![CDATA[<s:link id="register" view="/register.xhtml"
value="Register New User"/>]]></programlisting>
<para>
You can specify both <literal>view</literal> and
@@ -233,7 +233,7 @@
</listitem>
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton value="Apply" action="#{personHome.update}">
+ <programlisting><![CDATA[<h:commandButton value="Apply" action="#{personHome.update}">
<s:conversationPropagation type="join" />
</h:commandButton>]]></programlisting>
</section>
@@ -267,7 +267,7 @@
<para>None.</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton id="foo" value="Foo" action="#{manager.foo}">
+ <programlisting><![CDATA[<h:commandButton id="foo" value="Foo" action="#{manager.foo}">
<s:defaultAction />
</h:commandButton>]]></programlisting>
</section>
@@ -287,7 +287,7 @@
<para>None.</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:outputText value="#{item.orderDate}">
+ <programlisting><![CDATA[<h:outputText value="#{item.orderDate}">
<s:convertDateTime type="both" dateStyle="full"/>
</h:outputText>]]></programlisting>
@@ -346,14 +346,14 @@
<property name="entityManager">#{em}</property>
</component>]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:selectOneMenu value="#{person.continent}">
+ <programlisting><![CDATA[<h:selectOneMenu value="#{person.continent}">
<s:selectItems value="#{continents.resultList}" var="continent"
label="#{continent.name}" />
<f:converter converterId="myEntityConverter" />
</h:selectOneMenu>]]></programlisting>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:selectOneMenu value="#{person.continent}" required="true">
+ <programlisting><![CDATA[<h:selectOneMenu value="#{person.continent}" required="true">
<s:selectItems value="#{continents.resultList}" var="continent"
label="#{continent.name}"
noSelectionLabel="Please Select..."/>
@@ -374,7 +374,7 @@
<para>None.</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:selectOneMenu value="#{person.honorific}">
+ <programlisting><![CDATA[<h:selectOneMenu value="#{person.honorific}">
<s:selectItems value="#{honorifics}" var="honorific"
label="#{honorific.label}"
noSelectionLabel="Please select" />
@@ -397,7 +397,7 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:inputText id="userName" required="true"
+ <programlisting><![CDATA[<h:inputText id="userName" required="true"
value="#{customer.userName}">
<s:validate />
</h:inputText>
@@ -419,7 +419,7 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:validateAll>
+ <programlisting><![CDATA[<s:validateAll>
<div class="entry">
<h:outputLabel for="username">Username:</h:outputLabel>
<h:inputText id="username" value="#{user.username}"
@@ -475,11 +475,11 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:decorate template="edit.xhtml">
+ <programlisting><![CDATA[<s:decorate template="edit.xhtml">
<ui:define name="label">Country:</ui:define>
<h:inputText value="#{location.country}" required="true"/>
</s:decorate>]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ <programlisting><![CDATA[<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
@@ -519,7 +519,7 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:div rendered="#{selectedMember == null}">
+ <programlisting><![CDATA[<s:div rendered="#{selectedMember == null}">
Sorry, but this member does not exist.
</s:div>]]></programlisting>
</section>
@@ -538,7 +538,7 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:span styleClass="required" rendered="#{required}">*</s:span>]]></programlisting>
+ <programlisting><![CDATA[<s:span styleClass="required" rendered="#{required}">*</s:span>]]></programlisting>
</section>
@@ -557,7 +557,7 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:fragment rendered="#{auction.highBidder ne null}">
+ <programlisting><![CDATA[<s:fragment rendered="#{auction.highBidder ne null}">
Current bid:
</s:fragment>]]></programlisting>
@@ -588,7 +588,7 @@
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:label styleClass="label">
+ <programlisting><![CDATA[<s:label styleClass="label">
Country:
</s:label>
<h:inputText value="#{location.country}" required="true"/>]]></programlisting>
@@ -608,7 +608,7 @@
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<f:facet name="afterInvalidField">
+ <programlisting><![CDATA[<f:facet name="afterInvalidField">
<s:span>
 Error: 
<s:message/>
@@ -657,7 +657,7 @@
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:formattedText value="#{blog.text}"/>]]></programlisting>
+ <programlisting><![CDATA[<s:formattedText value="#{blog.text}"/>]]></programlisting>
<para><emphasis>Example</emphasis></para>
<mediaobject>
@@ -701,7 +701,7 @@
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:selectOneRadio id="radioList"
+ <programlisting><![CDATA[<h:selectOneRadio id="radioList"
layout="lineDirection"
value="#{newPayment.paymentFrequency}">
<s:convertEnum />
@@ -777,7 +777,7 @@
</listitem>
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<h:selectOneMenu value="#{person.age}"
+ <programlisting><![CDATA[<h:selectOneMenu value="#{person.age}"
converter="ageConverter">
<s:selectItems value="#{ages}" var="age" label="#{age}" />
</h:selectOneMenu>]]></programlisting>
@@ -823,7 +823,7 @@
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:cache key="entry-#{blogEntry.id}" region="pageFragments">
+ <programlisting><![CDATA[<s:cache key="entry-#{blogEntry.id}" region="pageFragments">
<div class="blogEntry">
<h3>#{blogEntry.title}</h3>
<div>
@@ -851,7 +851,7 @@
<literal>multipart/form-data</literal>, for instance:
</para>
- <programlisting role="XHTML"><![CDATA[<h:form enctype="multipart/form-data">]]></programlisting>
+ <programlisting><![CDATA[<h:form enctype="multipart/form-data">]]></programlisting>
<para>
For multipart requests, the Seam Multipart servlet filter must
@@ -949,7 +949,7 @@
</listitem>
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:fileUpload id="picture" data="#{register.picture}"
+ <programlisting><![CDATA[<s:fileUpload id="picture" data="#{register.picture}"
accept="image/png"
contentType="#{register.pictureContentType}" />]]></programlisting>
@@ -1084,7 +1084,7 @@
in the view.
</para>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:graphicImage rendered="#{auction.image ne null}"
+ <programlisting><![CDATA[<s:graphicImage rendered="#{auction.image ne null}"
value="#{auction.image.data}">
<s:transformImageSize width="200" maintainRatio="true"/>
</s:graphicImage>]]></programlisting>
@@ -1111,7 +1111,7 @@
</itemizedlist>
<para><emphasis>Usage</emphasis></para>
- <programlisting role="XHTML"><![CDATA[<s:remote include="customerAction,accountAction,com.acme.MyBean"/>]]></programlisting>
+ <programlisting><![CDATA[<s:remote include="customerAction,accountAction,com.acme.MyBean"/>]]></programlisting>
</section>
</section>
</section>
@@ -1131,7 +1131,7 @@
<literal>@Converter</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Name("itemConverter")
+ <programlisting><![CDATA[@Name("itemConverter")
@BypassInterceptors
@Converter
public class ItemConverter implements Converter {
@@ -1149,7 +1149,7 @@
}]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:inputText value="#{shop.item}" converter="itemConverter" />]]></programlisting>
+ <programlisting><![CDATA[<h:inputText value="#{shop.item}" converter="itemConverter" />]]></programlisting>
<para>
Registers the Seam component as a JSF converter. Shown here is a
@@ -1164,7 +1164,7 @@
<literal>@Validator</literal>
</term>
<listitem>
- <programlisting role="JAVA"><![CDATA[@Name("itemValidator")
+ <programlisting><![CDATA[@Name("itemValidator")
@BypassInterceptors
@Validator
public class ItemValidator implements Validator {
@@ -1177,7 +1177,7 @@
}]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:inputText value="#{shop.item}" validator="itemValidator" />]]></programlisting>
+ <programlisting><![CDATA[<h:inputText value="#{shop.item}" validator="itemValidator" />]]></programlisting>
<para>
Registers the Seam component as a JSF validator. Shown here is a
validator which injects another Seam component; the injected
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Conversations.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Conversations.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Conversations.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -132,13 +132,13 @@
request parameter:
</para>
- <programlisting role="XHTML"><![CDATA[<a href="main.jsf?conversationId=#{conversation.id}">Continue</a>]]></programlisting>
+ <programlisting><![CDATA[<a href="main.jsf?conversationId=#{conversation.id}">Continue</a>]]></programlisting>
<para>
Or, the more JSF-ish:
</para>
- <programlisting role="XHTML"><![CDATA[<h:outputLink value="main.jsf">
+ <programlisting><![CDATA[<h:outputLink value="main.jsf">
<f:param name="conversationId" value="#{conversation.id}"/>
<h:outputText value="Continue"/>
</h:outputLink>]]></programlisting>
@@ -147,7 +147,7 @@
If you use the Seam tag library, this is equivalent:
</para>
- <programlisting role="XHTML"><![CDATA[<h:outputLink value="main.jsf">
+ <programlisting><![CDATA[<h:outputLink value="main.jsf">
<s:conversationId/>
<h:outputText value="Continue"/>
</h:outputLink>]]></programlisting>
@@ -157,7 +157,7 @@
postback, a similar trick is used:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="main" value="Exit">
+ <programlisting><![CDATA[<h:commandLink action="main" value="Exit">
<f:param name="conversationPropagation" value="none"/>
</h:commandLink>]]></programlisting>
@@ -165,7 +165,7 @@
If you use the Seam tag library, this is equivalent:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="main" value="Exit">
+ <programlisting><![CDATA[<h:commandLink action="main" value="Exit">
<s:conversationPropagation type="none"/>
</h:commandLink>]]></programlisting>
@@ -183,19 +183,19 @@
conversation.
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="main" value="Exit">
+ <programlisting><![CDATA[<h:commandLink action="main" value="Exit">
<s:conversationPropagation type="end"/>
</h:commandLink>]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="main" value="Select Child">
+ <programlisting><![CDATA[<h:commandLink action="main" value="Select Child">
<s:conversationPropagation type="nested"/>
</h:commandLink>]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="main" value="Select Hotel">
+ <programlisting><![CDATA[<h:commandLink action="main" value="Select Hotel">
<s:conversationPropagation type="begin"/>
</h:commandLink>]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="main" value="Select Hotel">
+ <programlisting><![CDATA[<h:commandLink action="main" value="Select Hotel">
<s:conversationPropagation type="join"/>
</h:commandLink>]]></programlisting>
@@ -453,14 +453,14 @@
The link may specify just the JSF view id:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link view="/login.xhtml" value="Login"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link view="/login.xhtml" value="Login"/>]]></programlisting>
<para>
Or, it may specify an action method (in which case the action outcome determines
the page that results):
</para>
- <programlisting role="XHTML"><![CDATA[<s:link action="#{login.logout}" value="Logout"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link action="#{login.logout}" value="Logout"/>]]></programlisting>
<para>
If you specify <emphasis>both</emphasis> a JSF view id and an action method, the
@@ -468,39 +468,39 @@
non-null outcome:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link view="/loggedOut.xhtml" action="#{login.logout}" value="Logout"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link view="/loggedOut.xhtml" action="#{login.logout}" value="Logout"/>]]></programlisting>
<para>
The link automatically propagates the selected row of a <literal>DataModel</literal>
using inside <literal><h:dataTable></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link view="/hotel.xhtml" action="#{hotelSearch.selectHotel}" value="#{hotel.name}"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link view="/hotel.xhtml" action="#{hotelSearch.selectHotel}" value="#{hotel.name}"/>]]></programlisting>
<para>
You can leave the scope of an existing conversation:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link view="/main.xhtml" propagation="none"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link view="/main.xhtml" propagation="none"/>]]></programlisting>
<para>
You can begin, end, or nest conversations:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link action="#{issueEditor.viewComment}" propagation="nest"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link action="#{issueEditor.viewComment}" propagation="nest"/>]]></programlisting>
<para>
If the link begins a conversation, you can even specify a pageflow to be used:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link action="#{documentEditor.getDocument}" propagation="begin"
+ <programlisting><![CDATA[<s:link action="#{documentEditor.getDocument}" propagation="begin"
pageflow="EditDocument"/>]]></programlisting>
<para>
The <literal>taskInstance</literal> attribute is for use in jBPM task lists:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link action="#{documentApproval.approveOrReject}" taskInstance="#{task}"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link action="#{documentApproval.approveOrReject}" taskInstance="#{task}"/>]]></programlisting>
<para>
(See the DVD Store demo application for examples of this.)
@@ -510,7 +510,7 @@
Finally, if you need the "link" to be rendered as a button, use <literal><s:button></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<s:button action="#{login.logout}" value="Logout"/>]]></programlisting>
+ <programlisting><![CDATA[<s:button action="#{login.logout}" value="Logout"/>]]></programlisting>
</section>
@@ -531,7 +531,7 @@
(You must have the Seam redirect filter installed.)
</para>
- <programlisting role="JAVA"><![CDATA[@Name("editDocumentAction")
+ <programlisting><![CDATA[@Name("editDocumentAction")
@Stateless
public class EditDocumentBean implements EditDocument {
@In EntityManager em;
@@ -556,13 +556,13 @@
You can even include JSF EL expressions in a faces message summary:
</para>
- <programlisting role="JAVA"><![CDATA[facesMessages.add("Document #{document.title} was updated");]]></programlisting>
+ <programlisting><![CDATA[facesMessages.add("Document #{document.title} was updated");]]></programlisting>
<para>
You may display the messages in the usual way, for example:
</para>
- <programlisting role="XHTML"><![CDATA[<h:messages globalOnly="true"/>]]></programlisting>
+ <programlisting><![CDATA[<h:messages globalOnly="true"/>]]></programlisting>
</section>
@@ -700,7 +700,7 @@
our action method looks like this:
</para>
- <programlisting role="JAVA"><![CDATA[ @Begin(join = true)
+ <programlisting><![CDATA[ @Begin(join = true)
public void placeBid()]]></programlisting>
<para>
@@ -713,7 +713,7 @@
tag:
</para>
- <programlisting role="XHTML"><![CDATA[ <h:commandButton id="placeBidWithAmount" styleClass="placeBid" action="#{bidAction.placeBid}">
+ <programlisting><![CDATA[ <h:commandButton id="placeBidWithAmount" styleClass="placeBid" action="#{bidAction.placeBid}">
<s:conversationName value="PlaceBid"/>
</h:commandButton>]]></programlisting>
@@ -722,7 +722,7 @@
using either <literal>s:link</literal> or <literal>s:button</literal>:
</para>
- <programlisting role="XHTML"><![CDATA[ <s:link value="Place Bid" action="#{bidAction.placeBid}" conversationName="PlaceBid"/>]]></programlisting>
+ <programlisting><![CDATA[ <s:link value="Place Bid" action="#{bidAction.placeBid}" conversationName="PlaceBid"/>]]></programlisting>
</section>
@@ -840,7 +840,7 @@
current conversation, or to any other page of the application:
</para>
- <programlisting role="XHTML"><![CDATA[<h:selectOneMenu value="#{switcher.conversationIdOrOutcome}">
+ <programlisting><![CDATA[<h:selectOneMenu value="#{switcher.conversationIdOrOutcome}">
<f:selectItem itemLabel="Find Issues" itemValue="findIssue"/>
<f:selectItem itemLabel="Create Issue" itemValue="editIssue"/>
<f:selectItems value="#{switcher.selectItems}"/>
@@ -878,7 +878,7 @@
except that it is displayed as a table:
</para>
- <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{conversationList}" var="entry"
+ <programlisting><![CDATA[<h:dataTable value="#{conversationList}" var="entry"
rendered="#{not empty conversationList}">
<h:column>
<f:facet name="header">Workspace</f:facet>
@@ -935,7 +935,7 @@
current conversation stack:
</para>
- <programlisting role="XHTML"><![CDATA[<ui:repeat value="#{conversationStack}" var="entry">
+ <programlisting><![CDATA[<ui:repeat value="#{conversationStack}" var="entry">
<h:outputText value=" | "/>
<h:commandLink value="#{entry.description}" action="#{entry.select}"/>
</ui:repeat]]></programlisting>
@@ -968,7 +968,7 @@
it into the conversation scoped component that requires it.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("grid")
+ <programlisting><![CDATA[@Name("grid")
@Scope(ScopeType.EVENT)
public class Grid
{
@@ -979,7 +979,7 @@
}]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Name("gridEditor")
+ <programlisting><![CDATA[@Name("gridEditor")
@Scope(ScopeType.CONVERSATION)
public class GridEditor
{
@@ -1002,7 +1002,7 @@
the current row number:
</para>
- <programlisting role="XHTML"><![CDATA[
+ <programlisting><![CDATA[
<h:dataTable id="lineItemTable" var="lineItem" value="#{orderHome.lineItems}">
<h:column>
Row: #{uiComponent['lineItemTable'].rowIndex}
@@ -1116,7 +1116,7 @@
interval:
</para>
- <programlisting role="JAVA"><![CDATA[int total;
+ <programlisting><![CDATA[int total;
// This method is called when an event occurs on the client
// It takes a really long time to execute
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Drools.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Drools.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Drools.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -97,7 +97,7 @@
assert facts, and fire rules:
</para>
- <programlisting role="JAVA"><![CDATA[@In WorkingMemory policyPricingWorkingMemory;
+ <programlisting><![CDATA[@In WorkingMemory policyPricingWorkingMemory;
@In Policy policy;
@In Customer customer;
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Elenhancements.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Elenhancements.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Elenhancements.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -23,9 +23,9 @@
JBoss EL removes this restriction. For example:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton action="#{hotelBooking.bookHotel(hotel)}" value="Book Hotel"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandButton action="#{hotelBooking.bookHotel(hotel)}" value="Book Hotel"/>]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Name("hotelBooking")
+ <programlisting><![CDATA[@Name("hotelBooking")
public class HotelBooking {
public String bookHotel(Hotel hotel) {
@@ -41,7 +41,7 @@
parentheses, and separated by commas:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton action="#{hotelBooking.bookHotel(hotel, user)}" value="Book Hotel"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandButton action="#{hotelBooking.bookHotel(hotel, user)}" value="Book Hotel"/>]]></programlisting>
<para>
The parameters <literal>hotel</literal> and <literal>user</literal>
@@ -52,7 +52,7 @@
Any value expression may be used as a parameter:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton
+ <programlisting><![CDATA[<h:commandButton
action="#{hotelBooking.bookHotel(hotel.id, user.username)}"
value="Book Hotel"/>]]></programlisting>
@@ -76,7 +76,7 @@
You can also pass literal strings using single quotes:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="#{printer.println('Hello world!')}" value="Hello"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandLink action="#{printer.println('Hello world!')}" value="Hello"/>]]></programlisting>
<para>
Unified EL also supports value expressions, used to bind a field to
@@ -92,7 +92,7 @@
using the method syntax. For example:
</para>
- <programlisting role="XHTML"><![CDATA[<h:outputText value="#{person.name}" rendered="#{person.name.length() > 5}" />]]></programlisting>
+ <programlisting><![CDATA[<h:outputText value="#{person.name}" rendered="#{person.name.length() > 5}" />]]></programlisting>
<para>
You can access the size of a collection in a similar manner:
@@ -141,11 +141,11 @@
<literal><h:commandButton /></literal> or
<literal><h:commandLink /></literal>:
</para>
- <programlisting role="JAVA"><![CDATA[@Factory("items")
+ <programlisting><![CDATA[@Factory("items")
public List<Item> getItems() {
return entityManager.createQuery("select ...").getResultList();
}]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{items}" var="item">
+ <programlisting><![CDATA[<h:dataTable value="#{items}" var="item">
<h:column>
<h:commandLink value="Select #{item.name}" action="#{itemSelector.select(item})" />
</h:column>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Events.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Events.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Events.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -46,7 +46,7 @@
method binding expressions. For a JSF event, this is defined in the JSF template:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton value="Click me!" action="#{helloWorld.sayHello}"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandButton value="Click me!" action="#{helloWorld.sayHello}"/>]]></programlisting>
@@ -569,7 +569,7 @@
component raise an event? Seam provides a built-in component for this.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("helloWorld")
+ <programlisting><![CDATA[@Name("helloWorld")
public class HelloWorld {
public void sayHello() {
FacesMessages.instance().add("Hello World!");
@@ -581,7 +581,7 @@
Or you can use an annotation.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("helloWorld")
+ <programlisting><![CDATA[@Name("helloWorld")
public class HelloWorld {
@RaiseEvent("hello")
public void sayHello() {
@@ -595,7 +595,7 @@
upon the producer:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("helloListener")
+ <programlisting><![CDATA[@Name("helloListener")
public class HelloListener {
public void sayHelloBack() {
FacesMessages.instance().add("Hello to you too!");
@@ -609,7 +609,7 @@
file, you can use an annotation instead:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("helloListener")
+ <programlisting><![CDATA[@Name("helloListener")
public class HelloListener {
@Observer("hello")
public void sayHelloBack() {
@@ -624,7 +624,7 @@
to pass an event object, you can:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("helloWorld")
+ <programlisting><![CDATA[@Name("helloWorld")
public class HelloWorld {
private String name;
public void sayHello() {
@@ -633,7 +633,7 @@
}
}]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Name("helloListener")
+ <programlisting><![CDATA[@Name("helloListener")
public class HelloListener {
@Observer("hello")
public void sayHelloBack(String name) {
@@ -712,7 +712,7 @@
allowing invoking an action listener method:
</para>
- <programlisting role="JAVA"><![CDATA[public class LoggedInInterceptor {
+ <programlisting><![CDATA[public class LoggedInInterceptor {
@AroundInvoke
public Object checkLoggedIn(InvocationContext invocation) throws Exception {
@@ -739,7 +739,7 @@
our example, we would create an <literal>@LoggedIn</literal> annotation, as follows:
</para>
- <programlisting role="JAVA"><![CDATA[@Target(TYPE)
+ <programlisting><![CDATA[@Target(TYPE)
@Retention(RUNTIME)
@Interceptors(LoggedInInterceptor.class)
public @interface LoggedIn {}]]></programlisting>
@@ -749,7 +749,7 @@
to apply the interceptor.
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("changePasswordAction")
@LoggedIn
@Interceptors(SeamInterceptor.class)
@@ -767,7 +767,7 @@
classes to specify a partial order of interceptors.
</para>
-<programlisting role="JAVA"><![CDATA[@Interceptor(around={BijectionInterceptor.class,
+<programlisting><![CDATA[@Interceptor(around={BijectionInterceptor.class,
ValidationInterceptor.class,
ConversationInterceptor.class},
within=RemoveInterceptor.class)
@@ -781,7 +781,7 @@
functionality of EJB3:
</para>
-<programlisting role="JAVA"><![CDATA[@Interceptor(type=CLIENT)
+<programlisting><![CDATA[@Interceptor(type=CLIENT)
public class LoggedInInterceptor
{
...
@@ -901,7 +901,7 @@
another Seam component.
</para>
- <programlisting role="JAVA"><![CDATA[@HttpError(errorCode=404)
+ <programlisting><![CDATA[@HttpError(errorCode=404)
public class ApplicationException extends Exception { ... }]]></programlisting>
<para>
@@ -910,7 +910,7 @@
rollback of the current transaction.
</para>
- <programlisting role="JAVA"><![CDATA[@Redirect(viewId="/failure.xhtml", end=true)
+ <programlisting><![CDATA[@Redirect(viewId="/failure.xhtml", end=true)
@ApplicationException(rollback=true)
public class UnrecoverableApplicationException extends RuntimeException { ... }]]></programlisting>
@@ -929,7 +929,7 @@
current transaction.
</para>
- <programlisting role="JAVA"><![CDATA[@Redirect(viewId="/error.xhtml", message="Unexpected error")
+ <programlisting><![CDATA[@Redirect(viewId="/error.xhtml", message="Unexpected error")
public class SystemException extends RuntimeException { ... }]]></programlisting>
</section>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Framework.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Framework.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Framework.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -54,7 +54,7 @@
Seam components can also be extended instead if you do not with to deal with the above style of coding:
</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
@Name("personHome")
public class PersonHome extends EntityHome<Person> {
@@ -80,7 +80,7 @@
JBoss Enterprise Application Platform:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("personHome")
public class PersonHome extends EntityHome<Person> implements LocalPersonHome {
@@ -93,7 +93,7 @@
<literal>entityManager</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("personHome")
public class PersonHome extends EntityHome<Person> implements LocalPersonHome {
@@ -135,7 +135,7 @@
class. Suppose we have our trusty <literal>Person</literal> class:
</para>
- <programlisting role="JAVA"><![CDATA[@Entity
+ <programlisting><![CDATA[@Entity
public class Person {
@Id private Long id;
private String firstName;
@@ -156,7 +156,7 @@
Or via extension:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("personHome")
+ <programlisting><![CDATA[@Name("personHome")
public class PersonHome extends EntityHome<Person> {}]]></programlisting>
<para>
@@ -172,7 +172,7 @@
We can use a Home directly from a JSF page, for example:
</para>
- <programlisting role="XHTML"><![CDATA[<h1>Create Person</h1>
+ <programlisting><![CDATA[<h1>Create Person</h1>
<h:form>
<div>First name: <h:inputText value="#{personHome.instance.firstName}"/></div>
<div>Last name: <h:inputText value="#{personHome.instance.lastName}"/></div>
@@ -198,7 +198,7 @@
Or by adding a <literal>@Factory</literal> method to <literal>PersonHome</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("personHome")
+ <programlisting><![CDATA[@Name("personHome")
public class PersonHome extends EntityHome<Person> {
@Factory("person")
@@ -211,7 +211,7 @@
This change simplifies our JSF page to the following:
</para>
- <programlisting role="XHTML"><![CDATA[<h1>Create Person</h1>
+ <programlisting><![CDATA[<h1>Create Person</h1>
<h:form>
<div>First name: <h:inputText value="#{person.firstName}"/></div>
<div>Last name: <h:inputText value="#{person.lastName}"/></div>
@@ -238,7 +238,7 @@
We can add the extra operations to our JSF page:
</para>
- <programlisting role="XHTML"><![CDATA[<h1>
+ <programlisting><![CDATA[<h1>
<h:outputText rendered="#{!personHome.managed}" value="Create Person"/>
<h:outputText rendered="#{personHome.managed}" value="Edit Person"/>
</h1>
@@ -280,7 +280,7 @@
Or by extension:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("personHome")
+ <programlisting><![CDATA[@Name("personHome")
public class PersonHome extends EntityHome<Person> {
@In Country country;
@@ -304,7 +304,7 @@
just add methods to <literal>PersonHome</literal>.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("personHome")
+ <programlisting><![CDATA[@Name("personHome")
public class PersonHome extends EntityHome<Person> {
@In Country country;
@@ -360,7 +360,7 @@
Or extension:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("personHome")
+ <programlisting><![CDATA[@Name("personHome")
public class PersonHome extends EntityHome<Person> {
@In Country country;
@@ -415,7 +415,7 @@
We can use it from a JSF page:
</para>
- <programlisting role="XHTML"><![CDATA[<h1>List of people</h1>
+ <programlisting><![CDATA[<h1>List of people</h1>
<h:dataTable value="#{people.resultList}" var="person">
<h:column>
<s:link view="/editPerson.jsp" value="#{person.firstName} #{person.lastName}">
@@ -448,7 +448,7 @@
The JSF code for a pagination control is a bit verbose, but manageable:
</para>
- <programlisting role="XHTML"><![CDATA[<h1>Search for people</h1>
+ <programlisting><![CDATA[<h1>Search for people</h1>
<h:dataTable value="#{people.resultList}" var="person">
<h:column>
<s:link view="/editPerson.jsp" value="#{person.firstName} #{person.lastName}">
@@ -495,7 +495,7 @@
Notice the use of an <varname>example</varname> object.
</para>
- <programlisting role="XHTML"><![CDATA[<h1>Search for people</h1>
+ <programlisting><![CDATA[<h1>Search for people</h1>
<h:form>
<div>First name: <h:inputText value="#{examplePerson.firstName}"/></div>
<div>Last name: <h:inputText value="#{examplePerson.lastName}"/></div>
@@ -562,7 +562,7 @@
Seam registration example would look like:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("register")
public class RegisterAction extends EntityController implements Register
{
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Groovy.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Groovy.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Groovy.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -58,7 +58,7 @@
<section>
<title>Entity</title>
- <programlisting role="JAVA"> @Entity
+ <programlisting> @Entity
@Name("hotel")
class Hotel implements Serializable
{
@@ -106,7 +106,7 @@
<para>Writing Seam components in Groovy is no different than in Java with annotations used to
mark the class as a Seam component.</para>
- <programlisting role="JAVA">@Scope(ScopeType.SESSION)
+ <programlisting>@Scope(ScopeType.SESSION)
@Name("bookingList")
class BookingListAction implements Serializable
{
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Hsearch.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Hsearch.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Hsearch.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -129,7 +129,7 @@
<para>When Hibernate Search is present, JBoss Seam injects a
<classname>FullTextSession</classname>.</para>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("search")
public class FullTextSearchAction implements FullTextSearch, Serializable {
@@ -155,7 +155,7 @@
<para>If the Java Persistence API is used, a smoother integration is
proposed.</para>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("search")
public class FullTextSearchAction implements FullTextSearch, Serializable {
@@ -187,7 +187,7 @@
<classname>FullTextEntityManager</classname> implementation: downcasting
is then possible.</para>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("search")
public class FullTextSearchAction implements FullTextSearch, Serializable {
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/I18n.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/I18n.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/I18n.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -164,7 +164,7 @@
to do is add the following fragment to a form in your JSP or Facelets
page:</para>
-<programlisting language="XHTML"><h:selectOneMenu value="#{localeSelector.language}">
+<programlisting><h:selectOneMenu value="#{localeSelector.language}">
<f:selectItem itemLabel="English" itemValue="en"/>
<f:selectItem itemLabel="Deutsch" itemValue="de"/>
<f:selectItem itemLabel="Francais" itemValue="fr"/>
@@ -174,7 +174,7 @@
<para>Or, if you want a list of all supported locales from <literal>
faces-config.xml</literal>, just use:</para>
-<programlisting language="XHTML"><h:selectOneMenu value="#{localeSelector.localeString}">
+<programlisting><h:selectOneMenu value="#{localeSelector.localeString}">
<f:selectItems value="#{localeSelector.supportedLocales}"/>
</h:selectOneMenu>
<h:commandButton action="#{localeSelector.select}" value="#{messages['ChangeLanguage']}"/></programlisting>
@@ -252,11 +252,11 @@
be able to use them without having to type <literal> <f:loadBundle
... /></literal> on every page. Instead, you can simply type:</para>
-<programlisting language="XHTML"><h:outputText value="#{messages['Hello']}"/></programlisting>
+<programlisting><h:outputText value="#{messages['Hello']}"/></programlisting>
<para>or:</para>
- <programlisting language="XHTML"><h:outputText value="#{messages.Hello}"/></programlisting>
+ <programlisting><h:outputText value="#{messages.Hello}"/></programlisting>
<para>Even better, the messages themselves may contain EL
expressions:</para>
@@ -267,9 +267,9 @@
<para>You can even use the messages in your code:</para>
- <programlisting language="JAVA">@In private Map<String, String> messages;</programlisting>
+ <programlisting>@In private Map<String, String> messages;</programlisting>
- <programlisting language="JAVA">@In("#{messages['Hello']}") private String helloMessage;</programlisting>
+ <programlisting>@In("#{messages['Hello']}") private String helloMessage;</programlisting>
</section>
<section>
@@ -280,7 +280,7 @@
The functionality we just described also works for faces
messages:</para>
-<programlisting language="JAVA">@Name("hello")
+<programlisting>@Name("hello")
@Stateless
public class HelloBean implements Hello {
@In FacesMessages facesMessages;
@@ -353,17 +353,17 @@
<para>Now we can use these entries in our JSP or facelets pages. For
example, to theme the stylesheet in a facelets page:</para>
-<programlisting language="XHTML"><link href="#{theme.css}" rel="stylesheet" type="text/css" /></programlisting>
+<programlisting><link href="#{theme.css}" rel="stylesheet" type="text/css" /></programlisting>
<para>Or, when the page definition resides in a subdirectory:</para>
- <programlisting language="XHTML"><link href="#{facesContext.externalContext.requestContextPath}#{theme.css}"
+ <programlisting><link href="#{facesContext.externalContext.requestContextPath}#{theme.css}"
rel="stylesheet" type="text/css" /></programlisting>
<para>Most powerfully, facelets lets us theme the template used by a
<literal><ui:composition></literal>:</para>
-<programlisting language="XHTML"><ui:composition xmlns="http://www.w3.org/1999/xhtml"
+<programlisting><ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
@@ -372,7 +372,7 @@
<para>Just like the locale selector, there is a built-in theme selector to
allow the user to freely switch themes:</para>
-<programlisting language="XHTML"><h:selectOneMenu value="#{themeSelector.theme}">
+<programlisting><h:selectOneMenu value="#{themeSelector.theme}">
<f:selectItems value="#{themeSelector.themes}"/>
</h:selectOneMenu>
<h:commandButton action="#{themeSelector.select}" value="Select Theme"/></programlisting>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Itext.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Itext.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Itext.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -130,7 +130,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:document xmlns:p="http://jboss.com/products/seam/pdf">
+ <programlisting><![CDATA[<p:document xmlns:p="http://jboss.com/products/seam/pdf">
The document goes here.
</p:document>]]></programlisting>
@@ -228,7 +228,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:paragraph alignment="justify">
+ <programlisting><![CDATA[<p:paragraph alignment="justify">
This is a simple document. It isn't very fancy.
</p:paragraph>]]></programlisting>
@@ -265,7 +265,7 @@
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:paragraph>
+ <programlisting><![CDATA[<p:paragraph>
The item costs <p:text value="#{product.price}">
<f:convertNumber type="currency" currencySymbol="$"/>
</p:text>
@@ -302,7 +302,7 @@
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[
+ <programlisting><![CDATA[
<p:html value="This is HTML with <b>some markup</b>." />
<p:html>
<h1>This is more complex HTML</h1>
@@ -366,7 +366,7 @@
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:font name="courier" style="bold" size="24">
+ <programlisting><![CDATA[<p:font name="courier" style="bold" size="24">
<p:paragraph>My Title</p:paragraph>
</p:font>]]></programlisting>
@@ -391,7 +391,7 @@
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:newPage />]]></programlisting>
+ <programlisting><![CDATA[<p:newPage />]]></programlisting>
</entry>
</row>
@@ -520,8 +520,8 @@
</para>
- <programlisting role="XHTML"><![CDATA[<p:image value="/jboss.jpg" />]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<p:image value="#{images.chart}" />]]></programlisting>
+ <programlisting><![CDATA[<p:image value="/jboss.jpg" />]]></programlisting>
+ <programlisting><![CDATA[<p:image value="#{images.chart}" />]]></programlisting>
</entry>
@@ -566,7 +566,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:listItem><p:anchor reference="#reason1">Reason 1</p:anchor></p:listItem>
+ <programlisting><![CDATA[<p:listItem><p:anchor reference="#reason1">Reason 1</p:anchor></p:listItem>
...
<p:paragraph>
<p:anchor name="reason1">It's the quickest way to get "rich"</p:anchor>
@@ -652,7 +652,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:facet name="header">
+ <programlisting><![CDATA[<p:facet name="header">
<p:font size="12">
<p:footer borderWidthTop="1" borderColorTop="blue"
borderWidthBottom="0" alignment="center">
@@ -679,7 +679,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><p:footer borderWidthTop="1" borderColorTop="blue"
+ <programlisting><p:footer borderWidthTop="1" borderColorTop="blue"
borderWidthBottom="0" alignment="center">
Why Seam? [<p:pageNumber />]
</p:footer></programlisting>
@@ -753,7 +753,7 @@
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:document xmlns:p="http://jboss.com/products/seam/pdf"
+ <programlisting><![CDATA[<p:document xmlns:p="http://jboss.com/products/seam/pdf"
title="Hello">
<p:chapter number="1">
@@ -802,7 +802,7 @@
following document uses the <literal>ui:repeat</literal> tag to to display a list of values retrieved
from a Seam component. </para>
- <programlisting role="XHTML"><![CDATA[<p:document xmlns:p="http://jboss.com/products/seam/pdf"
+ <programlisting><![CDATA[<p:document xmlns:p="http://jboss.com/products/seam/pdf"
xmlns:ui="http://java.sun.com/jsf/facelets"
title="Hello">
<p:list style="numbered">
@@ -875,7 +875,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:list style="numbered">
+ <programlisting><![CDATA[<p:list style="numbered">
<ui:repeat value="#{documents}" var="doc">
<p:listItem>#{doc.name}</p:listItem>
</ui:repeat>
@@ -940,7 +940,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML">...</programlisting>
+ <programlisting>...</programlisting>
</entry>
</row>
@@ -1104,7 +1104,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:table columns="3" headerRows="1">
+ <programlisting><![CDATA[<p:table columns="3" headerRows="1">
<p:cell>name</p:cell>
<p:cell>owner</p:cell>
<p:cell>size</p:cell>
@@ -1289,7 +1289,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:cell>...</p:cell>]]></programlisting>
+ <programlisting><![CDATA[<p:cell>...</p:cell>]]></programlisting>
</entry>
</row>
@@ -1564,7 +1564,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:barchart title="Bar Chart" legend="true"
+ <programlisting><![CDATA[<p:barchart title="Bar Chart" legend="true"
width="500" height="500">
<p:series key="Last Year">
<p:data columnKey="Joe" value="100" />
@@ -1763,7 +1763,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:linechart title="Line Chart"
+ <programlisting><![CDATA[<p:linechart title="Line Chart"
width="500" height="500">
<p:series key="Prices">
<p:data columnKey="2003" value="7.36" />
@@ -1915,7 +1915,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:piechart title="Pie Chart" circular="false" direction="anticlockwise"
+ <programlisting><![CDATA[<p:piechart title="Pie Chart" circular="false" direction="anticlockwise"
startAngle="30" labelGap="0.1" labelLinkPaint="red">
<p:series key="Prices">
<p:data key="2003" columnKey="2003" value="7.36" />
@@ -1995,7 +1995,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:series key="data1">
+ <programlisting><![CDATA[<p:series key="data1">
<ui:repeat value="#{data.pieData1}" var="item">
<p:data columnKey="#{item.name}" value="#{item.value}" />
</ui:repeat>
@@ -2060,7 +2060,7 @@
- <programlisting role="XHTML"><![CDATA[<p:data key="foo" value="20" sectionPaint="#111111"
+ <programlisting><![CDATA[<p:data key="foo" value="20" sectionPaint="#111111"
explodedPercent=".2" />
<p:data key="bar" value="30" sectionPaint="#333333" />
<p:data key="baz" value="40" sectionPaint="#555555"
@@ -2111,7 +2111,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:color id="foo" color="#0ff00f"/>
+ <programlisting><![CDATA[<p:color id="foo" color="#0ff00f"/>
<p:color id="bar" color="#ff00ff" color2="#00ff00"
point="50 50" point2="300 300"/>]]></programlisting>
@@ -2173,7 +2173,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:stroke id="dot2" width="2" cap="round" join="bevel" dash="2 3" />]]></programlisting>
+ <programlisting><![CDATA[<p:stroke id="dot2" width="2" cap="round" join="bevel" dash="2 3" />]]></programlisting>
</entry>
</row>
@@ -2286,7 +2286,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:barCode type="code128"
+ <programlisting><![CDATA[<p:barCode type="code128"
barHeight="80"
textSize="20"
code="(10)45566(17)040301"
@@ -2347,7 +2347,7 @@
<para>
<emphasis>Usage</emphasis>
</para>
- <programlisting role="XHTML"><![CDATA[<p:swing width="310" height="120" component="#{aButton}" />]]></programlisting>
+ <programlisting><![CDATA[<p:swing width="310" height="120" component="#{aButton}" />]]></programlisting>
</entry>
</row>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jbpm.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jbpm.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jbpm.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -149,7 +149,7 @@
directly from your action listener methods:
</para>
- <programlisting role="JAVA"><![CDATA[public String guess() {
+ <programlisting><![CDATA[public String guess() {
if (guess==randomNumber) return "/win.jsp";
if (++guessCount==maxGuesses) return "/lose.jsp";
return null;
@@ -160,7 +160,7 @@
to be used in the redirect:
</para>
- <programlisting role="JAVA"><![CDATA[public String search() {
+ <programlisting><![CDATA[public String search() {
return "/searchResults.jsp?searchPattern=#{searchAction.searchPattern}";
}]]></programlisting>
@@ -388,7 +388,7 @@
annotation:
</para>
- <programlisting role="JAVA"><![CDATA[@Begin(pageflow="numberguess")
+ <programlisting><![CDATA[@Begin(pageflow="numberguess")
public void begin() { ... }]]></programlisting>
<para>Alternatively we can start a pageflow using pages.xml:</para>
@@ -463,7 +463,7 @@
a command button or command link in <literal>numberGuess.jsp</literal>.
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton type="submit" value="Guess" action="guess"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandButton type="submit" value="Guess" action="guess"/>]]></programlisting>
<para>
When the transition is triggered by clicking this button, jBPM will activate the
@@ -483,7 +483,7 @@
have names. So we could slightly simplify our example pageflow and this button:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton type="submit" value="Guess"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandButton type="submit" value="Guess"/>]]></programlisting>
<para>
Would fire the following un-named transition:
@@ -501,7 +501,7 @@
action outcome will determine the transition to be taken:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandButton type="submit" value="Guess" action="#{numberGuess.guess}"/>]]></programlisting>
+ <programlisting><![CDATA[<h:commandButton type="submit" value="Guess" action="#{numberGuess.guess}"/>]]></programlisting>
<programlisting role="XML"><![CDATA[<page name="displayGuess" view-id="/numberGuess.jsp">
<transition name="correctGuess" to="win"/>
@@ -688,7 +688,7 @@
<literal>actor</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[@In Actor actor;
+ <programlisting><![CDATA[@In Actor actor;
public String login() {
...
@@ -707,7 +707,7 @@
<literal>@CreateProcess</literal> annotation:
</para>
- <programlisting role="JAVA"><![CDATA[@CreateProcess(definition="todo")
+ <programlisting><![CDATA[@CreateProcess(definition="todo")
public void createTodo() { ... }]]></programlisting>
<para>Alternatively we can initiate a business process using pages.xml:</para>
@@ -751,7 +751,7 @@
that users may assign to themselves:
</para>
- <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{pooledTaskInstanceList}" var="task">
+ <programlisting><![CDATA[<h:dataTable value="#{pooledTaskInstanceList}" var="task">
<h:column>
<f:facet name="header">Description</f:facet>
<h:outputText value="#{task.description}"/>
@@ -766,7 +766,7 @@
a plain JSF <literal><h:commandLink></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<h:commandLink action="#{pooledTask.assignToCurrentActor}">
+ <programlisting><![CDATA[<h:commandLink action="#{pooledTask.assignToCurrentActor}">
<f:param name="taskId" value="#{task.id}"/>
</h:commandLink>]]></programlisting>
@@ -780,7 +780,7 @@
a particular type that are assigned to the current user:
</para>
- <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{taskInstanceListForType['todo']}" var="task">
+ <programlisting><![CDATA[<h:dataTable value="#{taskInstanceListForType['todo']}" var="task">
<h:column>
<f:facet name="header">Description</f:facet>
<h:outputText value="#{task.description}"/>
@@ -800,7 +800,7 @@
or <literal>@BeginTask</literal> on the listener method:
</para>
- <programlisting role="JAVA"><![CDATA[@StartTask
+ <programlisting><![CDATA[@StartTask
public String start() { ... }]]></programlisting>
<para>Alternatively we can begin work on a task using pages.xml:</para>
@@ -821,7 +821,7 @@
will signal the completion of the task:
</para>
- <programlisting role="JAVA"><![CDATA[@EndTask(transition="completed")
+ <programlisting><![CDATA[@EndTask(transition="completed")
public String completed() { ... }]]></programlisting>
<para>Alternatively we can use pages.xml:</para>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Jms.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -89,7 +89,7 @@
The use of asynchronous is transparent to the bean class:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("paymentHandler")
public class PaymentHandlerBean implements PaymentHandler
{
@@ -104,7 +104,7 @@
And also transparent to the client:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("paymentAction")
public class CreatePaymentAction
{
@@ -130,7 +130,7 @@
<literal>@IntervalDuration</literal> annotations.
</para>
- <programlisting role="JAVA"><![CDATA[@Local
+ <programlisting><![CDATA[@Local
public interface PaymentHandler
{
@Asynchronous
@@ -142,7 +142,7 @@
@IntervalDuration Long interval)'
}]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("paymentAction")
public class CreatePaymentAction
{
@@ -168,14 +168,14 @@
the invocation. The <literal>Timer</literal> object shown below is the EJB3 timer when you use the EJB3 dispatcher. For the default <literal>ScheduledThreadPoolExecutor</literal>, the returned object is <literal>Future</literal> from the JDK. For the Quartz dispatcher, it returns <literal>QuartzTriggerHandle</literal>, which we will discuss in the next section.
</para>
- <programlisting role="JAVA"><![CDATA[@Local
+ <programlisting><![CDATA[@Local
public interface PaymentHandler
{
@Asynchronous
public Timer processScheduledPayment(Payment payment, @Expiration Date date);
}]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("paymentHandler")
public class PaymentHandlerBean implements PaymentHandler
{
@@ -190,7 +190,7 @@
}]]></programlisting>
- <programlisting role="JAVA"><![CDATA[@Stateful
+ <programlisting><![CDATA[@Stateful
@Name("paymentAction")
public class CreatePaymentAction
{
@@ -220,7 +220,7 @@
<para>The <literal>@FinalExpiration</literal> annotation specifies an end date for the recurring task.</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
// Defines the method in the "processor" component
@Asynchronous
public QuartzTriggerHandle schedulePayment(@Expiration Date when,
@@ -242,7 +242,7 @@
<para>The method returns the <literal>QuartzTriggerHandle</literal> object, which you can use later to stop, pause, and resume the scheduler. The <literal>QuartzTriggerHandle</literal> object is serializable, so you can save it into the database if you need to keep it around for extended period of time.</para>
- <programlisting role="JAVA"><![CDATA[QuartzTriggerHandle handle =
+ <programlisting><![CDATA[QuartzTriggerHandle handle =
processor.schedulePayment(payment.getPaymentDate(),
payment.getPaymentCron(),
payment);
@@ -259,7 +259,7 @@
<para>The <literal>@IntervalCron</literal> annotation supports Unix cron job syntax for task scheduling. For instance, the following asynchronous method runs at 2:10pm and at 2:44pm every Wednesday in the month of March.
</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
// Define the method
@Asynchronous
public QuartzTriggerHandle schedulePayment(@Expiration Date when,
@@ -279,7 +279,7 @@
<para>The <literal>@IntervalBusinessDay</literal> annotation supports invocation on the <emphasis>nth Business Day</emphasis> scenario. For instance, the following asynchronous method runs at 14:00 on the 2nd business day of each month. By default, it excludes all weekends and US federal holidays until 2010 from the business days.
</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
// Define the method
@Asynchronous
public QuartzTriggerHandle schedulePayment(@Expiration Date when,
@@ -299,7 +299,7 @@
<para>The <literal>NthBusinessDay</literal> object contains the configuration of the invocation trigger. You can specify more holidays (for example, company holidays, non-US holidays etc.) via the <literal>additionalHolidays</literal> property.</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
public class NthBusinessDay implements Serializable
{
int n;
@@ -394,7 +394,7 @@
<literal>TopicSession</literal> into any component:
</para>
- <programlisting role="JAVA"><![CDATA[@In
+ <programlisting><![CDATA[@In
private TopicPublisher stockTickerPublisher;
@In
private TopicSession topicSession;
@@ -412,7 +412,7 @@
<para>Or, for working with a queue:</para>
- <programlisting role="JAVA"><![CDATA[@In
+ <programlisting><![CDATA[@In
private QueueSender paymentQueueSender;
@In
private QueueSession queueSession;
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Mail.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Mail.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Mail.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -29,7 +29,7 @@
— an email is just facelet.
</para>
- <programlisting role="XHTML"><![CDATA[<m:message xmlns="http://www.w3.org/1999/xhtml"
+ <programlisting><![CDATA[<m:message xmlns="http://www.w3.org/1999/xhtml"
xmlns:m="http://jboss.com/products/seam/mail"
xmlns:h="http://java.sun.com/jsf/html">
@@ -68,7 +68,7 @@
have to do is ask Seam to render the view:
</para>
- <programlisting role="JAVA"><![CDATA[@In(create=true)
+ <programlisting><![CDATA[@In(create=true)
private Renderer renderer;
public void send() {
@@ -97,7 +97,7 @@
If you wanted to email the <literal>jboss-seam-mail.jar</literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<m:attachment value="/WEB-INF/lib/jboss-seam-mail.jar"/>]]></programlisting>
+ <programlisting><![CDATA[<m:attachment value="/WEB-INF/lib/jboss-seam-mail.jar"/>]]></programlisting>
<para>
Seam will load the file from the classpath, and attach it to the email.
@@ -105,19 +105,19 @@
if you wanted it to have another name you would just add the <literal>fileName</literal> attribute:
</para>
- <programlisting role="XHTML"><![CDATA[<m:attachment value="/WEB-INF/lib/jboss-seam-mail.jar" fileName="this-is-so-cool.jar"/>]]></programlisting>
+ <programlisting><![CDATA[<m:attachment value="/WEB-INF/lib/jboss-seam-mail.jar" fileName="this-is-so-cool.jar"/>]]></programlisting>
<para>
You could also attach a <literal>java.io.File</literal> and a <literal>java.net.URL</literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<m:attachment value="#{numbers}"/>]]></programlisting>
+ <programlisting><![CDATA[<m:attachment value="#{numbers}"/>]]></programlisting>
<para>
Or a <literal>byte[]</literal> or a <literal>java.io.InputStream</literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<m:attachment value="#{person.photo}" contentType="image/png"/>]]></programlisting>
+ <programlisting><![CDATA[<m:attachment value="#{person.photo}" contentType="image/png"/>]]></programlisting>
<para>
You will notice that for a <literal>byte[]</literal> and a <literal>java.io.InputStream</literal>
@@ -131,7 +131,7 @@
around the normal tags you would use:
</para>
- <programlisting role="XHTML"><![CDATA[<m:attachment fileName="tiny.pdf">
+ <programlisting><![CDATA[<m:attachment fileName="tiny.pdf">
<p:document>
A very tiny PDF
</p:document>
@@ -142,7 +142,7 @@
pictures loaded from a database) you can just use a <literal><ui:repeat></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<ui:repeat value="#{people}" var="person">
+ <programlisting><![CDATA[<ui:repeat value="#{people}" var="person">
<m:attachment value="#{person.photo}" contentType="image/jpeg" fileName="#{person.firstname}_#{person.lastname}.jpg"/>
</ui:repeat>]]></programlisting>
@@ -150,7 +150,7 @@
And if you want to display an attached image inline:
</para>
- <programlisting role="XHTML"><![CDATA[<m:attachment
+ <programlisting><![CDATA[<m:attachment
value="#{person.photo}"
contentType="image/jpeg"
fileName="#{person.firstname}_#{person.lastname}.jpg"
@@ -179,7 +179,7 @@
add a plain text alternative to your email body:
</para>
- <programlisting role="XHTML"><![CDATA[<m:body>
+ <programlisting><![CDATA[<m:body>
<f:facet name="alternative">Sorry, your email reader can't show our fancy email,
please go to http://labs.jboss.com/jbossseam to explore Seam.</f:facet>
</m:body>]]></programlisting>
@@ -195,7 +195,7 @@
inside a <literal><ui:repeat></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<ui:repeat value="#{allUsers} var="user">
+ <programlisting><![CDATA[<ui:repeat value="#{allUsers} var="user">
<m:to name="#{user.firstname} #{user.lastname}" address="#{user.emailAddress}" />
</ui:repeat>]]></programlisting>
@@ -210,7 +210,7 @@
place the whole message inside a <literal><ui:repeat></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<ui:repeat value="#{people}" var="p">
+ <programlisting><![CDATA[<ui:repeat value="#{people}" var="p">
<m:message>
<m:from name="#{person.firstname} #{person.lastname}">#{person.address}</m:from>
<m:to name="#{p.firstname}">#{p.address}</m:to>
@@ -231,7 +231,7 @@
Our <literal>template.xhtml</literal> contains:
</para>
- <programlisting role="XHTML"><![CDATA[<m:message>
+ <programlisting><![CDATA[<m:message>
<m:from name="Seam" address="do-not-reply at jboss.com" />
<m:to name="#{person.firstname} #{person.lastname}">#{person.address}</m:to>
<m:subject>#{subject}</m:subject>
@@ -248,7 +248,7 @@
Our <literal>templating.xhtml</literal> contains:
</para>
- <programlisting role="XHTML"><![CDATA[<ui:param name="subject" value="Templating with Seam Mail"/>
+ <programlisting><![CDATA[<ui:param name="subject" value="Templating with Seam Mail"/>
<ui:define name="body">
<p>This example demonstrates that you can easily use <i>facelets templating</i> in email!</p>
</ui:define>]]></programlisting>
@@ -281,7 +281,7 @@
template:
</para>
- <programlisting role="XHTML"><![CDATA[<m:message charset="UTF-8">
+ <programlisting><![CDATA[<m:message charset="UTF-8">
...
</m:message>]]></programlisting>
@@ -291,7 +291,7 @@
your pages by setting encoding of the template:
</para>
- <programlisting role="XHTML"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]></programlisting>
+ <programlisting><![CDATA[<?xml version="1.0" encoding="UTF-8"?>]]></programlisting>
</section>
<section>
@@ -304,7 +304,7 @@
receipt:
</para>
- <programlisting role="XHTML"><![CDATA[<m:message xmlns:m="http://jboss.com/products/seam/mail"
+ <programlisting><![CDATA[<m:message xmlns:m="http://jboss.com/products/seam/mail"
importance="low"
requestReadReceipt="true"/>]]></programlisting>
@@ -313,7 +313,7 @@
<literal><m:header></literal> tag:
</para>
- <programlisting role="XHTML"><![CDATA[<m:header name="X-Sent-From" value="JBoss Seam"/>]]></programlisting>
+ <programlisting><![CDATA[<m:header name="X-Sent-From" value="JBoss Seam"/>]]></programlisting>
</section>
@@ -343,7 +343,7 @@
You can configure it like this:
</para>
- <programlisting role="JAVA"><![CDATA[@MessageDriven(activationConfig={
+ <programlisting><![CDATA[@MessageDriven(activationConfig={
@ActivationConfigProperty(propertyName="mailServer", propertyValue="localhost"),
@ActivationConfigProperty(propertyName="mailFolder", propertyValue="INBOX"),
@ActivationConfigProperty(propertyName="storeProtocol", propertyValue="pop3"),
@@ -491,7 +491,7 @@
<literal>meldware</literal> component:
</para>
- <programlisting role="XHTML"><![CDATA[<components xmlns="http://jboss.com/products/seam/components"
+ <programlisting><![CDATA[<components xmlns="http://jboss.com/products/seam/components"
xmlns:core="http://jboss.com/products/seam/core"
xmlns:mail="http://jboss.com/products/seam/mail">
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Persistence.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Persistence.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Persistence.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -340,7 +340,7 @@
Now we can have our <literal>EntityManager</literal> injected using:
</para>
- <programlisting role="JAVA"><![CDATA[@In EntityManager bookingDatabase;]]></programlisting>
+ <programlisting><![CDATA[@In EntityManager bookingDatabase;]]></programlisting>
<para>
If you are using EJB3 and mark your class or method
@@ -396,7 +396,7 @@
JavaBean components using the following code:
</para>
- <programlisting role="JAVA"><![CDATA[@In Session bookingDatabase;]]></programlisting>
+ <programlisting><![CDATA[@In Session bookingDatabase;]]></programlisting>
</section>
@@ -438,7 +438,7 @@
persistence provider, but we plan to support other equivalent vendor extensions.
</para>
- <programlisting role="JAVA"><![CDATA[@In EntityManager em; //a Seam-managed persistence context
+ <programlisting><![CDATA[@In EntityManager em; //a Seam-managed persistence context
@Begin(flushMode=MANUAL)
public void beginClaimWizard() {
@@ -450,7 +450,7 @@
for the rest to the conversation. We can make changes to the claim:
</para>
- <programlisting role="JAVA"><![CDATA[public void addPartyToClaim() {
+ <programlisting><![CDATA[public void addPartyToClaim() {
Party party = ....;
claim.addParty(party);
}]]></programlisting>
@@ -460,7 +460,7 @@
the flush to occur:
</para>
- <programlisting role="JAVA"><![CDATA[@End
+ <programlisting><![CDATA[@End
public void commitClaim() {
em.flush();
}]]></programlisting>
@@ -495,7 +495,7 @@
following:
</para>
- <programlisting role="JAVA"><![CDATA[@In EntityManager entityManager;
+ <programlisting><![CDATA[@In EntityManager entityManager;
@Create
public void init() {
@@ -516,7 +516,7 @@
Now we can inject the session directly:
</para>
- <programlisting role="JAVA"><![CDATA[@In Session session;
+ <programlisting><![CDATA[@In Session session;
@Create
public void init() {
@@ -535,12 +535,12 @@
example, this:
</para>
- <programlisting role="JAVA"><![CDATA[User user = em.createQuery("from User where username=#{user.username}")
+ <programlisting><![CDATA[User user = em.createQuery("from User where username=#{user.username}")
.getSingleResult();]]></programlisting>
<para>is equivalent to:</para>
- <programlisting role="JAVA"><![CDATA[User user = em.createQuery("from User where username=:username")
+ <programlisting><![CDATA[User user = em.createQuery("from User where username=:username")
.setParameter("username", user.getUsername())
.getSingleResult();]]></programlisting>
@@ -548,7 +548,7 @@
The other way in which this can be written is not advised but included for completeness:
</para>
- <programlisting role="JAVA"><![CDATA[User user = em.createQuery("from User where username=" + user.getUsername())
+ <programlisting><![CDATA[User user = em.createQuery("from User where username=" + user.getUsername())
.getSingleResult();]]></programlisting>
<para>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Remoting.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Remoting.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Remoting.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -27,7 +27,7 @@
that must be imported. The first contains all the client-side framework code that enables remoting
functionality: </para>
- <programlisting role="XHTML"><![CDATA[<script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>]]></programlisting>
+ <programlisting><![CDATA[<script type="text/javascript" src="seam/resource/remoting/resource/remote.js"></script>]]></programlisting>
<para> The second script contains the stubs and type definitions for the components you wish to call. It is
generated dynamically based on the local interface of your components, and includes type definitions for all of
@@ -35,13 +35,13 @@
name of your component. For example, if you have a stateless session bean annotated with
<literal>@Name("customerAction")</literal>, then your script tag should look like this: </para>
- <programlisting role="XHTML"><![CDATA[<script type="text/javascript"
+ <programlisting><![CDATA[<script type="text/javascript"
src="seam/resource/remoting/interface.js?customerAction"></script>]]></programlisting>
<para> If you wish to access more than one component from the same page, then include them all as parameters of your
script tag: </para>
- <programlisting role="XHTML"><![CDATA[<script type="text/javascript"
+ <programlisting><![CDATA[<script type="text/javascript"
src="seam/resource/remoting/interface.js?customerAction&accountAction"></script>]]></programlisting>
@@ -50,7 +50,7 @@
component or class name you wish to import with a comma:
</para>
- <programlisting role="XHTML"><![CDATA[
+ <programlisting><![CDATA[
<s:remote include="customerAction,accountAction"/>
]]></programlisting>
@@ -71,7 +71,7 @@
<para> Let us step through a simple example to see how the <literal>Seam</literal> object works. First of all,
we will create a new Seam component called <literal>helloAction</literal>. </para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Name("helloAction")
public class HelloAction implements HelloLocal {
public String sayHello(String name) {
@@ -82,7 +82,7 @@
<para>You also need to create a local interface for our new component - take special note of the
<literal>@WebRemote</literal> annotation, as it is required to make our method accessible via remoting:</para>
- <programlisting role="JAVA"><![CDATA[@Local
+ <programlisting><![CDATA[@Local
public interface HelloLocal {
@WebRemote
public String sayHello(String name);
@@ -91,15 +91,15 @@
<para> That is all the server-side code we need to write. Now for our web page we will create a new page and import the
<literal>helloAction</literal> component: </para>
- <programlisting role="XHTML"><![CDATA[<s:remote include="helloAction"/>]]></programlisting>
+ <programlisting><![CDATA[<s:remote include="helloAction"/>]]></programlisting>
<para> To make this a fully interactive user experience, let us add a button to our page: </para>
- <programlisting role="XHTML"><![CDATA[<button onclick="javascript:sayHello()">Say Hello</button>]]></programlisting>
+ <programlisting><![CDATA[<button onclick="javascript:sayHello()">Say Hello</button>]]></programlisting>
<para> We will also need to add some more script to make our button actually do something when it's clicked: </para>
- <programlisting role="XHTML"><![CDATA[<script type="text/javascript">
+ <programlisting><![CDATA[<script type="text/javascript">
//<![CDATA[
function sayHello() {
@@ -124,7 +124,7 @@
responsible for prompting the user for their name and then making a remote request. Take a look at the following
line: </para>
- <programlisting role="XHTML">Seam.Component.getInstance("helloAction").sayHello(name, sayHelloCallback);</programlisting>
+ <programlisting>Seam.Component.getInstance("helloAction").sayHello(name, sayHelloCallback);</programlisting>
<para> The first section of this line, <literal>Seam.Component.getInstance("helloAction")</literal> returns a
proxy, or <emphasis>stub</emphasis> for our <literal>helloAction</literal> component. We can invoke the methods of our component
@@ -159,7 +159,7 @@
method will have the same getter/setter methods as its server-side counterpart, or alternatively if you wish
you can access its fields directly. Take the following Seam entity component for example: </para>
- <programlisting role="JAVA">@Name("customer")
+ <programlisting>@Name("customer")
@Entity
public class Customer implements Serializable
{
@@ -194,11 +194,11 @@
<para> To create a client-side Customer you would write the following code: </para>
- <programlisting role="XHTML">var customer = Seam.Component.newInstance("customer");</programlisting>
+ <programlisting>var customer = Seam.Component.newInstance("customer");</programlisting>
<para> Then from here you can set the fields of the customer object: </para>
- <programlisting role="XHTML">customer.setFirstName("John");
+ <programlisting>customer.setFirstName("John");
// Or you can set the fields directly
customer.lastName = "Smith";</programlisting>
@@ -216,7 +216,7 @@
to save it, we would pass it to the <literal>saveCustomer()</literal> method of our
<literal>customerAction</literal> component: </para>
- <programlisting role="XHTML">Seam.Component.getInstance("customerAction").saveCustomer(customer);</programlisting>
+ <programlisting>Seam.Component.getInstance("customerAction").saveCustomer(customer);</programlisting>
</section>
<section>
@@ -225,7 +225,7 @@
<para> Passing an object into this method will return its component name if it is a component, or
<literal>null</literal> if it is not. </para>
- <programlisting role="XHTML">if (Seam.Component.getComponentName(instance) == "customer")
+ <programlisting>if (Seam.Component.getComponentName(instance) == "customer")
alert("Customer");
else if (Seam.Component.getComponentName(instance) == "staff")
alert("Staff member");</programlisting>
@@ -248,7 +248,7 @@
<literal>createType()</literal> method to create an instance of your type. Pass in the fully qualified Java
class name as a parameter: </para>
- <programlisting role="XHTML">var widget = Seam.Remoting.createType("com.acme.widgets.MyWidget");</programlisting>
+ <programlisting>var widget = Seam.Remoting.createType("com.acme.widgets.MyWidget");</programlisting>
</section>
<section>
@@ -272,7 +272,7 @@
value of the expression. Here's an example:
</para>
- <programlisting role="XHTML"><![CDATA[ function customersCallback(customers) {
+ <programlisting><![CDATA[ function customersCallback(customers) {
for (var i = 0; i < customers.length; i++) {
alert("Got customer: " + customers[i].getName());
}
@@ -289,7 +289,7 @@
it is required to import the <literal>customer</literal> type:
</para>
- <programlisting role="XHTML"><![CDATA[<s:remote include="customer"/>]]></programlisting>
+ <programlisting><![CDATA[<s:remote include="customer"/>]]></programlisting>
</section>
<section>
@@ -300,10 +300,10 @@
tag:
</para>
- <programlisting role="XHTML"><![CDATA[<script type="text/javascript"
+ <programlisting><![CDATA[<script type="text/javascript"
src="seam/resource/remoting/interface.js?customerAction"></script>]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<s:remote include="customerAction"/>]]></programlisting>
+ <programlisting><![CDATA[<s:remote include="customerAction"/>]]></programlisting>
<para> By including this script in our page, the interface definitions for our component, plus any other components
or types that are required to execute the methods of our component are generated and made available for the
@@ -351,7 +351,7 @@
of the view before making the remote call. This small snippet of JavaScript will set the
conversation ID that is used for remoting calls to the current view's conversation ID: </para>
- <programlisting role="XHTML"><![CDATA[Seam.Remoting.getContext().setConversationId( #{conversation.id} );]]></programlisting>
+ <programlisting><![CDATA[Seam.Remoting.getContext().setConversationId( #{conversation.id} );]]></programlisting>
</section>
</section>
@@ -421,7 +421,7 @@
section. In some situations you may have a component method where the exact parameter type cannot be determined,
such as: </para>
- <programlisting role="JAVA">@Name("myAction")
+ <programlisting>@Name("myAction")
public class MyAction implements MyActionLocal {
public void doSomethingWithObject(Object obj) {
// code
@@ -433,7 +433,7 @@
referenced by any of its methods. To get around this, <literal>MyWidget</literal> needs to be explicitly
imported: </para>
- <programlisting role="XHTML"><![CDATA[<s:remote include="myAction,myWidget"/>]]></programlisting>
+ <programlisting><![CDATA[<s:remote include="myAction,myWidget"/>]]></programlisting>
<para> This will then allow a <literal>myWidget</literal> object to be created with
<literal>Seam.Component.newInstance("myWidget")</literal>, which can then be passed to
@@ -456,7 +456,7 @@
<para> On the client side, enums are treated the same as Strings. When setting the value for an enum parameter,
simply use the String representation of the enum. Take the following component as an example: </para>
- <programlisting role="JAVA">@Name("paintAction")
+ <programlisting>@Name("paintAction")
public class paintAction implements paintLocal {
public enum Color {red, green, blue, yellow, orange, purple};
@@ -468,7 +468,7 @@
<para> To call the <literal>paint()</literal> method with the color <literal>red</literal>, pass the parameter
value as a String literal: </para>
- <programlisting role="XHTML">Seam.Component.getInstance("paintAction").paint("red");</programlisting>
+ <programlisting>Seam.Component.getInstance("paintAction").paint("red");</programlisting>
<para> The inverse is also true - that is, if a component method returns an enum parameter (or contains an enum
field anywhere in the returned object graph) then on the client-side it will be represented as a String. </para>
@@ -495,7 +495,7 @@
the Seam Remoting framework. To create a Map which can be used as a parameter to a remote call, create a new
<literal>Seam.Remoting.Map</literal> object: </para>
- <programlisting role="XHTML">var map = new Seam.Remoting.Map();</programlisting>
+ <programlisting>var map = new Seam.Remoting.Map();</programlisting>
<para> This Javascript implementation provides basic methods for working with Maps: <literal>size()</literal>,
<literal>isEmpty()</literal>, <literal>keySet()</literal>, <literal>values()</literal>,
@@ -514,7 +514,7 @@
the packets send back and forth between the client and server in a popup window. To enable debug mode, either
execute the <literal>setDebug()</literal> method in Javascript: </para>
- <programlisting role="XHTML">Seam.Remoting.setDebug(true);</programlisting>
+ <programlisting>Seam.Remoting.setDebug(true);</programlisting>
<para> Or configure it via components.xml: </para>
@@ -536,7 +536,7 @@
<para> To change the message from the default <emphasis>Please Wait...</emphasis> to something different, set the value of
<literal>Seam.Remoting.loadingMessage</literal>: </para>
- <programlisting role="XHTML">Seam.Remoting.loadingMessage = "Loading..."; </programlisting>
+ <programlisting>Seam.Remoting.loadingMessage = "Loading..."; </programlisting>
</section>
<section>
@@ -546,7 +546,7 @@
<literal>displayLoadingMessage()</literal> and <literal>hideLoadingMessage()</literal> with functions that
instead do nothing: </para>
- <programlisting role="XHTML">// don't display the loading indicator
+ <programlisting>// don't display the loading indicator
Seam.Remoting.displayLoadingMessage = function() {};
Seam.Remoting.hideLoadingMessage = function() {};</programlisting>
</section>
@@ -558,7 +558,7 @@
you want. To do this override the <literal>displayLoadingMessage()</literal> and
<literal>hideLoadingMessage()</literal> messages with your own implementation: </para>
- <programlisting role="XHTML"> Seam.Remoting.displayLoadingMessage = function() {
+ <programlisting> Seam.Remoting.displayLoadingMessage = function() {
// Write code here to display the indicator
};
@@ -586,7 +586,7 @@
<para> For all our examples, we'll use the following <literal>Widget</literal> class: </para>
- <programlisting role="JAVA">@Name("widget")
+ <programlisting>@Name("widget")
public class Widget
{
private String value;
@@ -604,7 +604,7 @@
<para> If your remote method returns an instance of <literal>Widget</literal>, but you don't want to expose the
<literal>secret</literal> field because it contains sensitive information, you would constrain it like this: </para>
- <programlisting role="JAVA">@WebRemote(exclude = {"secret"})
+ <programlisting>@WebRemote(exclude = {"secret"})
public Widget getWidget(); </programlisting>
<para> The value "secret" refers to the <literal>secret</literal> field of the returned object. Now, suppose that
@@ -614,7 +614,7 @@
value instead? We can do this by using dot notation to specify this field's path within the result's object
graph: </para>
- <programlisting role="JAVA">@WebRemote(exclude = {"child.secret"})
+ <programlisting>@WebRemote(exclude = {"child.secret"})
public Widget getWidget();</programlisting>
</section>
@@ -629,7 +629,7 @@
<literal>secret</literal> field of the <literal>Widget</literal>s in this list the annotation would look like
this: </para>
- <programlisting role="JAVA">@WebRemote(exclude = {"widgetList.secret"})
+ <programlisting>@WebRemote(exclude = {"widgetList.secret"})
public Widget getWidget();</programlisting>
<para> To constrain a <literal>Map</literal>'s key or value, the notation is slightly different. Appending
@@ -638,7 +638,7 @@
values. The following example demonstrates how the values of the <literal>widgetMap</literal> field have their
<literal>secret</literal> field constrained: </para>
- <programlisting role="JAVA">@WebRemote(exclude = {"widgetMap[value].secret"})
+ <programlisting>@WebRemote(exclude = {"widgetMap[value].secret"})
public Widget getWidget(); </programlisting>
</section>
@@ -650,7 +650,7 @@
Seam component) or the fully qualified class name (only if the object is not a Seam component) and is expressed
using square brackets: </para>
- <programlisting role="JAVA">@WebRemote(exclude = {"[widget].secret"})
+ <programlisting>@WebRemote(exclude = {"[widget].secret"})
public Widget getWidget(); </programlisting>
</section>
@@ -660,7 +660,7 @@
<para> Constraints can also be combined, to filter objects from multiple paths within the object graph: </para>
- <programlisting role="JAVA">@WebRemote(exclude = {"widgetList.secret", "widgetMap[value].secret"})
+ <programlisting>@WebRemote(exclude = {"widgetList.secret", "widgetMap[value].secret"})
public Widget getWidget();</programlisting>
</section>
@@ -690,7 +690,7 @@
<para> The following example demonstrates how to subscribe to a JMS Topic: </para>
- <programlisting role="XHTML">function subscriptionCallback(message)
+ <programlisting>function subscriptionCallback(message)
{
if (message instanceof Seam.Remoting.TextMessage)
alert("Received message: " + message.getText());
@@ -716,7 +716,7 @@
<para> To unsubscribe from a topic, call <literal>Seam.Remoting.unsubscribe()</literal> and pass in the topic
name: </para>
- <programlisting role="XHTML">Seam.Remoting.unsubscribe("topicName");</programlisting>
+ <programlisting>Seam.Remoting.unsubscribe("topicName");</programlisting>
</section>
<section>
@@ -746,7 +746,7 @@
<para> Via JavaScript: </para>
- <programlisting role="XHTML">// Only wait 1 second between receiving a poll response and sending the next poll request.
+ <programlisting>// Only wait 1 second between receiving a poll response and sending the next poll request.
Seam.Remoting.pollInterval = 1;
// Wait up to 5 seconds on the server for new messages
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Security.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Security.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Security.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -167,7 +167,7 @@
inside a JavaBean component:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("authenticator")
+ <programlisting><![CDATA[@Name("authenticator")
public class Authenticator {
@In EntityManager entityManager;
@@ -249,7 +249,7 @@
<literal>org.jboss.seam.security.loginSuccessful</literal> event, like this:
</para>
- <programlisting role="JAVA"><![CDATA[ @In UserStats userStats;
+ <programlisting><![CDATA[ @In UserStats userStats;
@Observer("org.jboss.seam.security.loginSuccessful")
public void updateUserStats()
@@ -272,7 +272,7 @@
Here's an example of a simple login form:
</para>
- <programlisting role="XHTML"><![CDATA[<div>
+ <programlisting><![CDATA[<div>
<h:outputLabel for="name" value="Username"/>
<h:inputText id="name" value="#{identity.username}"/>
</div>
@@ -460,7 +460,7 @@
against the digest request. Here is an example:
</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
public boolean authenticate()
{
try
@@ -654,7 +654,7 @@
Take for example the following component method:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("account")
+ <programlisting><![CDATA[@Name("account")
public class AccountAction {
@Restrict public void delete() {
...
@@ -668,7 +668,7 @@
another example:
</para>
- <programlisting role="JAVA"><![CDATA[@Restrict @Name("account")
+ <programlisting><![CDATA[@Restrict @Name("account")
public class AccountAction {
public void insert() {
...
@@ -700,7 +700,7 @@
object instance. Look at this example:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("account")
+ <programlisting><![CDATA[@Name("account")
public class AccountAction {
@In Account selectedAccount;
@Restrict("#{s:hasPermission('account','modify',selectedAccount)}")
@@ -726,7 +726,7 @@
<literal>Identity.checkRestriction()</literal> to evaluate a security expression, like this:
</para>
- <programlisting role="JAVA"><![CDATA[public void deleteCustomer() {
+ <programlisting><![CDATA[public void deleteCustomer() {
Identity.instance().checkRestriction("#{s:hasPermission('customer','delete',selectedCustomer)}");
}]]></programlisting>
@@ -754,7 +754,7 @@
methods directly from Java code:
</para>
- <programlisting role="JAVA"><![CDATA[if (!Identity.instance().hasRole("admin"))
+ <programlisting><![CDATA[if (!Identity.instance().hasRole("admin"))
throw new AuthorizationException("Must be admin to perform this action");
if (!Identity.instance().hasPermission("customer", "create", null))
@@ -779,7 +779,7 @@
<literal>identity.isLoggedIn()</literal> property, we can write this:
</para>
- <programlisting role="XHTML"><![CDATA[<h:form class="loginForm" rendered="#{not identity.loggedIn}">]]></programlisting>
+ <programlisting><![CDATA[<h:form class="loginForm" rendered="#{not identity.loggedIn}">]]></programlisting>
<para>
If the user isn't logged in, then the login form will be rendered - very straight forward so far.
@@ -787,7 +787,7 @@
to users in the <literal>manager</literal> role. Here's one way that these could be written:
</para>
- <programlisting role="XHTML"><![CDATA[<h:outputLink action="#{reports.listManagerReports}" rendered="#{s:hasRole('manager')}">
+ <programlisting><![CDATA[<h:outputLink action="#{reports.listManagerReports}" rendered="#{s:hasRole('manager')}">
Manager Reports
</h:outputLink>]]></programlisting>
@@ -806,7 +806,7 @@
for that object or not. Here's how a dataTable with secured links might look:
</para>
- <programlisting role="XHTML"><![CDATA[<h:dataTable value="#{clients}" var="cl">
+ <programlisting><![CDATA[<h:dataTable value="#{clients}" var="cl">
<h:column>
<f:facet name="header">Name</f:facet>
#{cl.name}
@@ -872,7 +872,7 @@
itself:
</para>
- <programlisting role="JAVA"><![CDATA[@Entity
+ <programlisting><![CDATA[@Entity
@Name("customer")
@Restrict
public class Customer {
@@ -925,7 +925,7 @@
security is how it is annotated:
</para>
- <programlisting role="JAVA"><![CDATA[
+ <programlisting><![CDATA[
@PrePersist @Restrict
public void prePersist() {}
]]></programlisting>
@@ -1260,7 +1260,7 @@
link will use the HTTPS protocol because <literal>/login.xhtml</literal> is configured to use it:
</para>
- <programlisting role="XHTML"><![CDATA[<s:link view="/login.xhtml" value="Login"/>]]></programlisting>
+ <programlisting><![CDATA[<s:link view="/login.xhtml" value="Login"/>]]></programlisting>
<para>
Browsing directly to a view when using the <emphasis>incorrect</emphasis> protocol will cause a
@@ -1335,7 +1335,7 @@
Adding a CAPTCHA challenge to a form is extremely easy. Here's an example:
</para>
- <programlisting role="XHTML"><![CDATA[<h:graphicImage value="/seam/resource/captcha"/>
+ <programlisting><![CDATA[<h:graphicImage value="/seam/resource/captcha"/>
<h:inputText id="verifyCaptcha" value="#{captcha.response}" required="true">
<s:validate />
</h:inputText>
@@ -1356,7 +1356,7 @@
You may customize the CAPTCHA algorithm by overriding the built-in component:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("org.jboss.seam.captcha")
+ <programlisting><![CDATA[@Name("org.jboss.seam.captcha")
@Scope(SESSION)
public class HitchhikersCaptcha extends Captcha
{
@@ -1550,7 +1550,7 @@
code that will be executed with the elevated privileges.
</para>
- <programlisting role="JAVA"><![CDATA[ new RunAsOperation() {
+ <programlisting><![CDATA[ new RunAsOperation() {
@Override
public String[] getRoles() {
return new String[] { "admin" };
@@ -1588,7 +1588,7 @@
ensures that this extended Identity gets installed in preference to the built-in Identity.
</para>
- <programlisting role="JAVA"><![CDATA[@Name("org.jboss.seam.security.identity")
+ <programlisting><![CDATA[@Name("org.jboss.seam.security.identity")
@Scope(SESSION)
@Install(precedence = APPLICATION)
@BypassInterceptors
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Spring.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Spring.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Spring.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -142,7 +142,7 @@
<para> Then you can inject Spring beans using <literal>@In</literal>: </para>
- <programlisting role="JAVA"><![CDATA[@In("#{bookingService}")
+ <programlisting><![CDATA[@In("#{bookingService}")
private BookingService bookingService;]]></programlisting>
<para>The use of Spring beans in EL is not limited to injection. Spring beans may be used anywhere that EL
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Testing.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Testing.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Testing.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -25,7 +25,7 @@
account for a customer:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@Scope(EVENT)
@Name("statementOfAccount")
public class StatementOfAccount {
@@ -64,7 +64,7 @@
the business logic of the component) as follows:
</para>
- <programlisting role="JAVA"><![CDATA[public class StatementOfAccountTest {
+ <programlisting><![CDATA[public class StatementOfAccountTest {
@Test
public testCalculateTotal {
@@ -107,7 +107,7 @@
JDK 1.5 and does not work with JDK 1.6).
</para>
-<programlisting role="JAVA"><![CDATA[public class RegisterTest extends SeamTest
+<programlisting><![CDATA[public class RegisterTest extends SeamTest
{
@Test
@@ -146,7 +146,7 @@
Seam component which is a facade to some payment processing system:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("paymentProcessor")
+ <programlisting><![CDATA[@Name("paymentProcessor")
public class PaymentProcessor {
public boolean processPayment(Payment payment) { .... }
}]]></programlisting>
@@ -155,7 +155,7 @@
For integration tests, we can mock out this component as follows:
</para>
- <programlisting role="JAVA"><![CDATA[@Name("paymentProcessor")
+ <programlisting><![CDATA[@Name("paymentProcessor")
@Install(precedence=MOCK)
public class MockPaymentProcessor extends PaymentProcessor {
public boolean processPayment(Payment payment) {
@@ -200,7 +200,7 @@
Let us consider a JSP view for the component we unit tested above:
</para>
- <programlisting role="XHTML"><![CDATA[<html>
+ <programlisting><![CDATA[<html>
<head>
<title>Register New User</title>
</head>
@@ -234,7 +234,7 @@
request lifecycle in an automated TestNG test:
</para>
-<programlisting role="JAVA"><![CDATA[public class RegisterTest extends SeamTest
+<programlisting><![CDATA[public class RegisterTest extends SeamTest
{
@Test
@@ -553,7 +553,7 @@
and tell Seam about it by overriding <literal>prepareDBUnitOperations()</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[protected void prepareDBUnitOperations() {
+ <programlisting><![CDATA[protected void prepareDBUnitOperations() {
beforeTestOperations.add(
new DataSetOperation("my/datasets/BaseData.xml")
);
@@ -601,7 +601,7 @@
It is very easy to integration test your Seam Mail:
</para>
- <programlisting role="JAVA"><![CDATA[public class MailTest extends SeamTest {
+ <programlisting><![CDATA[public class MailTest extends SeamTest {
@Test
public void testSimpleMessage() throws Exception {
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Text.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Text.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Text.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -23,7 +23,7 @@
the following HTML produced:
</para>
- <programlisting role="XHTML"><![CDATA[<p>
+ <programlisting><![CDATA[<p>
It's easy to make <i>emphasis</i>, <tt>monospace</tt>
<del>deleted text</del>, super<sup>scripts</sup> or <u>underlines</u>.
</p>]]></programlisting>
@@ -47,7 +47,7 @@
This is the HTML that results:
</para>
- <programlisting role="XHTML"><![CDATA[<h1>This is a big heading</h1>
+ <programlisting><![CDATA[<h1>This is a big heading</h1>
<p>
You <i>must</i> have some text following a heading!
</p>
@@ -78,7 +78,7 @@
=an item
=another item]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<p>
+ <programlisting><![CDATA[<p>
An ordered list:
</p>
@@ -108,7 +108,7 @@
But what do you think he means by "nyeah-nee"?]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<p>
+ <programlisting><![CDATA[<p>
The other guy said:
</p>
@@ -133,7 +133,7 @@
<programlisting><![CDATA[You can write down equations like 2\*3\=6 and HTML tags
like \<body\> using the escape character: \\.]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<p>
+ <programlisting><![CDATA[<p>
You can write down equations like 2*3=6 and HTML tags
like <body> using the escape character: \.
</p>]]></programlisting>
@@ -151,7 +151,7 @@
Any ideas?]]></programlisting>
- <programlisting role="XHTML"><![CDATA[<p>
+ <programlisting><![CDATA[<p>
My code doesn't work:
</p>
@@ -208,14 +208,14 @@
to be safe from cross-site scripting attacks). This is useful for creating links:
</para>
- <programlisting role="XHTML"><![CDATA[You might want to link to <a href="http://jboss.com/products/seam">something
+ <programlisting><![CDATA[You might want to link to <a href="http://jboss.com/products/seam">something
cool</a>, or even include an image: <img src="/logo.jpg"/>]]></programlisting>
<para>
And for creating tables:
</para>
- <programlisting role="XHTML"><![CDATA[<table>
+ <programlisting><![CDATA[<table>
<tr><td>First name:</td><td>Gavin</td></tr>
<tr><td>Last name:</td><td>King</td></tr>
</table>]]></programlisting>
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Tutorial.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Tutorial.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Tutorial.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -143,7 +143,7 @@
<!-- Can't use code hightlighting with callouts -->
<!-- <example>
<title></title> -->
- <programlisting role="JAVA">
+ <programlisting>
@Entity <co id="registration-entity-annotation"/>
@Name("user")
@Scope(SESSION)
@@ -374,7 +374,7 @@
<para>Naturally, our session bean needs a local interface.</para>
<!-- <example><title></title> -->
- <programlisting role="JAVA">
+ <programlisting>
@Local
public interface Register
{
@@ -585,7 +585,7 @@
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -623,7 +623,7 @@
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"xmlns:f="http://java.sun.com/jsf/core">
@@ -748,7 +748,7 @@
<!-- <example>
<title></title> -->
- <programlisting role="JAVA">
+ <programlisting>
@Entity
@Name("message")
@Scope(EVENT)
@@ -917,7 +917,7 @@
<para> All session beans have a business interface, of course. </para>
- <programlisting role="JAVA">
+ <programlisting>
@Local
public interface MessageManager
{
@@ -943,7 +943,7 @@
component. Again, nothing specific to Seam. </para>
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<html>
@@ -1116,7 +1116,7 @@
would also need to authenticate the user.) </para>
<!-- <example>
<title></title> -->
- <programlisting role="JAVA">
+ <programlisting>
@Name("login")
public class Login {
@@ -1147,7 +1147,7 @@
<para> The JSP itself is trivial: </para>
- <programlisting role="XHTML">
+ <programlisting>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<html>
@@ -1216,7 +1216,7 @@
<para> Finally, the meat of the application is in <literal>todo.jsp</literal>: </para>
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://jboss.com/products/seam/taglib" prefix="s" %>
@@ -1291,7 +1291,7 @@
<literal>taskInstanceList</literal>. The list is defined inside a JSF form. </para>
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<h:form id="list">
<div>
<h:outputText value="There are no todo items." rendered="#{empty taskInstanceList}"/>
@@ -1307,7 +1307,7 @@
following code simply displays the interesting properties of each task in the list. For the description,
priority and due date, we use input controls, to allow the user to update these values. </para>
- <programlisting role="XHTML">
+ <programlisting>
<h:column>
<f:facet name="header">
<h:outputText value="Description"/>
@@ -1341,7 +1341,7 @@
<para> This button ends the task by calling the action method annotated <literal>@StartTask
@EndTask</literal>. It passes the task id to Seam as a request parameter: </para>
- <programlisting role="XHTML">
+ <programlisting>
<h:column>
<s:button value="Done" action="#{todoList.done}" taskInstance="#{task}"/>
</h:column></programlisting>
@@ -1352,14 +1352,14 @@
<para> This button is used to update the properties of the tasks. When the form is submitted, Seam and jBPM
will make any changes to the tasks persistent. There is no need for any action listener method: </para>
- <programlisting role="XHTML">
+ <programlisting>
<h:commandButton value="Update Items" action="update"/>
</programlisting>
<para> A second form on the page is used to create new items, by calling the action method annotated
<literal>@CreateProcess</literal>. </para>
- <programlisting role="XHTML">
+ <programlisting>
<h:form id="new">
<div>
<h:inputText value="#{todoList.description}"/>
@@ -1487,7 +1487,7 @@
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<?xml version="1.0"?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:h="http://java.sun.com/jsf/html"
@@ -2287,7 +2287,7 @@
<literal><s:link></literal> control for navigation from the search screen to the hotel
page: </para>
- <programlisting role="JAVA">
+ <programlisting>
<s:link value="View Hotel" action="#{hotelBooking.selectHotel(hot)}"/>
</programlisting>
@@ -2416,7 +2416,7 @@
entries: </para>
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<h:dataTable value="#{blog.recentBlogEntries}" var="blogEntry" rows="3">
<h:column>
<div class="blogEntry">
@@ -2503,7 +2503,7 @@
template, <literal>template.xhtml</literal>: </para>
<!-- <example>
<title></title> -->
- <programlisting role="XHTML">
+ <programlisting>
<div id="search">
<h:form>
<h:inputText value="#{searchAction.searchPattern}"/>
@@ -2530,7 +2530,7 @@
<para> Then the form would have looked like this: </para>
- <programlisting role="XHTML">
+ <programlisting>
<div id="search">
<h:form>
<h:inputText value="#{searchAction.searchPattern}"/>
@@ -2563,7 +2563,7 @@
<para> The redirect takes us to the <literal>search.xhtml</literal> page: </para>
- <programlisting role="XHTML">
+ <programlisting>
<h:dataTable value="#{searchResults}" var="blogEntry">
<h:column>
<div>
@@ -2583,7 +2583,7 @@
<para> Which again uses "pull"-style MVC to retrieve the actual search results: </para>
- <programlisting role="JAVA">
+ <programlisting>
@Name("searchService")
public class SearchService
{
@@ -2643,7 +2643,7 @@
<para> The <literal>entryAction</literal> component works much like an action class in a traditional
push-MVC action-oriented framework like Struts: </para>
- <programlisting role="JAVA">
+ <programlisting>
@Name("entryAction")
@Scope(STATELESS)
public class EntryAction
@@ -2686,7 +2686,7 @@
data—the <literal>blogEntry</literal>—and places it in the Seam event context.
Finally, the following is rendered: </para>
- <programlisting role="XHTML">
+ <programlisting>
<div class="blogEntry">
<h3>#{blogEntry.title}</h3>
<div>
@@ -2707,7 +2707,7 @@
exception is thrown. We want this exception to result in a 404 error, not a 505, so we annotate the
exception class: </para>
- <programlisting role="JAVA">
+ <programlisting>
@ApplicationException(rollback=true)
@HttpError(errorCode=HttpServletResponse.SC_NOT_FOUND)
public class EntryNotFoundException extends Exception
@@ -2721,7 +2721,7 @@
<para> An alternative implementation of the example does not use the parameter in the method binding: </para>
- <programlisting role="JAVA">
+ <programlisting>
@Name("entryAction")
@Scope(STATELESS)
public class EntryAction
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Validation.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Validation.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Validation.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -4,7 +4,7 @@
In plain JSF, validation is defined in the view:
</para>
- <programlisting role="XHTML"><![CDATA[<h:form>
+ <programlisting><![CDATA[<h:form>
<h:messages/>
<div>
@@ -37,7 +37,7 @@
<literal>Location</literal> class:
</para>
- <programlisting role="JAVA"><![CDATA[public class Location {
+ <programlisting><![CDATA[public class Location {
private String country;
private String zip;
@@ -59,7 +59,7 @@
built into Hibernate Validator:
</para>
- <programlisting role="JAVA"><![CDATA[public class Location {
+ <programlisting><![CDATA[public class Location {
private String country;
private String zip;
@@ -81,7 +81,7 @@
against the constraint defined on the model object.
</para>
- <programlisting role="XHTML"><![CDATA[<h:form>
+ <programlisting><![CDATA[<h:form>
<h:messages/>
<div>
@@ -122,7 +122,7 @@
so let's try <literal><s:validateAll></literal>:
</para>
- <programlisting role="XHTML"><![CDATA[<h:form>
+ <programlisting><![CDATA[<h:form>
<h:messages/>
@@ -171,7 +171,7 @@
layout in a facelets template:
</para>
- <programlisting role="XHTML"><![CDATA[<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ <programlisting><![CDATA[<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
@@ -202,7 +202,7 @@
<literal><s:decorate></literal>.
</para>
- <programlisting role="XHTML"><![CDATA[<h:form>
+ <programlisting><![CDATA[<h:form>
<h:messages globalOnly="true"/>
@@ -225,7 +225,7 @@
is navigating around the form:
</para>
- <programlisting role="XHTML"><![CDATA[<h:form>
+ <programlisting><![CDATA[<h:form>
<h:messages globalOnly="true"/>
@@ -256,7 +256,7 @@
anything on the page.
</para>
- <programlisting role="XHTML"><![CDATA[<h:form id="form">
+ <programlisting><![CDATA[<h:form id="form">
<h:messages globalOnly="true"/>
@@ -285,7 +285,7 @@
and per-view message bundles) with the Hibernate Validator:
</para>
-<programlisting role="JAVA"><![CDATA[public class Location {
+<programlisting><![CDATA[public class Location {
private String name;
private String zip;
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Webservices.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Webservices.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Webservices.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -126,7 +126,7 @@
service methods:
</para>
- <programlisting role="JAVA"><![CDATA[@Stateless
+ <programlisting><![CDATA[@Stateless
@WebService(name = "AuctionService", serviceName = "AuctionService")
public class AuctionService implements AuctionServiceRemote
{
@@ -170,7 +170,7 @@
<literal>AuctionAction.createAuction()</literal> method:
</para>
- <programlisting role="JAVA"><![CDATA[ @WebMethod
+ <programlisting><![CDATA[ @WebMethod
public void createAuction(String title, String description, int categoryId)
{
AuctionAction action = (AuctionAction) Component.getInstance(AuctionAction.class, true);
@@ -182,7 +182,7 @@
And here is the code from <literal>AuctionAction</literal>:
</para>
- <programlisting role="JAVA"><![CDATA[ @Begin
+ <programlisting><![CDATA[ @Begin
public void createAuction()
{
auction = new Auction();
Modified: projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Xml.xml
===================================================================
--- projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Xml.xml 2010-04-13 06:22:29 UTC (rev 103886)
+++ projects/docs/enterprise/4.3.8/Seam2_Reference_Guide/en-US/Xml.xml 2010-04-13 06:32:20 UTC (rev 103887)
@@ -407,7 +407,7 @@
<literal>package-info.java</literal> in the package directory.) Here is an example from the seampay demo:
</para>
- <programlisting role="JAVA">@Namespace(value="http://jboss.com/products/seam/examples/seampay")
+ <programlisting>@Namespace(value="http://jboss.com/products/seam/examples/seampay")
package org.jboss.seam.example.seampay;
import org.jboss.seam.annotations.Namespace;</programlisting>
@@ -458,7 +458,7 @@
component:
</para>
- <programlisting role="JAVA"><![CDATA[package org.jboss.seam.example.seampay;
+ <programlisting><![CDATA[package org.jboss.seam.example.seampay;
...
@Name("paymentHome")
public class PaymentController
@@ -478,7 +478,7 @@
In this case <literal>Payment</literal> is an entity that is being declared as a Seam component:
</para>
- <programlisting role="JAVA"><![CDATA[package org.jboss.seam.example.seampay;
+ <programlisting><![CDATA[package org.jboss.seam.example.seampay;
...
@Entity
public class Payment
More information about the jboss-cvs-commits
mailing list