Seam SVN: r10342 - trunk/seam-gen/view.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 19:20:21 -0400 (Tue, 07 Apr 2009)
New Revision: 10342
Modified:
trunk/seam-gen/view/list.xhtml.ftl
Log:
add result count to header (and be smart about it if there is only one page)
Modified: trunk/seam-gen/view/list.xhtml.ftl
===================================================================
--- trunk/seam-gen/view/list.xhtml.ftl 2009-04-07 23:18:11 UTC (rev 10341)
+++ trunk/seam-gen/view/list.xhtml.ftl 2009-04-07 23:20:21 UTC (rev 10342)
@@ -65,7 +65,7 @@
</h:form>
<rich:panel>
- <f:facet name="header">${entityName} Search Results</f:facet>
+ <f:facet name="header">${entityName} Search Results (${'#'}{empty ${listName}.resultList ? 0 : (${listName}.paginated ? ${listName}.resultCount : ${listName}.resultList.size)})</f:facet>
<div class="results" id="${componentName}List">
<h:outputText value="The ${componentName} search returned no results."
15 years, 7 months
Seam SVN: r10341 - trunk/src/main/org/jboss/seam/framework.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 19:18:11 -0400 (Tue, 07 Apr 2009)
New Revision: 10341
Modified:
trunk/src/main/org/jboss/seam/framework/Query.java
Log:
JBSEAM-3643
Modified: trunk/src/main/org/jboss/seam/framework/Query.java
===================================================================
--- trunk/src/main/org/jboss/seam/framework/Query.java 2009-04-07 22:31:57 UTC (rev 10340)
+++ trunk/src/main/org/jboss/seam/framework/Query.java 2009-04-07 23:18:11 UTC (rev 10341)
@@ -32,6 +32,7 @@
private static final Pattern FROM_PATTERN = Pattern.compile("(^|\\s)(from)\\s", Pattern.CASE_INSENSITIVE);
private static final Pattern WHERE_PATTERN = Pattern.compile("\\s(where)\\s", Pattern.CASE_INSENSITIVE);
private static final Pattern ORDER_PATTERN = Pattern.compile("\\s(order)(\\s)+by\\s", Pattern.CASE_INSENSITIVE);
+ private static final Pattern GROUP_PATTERN = Pattern.compile("\\s(group)(\\s)+by\\s", Pattern.CASE_INSENSITIVE);
private static final Pattern ORDER_COLUMN_PATTERN = Pattern.compile("^\\w+(\\.\\w+)*$");
@@ -287,27 +288,41 @@
throw new IllegalArgumentException("no from clause found in query");
}
int fromLoc = fromMatcher.start(2);
-
+
+ // TODO can we just create a protected method that builds the query w/o the order by and group by clauses?
Matcher orderMatcher = ORDER_PATTERN.matcher(ejbql);
int orderLoc = orderMatcher.find() ? orderMatcher.start(1) : ejbql.length();
+ Matcher groupMatcher = GROUP_PATTERN.matcher(ejbql);
+ int groupLoc = groupMatcher.find() ? groupMatcher.start(1) : orderLoc;
+
Matcher whereMatcher = WHERE_PATTERN.matcher(ejbql);
- int whereLoc = whereMatcher.find() ? whereMatcher.start(1) : orderLoc;
+ int whereLoc = whereMatcher.find() ? whereMatcher.start(1) : groupLoc;
- String subject = "*";
+ String subject;
+ if (getGroupBy() != null) {
+ subject = "distinct " + getGroupBy();
+ }
+ else if (useWildcardAsCountQuerySubject) {
+ subject = "*";
+ }
// to be JPA-compliant, we need to make this query like "select count(u) from User u"
// however, Hibernate produces queries some databases cannot run when the primary key is composite
- if (!useWildcardAsCountQuerySubject) {
+ else {
Matcher subjectMatcher = SUBJECT_PATTERN.matcher(ejbql);
if ( subjectMatcher.find() )
{
subject = subjectMatcher.group(1);
}
+ else
+ {
+ throw new IllegalStateException("invalid select clause for query");
+ }
}
return new StringBuilder(ejbql.length() + 15).append("select count(").append(subject).append(") ").
append(ejbql.substring(fromLoc, whereLoc).replace("join fetch", "join")).
- append(ejbql.substring(whereLoc, orderLoc)).toString().trim();
+ append(ejbql.substring(whereLoc, groupLoc)).toString().trim();
}
public String getEjbql()
@@ -348,6 +363,14 @@
public abstract boolean isNextExists();
/**
+ * Returns true if the query is paginated, revealing
+ * whether navigation controls are needed.
+ */
+ public boolean isPaginated() {
+ return isNextExists() || isPreviousExists();
+ }
+
+ /**
* Set the index at which the page to display should start
*/
public void setFirstResult(Integer firstResult)
15 years, 7 months
Seam SVN: r10340 - trunk/seam-gen/src.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 18:31:57 -0400 (Tue, 07 Apr 2009)
New Revision: 10340
Modified:
trunk/seam-gen/src/Query.java
Log:
switch to using constructor to prepare Query
Modified: trunk/seam-gen/src/Query.java
===================================================================
--- trunk/seam-gen/src/Query.java 2009-04-07 21:22:43 UTC (rev 10339)
+++ trunk/seam-gen/src/Query.java 2009-04-07 22:31:57 UTC (rev 10340)
@@ -1,16 +1,22 @@
package @actionPackage@;
+import @modelPackage@.@entityName@;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityQuery;
+import java.util.Arrays;
@Name("@componentName@")
-public class @beanName@ extends EntityQuery
+public class @beanName@ extends EntityQuery<@entityName@>
{
- @Override
- public String getEjbql()
+ private static final String EJBQL = "@query@";
+ private static final String[] RESTRICTIONS = {};
+
+ public @beanName@()
{
- return "@query@";
+ setEjbql(EJBQL);
+ setRestrictionExpressionStrings(Arrays.asList(RESTRICTIONS));
+ setMaxResults(25);
}
@RequestParameter
@@ -18,10 +24,4 @@
public void setFirstResult(Integer firstResult) {
super.setFirstResult(firstResult);
}
-
- @Override
- public Integer getMaxResults() {
- return 25;
- }
-
}
15 years, 7 months
Seam SVN: r10339 - in trunk/seam-gen: build-scripts and 1 other directory.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 17:22:43 -0400 (Tue, 07 Apr 2009)
New Revision: 10339
Modified:
trunk/seam-gen/build-scripts/build-war.xml
trunk/seam-gen/build-scripts/build.xml
trunk/seam-gen/build.xml
Log:
JBSEAM-3854
Modified: trunk/seam-gen/build-scripts/build-war.xml
===================================================================
--- trunk/seam-gen/build-scripts/build-war.xml 2009-04-07 20:49:45 UTC (rev 10338)
+++ trunk/seam-gen/build-scripts/build-war.xml 2009-04-07 21:22:43 UTC (rev 10339)
@@ -419,6 +419,11 @@
</target>
<target name="test" depends="buildtest" description="Run the tests">
+ <fail message="Cannot run tests because path to project contains spaces.">
+ <condition>
+ <contains string="${basedir}" substring=" "/>
+ </condition>
+ </fail>
<condition property="incompatible.jdk" value="true">
<and>
<equals arg1="${ant.java.version}" arg2="1.6"/>
Modified: trunk/seam-gen/build-scripts/build.xml
===================================================================
--- trunk/seam-gen/build-scripts/build.xml 2009-04-07 20:49:45 UTC (rev 10338)
+++ trunk/seam-gen/build-scripts/build.xml 2009-04-07 21:22:43 UTC (rev 10339)
@@ -438,6 +438,11 @@
</target>
<target name="test" depends="buildtest" description="Run the tests">
+ <fail message="Cannot run tests because path to project contains spaces.">
+ <condition>
+ <contains string="${basedir}" substring=" "/>
+ </condition>
+ </fail>
<condition property="incompatible.jdk" value="true">
<and>
<equals arg1="${ant.java.version}" arg2="1.6"/>
Modified: trunk/seam-gen/build.xml
===================================================================
--- trunk/seam-gen/build.xml 2009-04-07 20:49:45 UTC (rev 10338)
+++ trunk/seam-gen/build.xml 2009-04-07 21:22:43 UTC (rev 10339)
@@ -222,7 +222,7 @@
<echo message=""/>
<property name="old.workspace.home" value="${workspace.home}"/>
<input addproperty="workspace.home.new"
- message="Enter your project workspace (the directory that contains your Seam projects) [${old.workspace.home}]"
+ message="Enter the directory where you want the project to be created (should not contain spaces) [${old.workspace.home}]"
defaultvalue="${old.workspace.home}"/>
<pathFixer property="workspace.home.new"/>
@@ -1662,6 +1662,14 @@
<target name="test" depends="validate-project" if="project.exists"
description="Run the automated tests">
+ <fail message="Cannot run tests because path to project contains spaces">
+ <condition>
+ <or>
+ <contains string="${workspace.home}" substring=" "/>
+ <contains string="${project.name}" substring=" "/>
+ </or>
+ </condition>
+ </fail>
<echo message="Running tests for project '${project.name}'"/>
<ant antfile="${project.home}/build.xml" target="test" inheritall="false"/>
</target>
15 years, 7 months
Seam SVN: r10338 - trunk/src/main/org/jboss/seam/framework.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 16:49:45 -0400 (Tue, 07 Apr 2009)
New Revision: 10338
Modified:
trunk/src/main/org/jboss/seam/framework/Query.java
Log:
replace "and" with constant
Modified: trunk/src/main/org/jboss/seam/framework/Query.java
===================================================================
--- trunk/src/main/org/jboss/seam/framework/Query.java 2009-04-07 20:47:59 UTC (rev 10337)
+++ trunk/src/main/org/jboss/seam/framework/Query.java 2009-04-07 20:49:45 UTC (rev 10338)
@@ -503,7 +503,7 @@
private String sanitizeRestrictionLogicOperator(String operator) {
if (operator == null || operator.trim().length() == 0)
{
- return "and";
+ return LOGIC_OPERATOR_AND;
}
if (!(LOGIC_OPERATOR_AND.equals(operator) || LOGIC_OPERATOR_OR.equals(operator)))
{
15 years, 7 months
Seam SVN: r10337 - in trunk: seam-gen/view and 2 other directories.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 16:47:59 -0400 (Tue, 07 Apr 2009)
New Revision: 10337
Modified:
trunk/seam-gen/icefaces/view/list.page.xml.ftl
trunk/seam-gen/icefaces/view/list.xhtml.ftl
trunk/seam-gen/view/list.page.xml.ftl
trunk/seam-gen/view/list.xhtml.ftl
trunk/seam-gen/view/stylesheet/theme.css
trunk/src/main/org/jboss/seam/framework/Query.java
Log:
JBSEAM-3677
Modified: trunk/seam-gen/icefaces/view/list.page.xml.ftl
===================================================================
--- trunk/seam-gen/icefaces/view/list.page.xml.ftl 2009-04-07 19:03:20 UTC (rev 10336)
+++ trunk/seam-gen/icefaces/view/list.page.xml.ftl 2009-04-07 20:47:59 UTC (rev 10337)
@@ -16,6 +16,7 @@
<param name="firstResult" value="${'#'}{${listName}.firstResult}"/>
<param name="sort" value="${'#'}{${listName}.orderColumn}"/>
<param name="dir" value="${'#'}{${listName}.orderDirection}"/>
+ <param name="logic" value="${'#'}{${listName}.restrictionLogicOperator}"/>
<param name="from"/>
<#foreach property in pojo.allPropertiesIterator>
<#if !c2h.isCollection(property) && !isToOne(property) && property != pojo.versionProperty!>
Modified: trunk/seam-gen/icefaces/view/list.xhtml.ftl
===================================================================
--- trunk/seam-gen/icefaces/view/list.xhtml.ftl 2009-04-07 19:03:20 UTC (rev 10336)
+++ trunk/seam-gen/icefaces/view/list.xhtml.ftl 2009-04-07 20:47:59 UTC (rev 10337)
@@ -57,6 +57,13 @@
</#if>
</#if>
</#foreach>
+ <s:decorate template="layout/display.xhtml">
+ <ui:define name="label">Match</ui:define>
+ <ice:selectOneRadio id="logic" value="${'#'}{${listName}.restrictionLogicOperator}" partialSubmit="true">
+ <f:selectItem itemLabel="All" itemValue="and"/>
+ <f:selectItem itemLabel="Any" itemValue="or"/>
+ </ice:selectOneRadio>
+ </s:decorate>
</ice:panelGroup>
Modified: trunk/seam-gen/view/list.page.xml.ftl
===================================================================
--- trunk/seam-gen/view/list.page.xml.ftl 2009-04-07 19:03:20 UTC (rev 10336)
+++ trunk/seam-gen/view/list.page.xml.ftl 2009-04-07 20:47:59 UTC (rev 10337)
@@ -10,6 +10,7 @@
<param name="firstResult" value="${'#'}{${listName}.firstResult}"/>
<param name="sort" value="${'#'}{${listName}.orderColumn}"/>
<param name="dir" value="${'#'}{${listName}.orderDirection}"/>
+ <param name="logic" value="${'#'}{${listName}.restrictionLogicOperator}"/>
<param name="from"/>
<#foreach property in pojo.allPropertiesIterator>
Modified: trunk/seam-gen/view/list.xhtml.ftl
===================================================================
--- trunk/seam-gen/view/list.xhtml.ftl 2009-04-07 19:03:20 UTC (rev 10336)
+++ trunk/seam-gen/view/list.xhtml.ftl 2009-04-07 20:47:59 UTC (rev 10337)
@@ -47,6 +47,13 @@
</#if>
</#if>
</#foreach>
+ <s:decorate template="layout/display.xhtml">
+ <ui:define name="label">Match</ui:define>
+ <h:selectOneRadio id="logic" value="${'#'}{${listName}.restrictionLogicOperator}" styleClass="radio">
+ <f:selectItem itemLabel="All" itemValue="and"/>
+ <f:selectItem itemLabel="Any" itemValue="or"/>
+ </h:selectOneRadio>
+ </s:decorate>
</rich:simpleTogglePanel>
Modified: trunk/seam-gen/view/stylesheet/theme.css
===================================================================
--- trunk/seam-gen/view/stylesheet/theme.css 2009-04-07 19:03:20 UTC (rev 10336)
+++ trunk/seam-gen/view/stylesheet/theme.css 2009-04-07 20:47:59 UTC (rev 10337)
@@ -209,3 +209,15 @@
padding-left: 1px;
padding-right: 1px;
}
+
+table.radio {
+ border: 0;
+}
+
+table.radio td {
+ padding: 0 2px;
+}
+
+table.radio input[type=radio] {
+ vertical-align: bottom;
+}
Modified: trunk/src/main/org/jboss/seam/framework/Query.java
===================================================================
--- trunk/src/main/org/jboss/seam/framework/Query.java 2009-04-07 19:03:20 UTC (rev 10336)
+++ trunk/src/main/org/jboss/seam/framework/Query.java 2009-04-07 20:47:59 UTC (rev 10337)
@@ -37,6 +37,8 @@
private static final String DIR_ASC = "asc";
private static final String DIR_DESC = "desc";
+ private static final String LOGIC_OPERATOR_AND = "and";
+ private static final String LOGIC_OPERATOR_OR = "or";
private String ejbql;
private Integer firstResult;
@@ -45,7 +47,7 @@
private String order;
private String orderColumn;
private String orderDirection;
-
+ private String restrictionLogicOperator;
private String groupBy;
private boolean useWildcardAsCountQuerySubject = true;
@@ -244,7 +246,7 @@
{
if ( WHERE_PATTERN.matcher(builder).find() )
{
- builder.append(" and ");
+ builder.append(" ").append(getRestrictionLogicOperator()).append(" ");
}
else
{
@@ -488,6 +490,30 @@
}
}
+ public String getRestrictionLogicOperator()
+ {
+ return restrictionLogicOperator != null ? restrictionLogicOperator : LOGIC_OPERATOR_AND;
+ }
+
+ public void setRestrictionLogicOperator(String operator)
+ {
+ restrictionLogicOperator = sanitizeRestrictionLogicOperator(operator);
+ }
+
+ private String sanitizeRestrictionLogicOperator(String operator) {
+ if (operator == null || operator.trim().length() == 0)
+ {
+ return "and";
+ }
+ if (!(LOGIC_OPERATOR_AND.equals(operator) || LOGIC_OPERATOR_OR.equals(operator)))
+ {
+ throw new IllegalArgumentException("Invalid restriction logic operator: " + operator);
+ }
+ else
+ {
+ return operator;
+ }
+ }
protected List<ValueExpression> getQueryParameters()
{
return queryParameters;
15 years, 7 months
Seam SVN: r10336 - trunk/seam-gen/build-scripts.
by seam-commits@lists.jboss.org
Author: dan.j.allen
Date: 2009-04-07 15:03:20 -0400 (Tue, 07 Apr 2009)
New Revision: 10336
Modified:
trunk/seam-gen/build-scripts/glassfish-build.xml
Log:
add support for Windows
Modified: trunk/seam-gen/build-scripts/glassfish-build.xml
===================================================================
--- trunk/seam-gen/build-scripts/glassfish-build.xml 2009-04-07 15:57:43 UTC (rev 10335)
+++ trunk/seam-gen/build-scripts/glassfish-build.xml 2009-04-07 19:03:20 UTC (rev 10336)
@@ -14,7 +14,14 @@
<condition>
<or>
<length string="${glassfish.home}" trim="true" length="0"/>
- <not><available file="${glassfish.home}/bin/asadmin"/></not>
+ <and>
+ <not><os family="windows"/></not>
+ <not><available file="${glassfish.home}/bin/asadmin"/></not>
+ </and>
+ <and>
+ <os family="windows"/>
+ <not><available file="${glassfish.home}/bin/asadmin.bat"/></not>
+ </and>
</or>
</condition>
</fail>
@@ -31,7 +38,17 @@
</condition>
</fail>
<pre-conditions/>
- <exec executable="${glassfish.home}/bin/asadmin">
+ <!-- Windows batch files (.bat) cannot be executed directly. Must be executed using the command shell (cmd.exe) with the /c switch. -->
+ <condition property="asadmin.cmd" value="cmd.exe">
+ <os family="windows"/>
+ </condition>
+ <condition property="asadmin.arg1" value="/c ${glassfish.home}/bin/asadmin">
+ <os family="windows"/>
+ </condition>
+ <property name="asadmin.cmd" value="${glassfish.home}/bin/asadmin"/>
+ <property name="asadmin.arg1" value=""/>
+ <exec executable="${asadmin.cmd}">
+ <arg line="${asadmin.arg1}"/>
<arg value="@{cmd}"/>
<arg line="@{args}"/>
<redirector outputproperty="gf.cmd.output" alwayslog="@{log}"/>
15 years, 7 months
Seam SVN: r10335 - trunk/examples/restbay/resources/WEB-INF.
by seam-commits@lists.jboss.org
Author: christian.bauer(a)jboss.com
Date: 2009-04-07 11:57:43 -0400 (Tue, 07 Apr 2009)
New Revision: 10335
Modified:
trunk/examples/restbay/resources/WEB-INF/components.xml
Log:
Formatting
Modified: trunk/examples/restbay/resources/WEB-INF/components.xml
===================================================================
--- trunk/examples/restbay/resources/WEB-INF/components.xml 2009-04-07 13:44:03 UTC (rev 10334)
+++ trunk/examples/restbay/resources/WEB-INF/components.xml 2009-04-07 15:57:43 UTC (rev 10335)
@@ -16,35 +16,33 @@
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.1.xsd
http://jboss.com/products/seam/async http://jboss.com/products/seam/async-2.1.xsd
http://jboss.com/products/seam/web http://jboss.com/products/seam/web-2.1.xsd
- http://jboss.com/products/seam/resteasy /home/jharting/jboss/workspace/Seam_trunk_working_copy/src/resteasy/org/jboss/seam/resteasy/resteasy-2.1.xsd
+ http://jboss.com/products/seam/resteasy http://jboss.com/products/seam/resteasy-2.1.xsd
http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.1.xsd
http://jboss.com/products/seam/drools http://jboss.com/products/seam/drools-2.1.xsd">
- <!-- TODO change back the reference -->
<core:init jndi-pattern="@jndiPattern@" debug="true"/>
-
- <core:manager conversation-timeout="120000"
+
+ <core:manager conversation-timeout="120000"
concurrent-request-timeout="500"
conversation-id-parameter="cid"/>
-
+
<persistence:managed-persistence-context name="entityManager" auto-create="true"
- persistence-unit-jndi-name="java:/restbayEntityManagerFactory"/>
+ persistence-unit-jndi-name="java:/restbayEntityManagerFactory"/>
<async:quartz-dispatcher/>
<framework:entity-home name="categoryHome"
- entity-class="org.jboss.seam.example.restbay.Category"
- auto-create="true" />
-
- <resteasy:application resource-path-prefix="/restv1">
- </resteasy:application>
-
- <resteasy:resource-home path="/configuredCategory" name="configuredCategoryResourceHome"
- entity-home="#{categoryHome}" entity-id-class="java.lang.Integer"
- media-types="application/xml application/json" />
-
- <resteasy:resource-query path="/configuredCategory" name="configuredCategoryResourceQuery"
- entity-class="org.jboss.seam.example.restbay.Category"
- media-types="application/xml application/json"/>
+ entity-class="org.jboss.seam.example.restbay.Category"
+ auto-create="true"/>
+ <resteasy:application resource-path-prefix="/restv1"/>
+
+ <resteasy:resource-home path="/configuredCategory" name="configuredCategoryResourceHome"
+ entity-home="#{categoryHome}" entity-id-class="java.lang.Integer"
+ media-types="application/xml application/json"/>
+
+ <resteasy:resource-query path="/configuredCategory" name="configuredCategoryResourceQuery"
+ entity-class="org.jboss.seam.example.restbay.Category"
+ media-types="application/xml application/json"/>
+
</components>
15 years, 7 months
Seam SVN: r10334 - trunk/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-04-07 09:44:03 -0400 (Tue, 07 Apr 2009)
New Revision: 10334
Modified:
trunk/doc/Seam_Reference_Guide/it-IT/Gettingstarted.po
trunk/doc/Seam_Reference_Guide/it-IT/Wicket.po
Log:
JBSEAM-3767: Italian translation of Seam guide
Modified: trunk/doc/Seam_Reference_Guide/it-IT/Gettingstarted.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/it-IT/Gettingstarted.po 2009-04-07 13:42:04 UTC (rev 10333)
+++ trunk/doc/Seam_Reference_Guide/it-IT/Gettingstarted.po 2009-04-07 13:44:03 UTC (rev 10334)
@@ -6,7 +6,7 @@
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-11-06 00:23+0000\n"
-"PO-Revision-Date: 2009-01-14 11:30+0100\n"
+"PO-Revision-Date: 2009-04-07 15:28+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -47,7 +47,7 @@
#: Gettingstarted.xml:21
#, no-c-format
msgid "Seam-gen is basically just a big ugly Ant script wrapped around Hibernate Tools, together with some templates. That makes it easy to customize if you need to."
-msgstr "Seam-gen è essenzialmente uno script Ant avvolto aattorno a Hibernate Tools, assieme a qualche template. Questo facilita la sua personalizzazione nel caso ce ne sia bisogno."
+msgstr "Seam-gen è essenzialmente uno script Ant avvolto attorno a Hibernate Tools, assieme a qualche template. Questo facilita la sua personalizzazione nel caso ce ne sia bisogno."
#. Tag: title
#: Gettingstarted.xml:25
@@ -249,7 +249,7 @@
#: Gettingstarted.xml:66
#, no-c-format
msgid "The most important choice you need to make is between EAR deployment and WAR deployment of your project. EAR projects support EJB 3.0 and require Java EE 5. WAR projects do not support EJB 3.0, but may be deployed to a J2EE environment. The packaging of a WAR is also simpler to understand. If you installed an EJB3-ready application server like JBoss, choose <literal>ear</literal>. Otherwise, choose <literal>war</literal>. We'll assume that you've chosen an EAR deployment for the rest of the tutorial, but you can follow exactly the same steps for a WAR deployment."
-msgstr "La scelta pià importante da fare è tra il deploy EAR e il deploy WAR del progetto. I progetti EAR supportano EJB 3.0 e richiedono Java EE 5. I progetti WAR non supportano EJB 3.0, ma possono essere deployati in ambienti J2EE. L'impacchettamento di un WAR è più semplice da capire. Se si installa un application server predisposto per EJB3, come JBoss, si scelga <literal>ear</literal>. Altrimenti si scelga <literal>war</literal>. Assumeremo per il resto del tutorial che la scelta sia il deploy EAR, ma si potranno compiere gli stessi passi per il deploy WAR."
+msgstr "La scelta più importante da fare è tra il deploy EAR e il deploy WAR del progetto. I progetti EAR supportano EJB 3.0 e richiedono Java EE 5. I progetti WAR non supportano EJB 3.0, ma possono essere deployati in ambienti J2EE. L'impacchettamento di un WAR è più semplice da capire. Se si installa un application server predisposto per EJB3, come JBoss, si scelga <literal>ear</literal>. Altrimenti si scelga <literal>war</literal>. Assumeremo per il resto del tutorial che la scelta sia il deploy EAR, ma si potranno compiere gli stessi passi per il deploy WAR."
#. Tag: para
#: Gettingstarted.xml:73
@@ -337,7 +337,7 @@
#: Gettingstarted.xml:103
#, no-c-format
msgid "Don't get scared by the XML configuration documents that were generated into the project directory. They are mostly standard Java EE stuff, the stuff you need to create once and then never look at again, and they are 90% the same between all Seam projects. (They are so easy to write that even seam-gen can do it.)"
-msgstr "Non si abbia paura dell'XML, i documenti di configurazione generati nella directory di progetto. Sono per la maggiore parti standard per Java EE, parti che servono per creare la prima volta e poi non si guarderanno più, ed al 90% sono sempre le stesse per ogni progetto Seam. (Sono così facili da scrivere che anche seam-gen può farlo.)"
+msgstr "Non si abbia paura dell'XML, i documenti di configurazione generati nella directory di progetto. Per la maggiore parte delle volte sono standard per Java EE, parti che servono per creare la prima volta e poi non si guarderanno più, ed al 90% sono sempre le stesse per ogni progetto Seam. (Sono così facili da scrivere che anche seam-gen può farlo.)"
#. Tag: para
#: Gettingstarted.xml:107
@@ -355,7 +355,7 @@
#: Gettingstarted.xml:123
#, no-c-format
msgid "If you're used to traditional action-style web frameworks, you're probably wondering how you can create a simple web page with a stateless action method in Java. If you type:"
-msgstr "Se si è abituati ad usare framework web action-style, ci si domanderà come in Java sia possibile creare una semplice pagina web con un metodo d'azione stateless. Se si digita:"
+msgstr "Se si è abituati ad usare un framework web action-style, ci si domanderà come in Java sia possibile creare una semplice pagina web con un metodo d'azione stateless. Se si digita:"
#. Tag: programlisting
#: Gettingstarted.xml:126
@@ -613,7 +613,7 @@
#: Gettingstarted.xml:189
#, no-c-format
msgid "Finally, we want to be able to deploy the application using standard Java EE 5 packaging. First, we need to remove the exploded directory by running <literal>seam unexplode</literal>. To deploy the EAR, we can type <literal>seam deploy</literal> at the command prompt, or run the <literal>deploy</literal> target of the generated project build script. You can undeploy using <literal>seam undeploy</literal> or the <literal>undeploy</literal> target."
-msgstr "Infine si vuole essere in gradi di eseguire il deploy dell'applicazione usando l'impacchettamento standard di Java EE 5. In primo luogo occorre rimuovere la directory esplosa eseguendo <literal>seam unexplode</literal>. Per fare il deploy dell'EAR, si può digitare da linea di comando <literal>seam deploy</literal>, od eseguire il target <literal>deploy</literal> dello script di build del progetto generato. L'undeploy può essere eseguito usando <literal>seam undeploy</literal> od il target <literal>undeploy</literal>."
+msgstr "Infine si vuole essere in grado di eseguire il deploy dell'applicazione usando l'impacchettamento standard di Java EE 5. In primo luogo occorre rimuovere la directory esplosa eseguendo <literal>seam unexplode</literal>. Per fare il deploy dell'EAR, si può digitare da linea di comando <literal>seam deploy</literal>, od eseguire il target <literal>deploy</literal> dello script di build del progetto generato. L'undeploy può essere eseguito usando <literal>seam undeploy</literal> od il target <literal>undeploy</literal>."
#. Tag: para
#: Gettingstarted.xml:195
@@ -758,7 +758,7 @@
#: Gettingstarted.xml:290
#, no-c-format
msgid "JBoss 4.0 does not ship a default configuration compatible with Seam. To run Seam, you must install JBoss 4.0.5 using the JEMS 1.2 installer with the ejb3 profile selected. Seam will not run with an installation that doesn't include EJB3 support. The JEMS installer can be downloaded from <ulink url=\"http://labs.jboss.com/jemsinstaller/downloads\">http://labs.jboss.com/jemsinstaller/downloads</ulink>."
-msgstr "JBoss 4.0 non porta con sé una configurazione di default compatibile con Seam. Per eseguire Seam, occorre installare JBoss 4.0.5 usando l'installer JEMS 1.2 con il profile ejb3 selezionato. Seam non funzionerà con un'installazione che non include il suppoer EJB3. L'installer JEMS può essere scaricato da <ulink url=\"http://labs.jboss.com/jemsinstaller/downloads\">http://labs.jboss.com/jemsinstaller/downloads</ulink>."
+msgstr "JBoss 4.0 non porta con sé una configurazione di default compatibile con Seam. Per eseguire Seam, occorre installare JBoss 4.0.5 usando l'installer JEMS 1.2 con il profile ejb3 selezionato. Seam non funzionerà con un'installazione che non include il supporto EJB3. L'installer JEMS può essere scaricato da <ulink url=\"http://labs.jboss.com/jemsinstaller/downloads\">http://labs.jboss.com/jemsinstaller/downloads</ulink>."
#. Tag: title
#: Gettingstarted.xml:297
Modified: trunk/doc/Seam_Reference_Guide/it-IT/Wicket.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/it-IT/Wicket.po 2009-04-07 13:42:04 UTC (rev 10333)
+++ trunk/doc/Seam_Reference_Guide/it-IT/Wicket.po 2009-04-07 13:44:03 UTC (rev 10334)
@@ -6,7 +6,7 @@
"Project-Id-Version: Seam_Reference_Guide\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2008-12-27 11:29+0000\n"
-"PO-Revision-Date: 2008-12-27 12:47+0100\n"
+"PO-Revision-Date: 2009-04-07 15:43+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: Italian <stefano.travelli(a)gmail.com>\n"
"MIME-Version: 1.0\n"
@@ -351,7 +351,7 @@
#: Wicket.xml:230
#, no-c-format
msgid "Seam automatically installs the Wicket filter for you (ensuring that it is inserted in the correct place for you). But you still need to tell Wicket which <code>WebApplication</code> class to use."
-msgstr "Seam installa automaticamente il filtro Wicket (assicurando che sia inserito nella posizione corretta), ma è ancora necessario indircare a Wicket quale classe <code>WebApplication</code> usare:"
+msgstr "Seam installa automaticamente il filtro Wicket (assicurando che sia inserito nella posizione corretta), ma è ancora necessario indicare a Wicket quale classe <code>WebApplication</code> usare:"
#. Tag: programlisting
#: Wicket.xml:236
15 years, 7 months
Seam SVN: r10333 - trunk/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-04-07 09:42:04 -0400 (Tue, 07 Apr 2009)
New Revision: 10333
Modified:
trunk/doc/Seam_Reference_Guide/it-IT/Conversations.po
Log:
JBSEAM-3767: Italian translation of Seam guide
Modified: trunk/doc/Seam_Reference_Guide/it-IT/Conversations.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/it-IT/Conversations.po 2009-04-07 12:51:06 UTC (rev 10332)
+++ trunk/doc/Seam_Reference_Guide/it-IT/Conversations.po 2009-04-07 13:42:04 UTC (rev 10333)
@@ -6,7 +6,7 @@
"Project-Id-Version: JBoss Seam - Italian Version\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-03-31 09:07+0000\n"
-"PO-Revision-Date: 2009-04-07 14:44+0100\n"
+"PO-Revision-Date: 2009-04-07 15:38+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -1570,7 +1570,7 @@
#: Conversations.xml:1049
#, no-c-format
msgid "Alternatively, you can allow RichFaces handle the error, in which case the user will be presented with a prompt that reads \"View state could't be restored - reload page?\" You can customize this message globally by setting the following message key in an application resource bundle."
-msgstr "In alternativa si può consentire a RichFaces di gestire quest'errore, nel qual caso all'utente verrà presentato un prompt che chiede \"Lo stato della vista non può essere ripristinato - ricaricare la pagina?\ Si può personalizzare questo messaggio impostando la seguente chiave in un resource bundle dell'applicazione."
+msgstr "In alternativa si può consentire a RichFaces di gestire quest'errore, nel qual caso all'utente verrà presentato un prompt che chiede \"Lo stato della vista non può essere ripristinato - ricaricare la pagina?\" Si può personalizzare questo messaggio impostando la seguente chiave in un resource bundle dell'applicazione."
#. Tag: programlisting
#: Conversations.xml:1057
15 years, 7 months