Author: nico.ben
Date: 2008-12-20 08:02:58 -0500 (Sat, 20 Dec 2008)
New Revision: 617
Modified:
doc/trunk/reference/it-IT/modules/decorators.po
doc/trunk/reference/it-IT/modules/ee.po
doc/trunk/reference/it-IT/modules/example.po
doc/trunk/reference/it-IT/modules/extend.po
doc/trunk/reference/it-IT/modules/next.po
doc/trunk/reference/it-IT/modules/ri.po
Log:
WBRI-69: Italian translation for Web Beans
Modified: doc/trunk/reference/it-IT/modules/decorators.po
===================================================================
--- doc/trunk/reference/it-IT/modules/decorators.po 2008-12-20 12:33:46 UTC (rev 616)
+++ doc/trunk/reference/it-IT/modules/decorators.po 2008-12-20 13:02:58 UTC (rev 617)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-20 00:39+0100\n"
+"PO-Revision-Date: 2008-12-20 13:48+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -124,7 +124,7 @@
#: decorators.xml:37
#, no-c-format
msgid "Unlike other simple Web Beans, a decorator may be an abstract class. If
there's nothing special the decorator needs to do for a particular method of the
decorated interface, you don't need to implement that method."
-msgstr ""
+msgstr "Diversamente dai semplici Web Beans, un decoratore può essere una classe
astratta. Se un decoratore non ha niente da fare per un particolare metodo, allora non
occorre implementare quel metodo."
#. Tag: title
#: decorators.xml:43
@@ -136,7 +136,7 @@
#: decorators.xml:45
#, no-c-format
msgid "All decorators have a <emphasis>delegate attribute</emphasis>.
The type and binding types of the delegate attribute determine which Web Beans the
decorator is bound to. The delegate attribute type must implement or extend all interfaces
implemented by the decorator."
-msgstr ""
+msgstr "Tutti i decoratori hanno un <emphasis>attributo
delegato</emphasis>. Il tipo ed i tipi di binding dell'attributo delegato
determinano a quali Web Beans è legato il decoratore. Il tipo di attributo delegato deve
implementare o estendere tutte le interfacce implementate dal decoratore."
#. Tag: para
#: decorators.xml:50
@@ -150,11 +150,13 @@
msgid "<![CDATA[@Decorates Account account;]]>"
msgstr "<![CDATA[@Decorates Account account;]]>"
+# E' corretto tradurre BOUND con LEGATO in questo particolare contesto?
+# ....rivedere alcune frasi sopra.
#. Tag: para
#: decorators.xml:55
#, no-c-format
msgid "A delegate attribute may specify a binding annotation. Then the decorator
will only be bound to Web Beans with the same binding."
-msgstr ""
+msgstr "Un attributo delegato può specificare un'annotazione di binding. E
quindi il decoratore verrà associato a Web Beans con lo stesso binding."
#. Tag: programlisting
#: decorators.xml:58
@@ -184,7 +186,7 @@
#: decorators.xml:71
#, no-c-format
msgid "The decorator may invoke the delegate attribute, which has much the same
effect as calling <literal>InvocationContext.proceed()</literal> from an
interceptor."
-msgstr ""
+msgstr "Il decoratore può invocare l'attributo delegate, il ché ha lo stesso
effetto come chiamare <literal>InvocationContext.proceed()</literal> da un
interceptor."
#. Tag: title
#: decorators.xml:78
@@ -196,7 +198,7 @@
#: decorators.xml:80
#, no-c-format
msgid "We need to <emphasis>enable</emphasis> our decorator in
<literal>web-beans.xml</literal>."
-msgstr ""
+msgstr "Occorre <emphasis>abilitare</emphasis> il decoratore in
<literal>web-beans.xml</literal>."
#. Tag: programlisting
#: decorators.xml:83
@@ -210,11 +212,12 @@
" <myapp:LargeTransactionDecorator/>\n"
"</Decorators>]]>"
+# Rivedere la frase?
#. Tag: para
#: decorators.xml:85
#, no-c-format
msgid "This declaration serves the same purpose for decorators that the
<literal><Interceptors></literal> declaration serves for
interceptors:"
-msgstr ""
+msgstr "Per i decoratori questa dichiarazione provvede alle stesse finalità di
quanto la dichiarazione <literal><Interceptors></literal> fa per
gli interceptor."
#. Tag: para
#: decorators.xml:90
Modified: doc/trunk/reference/it-IT/modules/ee.po
===================================================================
--- doc/trunk/reference/it-IT/modules/ee.po 2008-12-20 12:33:46 UTC (rev 616)
+++ doc/trunk/reference/it-IT/modules/ee.po 2008-12-20 13:02:58 UTC (rev 617)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-20 00:09+0100\n"
+"PO-Revision-Date: 2008-12-20 13:47+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -23,7 +23,7 @@
#: ee.xml:6
#, no-c-format
msgid "Web Beans is fully integrated into the Java EE environment. Web Beans have
access to Java EE resources and JPA persistence contexts. They may be used in Unified EL
expressions in JSF and JSP pages. They may even be injected into some objects, such as
Servlets and Message-Driven Beans, which are not Web Beans."
-msgstr ""
+msgstr "Web Beans è pienamente integrata nell'ambiente Java EE. Web Beans ha
accesso alle risorse Java EE ed ai contesti di persistenza JPA. I Web Beans possono essere
usati in espressioni Unified EL dentro pagine JSF e JSP. Possono anche essere iniettati
negli oggetti, come Servlet e Message-Driven Beans, che non sono Web Beans."
#. Tag: title
#: ee.xml:12
@@ -35,7 +35,7 @@
#: ee.xml:14
#, no-c-format
msgid "All simple and enterprise Web Beans may take advantage of Java EE dependency
injection using <literal>@Resource</literal>,
<literal>@EJB</literal> and
<literal>@PersistenceContext</literal>. We've already seen a couple of
examples of this, though we didn't pay much attention at the time:"
-msgstr ""
+msgstr "Tutti i Web Beans sia semplici che enterprise si avvantaggiano della
dependency injection di Java EE usando <literal>@Resource</literal>,
<literal>@EJB</literal> e <literal>@PersistenceContext</literal>.
Abbiamo già visto un paio di esempi a riguardo, sebbene non ci siamo soffermati molto a
suo tempo."
#. Tag: programlisting
#: ee.xml:19
@@ -87,13 +87,13 @@
#: ee.xml:23
#, no-c-format
msgid "The Java EE <literal>@PostConstruct</literal> and
<literal>@PreDestroy</literal> callbacks are also supported for all simple and
enterprise Web Beans. The <literal>@PostConstruct</literal> method is called
after <emphasis>all</emphasis> injection has been performed."
-msgstr ""
+msgstr "Le chiamate Java EE <literal>@PostConstruct</literal> e
<literal>@PreDestroy</literal> vengono anche supportate per tutti i Web Beans
(semplici e enterprise). Il metodo <literal>@PostConstruct</literal> viene
chiamato dopo che <emphasis>tutta</emphasis> l'injection è stata
eseguita."
#. Tag: para
#: ee.xml:28
#, no-c-format
msgid "There is one restriction to be aware of here:
<literal>@PersistenceContext(type=EXTENDED)</literal> is not supported for
simple Web Beans."
-msgstr ""
+msgstr "C'è una restrizione di cui essere informati:
<literal>@PersistenceContext(type=EXTENDED)</literal> non è supportato per i
Web Beans semplici."
#. Tag: title
#: ee.xml:35
@@ -105,7 +105,7 @@
#: ee.xml:37
#, no-c-format
msgid "It's easy to use a Web Bean from a Servlet in Java EE 6. Simply inject
the Web Bean using Web Beans field or initializer method injection."
-msgstr ""
+msgstr "E' facile utilizzare i Web Beans da un Servlet in Java EE 6.
Semplicemente si inietti il Web Bean utilizzando l'injection del campo Web Bean o del
metodo inizializzatore."
#. Tag: programlisting
#: ee.xml:40
@@ -157,25 +157,26 @@
#: ee.xml:42
#, no-c-format
msgid "The Web Beans client proxy takes care of routing method invocations from the
Servlet to the correct instances of <literal>Credentials</literal> and
<literal>Login</literal> for the current request and HTTP session."
-msgstr ""
+msgstr "Il client proxy Web Beans si occupa di instradare le invocazioni dei metodi
da un Servlet alle corrette istanze di <literal>Credentials</literal> e
<literal>Login</literal> per la richiesta corrente e la sessione HTTP."
#. Tag: title
#: ee.xml:49
#, no-c-format
msgid "Calling a Web Bean from a Message-Driven Bean"
-msgstr ""
+msgstr "Chiamare un Web Bean da un Message-Driven Bean"
#. Tag: para
#: ee.xml:51
#, no-c-format
msgid "Web Beans injection applies to all EJBs, even when they aren't under the
control of the Web Bean manager (if they were obtained by direct JNDI lookup, or injection
using <literal>@EJB</literal>, for example. In particular, you can use Web
Beans injection in Message-Driven Beans, which are not considered Web Beans because you
can't inject them."
-msgstr ""
+msgstr "L'injection dei Web Beans si applica a tutti gli EJB3, perfino quando
non sono sotto il controllo del manager Web Bean (per esempio se sono stati ottenuti da
ricerca JNDI diretta, o injection usando <literal>@EJB</literal>) In
particolaresi può usare l'injection di Web Beans nei Message-Driven Beans, che non
sono considerati Web Beans poiché non possono essere iniettati."
+# Web Beans interceptor bindings =?
#. Tag: para
#: ee.xml:57
#, no-c-format
msgid "You can even use Web Beans interceptor bindings for Message-Driven
Beans."
-msgstr ""
+msgstr "Si possono perfino associare degli interceptor Web Beans ai Message-Driven
Beans."
#. Tag: programlisting
#: ee.xml:59
@@ -209,7 +210,7 @@
#: ee.xml:61
#, no-c-format
msgid "Thus, receiving messages is super-easy in a Web Beans environment. But beware
that there is no session or conversation context available when a message is delivered to
a Message-Driven Bean. Only <literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</literal> Web Beans are available."
-msgstr ""
+msgstr "Quindi ricevere i messaggi è veramente facile in ambiente Web Beans. Ma
attenzione che non è disponibile alcun contesto di sessione o conversazione quando il
messaggio viene consegnato al Message-Driven Bean. Solamente i Web Beans
<literal>@RequestScoped</literal> and
<literal>@ApplicationScoped</literal> sono disponibili."
#. Tag: para
#: ee.xml:66
@@ -227,13 +228,13 @@
#: ee.xml:73
#, no-c-format
msgid "Sending messages using JMS can be quite complex, because of the number of
different objects you need to deal with. For queues we have
<literal>Queue</literal>,
<literal>QueueConnectionFactory</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> and
<literal>QueueSender</literal>. For topics we have
<literal>Topic</literal>,
<literal>TopicConnectionFactory</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> and
<literal>TopicPublisher</literal>. Each of these objects has its own lifecycle
and threading model that we need to worry about."
-msgstr ""
+msgstr "La spedizione dei messaggi usando JMS può essere abbastanza complessa, a
causa del numero di oggetti differenti da trattare. Per le code si hanno
<literal>Queue</literal>,
<literal>QueueConnectionFactory</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> e <literal>QueueSender</literal>.
Per i topic si hanno <literal>Topic</literal>,
<literal>TopicConnectionFactory</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> e
<literal>TopicPublisher</literal>. Ciascuno di questi oggetti ha il proprio
ciclo di vita e modello di thread di cui bisogna (pre)occuparsi."
#. Tag: para
#: ee.xml:82
#, no-c-format
msgid "Web Beans takes care of all this for us. All we need to do is declare the
queue or topic in <literal>web-beans.xml</literal>, specifying an associated
binding type and connection factory."
-msgstr ""
+msgstr "I Web Beans si prendono cura di tutto questo per noi. Tutto ciò che occorre
fare è dichiarare la coda od il topic in <literal>web-beans.xml</literal>,
specificando un "
#. Tag: programlisting
#: ee.xml:86
@@ -271,7 +272,7 @@
#: ee.xml:90
#, no-c-format
msgid "Now we can just inject the <literal>Queue</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> or <literal>QueueSender</literal>
for a queue, or the <literal>Topic</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> or
<literal>TopicPublisher</literal> for a topic."
-msgstr ""
+msgstr "Ora è possibile iniettare <literal>Queue</literal>,
<literal>QueueConnection</literal>,
<literal>QueueSession</literal> o <literal>QueueSender</literal>
per una coda, oppure <literal>Topic</literal>,
<literal>TopicConnection</literal>,
<literal>TopicSession</literal> o
<literal>TopicPublisher</literal> per un topic."
#. Tag: programlisting
#: ee.xml:96
@@ -317,7 +318,7 @@
#: ee.xml:100
#, no-c-format
msgid "The lifecycle of the injected JMS objects are completely controlled by the
Web Bean manager."
-msgstr ""
+msgstr "Il ciclo di vita degli oggetti JMS iniettati è interamente controllato dal
manager Web Bean."
#. Tag: title
#: ee.xml:106
@@ -329,11 +330,11 @@
#: ee.xml:108
#, no-c-format
msgid "Web Beans doesn't define any special deployment archive. You can package
Web Beans in JARs, EJB-JARs or WARs—any deployment location in the application
classpath. However, each archive that contains Web Beans must include a file named
<literal>web-beans.xml</literal> in the
<literal>META-INF</literal> or <literal>WEB-INF</literal>
directory. The file may be empty. Web Beans deployed in archives that do not have a
<literal>web-beans.xml</literal> file will not be available for use in the
application."
-msgstr ""
+msgstr "Web Beans non definisce nessuno archivio speciale per il deploy. Si può
impacchettare i Web Beans in JAR, EJB-JAR o WAR—qualsiasi locazione di deploy nel
classpath dell'applicazione. Comunque ciascun archivio che contiene Web Beans devi
includere un file chiamato <literal>web-beans.xml</literal> nella directory
<literal>META-INF</literal> o <literal>WEB-INF</literal>. Il file
può essere vuoto. I Web Beans collocati negli archivi che non hanno un file
<literal>web-beans.xml</literal> non saranno disponibili per l'uso
nell'applicazione."
#. Tag: para
#: ee.xml:116
#, no-c-format
msgid "For Java SE execution, Web Beans may be deployed in any location in which
EJBs may be deployed for execution by the embeddable EJB Lite container. Again, each
location must contain a <literal>web-beans.xml</literal> file."
-msgstr ""
+msgstr "Per l'esecuzione in Java SE, Web Beans può essere deployato in un
qualsiasi posto nel quale gli EJB siano stati messi per essere eseguito da un embeddable
EJB Lite container. Di nuovo ogni locazioni deve contenere un file
<literal>web-beans.xml</literal>."
Modified: doc/trunk/reference/it-IT/modules/example.po
===================================================================
--- doc/trunk/reference/it-IT/modules/example.po 2008-12-20 12:33:46 UTC (rev 616)
+++ doc/trunk/reference/it-IT/modules/example.po 2008-12-20 13:02:58 UTC (rev 617)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 13:55+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,16 +17,13 @@
#: example.xml:4
#, no-c-format
msgid "JSF web application example"
-msgstr ""
+msgstr "Esempio di applicazione web JSF"
#. Tag: para
#: example.xml:6
#, no-c-format
-msgid ""
-"Let's illustrate these ideas with a full example. We're going to implement
"
-"user login/logout for an application that uses JSF. First, we'll define a
"
-"Web Bean to hold the username and password entered during login:"
-msgstr ""
+msgid "Let's illustrate these ideas with a full example. We're going to
implement user login/logout for an application that uses JSF. First, we'll define a
Web Bean to hold the username and password entered during login:"
+msgstr "Illustriamo queste idee con un esempio completo. Implementeremo il
login/logout dell'utente per un'applicazione che utilizza JSF. Innanzitutto
definiamo un Web Bean che mantenga username e password digitati durante il login:"
#. Tag: programlisting
#: example.xml:11
@@ -46,12 +43,25 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Named\n"
+"public class Credentials {\n"
+" \n"
+" private String username;\n"
+" private String password;\n"
+" \n"
+" public String getUsername() { return username; }\n"
+" public void setUsername(String username) { this.username = username; }\n"
+" \n"
+" public String getPassword() { return password; }\n"
+" public void setPassword(String password) { this.password = password; }\n"
+" \n"
+"}]]>"
#. Tag: para
#: example.xml:13
#, no-c-format
msgid "This Web Bean is bound to the login prompt in the following JSF form:"
-msgstr ""
+msgstr "Questo Web Bean è associato al login all'interno della seguente form
JSF:"
#. Tag: programlisting
#: example.xml:15
@@ -64,21 +74,26 @@
" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
" </h:panelGrid>\n"
-" <h:commandButton value=\"Login\"
action=\"#{login.login}\" rendered=\"#{!"
-"login.loggedIn}\"/>\n"
-" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#"
-"{login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Login\"
action=\"#{login.login}\"
rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
"</f:form]]>"
msgstr ""
+"<![CDATA[<f:form>\n"
+" <h:panelGrid columns=\"2\"
rendered=\"#{!login.loggedIn}\">\n"
+" <h:outputLabel
for=\"username\">Username:</h:outputLabel>\n"
+" <h:inputText id=\"username\"
value=\"#{credentials.username}\"/>\n"
+" <h:outputLabel
for=\"password\">Password:</h:outputLabel>\n"
+" <h:inputText id=\"password\"
value=\"#{credentials.password}\"/>\n"
+" </h:panelGrid>\n"
+" <h:commandButton value=\"Login\"
action=\"#{login.login}\"
rendered=\"#{!login.loggedIn}\"/>\n"
+" <h:commandButton value=\"Logout\"
acion=\"#{login.logout}\" rendered=\"#{login.loggedIn}\"/>\n"
+"</f:form]]>"
#. Tag: para
#: example.xml:17
#, no-c-format
-msgid ""
-"The actual work is done by a session scoped Web Bean that maintains "
-"information about the currently logged-in user and exposes the "
-"<literal>User</literal> entity to other Web Beans:"
-msgstr ""
+msgid "The actual work is done by a session scoped Web Bean that maintains
information about the currently logged-in user and exposes the
<literal>User</literal> entity to other Web Beans:"
+msgstr "Il vero lavoro è fatto da un Web Bean con scope di sessione che mantiene le
informazioni sull'utente correntemente loggato ed espone l'entity
<literal>User</literal> agli altri Web Beans:"
#. Tag: programlisting
#: example.xml:21
@@ -95,8 +110,7 @@
" public void login() {\n"
" \n"
" List<User> results = userDatabase.createQuery(\n"
-" \"select u from User u where u.username=:username and
u.password=:"
-"password\")\n"
+" \"select u from User u where u.username=:username and
u.password=:password\")\n"
" .setParameter(\"username\",
credentials.getUsername())\n"
" .setParameter(\"password\",
credentials.getPassword())\n"
" .getResultList();\n"
@@ -121,12 +135,47 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@SessionScoped @Named\n"
+"public class Login {\n"
+"\n"
+" @Current Credentials credentials;\n"
+" @PersistenceContext EntityManager userDatabase;\n"
+"\n"
+" private User user;\n"
+" \n"
+" public void login() {\n"
+" \n"
+" List<User> results = userDatabase.createQuery(\n"
+" \"select u from User u where u.username=:username and
u.password=:password\")\n"
+" .setParameter(\"username\",
credentials.getUsername())\n"
+" .setParameter(\"password\",
credentials.getPassword())\n"
+" .getResultList();\n"
+" \n"
+" if ( !results.isEmpty() ) {\n"
+" user = results.get(0);\n"
+" }\n"
+" \n"
+" }\n"
+" \n"
+" public void logout() {\n"
+" user = null;\n"
+" }\n"
+" \n"
+" public boolean isLoggedIn() {\n"
+" return user!=null;\n"
+" }\n"
+" \n"
+" @Produces @LoggedIn User getCurrentUser() {\n"
+" return user;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: example.xml:23
#, no-c-format
msgid "Of course, <literal>@LoggedIn</literal> is a binding
annotation:"
-msgstr ""
+msgstr "<literal>@LoggedIn</literal> è un'annotazione di
binding:"
#. Tag: programlisting
#: example.xml:25
@@ -137,12 +186,16 @@
"@BindingType\n"
"public @interface LoggedIn {}]]>"
msgstr ""
+"<![CDATA[@Retention(RUNTIME)\n"
+"@Target({TYPE, METHOD, FIELD})\n"
+"@BindingType\n"
+"public @interface LoggedIn {}]]>"
#. Tag: para
#: example.xml:27
#, no-c-format
msgid "Now, any other Web Bean can easily inject the current user:"
-msgstr ""
+msgstr "Ora qualsiasi altro Web Bean può facilemente iniettare l'utente
corrente:"
#. Tag: programlisting
#: example.xml:29
@@ -161,12 +214,22 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[public class DocumentEditor {\n"
+"\n"
+" @Current Document document;\n"
+" @LoggedIn User currentUser;\n"
+" @PersistenceContext EntityManager docDatabase;\n"
+" \n"
+" public void save() {\n"
+" document.setCreatedBy(currentUser);\n"
+" docDatabase.persist(document);\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: para
#: example.xml:31
#, no-c-format
-msgid ""
-"Hopefully, this example gives a flavor of the Web Bean programming model. In
"
-"the next chapter, we'll explore Web Beans dependency injection in greater
"
-"depth."
-msgstr ""
+msgid "Hopefully, this example gives a flavor of the Web Bean programming model. In
the next chapter, we'll explore Web Beans dependency injection in greater
depth."
+msgstr "Quest'esempio è un assaggio del modello di programmazione con Web Bean.
Nel prossimo capitolo esploreremo la dependency injection dei Web Bean con maggior
profondità."
+
Modified: doc/trunk/reference/it-IT/modules/extend.po
===================================================================
--- doc/trunk/reference/it-IT/modules/extend.po 2008-12-20 12:33:46 UTC (rev 616)
+++ doc/trunk/reference/it-IT/modules/extend.po 2008-12-20 13:02:58 UTC (rev 617)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 13:57+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -17,17 +17,12 @@
#: extend.xml:4
#, no-c-format
msgid "Extending Web Beans"
-msgstr ""
+msgstr "Estendere i Web Beans"
#. Tag: para
#: extend.xml:6
#, no-c-format
-msgid ""
-"Web Beans is intended to be a platform for frameworks, extensions and "
-"integration with other technologies. Therefore, Web Beans exposes a set of "
-"SPIs for the use of developers of portable extensions to Web Beans. For "
-"example, the following kinds of extensions were envisaged by the designers "
-"of Web Beans:"
+msgid "Web Beans is intended to be a platform for frameworks, extensions and
integration with other technologies. Therefore, Web Beans exposes a set of SPIs for the
use of developers of portable extensions to Web Beans. For example, the following kinds of
extensions were envisaged by the designers of Web Beans:"
msgstr ""
#. Tag: para
@@ -39,9 +34,7 @@
#. Tag: para
#: extend.xml:17
#, no-c-format
-msgid ""
-"integration with third-party frameworks such as Spring, Seam, GWT or Wicket,
"
-"and"
+msgid "integration with third-party frameworks such as Spring, Seam, GWT or Wicket,
and"
msgstr ""
#. Tag: para
@@ -53,23 +46,19 @@
#. Tag: para
#: extend.xml:25
#, no-c-format
-msgid ""
-"The nerve center for extending Web Beans is the
<literal>Manager</literal> "
-"object."
+msgid "The nerve center for extending Web Beans is the
<literal>Manager</literal> object."
msgstr ""
#. Tag: title
#: extend.xml:29
#, no-c-format
msgid "The <literal>Manager</literal> object"
-msgstr ""
+msgstr "L'oggetto <literal>Manager</literal>"
#. Tag: para
#: extend.xml:31
#, no-c-format
-msgid ""
-"The <literal>Manager</literal> interface lets us register and obtain
Web "
-"Beans, interceptors, decorators, observers and contexts programatically."
+msgid "The <literal>Manager</literal> interface lets us register and
obtain Web Beans, interceptors, decorators, observers and contexts programatically."
msgstr ""
#. Tag: programlisting
@@ -79,8 +68,7 @@
"<![CDATA[public interface Manager\n"
"{\n"
"\n"
-" public <T> Set<Bean<T>> resolveByType(Class<T> type,
Annotation... "
-"bindings);\n"
+" public <T> Set<Bean<T>> resolveByType(Class<T> type,
Annotation... bindings);\n"
"\n"
" public <T> Set<Bean<T>> resolveByType(TypeLiteral<T>
apiType,\n"
" Annotation... bindings);\n"
@@ -111,19 +99,16 @@
" public <T> Manager addObserver(Observer<T> observer, Class<T>
eventType,\n"
" Annotation... bindings);\n"
"\n"
-" public <T> Manager addObserver(Observer<T> observer,
TypeLiteral<T> "
-"eventType,\n"
+" public <T> Manager addObserver(Observer<T> observer,
TypeLiteral<T> eventType,\n"
" Annotation... bindings);\n"
"\n"
-" public <T> Manager removeObserver(Observer<T> observer,
Class<T> "
-"eventType,\n"
+" public <T> Manager removeObserver(Observer<T> observer,
Class<T> eventType,\n"
" Annotation... bindings);\n"
"\n"
" public <T> Manager removeObserver(Observer<T> observer,\n"
" TypeLiteral<T> eventType, Annotation... bindings);\n"
"\n"
-" public <T> Set<Observer<T>> resolveObservers(T event,
Annotation... "
-"bindings);\n"
+" public <T> Set<Observer<T>> resolveObservers(T event,
Annotation... bindings);\n"
"\n"
" public List<Interceptor> resolveInterceptors(InterceptionType
type,\n"
" Annotation... interceptorBindings);\n"
@@ -133,6 +118,58 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[public interface Manager\n"
+"{\n"
+"\n"
+" public <T> Set<Bean<T>> resolveByType(Class<T> type,
Annotation... bindings);\n"
+"\n"
+" public <T> Set<Bean<T>> resolveByType(TypeLiteral<T>
apiType,\n"
+" Annotation... bindings);\n"
+"\n"
+" public <T> T getInstanceByType(Class<T> type, Annotation...
bindings);\n"
+"\n"
+" public <T> T getInstanceByType(TypeLiteral<T> type,\n"
+" Annotation... bindings);\n"
+"\n"
+" public Set<Bean<?>> resolveByName(String name);\n"
+"\n"
+" public Object getInstanceByName(String name);\n"
+"\n"
+" public <T> T getInstance(Bean<T> bean);\n"
+"\n"
+" public void fireEvent(Object event, Annotation... bindings);\n"
+"\n"
+" public Context getContext(Class<? extends Annotation> scopeType);\n"
+"\n"
+" public Manager addContext(Context context);\n"
+"\n"
+" public Manager addBean(Bean<?> bean);\n"
+"\n"
+" public Manager addInterceptor(Interceptor interceptor);\n"
+"\n"
+" public Manager addDecorator(Decorator decorator);\n"
+"\n"
+" public <T> Manager addObserver(Observer<T> observer, Class<T>
eventType,\n"
+" Annotation... bindings);\n"
+"\n"
+" public <T> Manager addObserver(Observer<T> observer,
TypeLiteral<T> eventType,\n"
+" Annotation... bindings);\n"
+"\n"
+" public <T> Manager removeObserver(Observer<T> observer,
Class<T> eventType,\n"
+" Annotation... bindings);\n"
+"\n"
+" public <T> Manager removeObserver(Observer<T> observer,\n"
+" TypeLiteral<T> eventType, Annotation... bindings);\n"
+"\n"
+" public <T> Set<Observer<T>> resolveObservers(T event,
Annotation... bindings);\n"
+"\n"
+" public List<Interceptor> resolveInterceptors(InterceptionType
type,\n"
+" Annotation... interceptorBindings);\n"
+"\n"
+" public List<Decorator> resolveDecorators(Set<Class<?>>
types,\n"
+" Annotation... bindings);\n"
+"\n"
+"}]]>"
#. Tag: para
#: extend.xml:36
@@ -144,21 +181,18 @@
#: extend.xml:38
#, no-c-format
msgid "@Current Manager manager"
-msgstr ""
+msgstr "@Current Manager manager"
#. Tag: title
#: extend.xml:43
#, no-c-format
msgid "The <literal>Bean</literal> class"
-msgstr ""
+msgstr "La classe <literal>Bean</literal>"
#. Tag: para
#: extend.xml:45
#, no-c-format
-msgid ""
-"Instances of the abstract class <literal>Bean</literal> represent Web
Beans. "
-"There is an instance of <literal>Bean</literal> registered with the
"
-"<literal>Manager</literal> object for every Web Bean in the
application."
+msgid "Instances of the abstract class <literal>Bean</literal> represent
Web Beans. There is an instance of <literal>Bean</literal> registered with the
<literal>Manager</literal> object for every Web Bean in the
application."
msgstr ""
#. Tag: programlisting
@@ -191,41 +225,55 @@
" \n"
"}"
msgstr ""
+"public abstract class Bean<T> {\n"
+" \n"
+" private final Manager manager;\n"
+" \n"
+" protected Bean(Manager manager) {\n"
+" this.manager=manager;\n"
+" }\n"
+" \n"
+" protected Manager getManager() {\n"
+" return manager;\n"
+" }\n"
+" \n"
+" public abstract Set<Class> getTypes();\n"
+" public abstract Set<Annotation> getBindingTypes();\n"
+" public abstract Class<? extends Annotation>
getScopeType();\n"
+" public abstract Class<? extends Annotation> getDeploymentType();
\n"
+" public abstract String getName();\n"
+" \n"
+" public abstract boolean isSerializable();\n"
+" public abstract boolean isNullable();\n"
+"\n"
+" public abstract T create();\n"
+" public abstract void destroy(T instance);\n"
+" \n"
+"}"
#. Tag: para
#: extend.xml:52
#, no-c-format
-msgid ""
-"It's possible to extend the <literal>Bean</literal> class and
register "
-"instances by calling <literal>Manager.addBean()</literal> to provide
support "
-"for new kinds of Web Beans, beyond those defined by the Web Beans "
-"specification (simple and enterprise Web Beans, producer methods and JMS "
-"endpoints). For example, we could use the <literal>Bean</literal> class
to "
-"allow objects managed by another framework to be injected into Web Beans."
+msgid "It's possible to extend the <literal>Bean</literal> class and
register instances by calling <literal>Manager.addBean()</literal> to provide
support for new kinds of Web Beans, beyond those defined by the Web Beans specification
(simple and enterprise Web Beans, producer methods and JMS endpoints). For example, we
could use the <literal>Bean</literal> class to allow objects managed by
another framework to be injected into Web Beans."
msgstr ""
#. Tag: para
#: extend.xml:60
#, no-c-format
-msgid ""
-"There are two subclasses of <literal>Bean</literal> defined by the Web
Beans "
-"specification: <literal>Interceptor</literal> and
<literal>Decorator</"
-"literal>."
+msgid "There are two subclasses of <literal>Bean</literal> defined by
the Web Beans specification: <literal>Interceptor</literal> and
<literal>Decorator</literal>."
msgstr ""
#. Tag: title
#: extend.xml:67
#, no-c-format
msgid "The <literal>Context</literal> interface"
-msgstr ""
+msgstr "L'interfaccia <literal>Context</literal>"
#. Tag: para
#: extend.xml:69
#, no-c-format
-msgid ""
-"The <literal>Context</literal> interface supports addition of new
scopes to "
-"Web Beans, or extension of the built-in scopes to new environments."
-msgstr ""
+msgid "The <literal>Context</literal> interface supports addition of new
scopes to Web Beans, or extension of the built-in scopes to new environments."
+msgstr "L'interfaccia <literal>Context</literal> supporta
l'aggiunta di nuovi scope ai Web Beans, o l'estensione di scope esistenti a nuovi
ambienti."
#. Tag: programlisting
#: extend.xml:72
@@ -241,12 +289,19 @@
" \n"
"}"
msgstr ""
+"public interface Context {\n"
+" \n"
+" public Class<? extends Annotation> getScopeType();\n"
+" \n"
+" public <T> T get(Bean<T> bean, boolean
create);\n"
+" \n"
+" boolean isActive();\n"
+" \n"
+"}"
#. Tag: para
#: extend.xml:74
#, no-c-format
-msgid ""
-"For example, we might implement <literal>Context</literal> to add a
business "
-"process scope to Web Beans, or to add support for the conversation scope to "
-"an application that uses Wicket."
+msgid "For example, we might implement <literal>Context</literal> to add
a business process scope to Web Beans, or to add support for the conversation scope to an
application that uses Wicket."
msgstr ""
+
Modified: doc/trunk/reference/it-IT/modules/next.po
===================================================================
--- doc/trunk/reference/it-IT/modules/next.po 2008-12-20 12:33:46 UTC (rev 616)
+++ doc/trunk/reference/it-IT/modules/next.po 2008-12-20 13:02:58 UTC (rev 617)
@@ -6,7 +6,7 @@
"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 23:55+0100\n"
+"PO-Revision-Date: 2008-12-20 01:10+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -29,7 +29,7 @@
#: next.xml:9
#, no-c-format
msgid "Of course, the Web Beans specification is the best source of more information
about Web Beans. The spec is about 100 pages long, only twice the length of this article,
and almost as readable. But, of course, it covers many details that we've skipped
over. The spec is available from
<
literal>http://jcp.org/en/jsr/detail?id=299</literal>."
-msgstr "Certamente la specifica Web Beans è la migliore fonte per avere informazioni
su Web Beans. La specifica è lunga circa 100 pagine, solo il doppio di quest'articolo
e per lo più leggibile altrettanto facilmente. Ma sicuramente copre molti dettagli che
sono stati saltati qua. La specifica è disponibile da
<
literal>http://jcp.org/en/jsr/detail?id=299</literal>."
+msgstr "Certamente la specifica Web Beans è la migliore fonte per avere informazioni
su Web Beans. La specifica è lunga circa 100 pagine, solo il doppio di quest'articolo
e per lo più leggibile altrettanto facilmente. Ma sicuramente copre molti dettagli che
sono stati saltati nel presente documento. La specifica è disponibile da
<
literal>http://jcp.org/en/jsr/detail?id=299</literal>."
#. Tag: para
#: next.xml:15
Modified: doc/trunk/reference/it-IT/modules/ri.po
===================================================================
--- doc/trunk/reference/it-IT/modules/ri.po 2008-12-20 12:33:46 UTC (rev 616)
+++ doc/trunk/reference/it-IT/modules/ri.po 2008-12-20 13:02:58 UTC (rev 617)
@@ -3,11 +3,11 @@
#
msgid ""
msgstr ""
-"Project-Id-Version: master.xml \n"
+"Project-Id-Version: master.xml\n"
"Report-Msgid-Bugs-To:
http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-19 20:26+0000\n"
-"PO-Revision-Date: 2008-12-19 20:26+0000\n"
-"Last-Translator: Automatically generated\n"
+"PO-Revision-Date: 2008-12-20 14:01+0100\n"
+"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@@ -22,19 +22,13 @@
#. Tag: para
#: ri.xml:6
#, no-c-format
-msgid ""
-"The Web Beans RI comes with a two examples,
<literal>webbeans-numberguess</"
-"literal> (a war example, containing only simple beans) and
<literal>webbeans-"
-"translator</literal> (an ear example, containing enterprise beans)."
+msgid "The Web Beans RI comes with a two examples,
<literal>webbeans-numberguess</literal> (a war example, containing only simple
beans) and <literal>webbeans-translator</literal> (an ear example, containing
enterprise beans)."
msgstr ""
#. Tag: para
#: ri.xml:13
#, no-c-format
-msgid ""
-"Currently, the Web Beans RI only runs on JBoss Application Server 5. You'll
"
-"need to download JBoss AS 5.0.0.GA from <ulink
url=\"http://www.jboss.org/"
-"jbossas/downloads/\">jboss.org</ulink>, and unzip it. For
example:"
+msgid "Currently, the Web Beans RI only runs on JBoss Application Server 5.
You'll need to download JBoss AS 5.0.0.GA from <ulink
url=\"http://www.jboss.org/jbossas/downloads/\">jboss.org<...;, and
unzip it. For example:"
msgstr ""
#. Tag: programlisting
@@ -44,13 +38,13 @@
"<![CDATA[$ cd /Applications\n"
"$ unzip ~/jboss-5.0.0.GA.zip]]>"
msgstr ""
+"<![CDATA[$ cd /Applications\n"
+"$ unzip ~/jboss-5.0.0.GA.zip]]>"
#. Tag: para
#: ri.xml:22
#, no-c-format
-msgid ""
-"Next, download the Web Beans RI from <ulink
url=\"http://seamframework.org/"
-"WebBeans\">seamframework.org</ulink>, and unzip it. For
example"
+msgid "Next, download the Web Beans RI from <ulink
url=\"http://seamframework.org/WebBeans\">seamframework.org&...;,
and unzip it. For example"
msgstr ""
#. Tag: programlisting
@@ -60,33 +54,25 @@
"<![CDATA[$ cd ~/\n"
"$ unzip ~/webbeans-1.0.0.ALPHA1.zip]]>"
msgstr ""
+"<![CDATA[$ cd ~/\n"
+"$ unzip ~/webbeans-1.0.0.ALPHA1.zip]]>"
#. Tag: para
#: ri.xml:30
#, no-c-format
-msgid ""
-"As Web Beans is a new piece of software, you need to update JBoss AS to run "
-"the Web Beans RI. Future versions of JBoss AS will include these updates, "
-"and this step won't be necessary."
+msgid "As Web Beans is a new piece of software, you need to update JBoss AS to run
the Web Beans RI. Future versions of JBoss AS will include these updates, and this step
won't be necessary."
msgstr ""
#. Tag: para
#: ri.xml:37
#, no-c-format
-msgid ""
-"Currently, two updates are needed. Firstly, a new deployer, "
-"<literal>webbeans.deployer</literal> is added. This adds supports for
Web "
-"Bean archives to JBoss AS, and allows the Web Beans RI to query the EJB3 "
-"container and discover which EJBs are installed in your application. "
-"Secondly, an update to JBoss EJB3 is needed."
+msgid "Currently, two updates are needed. Firstly, a new deployer,
<literal>webbeans.deployer</literal> is added. This adds supports for Web Bean
archives to JBoss AS, and allows the Web Beans RI to query the EJB3 container and discover
which EJBs are installed in your application. Secondly, an update to JBoss EJB3 is
needed."
msgstr ""
#. Tag: para
#: ri.xml:46
#, no-c-format
-msgid ""
-"To install the update, you'll need ant 1.7.0 installed, and the "
-"<literal>ANT_HOME</literal> environment variable set. For
example:"
+msgid "To install the update, you'll need ant 1.7.0 installed, and the
<literal>ANT_HOME</literal> environment variable set. For example:"
msgstr ""
#. Tag: programlisting
@@ -96,13 +82,13 @@
"$ unzip apache-ant-1.7.0.zip\n"
"$ export ANT_HOME=~/apache-ant-1.7.0"
msgstr ""
+"$ unzip apache-ant-1.7.0.zip\n"
+"$ export ANT_HOME=~/apache-ant-1.7.0"
#. Tag: para
#: ri.xml:53
#, no-c-format
-msgid ""
-"Then, you can install the update. The update script will use Maven to "
-"download the Web Beans and EJB3 automatically."
+msgid "Then, you can install the update. The update script will use Maven to
download the Web Beans and EJB3 automatically."
msgstr ""
#. Tag: programlisting
@@ -112,6 +98,8 @@
"$ cd webbeans-1.0.0.ALPHA1/jboss-as\n"
"$ ant update"
msgstr ""
+"$ cd webbeans-1.0.0.ALPHA1/jboss-as\n"
+"$ ant update"
#. Tag: para
#: ri.xml:60
@@ -122,8 +110,7 @@
#. Tag: para
#: ri.xml:65
#, no-c-format
-msgid ""
-"The build scripts for the examples offer a number of targets, these are:"
+msgid "The build scripts for the examples offer a number of targets, these
are:"
msgstr ""
#. Tag: para
@@ -135,16 +122,13 @@
#. Tag: para
#: ri.xml:77
#, no-c-format
-msgid ""
-"<literal>ant explode</literal> - update an exploded example, without
"
-"restarting the deployment"
+msgid "<literal>ant explode</literal> - update an exploded example,
without restarting the deployment"
msgstr ""
#. Tag: para
#: ri.xml:83
#, no-c-format
-msgid ""
-"<literal>ant deploy</literal> - deploy the example in compressed jar
format"
+msgid "<literal>ant deploy</literal> - deploy the example in compressed
jar format"
msgstr ""
#. Tag: para
@@ -172,23 +156,19 @@
"$ cd examples/numberguess\n"
"ant deploy"
msgstr ""
+"$ cd examples/numberguess\n"
+"ant deploy"
#. Tag: para
#: ri.xml:106
#, no-c-format
-msgid ""
-"Wait for the application to deploy, and enjoy hours of fun at <ulink url="
-"\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
+msgid "Wait for the application to deploy, and enjoy hours of fun at <ulink
url=\"http://localhost:8080/webbeans-numberguess\"></ulink>!"
msgstr ""
#. Tag: para
#: ri.xml:111
#, no-c-format
-msgid ""
-"The Web Beans RI includes a second simple example that will translate your "
-"text into Latin. The numberguess example is a war example, and uses only "
-"simple beans; the translator example is an ear example, and includes "
-"enterprise beans, packaged in an EJB module. To try it out:"
+msgid "The Web Beans RI includes a second simple example that will translate your
text into Latin. The numberguess example is a war example, and uses only simple beans; the
translator example is an ear example, and includes enterprise beans, packaged in an EJB
module. To try it out:"
msgstr ""
#. Tag: programlisting
@@ -198,47 +178,37 @@
"$ cd examples/traslator\n"
"ant deploy"
msgstr ""
+"$ cd examples/traslator\n"
+"ant deploy"
#. Tag: para
#: ri.xml:120
#, no-c-format
-msgid ""
-"Wait for the application to deploy, and visit <ulink url=\"http://"
-"localhost:8080/webbeans-translator\"></ulink>!"
+msgid "Wait for the application to deploy, and visit <ulink
url=\"http://localhost:8080/webbeans-translator\"></ulink>!"
msgstr ""
#. Tag: title
#: ri.xml:126
#, no-c-format
msgid "The numberguess example"
-msgstr ""
+msgstr "Esempio di indovina-numeri"
#. Tag: para
#: ri.xml:128
#, no-c-format
-msgid ""
-"In the numberguess application you get given 10 attempts to guess a number "
-"between 1 and 100. After each attempt, you will be told whether you are too "
-"high, or too low."
+msgid "In the numberguess application you get given 10 attempts to guess a number
between 1 and 100. After each attempt, you will be told whether you are too high, or too
low."
msgstr ""
#. Tag: para
#: ri.xml:134
#, no-c-format
-msgid ""
-"The numberguess example is comprised of a number of Web Beans, configuration
"
-"files, and Facelet JSF pages, packaged as a war. Let's start with the "
-"configuration files."
+msgid "The numberguess example is comprised of a number of Web Beans, configuration
files, and Facelet JSF pages, packaged as a war. Let's start with the configuration
files."
msgstr ""
#. Tag: para
#: ri.xml:140
#, no-c-format
-msgid ""
-"All the configuration files for this example are located in
<literal>WEB-INF/"
-"</literal>, which is stored in <literal>WebContent</literal> in
the source "
-"tree. First, we have <literal>faces-config.xml</literal>, in which we
tell "
-"JSF to use Facelets:"
+msgid "All the configuration files for this example are located in
<literal>WEB-INF/</literal>, which is stored in
<literal>WebContent</literal> in the source tree. First, we have
<literal>faces-config.xml</literal>, in which we tell JSF to use
Facelets:"
msgstr ""
#. Tag: programlisting
@@ -249,8 +219,7 @@
"<faces-config version=\"1.2\"\n"
"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://"
-"java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd\">\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd\">\n"
" \n"
" <application>\n"
"
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>\n"
@@ -258,13 +227,22 @@
"\n"
"</faces-config>]]>"
msgstr ""
+"<![CDATA[<?xml version='1.0' encoding='UTF-8'?>\n"
+"<faces-config version=\"1.2\"\n"
+"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd\">\n"
+" \n"
+" <application>\n"
+"
<view-handler>com.sun.facelets.FaceletViewHandler</view-handler>\n"
+" </application>\n"
+"\n"
+"</faces-config>]]>"
#. Tag: para
#: ri.xml:150
#, no-c-format
-msgid ""
-"There is an empty <literal>web-beans.xml</literal> file, which marks
this "
-"application as a Web Beans application."
+msgid "There is an empty <literal>web-beans.xml</literal> file, which
marks this application as a Web Beans application."
msgstr ""
#. Tag: para
@@ -277,17 +255,12 @@
#: ri.xml:157
#, no-c-format
msgid ""
-"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> "
-"<area id=\"faces.servlet.mapping\" coords=\"18\"/>
<area id=\"faces.default."
-"suffix\" coords=\"23\"/> <area
id=\"session.timeout\" coords=\"28\"/> <area "
-"id=\"webbeans.listener\" coords=\"32\"/> </areaspec>
<programlisting><![CDATA"
-"[<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
+"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> <area id=\"faces.servlet.mapping\"
coords=\"18\"/> <area id=\"faces.default.suffix\"
coords=\"23\"/> <area id=\"session.timeout\"
coords=\"28\"/> <area id=\"webbeans.listener\"
coords=\"32\"/> </areaspec> <programlisting><![CDATA[<?xml
version=\"1.0\" encoding=\"UTF-8\"?>\n"
"\n"
"<web-app version=\"2.5\"\n"
"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun."
-"com/xml/ns/javaee/web-app_2_5.xsd\">\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd\">\n"
" \n"
" <display-name>Web Beans Numbergues example</display-name>\n"
"\n"
@@ -314,31 +287,10 @@
" </session-config>\n"
" \n"
" <listener>\n"
-"
<listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-"
-"class>\n"
+"
<listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-class>\n"
" </listener>\n"
"\n"
-"</web-app>]]></programlisting> <calloutlist> <callout
arearefs=\"faces."
-"servlet\"> <para> Enable and load the JSF servlet </para>
</callout> "
-"<callout arearefs=\"faces.servlet.mapping\"> <para> Configure
requests to "
-"<literal>.jsf</literal> pages to be handled by JSF </para>
</callout> "
-"<callout arearefs=\"faces.default.suffix\"> <para> Tell JSF
that we will be "
-"giving our source files (facelets) an extension of
<literal>.jsf</literal> </"
-"para> </callout> <callout arearefs=\"session.timeout\">
<para> Configure a "
-"session timeout of 10 minutes </para> </callout> <callout
arearefs="
-"\"webbeans.listener\"> <para> Configure the Web Beans listener,
so that Web "
-"Beans services can be used in the servlet request </para> </callout>
</"
-"calloutlist> </programlistingco> <note> <para> The only
configuration "
-"required by the Web Beans RI in <literal>web.xml</literal> is to add
the Web "
-"Beans listener. </para> <para> Whilst this demo is a JSF demo, you can
use "
-"the Web Beans RI with any Servlet based web framework; just configure the "
-"Web Beans listener. </para> </note> <para> Let's take a look
at the Facelet "
-"view: </para> <programlistingco> <areaspec> <area
id=\"template\" coords=\"8"
-"\"/> <area id=\"messages\" coords=\"12\"/>
<area id=\"instructions\" coords="
-"\"19\"/> <area id=\"guess\" coords=\"25\"/>
<area id=\"validator\" coords="
-"\"29\"/> <area id=\"submit\" coords=\"32\"/>
</areaspec> <programlisting><!"
-"[CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\" "
-"\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"</web-app>]]></programlisting> <calloutlist> <callout
arearefs=\"faces.servlet\"> <para> Enable and load the JSF servlet
</para> </callout> <callout
arearefs=\"faces.servlet.mapping\"> <para> Configure requests to
<literal>.jsf</literal> pages to be handled by JSF </para>
</callout> <callout arearefs=\"faces.default.suffix\"> <para>
Tell JSF that we will be giving our source files (facelets) an extension of
<literal>.jsf</literal> </para> </callout> <callout
arearefs=\"session.timeout\"> <para> Configure a session timeout of 10
minutes </para> </callout> <callout
arearefs=\"webbeans.listener\"> <para> Configure the Web Beans
listener, so that Web Beans services can be used in the servlet request </para>
</callout> </calloutlist> </programlistingco> <note> <para>
The only configuration required by the Web Beans RI in
<literal>web.xml</literal> is to add the Web Beans listener. </para>
<para> Whilst this demo is a JSF demo, you can use the Web Beans RI with any Servlet
based!
web framework; just configure the Web Beans listener. </para> </note>
<para> Let's take a look at the Facelet view: </para>
<programlistingco> <areaspec> <area id=\"template\"
coords=\"8\"/> <area id=\"messages\"
coords=\"12\"/> <area id=\"instructions\"
coords=\"19\"/> <area id=\"guess\" coords=\"25\"/>
<area id=\"validator\" coords=\"29\"/> <area
id=\"submit\" coords=\"32\"/> </areaspec>
<programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
"<html
xmlns=\"http://www.w3.org/1999/xhtml\"\n"
"
xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
"
xmlns:h=\"http://java.sun.com/jsf/html\"\n"
@@ -351,15 +303,12 @@
" <h:form id=\"NumberGuessMain\">\n"
" <div style=\"color: red\">\n"
" <h:messages id=\"messages\"
globalOnly=\"false\"/>\n"
-" <h:outputText id=\"Higher\" value=\"Higher!\"
rendered=\"#{game."
-"number gt game.guess}\"/>\n"
-" <h:outputText id=\"Lower\" value=\"Lower!\"
rendered=\"#{game."
-"number lt game.guess}\"/>\n"
+" <h:outputText id=\"Higher\" value=\"Higher!\"
rendered=\"#{game.number gt game.guess}\"/>\n"
+" <h:outputText id=\"Lower\" value=\"Lower!\"
rendered=\"#{game.number lt game.guess}\"/>\n"
" </div>\n"
" \n"
" <div>\n"
-" I'm thinking of a number between #{game.smallest} and
#{game."
-"biggest}.\n"
+" I'm thinking of a number between #{game.smallest} and
#{game.biggest}.\n"
" You have #{game.remainingGuesses} guesses.\n"
" </div>\n"
" \n"
@@ -380,32 +329,88 @@
" </h:form>\n"
" </ui:define>\n"
" </ui:composition>\n"
-"</html>]]></programlisting> <calloutlist> <callout
arearefs=\"template\"> "
-"<para> Facelets is a templating language for JSF, here we are wrapping our
"
-"page in a template which defines the header. </para> </callout>
<callout "
-"arearefs=\"messages\"> <para> There are a number of messages
which can be "
-"sent to the user, \"Higher!\", \"Lower!\" and
\"Correct!\" </para> </"
-"callout> <callout arearefs=\"instructions\"> <para> As the
user guesses, the "
-"range of numbers they can guess gets smaller - this sentance changes to make
"
-"sure they know what range to guess in. </para> </callout> <callout
arearefs="
-"\"guess\"> <para> This input field is bound to a Web Bean, using
the value "
-"expression. </para> </callout> <callout
arearefs=\"validator\"> <para> A "
-"range validator is used to make sure the user doesn't accidentally input a
"
-"number outside of the range in which they can guess - if the validator "
-"wasn't here, the user might use up a guess on an out of range number.
</"
-"para> </callout> <callout arearefs=\"submit\">
<para> And, of course, there "
-"must be a way for the user to send their guess to the server. Here we bind "
-"to an action method on the Web Bean. </para> </callout>
</calloutlist> </"
-"programlistingco>"
+"</html>]]></programlisting> <calloutlist> <callout
arearefs=\"template\"> <para> Facelets is a templating language for
JSF, here we are wrapping our page in a template which defines the header. </para>
</callout> <callout arearefs=\"messages\"> <para> There are a
number of messages which can be sent to the user, \"Higher!\",
\"Lower!\" and \"Correct!\" </para> </callout> <callout
arearefs=\"instructions\"> <para> As the user guesses, the range of
numbers they can guess gets smaller - this sentance changes to make sure they know what
range to guess in. </para> </callout> <callout
arearefs=\"guess\"> <para> This input field is bound to a Web Bean,
using the value expression. </para> </callout> <callout
arearefs=\"validator\"> <para> A range validator is used to make sure
the user doesn't accidentally input a number outside of the range in which they can
guess - if the validator wasn't here, the user might use up a guess on an out of range
number. </para> </callout> <callout !
arearefs=\"submit\"> <para> And, of course, there must be a way for
the user to send their guess to the server. Here we bind to an action method on the Web
Bean. </para> </callout> </calloutlist> </programlistingco>"
msgstr ""
+"<programlistingco> <areaspec> <area id=\"faces.servlet\"
coords=\"12\"/> <area id=\"faces.servlet.mapping\"
coords=\"18\"/> <area id=\"faces.default.suffix\"
coords=\"23\"/> <area id=\"session.timeout\"
coords=\"28\"/> <area id=\"webbeans.listener\"
coords=\"32\"/> </areaspec> <programlisting><![CDATA[<?xml
version=\"1.0\" encoding=\"UTF-8\"?>\n"
+"\n"
+"<web-app version=\"2.5\"\n"
+"
xmlns=\"http://java.sun.com/xml/ns/javaee\"\n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd\">\n"
+" \n"
+" <display-name>Web Beans Numbergues example</display-name>\n"
+"\n"
+" <!-- JSF -->\n"
+"\n"
+" <servlet>\n"
+" <servlet-name>Faces Servlet</servlet-name>\n"
+"
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>\n"
+" <load-on-startup>1</load-on-startup>\n"
+" </servlet>\n"
+"\n"
+" <servlet-mapping>\n"
+" <servlet-name>Faces Servlet</servlet-name>\n"
+" <url-pattern>*.jsf</url-pattern>\n"
+" </servlet-mapping>\n"
+" \n"
+" <context-param>\n"
+" <param-name>javax.faces.DEFAULT_SUFFIX</param-name>\n"
+" <param-value>.xhtml</param-value>\n"
+" </context-param>\n"
+"\n"
+" <session-config>\n"
+" <session-timeout>10</session-timeout>\n"
+" </session-config>\n"
+" \n"
+" <listener>\n"
+"
<listener-class>org.jboss.webbeans.servlet.WebBeansListener</listener-class>\n"
+" </listener>\n"
+"\n"
+"</web-app>]]></programlisting> <calloutlist> <callout
arearefs=\"faces.servlet\"> <para> Enable and load the JSF servlet
</para> </callout> <callout
arearefs=\"faces.servlet.mapping\"> <para> Configure requests to
<literal>.jsf</literal> pages to be handled by JSF </para>
</callout> <callout arearefs=\"faces.default.suffix\"> <para>
Tell JSF that we will be giving our source files (facelets) an extension of
<literal>.jsf</literal> </para> </callout> <callout
arearefs=\"session.timeout\"> <para> Configure a session timeout of 10
minutes </para> </callout> <callout
arearefs=\"webbeans.listener\"> <para> Configure the Web Beans
listener, so that Web Beans services can be used in the servlet request </para>
</callout> </calloutlist> </programlistingco> <note> <para>
The only configuration required by the Web Beans RI in
<literal>web.xml</literal> is to add the Web Beans listener. </para>
<para> Whilst this demo is a JSF demo, you can use the Web Beans RI with any Servlet
based!
web framework; just configure the Web Beans listener. </para> </note>
<para> Let's take a look at the Facelet view: </para>
<programlistingco> <areaspec> <area id=\"template\"
coords=\"8\"/> <area id=\"messages\"
coords=\"12\"/> <area id=\"instructions\"
coords=\"19\"/> <area id=\"guess\" coords=\"25\"/>
<area id=\"validator\" coords=\"29\"/> <area
id=\"submit\" coords=\"32\"/> </areaspec>
<programlisting><![CDATA[<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0
Transitional//EN\"
\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"
+"<html
xmlns=\"http://www.w3.org/1999/xhtml\"\n"
+"
xmlns:ui=\"http://java.sun.com/jsf/facelets\"\n"
+"
xmlns:h=\"http://java.sun.com/jsf/html\"\n"
+"
xmlns:f=\"http://java.sun.com/jsf/core\"\n"
+"
xmlns:s=\"http://jboss.com/products/seam/taglib\">\n"
+"\n"
+" <ui:composition template=\"template.xhtml\">\n"
+" <ui:define name=\"content\">\n"
+" <h1>Guess a number...</h1>\n"
+" <h:form id=\"NumberGuessMain\">\n"
+" <div style=\"color: red\">\n"
+" <h:messages id=\"messages\"
globalOnly=\"false\"/>\n"
+" <h:outputText id=\"Higher\" value=\"Higher!\"
rendered=\"#{game.number gt game.guess}\"/>\n"
+" <h:outputText id=\"Lower\" value=\"Lower!\"
rendered=\"#{game.number lt game.guess}\"/>\n"
+" </div>\n"
+" \n"
+" <div>\n"
+" I'm thinking of a number between #{game.smallest} and
#{game.biggest}.\n"
+" You have #{game.remainingGuesses} guesses.\n"
+" </div>\n"
+" \n"
+" <div>\n"
+" Your guess: \n"
+" <h:inputText id=\"inputGuess\" \n"
+" value=\"#{game.guess}\" \n"
+" required=\"true\" \n"
+" size=\"3\">\n"
+" <f:validateLongRange maximum=\"#{game.biggest}\"
\n"
+"
minimum=\"#{game.smallest}\"/>\n"
+" </h:inputText>\n"
+" <h:commandButton id=\"GuessButton\" \n"
+" value=\"Guess\" \n"
+" action=\"#{game.check}\"/>\n"
+" </div>\n"
+" \n"
+" </h:form>\n"
+" </ui:define>\n"
+" </ui:composition>\n"
+"</html>]]></programlisting> <calloutlist> <callout
arearefs=\"template\"> <para> Facelets is a templating language for
JSF, here we are wrapping our page in a template which defines the header. </para>
</callout> <callout arearefs=\"messages\"> <para> There are a
number of messages which can be sent to the user, \"Higher!\",
\"Lower!\" and \"Correct!\" </para> </callout> <callout
arearefs=\"instructions\"> <para> As the user guesses, the range of
numbers they can guess gets smaller - this sentance changes to make sure they know what
range to guess in. </para> </callout> <callout
arearefs=\"guess\"> <para> This input field is bound to a Web Bean,
using the value expression. </para> </callout> <callout
arearefs=\"validator\"> <para> A range validator is used to make sure
the user doesn't accidentally input a number outside of the range in which they can
guess - if the validator wasn't here, the user might use up a guess on an out of range
number. </para> </callout> <callout !
arearefs=\"submit\"> <para> And, of course, there must be a way for
the user to send their guess to the server. Here we bind to an action method on the Web
Bean. </para> </callout> </calloutlist> </programlistingco>"
#. Tag: para
#: ri.xml:270
#, no-c-format
-msgid ""
-"The example exists of 4 classes, the first two of which are binding types. "
-"First, there is the <literal>@Random</literal> binding type, used for
"
-"injecting a random number:"
+msgid "The example exists of 4 classes, the first two of which are binding types.
First, there is the <literal>@Random</literal> binding type, used for
injecting a random number:"
msgstr ""
#. Tag: programlisting
@@ -418,13 +423,16 @@
"@BindingType\n"
"public @interface Random {}]]>"
msgstr ""
+"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
+"@Retention(RUNTIME)\n"
+"@Documented\n"
+"@BindingType\n"
+"public @interface Random {}]]>"
#. Tag: para
#: ri.xml:278
#, no-c-format
-msgid ""
-"There is also the <literal>@MaxNumber</literal> binding type, used for
"
-"injecting the maximum number that can be injected:"
+msgid "There is also the <literal>@MaxNumber</literal> binding type,
used for injecting the maximum number that can be injected:"
msgstr ""
#. Tag: programlisting
@@ -438,14 +446,17 @@
"public @interface MaxNumber {}\n"
"]]>"
msgstr ""
+"<![CDATA[@Target( { TYPE, METHOD, PARAMETER, FIELD })\n"
+"@Retention(RUNTIME)\n"
+"@Documented\n"
+"@BindingType\n"
+"public @interface MaxNumber {}\n"
+"]]>"
#. Tag: para
#: ri.xml:285
#, no-c-format
-msgid ""
-"The <literal>Generator</literal> class is responsible for creating the
"
-"random number, via a producer method. It also exposes the maximum possible "
-"number via a producer method:"
+msgid "The <literal>Generator</literal> class is responsible for
creating the random number, via a producer method. It also exposes the maximum possible
number via a producer method:"
msgstr ""
#. Tag: programlisting
@@ -455,8 +466,7 @@
"<![CDATA[@ApplicationScoped\n"
"public class Generator {\n"
" \n"
-" private java.util.Random random = new java.util.Random( System."
-"currentTimeMillis() );\n"
+" private java.util.Random random = new java.util.Random(
System.currentTimeMillis() );\n"
" \n"
" private int maxNumber = 100;\n"
" \n"
@@ -476,34 +486,45 @@
"\n"
"}]]>"
msgstr ""
+"<![CDATA[@ApplicationScoped\n"
+"public class Generator {\n"
+" \n"
+" private java.util.Random random = new java.util.Random(
System.currentTimeMillis() );\n"
+" \n"
+" private int maxNumber = 100;\n"
+" \n"
+" java.util.Random getRandom()\n"
+" {\n"
+" return random;\n"
+" }\n"
+" \n"
+" @Produces @Random int next() { \n"
+" return getRandom().nextInt(maxNumber); \n"
+" }\n"
+" \n"
+" @Produces @MaxNumber int getMaxNumber()\n"
+" {\n"
+" return maxNumber;\n"
+" }\n"
+"\n"
+"}]]>"
#. Tag: para
#: ri.xml:293
#, no-c-format
-msgid ""
-"You'll notice that the <literal>Generator</literal> is application
scoped; "
-"therefore we don't get a different random each time."
+msgid "You'll notice that the <literal>Generator</literal> is
application scoped; therefore we don't get a different random each time."
msgstr ""
#. Tag: para
#: ri.xml:298
#, no-c-format
-msgid ""
-"The final Web Bean in the application is the session scoped
<literal>Game</"
-"literal>. By making <literal>Game</literal> session scoped, you can
only "
-"play the game once per browser session. You could easily add a reset button "
-"- a good exercise for the reader :-)"
+msgid "The final Web Bean in the application is the session scoped
<literal>Game</literal>. By making <literal>Game</literal> session
scoped, you can only play the game once per browser session. You could easily add a reset
button - a good exercise for the reader :-)"
msgstr ""
#. Tag: para
#: ri.xml:305
#, no-c-format
-msgid ""
-"You'll also note that we've used the <literal>@Named</literal>
annotation, "
-"so that we can use the bean through EL in the JSF page. Finally, we've used
"
-"constructor injection to initialize the game with a random number. And of "
-"course, we need to tell the player when they've won, so we give feedback
"
-"with a <literal>FacesMessage</literal>."
+msgid "You'll also note that we've used the
<literal>@Named</literal> annotation, so that we can use the bean through EL
in the JSF page. Finally, we've used constructor injection to initialize the game with
a random number. And of course, we need to tell the player when they've won, so we
give feedback with a <literal>FacesMessage</literal>."
msgstr ""
#. Tag: programlisting
@@ -540,8 +561,7 @@
" smallest = guess + 1;\n"
" }\n"
" if (guess == number) {\n"
-" FacesContext.getCurrentInstance().addMessage(null, new FacesMessage"
-"(\"Correct!\"));\n"
+" FacesContext.getCurrentInstance().addMessage(null, new
FacesMessage(\"Correct!\"));\n"
" }\n"
" remainingGuesses--;\n"
" return null;\n"
@@ -549,46 +569,72 @@
" \n"
"}]]>"
msgstr ""
+"<![CDATA[@Named\n"
+"@SessionScoped\n"
+"public class Game {\n"
+" private int number;\n"
+" \n"
+" private int guess;\n"
+" private int smallest;\n"
+" private int biggest;\n"
+" private int remainingGuesses;\n"
+" \n"
+" public Game() {}\n"
+" \n"
+" @Initializer\n"
+" Game(@Random int number, @MaxNumber int maxNumber) {\n"
+" this.number = number;\n"
+" this.smallest = 1;\n"
+" this.biggest = maxNumber;\n"
+" this.remainingGuesses = 10;\n"
+" }\n"
+"\n"
+" // Getters and setters for fields\n"
+" \n"
+" public String check() {\n"
+" if (guess>number) {\n"
+" biggest = guess - 1;\n"
+" }\n"
+" if (guess<number) {\n"
+" smallest = guess + 1;\n"
+" }\n"
+" if (guess == number) {\n"
+" FacesContext.getCurrentInstance().addMessage(null, new
FacesMessage(\"Correct!\"));\n"
+" }\n"
+" remainingGuesses--;\n"
+" return null;\n"
+" }\n"
+" \n"
+"}]]>"
#. Tag: title
#: ri.xml:317
#, no-c-format
msgid "The translator example"
-msgstr ""
+msgstr "Esempio di traduttore"
#. Tag: para
#: ri.xml:319
#, no-c-format
-msgid ""
-"The translator example will take any sentences you enter, and translate them
"
-"to Latin."
-msgstr ""
+msgid "The translator example will take any sentences you enter, and translate them
to Latin."
+msgstr "L'esempio di traduttore prende le frasi che vengono inserite e le
traduce in latino."
#. Tag: para
#: ri.xml:324
#, no-c-format
-msgid ""
-"The translator example is built as an ear, and contains EJBs and enterprise "
-"beans. As a result, it's structure is more complex than the numberguess "
-"example."
+msgid "The translator example is built as an ear, and contains EJBs and enterprise
beans. As a result, it's structure is more complex than the numberguess
example."
msgstr ""
#. Tag: para
#: ri.xml:331
#, no-c-format
-msgid ""
-"EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make "
-"this structure much simpler!"
+msgid "EJB 3.1 and Jave EE 6 allow you to package EJBs in a war, which will make
this structure much simpler!"
msgstr ""
#. Tag: para
#: ri.xml:337
#, no-c-format
-msgid ""
-"First, let's take a look at the ear aggregator, which is located in "
-"<literal>webbeans-translator-ear</literal> module. Maven automatically
"
-"generates the <literal>application.xml</literal> and
<literal>jboss-app.xml</"
-"literal> for us:"
+msgid "First, let's take a look at the ear aggregator, which is located in
<literal>webbeans-translator-ear</literal> module. Maven automatically
generates the <literal>application.xml</literal> and
<literal>jboss-app.xml</literal> for us:"
msgstr ""
#. Tag: programlisting
@@ -607,29 +653,38 @@
" </webModule>\n"
" </modules>\n"
" <jboss>\n"
-"
<loader-repository>webbeans.jboss.org:loader=webbeans-translator</"
-"loader-repository>\n"
+"
<loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-repository>\n"
" </jboss>\n"
" </configuration>\n"
"</plugin>]]>"
msgstr ""
+"<![CDATA[<plugin>\n"
+" <groupId>org.apache.maven.plugins</groupId>\n"
+" <artifactId>maven-ear-plugin</artifactId>\n"
+" <configuration>\n"
+" <modules>\n"
+" <webModule>\n"
+"
<groupId>org.jboss.webbeans.examples.translator</groupId>\n"
+" <artifactId>webbeans-translator-war</artifactId>\n"
+" <contextRoot>/webbeans-translator</contextRoot>\n"
+" </webModule>\n"
+" </modules>\n"
+" <jboss>\n"
+"
<loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-repository>\n"
+" </jboss>\n"
+" </configuration>\n"
+"</plugin>]]>"
#. Tag: para
#: ri.xml:346
#, no-c-format
-msgid ""
-"We're doing a couple of things here - firstly we set the context path, which
"
-"gives us a nice url (<ulink
url=\"http://localhost:8080/webbeans-translator"
-"\">http://localhost:8080/webbeans-translator</ulink>) and we also
enable "
-"class loader isolation for JBoss AS."
+msgid "We're doing a couple of things here - firstly we set the context path,
which gives us a nice url (<ulink
url=\"http://localhost:8080/webbeans-translator\">http://localhost:8080/webbeans-translator</ulink>)
and we also enable class loader isolation for JBoss AS."
msgstr ""
#. Tag: para
#: ri.xml:354
#, no-c-format
-msgid ""
-"If you aren't using Maven to generate these files, you would need "
-"<literal>META-INF/jboss-app.xml</literal>:"
+msgid "If you aren't using Maven to generate these files, you would need
<literal>META-INF/jboss-app.xml</literal>:"
msgstr ""
#. Tag: programlisting
@@ -641,16 +696,22 @@
" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
"<jboss-app>\n"
-"
<loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-"
-"repository>\n"
+"
<loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-repository>\n"
"</jboss-app>]]>"
msgstr ""
+"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
+"<!DOCTYPE jboss-app\n"
+" PUBLIC \"-//JBoss//DTD J2EE Application 4.2//EN\"\n"
+" \"http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd\">\n"
+"<jboss-app>\n"
+"
<loader-repository>webbeans.jboss.org:loader=webbeans-translator</loader-repository>\n"
+"</jboss-app>]]>"
#. Tag: para
#: ri.xml:361
#, no-c-format
msgid "and <literal>META-INF/application.xml</literal>:"
-msgstr ""
+msgstr "e <literal>META-INF/application.xml</literal>:"
#. Tag: programlisting
#: ri.xml:365
@@ -659,12 +720,10 @@
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
"<application
xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
-"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://"
-"java.sun.com/xml/ns/javaee/application_5.xsd\"\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd\"\n"
" version=\"5\">\n"
" <display-name>webbeans-translator-ear</display-name>\n"
-" <description>Ear Example for the reference implementation of JSR 299: Web
"
-"Beans</description>\n"
+" <description>Ear Example for the reference implementation of JSR 299: Web
Beans</description>\n"
" \n"
" <module>\n"
" <web>\n"
@@ -677,24 +736,35 @@
" </module>\n"
"</application>]]>"
msgstr ""
+"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
+"<application
xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/application_5.xsd\"\n"
+" version=\"5\">\n"
+" <display-name>webbeans-translator-ear</display-name>\n"
+" <description>Ear Example for the reference implementation of JSR 299: Web
Beans</description>\n"
+" \n"
+" <module>\n"
+" <web>\n"
+" <web-uri>webbeans-translator.war</web-uri>\n"
+" <context-root>/webbeans-translator</context-root>\n"
+" </web>\n"
+" </module>\n"
+" <module>\n"
+" <ejb>webbeans-translator.jar</ejb>\n"
+" </module>\n"
+"</application>]]>"
#. Tag: para
#: ri.xml:368
#, no-c-format
-msgid ""
-"Next, lets look at the war. Just as in the numberguess example, we have a "
-"<literal>faces-config.xml</literal> (to enabled Facelets) and a
<literal>web."
-"xml</literal> (to enable JSF and attach Web Beans services to the servlet
"
-"container) in <literal>WebContent/WEB-INF</literal>."
+msgid "Next, lets look at the war. Just as in the numberguess example, we have a
<literal>faces-config.xml</literal> (to enabled Facelets) and a
<literal>web.xml</literal> (to enable JSF and attach Web Beans services to the
servlet container) in <literal>WebContent/WEB-INF</literal>."
msgstr ""
#. Tag: para
#: ri.xml:375
#, no-c-format
-msgid ""
-"More intersting is the facelet used to translate text. Just as in the "
-"numberguess example we have a template, which surrounds the form (ommitted "
-"here for brevity):"
+msgid "More intersting is the facelet used to translate text. Just as in the
numberguess example we have a template, which surrounds the form (ommitted here for
brevity):"
msgstr ""
#. Tag: programlisting
@@ -714,8 +784,7 @@
" </tr>\n"
" <tr>\n"
" <td>\n"
-" <h:inputTextarea id=\"text\"
value=\"#{translator.text}\" "
-"required=\"true\" rows=\"5\" cols=\"80\"
/>\n"
+" <h:inputTextarea id=\"text\"
value=\"#{translator.text}\" required=\"true\" rows=\"5\"
cols=\"80\" />\n"
" </td>\n"
" <td>\n"
" <h:outputText value=\"#{translator.translatedText}\"
/>\n"
@@ -723,32 +792,47 @@
" </tr>\n"
" </table>\n"
" <div>\n"
-" <h:commandButton id=\"button\" value=\"Translate\"
action=\"#"
-"{translator.translate}\"/>\n"
+" <h:commandButton id=\"button\" value=\"Translate\"
action=\"#{translator.translate}\"/>\n"
" </div>\n"
" \n"
"</h:form>]]>"
msgstr ""
+"<![CDATA[<h:form id=\"NumberGuessMain\">\n"
+" \n"
+" <table>\n"
+" <tr align=\"center\" style=\"font-weight: bold\"
>\n"
+" <td>\n"
+" Your text\n"
+" </td>\n"
+" <td>\n"
+" Translation\n"
+" </td>\n"
+" </tr>\n"
+" <tr>\n"
+" <td>\n"
+" <h:inputTextarea id=\"text\"
value=\"#{translator.text}\" required=\"true\" rows=\"5\"
cols=\"80\" />\n"
+" </td>\n"
+" <td>\n"
+" <h:outputText value=\"#{translator.translatedText}\"
/>\n"
+" </td>\n"
+" </tr>\n"
+" </table>\n"
+" <div>\n"
+" <h:commandButton id=\"button\" value=\"Translate\"
action=\"#{translator.translate}\"/>\n"
+" </div>\n"
+" \n"
+"</h:form>]]>"
#. Tag: para
#: ri.xml:383
#, no-c-format
-msgid ""
-"The user can enter some text in the lefthand textarea, and hit the translate
"
-"button to see the result to the right."
+msgid "The user can enter some text in the lefthand textarea, and hit the translate
button to see the result to the right."
msgstr ""
#. Tag: para
#: ri.xml:388
#, no-c-format
-msgid ""
-"Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</"
-"literal>. There are two configuration files in
<literal>src/main/resources/"
-"META-INF</literal>, an empty <literal>web-beans.xml</literal>,
used to mark "
-"the archive as containing Web Beans, and
<literal>ejb-jar.xml</literal>. Web "
-"Beans provides injection and initializtion services for all EJBs, and uses "
-"<literal>ejb-jar.xml</literal> to enable this, you'll need this in
any EJB "
-"project which uses Web Beans:"
+msgid "Finally, let's look at the ejb module,
<literal>webbeans-translator-ejb</literal>. There are two configuration files
in <literal>src/main/resources/META-INF</literal>, an empty
<literal>web-beans.xml</literal>, used to mark the archive as containing Web
Beans, and <literal>ejb-jar.xml</literal>. Web Beans provides injection and
initializtion services for all EJBs, and uses <literal>ejb-jar.xml</literal>
to enable this, you'll need this in any EJB project which uses Web Beans:"
msgstr ""
#. Tag: programlisting
@@ -758,47 +842,55 @@
"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
"<ejb-jar
xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
\n"
-"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java."
-"sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
" version=\"3.0\">\n"
" \n"
" <interceptors>\n"
" <interceptor>\n"
-"
<interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
+"
<interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</interceptor-class>\n"
" </interceptor>\n"
" </interceptors>\n"
" \n"
" <assembly-descriptor>\n"
" <interceptor-binding>\n"
" <ejb-name>*</ejb-name>\n"
-"
<interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</"
-"interceptor-class>\n"
+"
<interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</interceptor-class>\n"
" </interceptor-binding>\n"
" </assembly-descriptor>\n"
" \n"
"</ejb-jar>]]>"
msgstr ""
+"<![CDATA[<?xml version=\"1.0\"
encoding=\"UTF-8\"?>\n"
+"<ejb-jar
xmlns=\"http://java.sun.com/xml/ns/javaee\" \n"
+"
xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"
\n"
+"
xsi:schemaLocation=\"http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd\"\n"
+" version=\"3.0\">\n"
+" \n"
+" <interceptors>\n"
+" <interceptor>\n"
+"
<interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</interceptor-class>\n"
+" </interceptor>\n"
+" </interceptors>\n"
+" \n"
+" <assembly-descriptor>\n"
+" <interceptor-binding>\n"
+" <ejb-name>*</ejb-name>\n"
+"
<interceptor-class>org.jboss.webbeans.ejb.SessionBeanInterceptor</interceptor-class>\n"
+" </interceptor-binding>\n"
+" </assembly-descriptor>\n"
+" \n"
+"</ejb-jar>]]>"
#. Tag: para
#: ri.xml:402
#, no-c-format
-msgid ""
-"We've saved the most interesting bit to last, the code! The project has two
"
-"simple beans, <literal>SentanceParser</literal> and
<literal>TextTranslator</"
-"literal> and two enterprise beans,
<literal>TanslatorControllerBean</"
-"literal> and <literal>SentenceTranslator</literal>. You should be
getting "
-"quite familiar with what a Web Bean looks like by now, so we'll just "
-"highlight the most interesting bits here."
+msgid "We've saved the most interesting bit to last, the code! The project has
two simple beans, <literal>SentanceParser</literal> and
<literal>TextTranslator</literal> and two enterprise beans,
<literal>TanslatorControllerBean</literal> and
<literal>SentenceTranslator</literal>. You should be getting quite familiar
with what a Web Bean looks like by now, so we'll just highlight the most interesting
bits here."
msgstr ""
#. Tag: para
#: ri.xml:412
#, no-c-format
-msgid ""
-"Both <literal>SentanceParser</literal> and
<literal>TextTranslator</literal> "
-"are dependent beans, and <literal>TextTranslator</literal> uses
constructor "
-"initialization:"
+msgid "Both <literal>SentanceParser</literal> and
<literal>TextTranslator</literal> are dependent beans, and
<literal>TextTranslator</literal> uses constructor initialization:"
msgstr ""
#. Tag: programlisting
@@ -810,29 +902,31 @@
" private Translator sentenceTranslator; \n"
" \n"
" @Initializer\n"
-" TextTranslator(SentenceParser sentenceParser, Translator "
-"sentenceTranslator) \n"
+" TextTranslator(SentenceParser sentenceParser, Translator sentenceTranslator)
\n"
" { \n"
" this.sentenceParser = sentenceParser; \n"
" this.sentenceTranslator = sentenceTranslator;]]>"
msgstr ""
+"<![CDATA[public class TextTranslator { \n"
+" private SentenceParser sentenceParser; \n"
+" private Translator sentenceTranslator; \n"
+" \n"
+" @Initializer\n"
+" TextTranslator(SentenceParser sentenceParser, Translator sentenceTranslator)
\n"
+" { \n"
+" this.sentenceParser = sentenceParser; \n"
+" this.sentenceTranslator = sentenceTranslator;]]>"
#. Tag: para
#: ri.xml:420
#, no-c-format
-msgid ""
-"<literal>TextTranslator</literal> is a stateless bean (with a local
business "
-"interface), where the magic happens - of course, we couldn't develop a full
"
-"translator, but we gave it a good go!"
+msgid "<literal>TextTranslator</literal> is a stateless bean (with a
local business interface), where the magic happens - of course, we couldn't develop a
full translator, but we gave it a good go!"
msgstr ""
#. Tag: para
#: ri.xml:426
#, no-c-format
-msgid ""
-"Finally, there is UI orientated controller, that collects the text from the "
-"user, and dispatches it to the translator. This is a request scoped, named, "
-"stateful session bean, which injects the translator."
+msgid "Finally, there is UI orientated controller, that collects the text from the
user, and dispatches it to the translator. This is a request scoped, named, stateful
session bean, which injects the translator."
msgstr ""
#. Tag: programlisting
@@ -847,6 +941,13 @@
" \n"
" @Current TextTranslator translator;]]>"
msgstr ""
+"<![CDATA[@Stateful\n"
+"@RequestScoped\n"
+"@Named(\"translator\")\n"
+"public class TranslatorControllerBean implements TranslatorController\n"
+"{\n"
+" \n"
+" @Current TextTranslator translator;]]>"
#. Tag: para
#: ri.xml:434
@@ -870,29 +971,27 @@
" \n"
" }]]>"
msgstr ""
+"<![CDATA[ @Remove\n"
+" public void remove()\n"
+" {\n"
+" \n"
+" }]]>"
#. Tag: para
#: ri.xml:444
#, no-c-format
-msgid ""
-"The Web Beans manager will call the remove method for you when the bean is "
-"destroyed; in this case at the end of the request."
+msgid "The Web Beans manager will call the remove method for you when the bean is
destroyed; in this case at the end of the request."
msgstr ""
#. Tag: para
#: ri.xml:450
#, no-c-format
-msgid ""
-"That concludes our short tour of the Web Beans RI examples. For more on the "
-"RI, or to help out, please visit <ulink
url=\"http://www.seamframework.org/"
-"WebBeans/Development\">http://www.seamframework.org/WebBeans/Development</"
-"ulink>."
+msgid "That concludes our short tour of the Web Beans RI examples. For more on the
RI, or to help out, please visit <ulink
url=\"http://www.seamframework.org/WebBeans/Development\">ht...
msgstr ""
#. Tag: para
#: ri.xml:456
#, no-c-format
-msgid ""
-"We need help in all areas - bug fixing, writing new features, writing "
-"examples and translating this reference guide."
+msgid "We need help in all areas - bug fixing, writing new features, writing
examples and translating this reference guide."
msgstr ""
+