Seam SVN: r10040 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-12 20:01:54 -0500 (Thu, 12 Feb 2009)
New Revision: 10040
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Conversations.xml
trunk/doc/Seam_Reference_Guide/en-US/Events.xml
Log:
JBSEAM-3953
Modified: trunk/doc/Seam_Reference_Guide/en-US/Conversations.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Conversations.xml 2009-02-13 00:54:47 UTC (rev 10039)
+++ trunk/doc/Seam_Reference_Guide/en-US/Conversations.xml 2009-02-13 01:01:54 UTC (rev 10040)
@@ -1176,7 +1176,7 @@
HTTP 503 error:
</para>
- <programlisting role="XML"><![CDATA[ <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace">
+ <programlisting role="XML"><![CDATA[ <exception class="org.jboss.seam.ConcurrentRequestTimeoutException" log-level="trace">
<http-error error-code="503" />
</exception>]]></programlisting>
@@ -1195,7 +1195,7 @@
Alternatively you could redirect to an error page:
</para>
- <programlisting role="XML"><![CDATA[<exception class="org.jboss.seam.ConcurrentRequestTimeoutException" logLevel="trace">
+ <programlisting role="XML"><![CDATA[<exception class="org.jboss.seam.ConcurrentRequestTimeoutException" log-level="trace">
<end-conversation/>
<redirect view-id="/error.xhtml">
<message>The server is too busy to process your request, please try again later</message>
@@ -1275,4 +1275,4 @@
</itemizedlist>
</section>
</section>
-</chapter>
\ No newline at end of file
+</chapter>
Modified: trunk/doc/Seam_Reference_Guide/en-US/Events.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Events.xml 2009-02-13 00:54:47 UTC (rev 10039)
+++ trunk/doc/Seam_Reference_Guide/en-US/Events.xml 2009-02-13 01:01:54 UTC (rev 10040)
@@ -1077,7 +1077,7 @@
For the exception handlers defined in <literal>pages.xml</literal>, it is possible
to declare the logging level at which the exception will be logged, or to even
suppress the exception being logged altogether. The attributes <literal>log</literal>
- and <literal>logLevel</literal> can be used to control exception logging. By setting
+ and <literal>log-level</literal> can be used to control exception logging. By setting
<literal>log="false"</literal> as per the following example, then no log message will
be generated when the specified exception occurs:
</para>
@@ -1090,19 +1090,19 @@
<para>
If the <literal>log</literal> attribute is not specified, then it defaults to <literal>true</literal>
- (i.e. the exception will be logged). Alternatively, you can specify the <literal>logLevel</literal>
+ (i.e. the exception will be logged). Alternatively, you can specify the <literal>log-level</literal>
to control at which log level the exception will be logged:
</para>
- <programlisting role="XML"><![CDATA[ <exception class="org.jboss.seam.security.NotLoggedInException" logLevel="info">
+ <programlisting role="XML"><![CDATA[ <exception class="org.jboss.seam.security.NotLoggedInException" log-level="info">
<redirect view-id="/register.xhtml">
<message severity="warn">You must be a member to use this feature</message>
</redirect>
</exception>]]></programlisting>
<para>
- The acceptable values for <literal>logLevel</literal> are: <literal>fatal, error, warn, info, debug</literal>
- or <literal>trace</literal>. If the <literal>logLevel</literal> is not specified, or if an invalid value is
+ The acceptable values for <literal>log-level</literal> are: <literal>fatal, error, warn, info, debug</literal>
+ or <literal>trace</literal>. If the <literal>log-level</literal> is not specified, or if an invalid value is
configured, then it will default to <literal>error</literal>.
</para>
15 years, 11 months
Seam SVN: r10039 - trunk/src/main/org/jboss/seam/exception.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-12 19:54:47 -0500 (Thu, 12 Feb 2009)
New Revision: 10039
Modified:
trunk/src/main/org/jboss/seam/exception/Exceptions.java
Log:
JBSEAM-3952
Modified: trunk/src/main/org/jboss/seam/exception/Exceptions.java
===================================================================
--- trunk/src/main/org/jboss/seam/exception/Exceptions.java 2009-02-13 00:26:24 UTC (rev 10038)
+++ trunk/src/main/org/jboss/seam/exception/Exceptions.java 2009-02-13 00:54:47 UTC (rev 10039)
@@ -162,20 +162,18 @@
String className = exception.attributeValue("class");
boolean logEnabled = exception.attributeValue("log") != null ?
Boolean.valueOf(exception.attributeValue("log")) : true;
+
LogLevel logLevel = LogLevel.error;
- try
- {
- logLevel = exception.attributeValue("log-level") != null ?
- LogLevel.valueOf(exception.attributeValue("log-level").toLowerCase()) : null;
-
- // The logLevel attribute is deprecated! Use log-level instead
- if (logLevel == null && exception.attributeValue("logLevel") != null)
- {
- logLevel = LogLevel.valueOf(exception.attributeValue("logLevel").toLowerCase());
+ try {
+ String levelValue = exception.attributeValue("log-level");
+ if (levelValue == null) {
+ levelValue = exception.attributeValue("logLevel");
}
- }
- catch (IllegalArgumentException ex)
- {
+
+ if (levelValue != null) {
+ logLevel = LogLevel.valueOf(levelValue.toLowerCase());
+ }
+ } catch (IllegalArgumentException ex) {
StringBuilder sb = new StringBuilder();
sb.append("Exception handler");
if (className != null) sb.append(" for class " + className);
15 years, 11 months
Seam SVN: r10038 - trunk/src/pdf/org/jboss/seam/pdf/ui.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-12 19:26:24 -0500 (Thu, 12 Feb 2009)
New Revision: 10038
Modified:
trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartData.java
trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
Log:
formatting
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java 2009-02-11 20:58:57 UTC (rev 10037)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java 2009-02-13 00:26:24 UTC (rev 10038)
@@ -6,11 +6,13 @@
import org.jfree.chart.axis.CategoryLabelPositions;
import org.jfree.chart.block.BlockBorder;
+import org.jfree.chart.labels.CategoryItemLabelGenerator;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.Plot;
import org.jfree.chart.renderer.category.CategoryItemRenderer;
import org.jfree.chart.title.LegendTitle;
import org.jfree.chart.title.TextTitle;
+import org.jfree.data.category.CategoryDataset;
public abstract class UICategoryChartBase extends UIChart {
private static Log log = Logging.getLog(UICategoryChartBase.class);
@@ -312,7 +314,8 @@
if (getDomainLabelPosition() != null) {
CategoryLabelPositions positions = categoryLabelPosition(getDomainLabelPosition());
- plot.getDomainAxis().setCategoryLabelPositions(positions);
+ plot.getDomainAxis().setCategoryLabelPositions(positions);
+
}
configureRenderer(plot.getRenderer());
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartData.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartData.java 2009-02-11 20:58:57 UTC (rev 10037)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartData.java 2009-02-13 00:26:24 UTC (rev 10038)
@@ -10,221 +10,187 @@
import org.jfree.data.general.Dataset;
import org.jfree.data.general.DefaultPieDataset;
-public class UIChartData extends ITextComponent
-{
- private String key;
- private String series;
- private Object value;
- private Float explodedPercent;
+public class UIChartData extends ITextComponent {
+ private String key;
+ private String series;
+ private Object value;
+ private Float explodedPercent;
- private String sectionPaint;
- private String sectionOutlinePaint;
- private String sectionOutlineStroke;
+ private String sectionPaint;
+ private String sectionOutlinePaint;
+ private String sectionOutlineStroke;
- public Object getValue()
- {
- return valueBinding("value", value);
- }
+ public Object getValue() {
+ return valueBinding("value", value);
+ }
- public void setValue(Object value)
- {
- this.value = value;
- }
+ public void setValue(Object value) {
+ this.value = value;
+ }
- public Number getNumericValue()
- {
- Object val = getValue();
- if (val instanceof Number)
- {
- return (Number) getValue();
- }
- else if (val instanceof String)
- {
- return new BigDecimal((String) val);
- }
- else
- {
- throw new RuntimeException("Can't convert " + val.getClass().getName() + " to numeric value");
- }
- }
+ public Number getNumericValue() {
+ Object val = getValue();
+ if (val instanceof Number) {
+ return (Number) getValue();
+ } else if (val instanceof String) {
+ return new BigDecimal((String) val);
+ } else {
+ throw new RuntimeException("Can't convert "
+ + val.getClass().getName() + " to numeric value");
+ }
+ }
- public String getKey()
- {
- return (String) valueBinding("key", key);
- }
+ public String getKey() {
+ return (String) valueBinding("key", key);
+ }
- public void setKey(String key)
- {
- this.key = key;
- }
+ public void setKey(String key) {
+ this.key = key;
+ }
- public String getSeries()
- {
- String value = (String) valueBinding("series", series);
- if (value == null)
- {
- UIChartSeries series = (UIChartSeries) findITextParent(this, UIChartSeries.class);
- value = series.getKey();
- }
- return value;
- }
+ public String getSeries() {
+ String value = (String) valueBinding("series", series);
+ if (value == null) {
+ UIChartSeries series = (UIChartSeries) findITextParent(this,
+ UIChartSeries.class);
+ value = series.getKey();
+ }
+ return value;
+ }
- public void setSeries(String series)
- {
- this.series = series;
- }
+ public void setSeries(String series) {
+ this.series = series;
+ }
- public void setValue(Double value)
- {
- this.value = value;
- }
+ public void setValue(Double value) {
+ this.value = value;
+ }
- public Float getExplodedPercent()
- {
- return (Float) valueBinding("explodedPercent", explodedPercent);
- }
+ public Float getExplodedPercent() {
+ return (Float) valueBinding("explodedPercent", explodedPercent);
+ }
- public void setExplodedPercent(Float explodedPercent)
- {
- this.explodedPercent = explodedPercent;
- }
+ public void setExplodedPercent(Float explodedPercent) {
+ this.explodedPercent = explodedPercent;
+ }
- public String getSectionOutlinePaint()
- {
- return (String) valueBinding("sectionOutlinePaint", sectionOutlinePaint);
- }
+ public String getSectionOutlinePaint() {
+ return (String) valueBinding("sectionOutlinePaint", sectionOutlinePaint);
+ }
- public void setSectionOutlinePaint(String sectionOutlinePaint)
- {
- this.sectionOutlinePaint = sectionOutlinePaint;
- }
+ public void setSectionOutlinePaint(String sectionOutlinePaint) {
+ this.sectionOutlinePaint = sectionOutlinePaint;
+ }
- public String getSectionOutlineStroke()
- {
- return (String) valueBinding("sectionOutlineStroke", sectionOutlineStroke);
- }
+ public String getSectionOutlineStroke() {
+ return (String) valueBinding("sectionOutlineStroke",
+ sectionOutlineStroke);
+ }
- public void setSectionOutlineStroke(String sectionOutlineStroke)
- {
- this.sectionOutlineStroke = sectionOutlineStroke;
- }
+ public void setSectionOutlineStroke(String sectionOutlineStroke) {
+ this.sectionOutlineStroke = sectionOutlineStroke;
+ }
- public String getSectionPaint()
- {
- return (String) valueBinding("sectionPaint", sectionPaint);
- }
+ public String getSectionPaint() {
+ return (String) valueBinding("sectionPaint", sectionPaint);
+ }
- public void setSectionPaint(String sectionPaint)
- {
- this.sectionPaint = sectionPaint;
- }
+ public void setSectionPaint(String sectionPaint) {
+ this.sectionPaint = sectionPaint;
+ }
- @Override
- public void restoreState(FacesContext context, Object state)
- {
- Object[] values = (Object[]) state;
- super.restoreState(context, values[0]);
+ @Override
+ public void restoreState(FacesContext context, Object state) {
+ Object[] values = (Object[]) state;
+ super.restoreState(context, values[0]);
- key = (String) values[1];
- // columnKey = (String) values[2];
- series = (String) values[3];
- value = values[4];
- explodedPercent = (Float) values[5];
- sectionPaint = (String) values[6];
- sectionOutlinePaint = (String) values[7];
- sectionOutlineStroke = (String) values[8];
- }
+ key = (String) values[1];
+ // columnKey = (String) values[2];
+ series = (String) values[3];
+ value = values[4];
+ explodedPercent = (Float) values[5];
+ sectionPaint = (String) values[6];
+ sectionOutlinePaint = (String) values[7];
+ sectionOutlineStroke = (String) values[8];
+ }
- @Override
- public Object saveState(FacesContext context)
- {
- Object[] values = new Object[9];
+ @Override
+ public Object saveState(FacesContext context) {
+ Object[] values = new Object[9];
- values[0] = super.saveState(context);
- values[1] = key;
- // values[2] = columnKey;
- values[3] = series;
- values[4] = value;
- values[5] = explodedPercent;
- values[6] = sectionPaint;
- values[7] = sectionOutlinePaint;
- values[8] = sectionOutlineStroke;
+ values[0] = super.saveState(context);
+ values[1] = key;
+ // values[2] = columnKey;
+ values[3] = series;
+ values[4] = value;
+ values[5] = explodedPercent;
+ values[6] = sectionPaint;
+ values[7] = sectionOutlinePaint;
+ values[8] = sectionOutlineStroke;
- return values;
- }
+ return values;
+ }
- @Override
- public void encodeEnd(FacesContext context) throws IOException
- {
- super.encodeEnd(context);
+ @Override
+ public void encodeEnd(FacesContext context) throws IOException {
+ super.encodeEnd(context);
- UIChart chart = (UIChart) findITextParent(getParent(), UIChart.class);
- if (chart != null)
- {
- Dataset dataset = chart.getDataset();
+ UIChart chart = (UIChart) findITextParent(getParent(), UIChart.class);
+ if (chart != null) {
+ Dataset dataset = chart.getDataset();
- if (dataset instanceof DefaultPieDataset)
- {
- DefaultPieDataset piedata = (DefaultPieDataset) dataset;
- piedata.setValue(getKey(), getNumericValue());
+ if (dataset instanceof DefaultPieDataset) {
+ DefaultPieDataset piedata = (DefaultPieDataset) dataset;
+ piedata.setValue(getKey(), getNumericValue());
- PiePlot plot = (PiePlot) chart.getChart().getPlot();
+ PiePlot plot = (PiePlot) chart.getChart().getPlot();
- if (getExplodedPercent() != null)
- {
- plot.setExplodePercent(getKey(), getExplodedPercent());
- }
+ if (getExplodedPercent() != null) {
+ plot.setExplodePercent(getKey(), getExplodedPercent());
+ }
- if (UIChart.findColor(getSectionPaint()) != null)
- {
- plot.setSectionPaint(getKey(), UIChart.findColor(getSectionPaint()));
- }
+ if (UIChart.findColor(getSectionPaint()) != null) {
+ plot.setSectionPaint(getKey(), UIChart.findColor(getSectionPaint()));
+ }
- if (UIChart.findColor(getSectionOutlinePaint()) != null)
- {
- plot.setSectionOutlinePaint(getKey(), UIChart.findColor(getSectionOutlinePaint()));
- }
+ if (UIChart.findColor(getSectionOutlinePaint()) != null) {
+ plot.setSectionOutlinePaint(getKey(), UIChart.findColor(getSectionOutlinePaint()));
+ }
- if (UIChart.findStroke(getSectionOutlineStroke()) != null)
- {
- plot.setSectionOutlineStroke(getKey(), UIChart.findStroke(getSectionOutlineStroke()));
+ if (UIChart.findStroke(getSectionOutlineStroke()) != null) {
+ plot.setSectionOutlineStroke(getKey(), UIChart.findStroke(getSectionOutlineStroke()));
+ }
+ } else if (dataset instanceof DefaultCategoryDataset) {
+ DefaultCategoryDataset data = (DefaultCategoryDataset) dataset;
+
+ // CategoryPlot plot = (CategoryPlot)
+ // chart.getChart().getPlot();
+ data.addValue(getNumericValue(), getSeries(), getKey());
+ } else {
+ throw new RuntimeException(
+ "Cannot add data to dataset of type "
+ + dataset.getClass());
}
- }
- else if (dataset instanceof DefaultCategoryDataset)
- {
- DefaultCategoryDataset data = (DefaultCategoryDataset) dataset;
+ }
+ }
- // CategoryPlot plot = (CategoryPlot) chart.getChart().getPlot();
- data.addValue(getNumericValue(), getSeries(), getKey());
- }
- else
- {
- throw new RuntimeException("Cannot add data to dataset of type " + dataset.getClass());
- }
- }
- }
+ @Override
+ public void createITextObject(FacesContext context) {
- @Override
- public void createITextObject(FacesContext context)
- {
+ }
- }
+ @Override
+ public Object getITextObject() {
+ return null;
+ }
- @Override
- public Object getITextObject()
- {
- return null;
- }
+ @Override
+ public void handleAdd(Object other) {
- @Override
- public void handleAdd(Object other)
- {
+ }
- }
+ @Override
+ public void removeITextObject() {
- @Override
- public void removeITextObject()
- {
-
- }
+ }
}
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java 2009-02-11 20:58:57 UTC (rev 10037)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UIChartSeries.java 2009-02-13 00:26:24 UTC (rev 10038)
@@ -13,215 +13,185 @@
import org.jfree.data.category.CategoryDataset;
import org.jfree.data.general.Dataset;
-public class UIChartSeries extends ITextComponent
-{
- private static Log log = Logging.getLog(UIChartSeries.class);
+public class UIChartSeries extends ITextComponent {
+ private static Log log = Logging.getLog(UIChartSeries.class);
- private String key;
- private String seriesPaint;
- private String seriesFillPaint;
- private String seriesOutlinePaint;
- private String seriesOutlineStroke;
- private String seriesStroke;
- private Boolean seriesVisible;
- private Boolean seriesVisibleInLegend;
+ private String key;
+ private String seriesPaint;
+ private String seriesFillPaint;
+ private String seriesOutlinePaint;
+ private String seriesOutlineStroke;
+ private String seriesStroke;
+ private Boolean seriesVisible;
+ private Boolean seriesVisibleInLegend;
- public String getKey()
- {
- return (String) valueBinding("key", key);
- }
+ public String getKey() {
+ return (String) valueBinding("key", key);
+ }
- public void setKey(String key)
- {
- this.key = key;
- }
+ public void setKey(String key) {
+ this.key = key;
+ }
- public String getSeriesPaint()
- {
- return (String) valueBinding("seriesPaint", seriesPaint);
- }
+ public String getSeriesPaint() {
+ return (String) valueBinding("seriesPaint", seriesPaint);
+ }
- public void setSeriesPaint(String seriesPaint)
- {
- this.seriesPaint = seriesPaint;
- }
+ public void setSeriesPaint(String seriesPaint) {
+ this.seriesPaint = seriesPaint;
+ }
- public String getSeriesFillPaint()
- {
- return (String) valueBinding("seriesFillPaint", seriesFillPaint);
- }
+ public String getSeriesFillPaint() {
+ return (String) valueBinding("seriesFillPaint", seriesFillPaint);
+ }
- public void setSeriesFillPaint(String seriesFillPaint)
- {
- this.seriesFillPaint = seriesFillPaint;
- }
+ public void setSeriesFillPaint(String seriesFillPaint) {
+ this.seriesFillPaint = seriesFillPaint;
+ }
- public String getSeriesOutlinePaint()
- {
- return (String) valueBinding("seriesOutlinePaint", seriesOutlinePaint);
- }
+ public String getSeriesOutlinePaint() {
+ return (String) valueBinding("seriesOutlinePaint", seriesOutlinePaint);
+ }
- public void setSeriesOutlinePaint(String seriesOutlinePaint)
- {
- this.seriesOutlinePaint = seriesOutlinePaint;
- }
+ public void setSeriesOutlinePaint(String seriesOutlinePaint) {
+ this.seriesOutlinePaint = seriesOutlinePaint;
+ }
- public String getSeriesOutlineStroke()
- {
- return (String) valueBinding("seriesOutlineStroke", seriesOutlineStroke);
- }
+ public String getSeriesOutlineStroke() {
+ return (String) valueBinding("seriesOutlineStroke", seriesOutlineStroke);
+ }
- public void setSeriesOutlineStroke(String seriesOutlineStroke)
- {
- this.seriesOutlineStroke = seriesOutlineStroke;
- }
+ public void setSeriesOutlineStroke(String seriesOutlineStroke) {
+ this.seriesOutlineStroke = seriesOutlineStroke;
+ }
- public String getSeriesStroke()
- {
- return (String) valueBinding("seriesStroke", seriesStroke);
- }
+ public String getSeriesStroke() {
+ return (String) valueBinding("seriesStroke", seriesStroke);
+ }
- public void setSeriesStroke(String seriesStroke)
- {
- this.seriesStroke = seriesStroke;
- }
+ public void setSeriesStroke(String seriesStroke) {
+ this.seriesStroke = seriesStroke;
+ }
- public Boolean getSeriesVisible()
- {
- return (Boolean) valueBinding("seriesVisible", seriesVisible);
- }
+ public Boolean getSeriesVisible() {
+ return (Boolean) valueBinding("seriesVisible", seriesVisible);
+ }
- public void setSeriesVisible(Boolean seriesVisible)
- {
- this.seriesVisible = seriesVisible;
- }
+ public void setSeriesVisible(Boolean seriesVisible) {
+ this.seriesVisible = seriesVisible;
+ }
- public Boolean getSeriesVisibleInLegend()
- {
- return (Boolean) valueBinding("seriesVisibleInLegend", seriesVisibleInLegend);
- }
+ public Boolean getSeriesVisibleInLegend() {
+ return (Boolean) valueBinding("seriesVisibleInLegend",
+ seriesVisibleInLegend);
+ }
- public void setSeriesVisibleInLegend(Boolean seriesVisibleInLegend)
- {
- this.seriesVisibleInLegend = seriesVisibleInLegend;
- }
+ public void setSeriesVisibleInLegend(Boolean seriesVisibleInLegend) {
+ this.seriesVisibleInLegend = seriesVisibleInLegend;
+ }
- @Override
- public void restoreState(FacesContext context, Object state)
- {
- Object[] values = (Object[]) state;
- super.restoreState(context, values[0]);
+ @Override
+ public void restoreState(FacesContext context, Object state) {
+ Object[] values = (Object[]) state;
+ super.restoreState(context, values[0]);
- key = (String) values[1];
- seriesPaint = (String) values[2];
- seriesFillPaint = (String) values[3];
- seriesOutlinePaint = (String) values[4];
- seriesOutlineStroke = (String) values[5];
- seriesStroke = (String) values[6];
- seriesVisible = (Boolean) values[7];
- seriesVisibleInLegend = (Boolean) values[8];
- }
+ key = (String) values[1];
+ seriesPaint = (String) values[2];
+ seriesFillPaint = (String) values[3];
+ seriesOutlinePaint = (String) values[4];
+ seriesOutlineStroke = (String) values[5];
+ seriesStroke = (String) values[6];
+ seriesVisible = (Boolean) values[7];
+ seriesVisibleInLegend = (Boolean) values[8];
+ }
- @Override
- public Object saveState(FacesContext context)
- {
- Object[] values = new Object[9];
+ @Override
+ public Object saveState(FacesContext context) {
+ Object[] values = new Object[9];
- values[0] = super.saveState(context);
- values[1] = key;
- values[2] = seriesPaint;
- values[3] = seriesFillPaint;
- values[4] = seriesOutlinePaint;
- values[5] = seriesOutlineStroke;
- values[6] = seriesStroke;
- values[7] = seriesVisible;
- values[8] = seriesVisibleInLegend;
+ values[0] = super.saveState(context);
+ values[1] = key;
+ values[2] = seriesPaint;
+ values[3] = seriesFillPaint;
+ values[4] = seriesOutlinePaint;
+ values[5] = seriesOutlineStroke;
+ values[6] = seriesStroke;
+ values[7] = seriesVisible;
+ values[8] = seriesVisibleInLegend;
- return values;
- }
+ return values;
+ }
- @Override
- public void encodeEnd(FacesContext context) throws IOException
- {
- UIChart chart = (UIChart) findITextParent(getParent(), UIChart.class);
+ @Override
+ public void encodeEnd(FacesContext context) throws IOException {
+ UIChart chart = (UIChart) findITextParent(getParent(), UIChart.class);
- if (chart != null) {
- Dataset dataset = chart.getDataset();
- Plot p = chart.getChart().getPlot();
+ if (chart != null) {
+ Dataset dataset = chart.getDataset();
+ Plot p = chart.getChart().getPlot();
- if (p instanceof CategoryPlot) {
- CategoryPlot plot = (CategoryPlot) p;
-
- int seriesIndex = ((CategoryDataset) dataset).getRowIndex(getKey());
-
- CategoryItemRenderer renderer = plot.getRenderer();
-
- // CategoryRenderer
- if (renderer instanceof AbstractRenderer) {
- configureSeries((AbstractRenderer) renderer, seriesIndex);
- } else {
- log.error("render is not AbtractRenderer" + renderer);
- }
- }
- }
- }
+ if (p instanceof CategoryPlot) {
+ CategoryPlot plot = (CategoryPlot) p;
- private void configureSeries(AbstractRenderer renderer, int seriesIndex)
- {
- if (getSeriesPaint() != null)
- {
- renderer.setSeriesPaint(seriesIndex, UIChart.findColor(getSeriesPaint()));
- }
+ int seriesIndex = ((CategoryDataset) dataset).getRowIndex(getKey());
+ CategoryItemRenderer renderer = plot.getRenderer();
- if (getSeriesFillPaint() != null)
- {
- renderer.setSeriesFillPaint(seriesIndex, UIChart.findColor(getSeriesFillPaint()));
- }
+ // CategoryRenderer
+ if (renderer instanceof AbstractRenderer) {
+ configureSeries((AbstractRenderer) renderer, seriesIndex);
+ } else {
+ log.error("render is not AbtractRenderer" + renderer);
+ }
+ }
+ }
+ }
- if (getSeriesOutlinePaint() != null)
- {
- renderer.setSeriesOutlinePaint(seriesIndex, UIChart.findColor(getSeriesOutlinePaint()));
- }
+ private void configureSeries(AbstractRenderer renderer, int seriesIndex) {
+ if (getSeriesPaint() != null) {
+ renderer.setSeriesPaint(seriesIndex, UIChart.findColor(getSeriesPaint()));
+ }
- if (getSeriesOutlineStroke() != null)
- {
- renderer.setSeriesOutlineStroke(seriesIndex, UIChart.findStroke(getSeriesOutlineStroke()));
- }
+ if (getSeriesFillPaint() != null) {
+ renderer.setSeriesFillPaint(seriesIndex, UIChart.findColor(getSeriesFillPaint()));
+ }
- if (getSeriesStroke() != null)
- {
- renderer.setSeriesStroke(seriesIndex, UIChart.findStroke(getSeriesStroke()));
- }
+ if (getSeriesOutlinePaint() != null) {
+ renderer.setSeriesOutlinePaint(seriesIndex, UIChart.findColor(getSeriesOutlinePaint()));
+ }
- if (getSeriesVisible() != null)
- {
- renderer.setSeriesVisible(seriesIndex, getSeriesVisible());
- }
+ if (getSeriesOutlineStroke() != null) {
+ renderer.setSeriesOutlineStroke(seriesIndex, UIChart.findStroke(getSeriesOutlineStroke()));
+ }
- if (getSeriesVisibleInLegend() != null)
- {
- renderer.setSeriesVisibleInLegend(seriesIndex, getSeriesVisibleInLegend());
- }
- }
+ if (getSeriesStroke() != null) {
+ renderer.setSeriesStroke(seriesIndex, UIChart.findStroke(getSeriesStroke()));
+ }
- @Override
- public void createITextObject(FacesContext context)
- {
- }
+ if (getSeriesVisible() != null) {
+ renderer.setSeriesVisible(seriesIndex, getSeriesVisible());
+ }
- @Override
- public Object getITextObject()
- {
- return null;
- }
+ if (getSeriesVisibleInLegend() != null) {
+ renderer.setSeriesVisibleInLegend(seriesIndex, getSeriesVisibleInLegend());
+ }
+
+ renderer.setSeriesItemLabelsVisible(seriesIndex, true);
+ }
- @Override
- public void removeITextObject()
- {
- }
+ @Override
+ public void createITextObject(FacesContext context) {
+ }
- @Override
- public void handleAdd(Object other)
- {
- }
+ @Override
+ public Object getITextObject() {
+ return null;
+ }
+
+ @Override
+ public void removeITextObject() {
+ }
+
+ @Override
+ public void handleAdd(Object other) {
+ }
}
15 years, 11 months
Seam SVN: r10037 - trunk/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-02-11 15:58:57 -0500 (Wed, 11 Feb 2009)
New Revision: 10037
Modified:
trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po
Log:
JBSEAM-3767: Italian translation of Seam guide
Modified: trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po 2009-02-11 20:45:04 UTC (rev 10036)
+++ trunk/doc/Seam_Reference_Guide/it-IT/Getting_Started_With_JBoss_Tools.po 2009-02-11 20:58:57 UTC (rev 10037)
@@ -6,7 +6,7 @@
"Project-Id-Version: seam 2_0\n"
"Report-Msgid-Bugs-To: http://bugs.kde.org\n"
"POT-Creation-Date: 2009-01-18 15:00+0000\n"
-"PO-Revision-Date: 2008-12-27 12:52+0100\n"
+"PO-Revision-Date: 2009-02-11 21:58+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -22,12 +22,7 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:7
#, no-c-format
-msgid ""
-"JBoss Tools is a collection of Eclipse plugins. JBoss Tools a project "
-"creation wizard for Seam, Content Assist for the Unified Expression Language "
-"(EL) in both facelets and Java code, a graphical editor for jPDL, a "
-"graphical editor for Seam configuration files, support for running Seam "
-"integration tests from within Eclipse, and much more."
+msgid "JBoss Tools is a collection of Eclipse plugins. JBoss Tools a project creation wizard for Seam, Content Assist for the Unified Expression Language (EL) in both facelets and Java code, a graphical editor for jPDL, a graphical editor for Seam configuration files, support for running Seam integration tests from within Eclipse, and much more."
msgstr ""
#. Tag: para
@@ -39,11 +34,7 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:19
#, no-c-format
-msgid ""
-"JBoss Tools, as with seam-gen, works best with JBoss AS, but it's possible "
-"with a few tweaks to get your app running on other application servers. The "
-"changes are much like those described for seam-gen later in this reference "
-"manual."
+msgid "JBoss Tools, as with seam-gen, works best with JBoss AS, but it's possible with a few tweaks to get your app running on other application servers. The changes are much like those described for seam-gen later in this reference manual."
msgstr ""
#. Tag: title
@@ -55,53 +46,43 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:29
#, no-c-format
-msgid ""
-"Make sure you have JDK 5, JBoss AS 4.2, Eclipse 3.3, the JBoss Tools plugins "
-"(at least Seam Tools, the Visual Page Editor, jBPM Tools and JBoss AS Tools) "
-"and the TestNG plugin for Eclipse correctly installed before starting."
+msgid "Make sure you have JDK 5, JBoss AS 4.2, Eclipse 3.3, the JBoss Tools plugins (at least Seam Tools, the Visual Page Editor, jBPM Tools and JBoss AS Tools) and the TestNG plugin for Eclipse correctly installed before starting."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:36
#, no-c-format
msgid "TODO - detail where the update sites are."
-msgstr ""
+msgstr "TODO - dettaglio su dove si trovano i siti per l'update."
#. Tag: title
#: Getting_Started_With_JBoss_Tools.xml:41
#, no-c-format
msgid "Setting up a new Seam project"
-msgstr ""
+msgstr "Configurare un nuovo progetto Seam"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:43
#, no-c-format
msgid "Start up Eclipse and select the <emphasis>Seam</emphasis> perspective."
-msgstr ""
+msgstr "Avviare Eclipse e selezionare la prospettiva <emphasis>Seam</emphasis>."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:47
#, no-c-format
-msgid ""
-"Go to <emphasis>File</emphasis> -> <emphasis>New</emphasis> -> "
-"<emphasis>Seam Web Project</emphasis>."
-msgstr ""
+msgid "Go to <emphasis>File</emphasis> -> <emphasis>New</emphasis> -> <emphasis>Seam Web Project</emphasis>."
+msgstr "Si vada in <emphasis>File</emphasis> -> <emphasis>New</emphasis> -> <emphasis>Seam Web Project</emphasis>."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:63
#, no-c-format
-msgid ""
-"First, enter a name for your new project. For this tutorial, we're going to "
-"use <literal>helloworld</literal> ."
-msgstr ""
+msgid "First, enter a name for your new project. For this tutorial, we're going to use <literal>helloworld</literal> ."
+msgstr "Primo, inserire un nome per il nuovo progetto. Per questo tutorial si userà <literal>helloworld</literal> ."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:71
#, no-c-format
-msgid ""
-"Now, we need to tell JBoss Tools about JBoss AS. This is a two stage "
-"process, first we need to define a runtime, make sure you select JBoss AS "
-"4.2:"
+msgid "Now, we need to tell JBoss Tools about JBoss AS. This is a two stage process, first we need to define a runtime, make sure you select JBoss AS 4.2:"
msgstr ""
#. Tag: para
@@ -113,84 +94,55 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:103
#, no-c-format
-msgid ""
-"Next, we need to define a server JBoss Tools can deploy the project to. Make "
-"sure to again select JBoss AS 4.2, and also the runtime you just defined:"
+msgid "Next, we need to define a server JBoss Tools can deploy the project to. Make sure to again select JBoss AS 4.2, and also the runtime you just defined:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:118
#, no-c-format
-msgid ""
-"On the next screen give the server a name, and hit <emphasis>Finish</"
-"emphasis>:"
+msgid "On the next screen give the server a name, and hit <emphasis>Finish</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:134
#, no-c-format
-msgid ""
-"Make sure the runtime and server you just created are selected, select "
-"<emphasis>Dynamic Web Project with Seam 2.0 (technology preview)</emphasis> "
-"and hit <emphasis>Next</emphasis>:"
+msgid "Make sure the runtime and server you just created are selected, select <emphasis>Dynamic Web Project with Seam 2.0 (technology preview)</emphasis> and hit <emphasis>Next</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:151
#, no-c-format
-msgid ""
-"The next 3 screens allow you to further customize your new project, but for "
-"us the defaults are fine. So just hit <emphasis>Next</emphasis> until you "
-"reach the final screen."
+msgid "The next 3 screens allow you to further customize your new project, but for us the defaults are fine. So just hit <emphasis>Next</emphasis> until you reach the final screen."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:157
#, no-c-format
-msgid ""
-"The first step here is to tell JBoss Tools about the Seam download you want "
-"to use. <emphasis>Add</emphasis> a new <emphasis>Seam Runtime</emphasis> - "
-"make sure to give it a name, and select <emphasis>2.0</emphasis> as the "
-"version:"
+msgid "The first step here is to tell JBoss Tools about the Seam download you want to use. <emphasis>Add</emphasis> a new <emphasis>Seam Runtime</emphasis> - make sure to give it a name, and select <emphasis>2.0</emphasis> as the version:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:175
#, 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 <emphasis>EAR</"
-"emphasis>. Otherwise, choose <emphasis>WAR</emphasis>. We'll assume that "
-"you've chosen a WAR deployment for the rest of the tutorial, but you can "
-"follow exactly the same steps for a EAR deployment."
+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 <emphasis>EAR</emphasis>. Otherwise, choose <emphasis>WAR</emphasis>. We'll assume that you've chosen a WAR deployment for the rest of the tutorial, but you can follow exactly the same steps for a EAR deployment."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:187
#, no-c-format
-msgid ""
-"Next, select your database type. We'll assume you have MySQL installed, with "
-"an existing schema. You'll need to tell JBoss Tools about the database, "
-"select <emphasis>MySQL</emphasis> as the database, and create a new "
-"connection profile. Select <emphasis>Generic JDBC Connection</emphasis>:"
+msgid "Next, select your database type. We'll assume you have MySQL installed, with an existing schema. You'll need to tell JBoss Tools about the database, select <emphasis>MySQL</emphasis> as the database, and create a new connection profile. Select <emphasis>Generic JDBC Connection</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:206
#, no-c-format
msgid "Give it a name:"
-msgstr ""
+msgstr "Si metta un nome:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:221
#, no-c-format
-msgid ""
-"JBoss Tools doesn't come with drivers for any databases, so you need to tell "
-"JBoss Tools where the MySQL JDBC driver is. Tell it about the driver by "
-"clicking <emphasis>...</emphasis>."
+msgid "JBoss Tools doesn't come with drivers for any databases, so you need to tell JBoss Tools where the MySQL JDBC driver is. Tell it about the driver by clicking <emphasis>...</emphasis>."
msgstr ""
#. Tag: para
@@ -208,17 +160,13 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:257
#, no-c-format
-msgid ""
-"Locate the jar on your computer by choosing <emphasis>Edit Jar/Zip</"
-"emphasis>:"
+msgid "Locate the jar on your computer by choosing <emphasis>Edit Jar/Zip</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:273
#, no-c-format
-msgid ""
-"Review the username and password used to connect, and if correct, hit "
-"<emphasis>Ok</emphasis>."
+msgid "Review the username and password used to connect, and if correct, hit <emphasis>Ok</emphasis>."
msgstr ""
#. Tag: para
@@ -230,37 +178,25 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:293
#, no-c-format
-msgid ""
-"If you are working with an existing data model, make sure you tell JBoss "
-"Tools that the tables already exist in the database."
+msgid "If you are working with an existing data model, make sure you tell JBoss Tools that the tables already exist in the database."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:298
#, no-c-format
-msgid ""
-"Review the username and password used to connect, test the connection using "
-"the <emphasis>Test Connection</emphasis> button, and if it works, hit "
-"<emphasis>Finish</emphasis>:"
+msgid "Review the username and password used to connect, test the connection using the <emphasis>Test Connection</emphasis> button, and if it works, hit <emphasis>Finish</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:304
#, no-c-format
-msgid ""
-"Finally, review the package names for your generated beans, and if you are "
-"happy, click <emphasis>Finish</emphasis>:"
+msgid "Finally, review the package names for your generated beans, and if you are happy, click <emphasis>Finish</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:320
#, no-c-format
-msgid ""
-"JBoss has sophisticated support for hot re-deployment of WARs and EARs. "
-"Unfortunately, due to bugs in the JVM, repeated redeployment of an EAR—which "
-"is common during development—eventually causes the JVM to run out of perm "
-"gen space. For this reason, we recommend running JBoss in a JVM with a large "
-"perm gen space at development time. We suggest the following values:"
+msgid "JBoss has sophisticated support for hot re-deployment of WARs and EARs. Unfortunately, due to bugs in the JVM, repeated redeployment of an EAR—which is common during development—eventually causes the JVM to run out of perm gen space. For this reason, we recommend running JBoss in a JVM with a large perm gen space at development time. We suggest the following values:"
msgstr ""
#. Tag: programlisting
@@ -272,9 +208,7 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:331
#, no-c-format
-msgid ""
-"If you don't have so much memory available, the following is our minimum "
-"recommendation:"
+msgid "If you don't have so much memory available, the following is our minimum recommendation:"
msgstr ""
#. Tag: programlisting
@@ -286,124 +220,92 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:338
#, no-c-format
-msgid ""
-"Locate the server in the <emphasis>JBoss Server View</emphasis>, right click "
-"on the server and select <emphasis>Edit Launch Configuration</emphasis>:"
+msgid "Locate the server in the <emphasis>JBoss Server View</emphasis>, right click on the server and select <emphasis>Edit Launch Configuration</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:355
#, no-c-format
msgid "Then, alter the VM arguements:"
-msgstr ""
+msgstr "Poi si cambino gli argomenti VM:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:370
#, no-c-format
-msgid ""
-"If you don't want to bother with this stuff now, you don't have to—come back "
-"to it later, when you get your first <literal>OutOfMemoryException</literal>."
+msgid "If you don't want to bother with this stuff now, you don't have to—come back to it later, when you get your first <literal>OutOfMemoryException</literal>."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:376
#, no-c-format
-msgid ""
-"To start JBoss, and deploy the project, just right click on the server you "
-"created, and click <emphasis>Start</emphasis>, (or <emphasis>Debug</"
-"emphasis> to start in debug mode):"
+msgid "To start JBoss, and deploy the project, just right click on the server you created, and click <emphasis>Start</emphasis>, (or <emphasis>Debug</emphasis> to start in debug mode):"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:393
#, 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."
+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."
msgstr ""
#. Tag: title
#: Getting_Started_With_JBoss_Tools.xml:403
#, no-c-format
msgid "Creating a new action"
-msgstr ""
+msgstr "Creazione di una nuova azione"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:405
#, 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."
+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."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:411
#, no-c-format
-msgid ""
-"First, select <emphasis>New</emphasis> -> <emphasis>Seam Action</emphasis>:"
+msgid "First, select <emphasis>New</emphasis> -> <emphasis>Seam Action</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:426
#: Getting_Started_With_JBoss_Tools.xml:492
#, no-c-format
-msgid ""
-"Now, enter the name of the Seam component. JBoss Tools selects sensible "
-"defaults for other fields:"
+msgid "Now, enter the name of the Seam component. JBoss Tools selects sensible defaults for other fields:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:442
#, no-c-format
msgid "Finally, hit <emphasis>Finish</emphasis>."
-msgstr ""
+msgstr "Infine di prema <emphasis>Finish</emphasis>."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:446
#, no-c-format
-msgid ""
-"Now go to <literal>http://localhost:8080/helloworld/ping.seam</literal> and "
-"click the button. You can see the code behind this action by looking in the "
-"project <literal>src</literal> directory. Put a breakpoint in the "
-"<literal>ping()</literal> method, and click the button again."
+msgid "Now go to <literal>http://localhost:8080/helloworld/ping.seam</literal> and click the button. You can see the code behind this action by looking in the project <literal>src</literal> directory. Put a breakpoint in the <literal>ping()</literal> method, and click the button again."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:454
#, no-c-format
-msgid ""
-"Finally, open the <literal>helloworld-test</literal> project, locate "
-"<literal>PingTest</literal> class, right click on it, and choose "
-"<emphasis>Run As</emphasis> -> <emphasis>TestNG Test</emphasis>:"
+msgid "Finally, open the <literal>helloworld-test</literal> project, locate <literal>PingTest</literal> class, right click on it, and choose <emphasis>Run As</emphasis> -> <emphasis>TestNG Test</emphasis>:"
msgstr ""
#. Tag: title
#: Getting_Started_With_JBoss_Tools.xml:474
#, no-c-format
msgid "Creating a form with an action"
-msgstr ""
+msgstr "Creazione di una form con un'azione"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:476
#, no-c-format
-msgid ""
-"The first step is to create a form. Select <emphasis>New</emphasis> -> "
-"<emphasis>Seam Form</emphasis>:"
+msgid "The first step is to create a form. Select <emphasis>New</emphasis> -> <emphasis>Seam Form</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:508
#, no-c-format
-msgid ""
-"Go to <literal>http://localhost:8080/helloworld/hello.seam</literal>. Then "
-"take a look at the generated code. Run the test. Try adding some new fields "
-"to the form and Seam component (note, you don't need to restart the app "
-"server each time you change the code in <literal>src/action</literal> as "
-"Seam hot reloads the component for you <xref linkend="
-"\"gettingstartedwithjbosstools.hotdeployment\"/>)."
+msgid "Go to <literal>http://localhost:8080/helloworld/hello.seam</literal>. Then take a look at the generated code. Run the test. Try adding some new fields to the form and Seam component (note, you don't need to restart the app server each time you change the code in <literal>src/action</literal> as Seam hot reloads the component for you <xref linkend=\"gettingstartedwithjbosstools.hotdeployment\"/>)."
msgstr ""
#. Tag: title
@@ -415,21 +317,13 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:521
#, no-c-format
-msgid ""
-"Manually create some tables in your database. (If you need to switch to a "
-"different database, create a new project, and select the correct database). "
-"Then, select <emphasis>New</emphasis> -> <emphasis>Seam Generate Entities</"
-"emphasis>:"
+msgid "Manually create some tables in your database. (If you need to switch to a different database, create a new project, and select the correct database). Then, select <emphasis>New</emphasis> -> <emphasis>Seam Generate Entities</emphasis>:"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:539
#, no-c-format
-msgid ""
-"JBoss Tools gives you the option to either reverse engineer entities, "
-"components and views from a database schema or to reverse engineer "
-"components and views from existing JPA entities. We're going to do "
-"<emphasis>Reverse engieneer from database</emphasis>."
+msgid "JBoss Tools gives you the option to either reverse engineer entities, components and views from a database schema or to reverse engineer components and views from existing JPA entities. We're going to do <emphasis>Reverse engieneer from database</emphasis>."
msgstr ""
#. Tag: para
@@ -441,12 +335,7 @@
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:561
#, no-c-format
-msgid ""
-"Then go to <literal>http://localhost:8080/helloworld</literal>. You can "
-"browse the database, edit existing objects, and create new objects. If you "
-"look at the generated code, you'll probably be amazed how simple it is! Seam "
-"was designed so that data access code is easy to write by hand, even for "
-"people who don't want to cheat by using reverse engineering."
+msgid "Then go to <literal>http://localhost:8080/helloworld</literal>. You can browse the database, edit existing objects, and create new objects. If you look at the generated code, you'll probably be amazed how simple it is! Seam was designed so that data access code is easy to write by hand, even for people who don't want to cheat by using reverse engineering."
msgstr ""
#. Tag: title
@@ -459,109 +348,89 @@
#: Getting_Started_With_JBoss_Tools.xml:574
#, no-c-format
msgid "JBoss Tools supports incremental hot deployment of:"
-msgstr ""
+msgstr "JBoss Tools supporta il deploy a caldo incrementale di:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:580
#, no-c-format
msgid "any facelets page"
-msgstr ""
+msgstr "qualsiasi pagina facelets"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:584
#, no-c-format
msgid "any <literal>pages.xml</literal> file"
-msgstr ""
+msgstr "qualsiasi file <literal>pages.xml</literal>"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:590
#, no-c-format
msgid "out of the box."
-msgstr ""
+msgstr "out of the box."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:594
#, no-c-format
-msgid ""
-"But if we want to change any Java code, we still need to do a full restart "
-"of the application by doing a <emphasis>Full Publish</emphasis>."
+msgid "But if we want to change any Java code, we still need to do a full restart of the application by doing a <emphasis>Full Publish</emphasis>."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:600
#, no-c-format
-msgid ""
-"But if you really want a fast edit/compile/test cycle, Seam supports "
-"incremental redeployment of JavaBean components. To make use of this "
-"functionality, you must deploy the JavaBean components into the <literal>WEB-"
-"INF/dev</literal> directory, so that they will be loaded by a special Seam "
-"classloader, instead of by the WAR or EAR classloader."
+msgid "But if you really want a fast edit/compile/test cycle, Seam supports incremental redeployment of JavaBean components. To make use of this functionality, you must deploy the JavaBean components into the <literal>WEB-INF/dev</literal> directory, so that they will be loaded by a special Seam classloader, instead of by the WAR or EAR classloader."
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:609
#, no-c-format
msgid "You need to be aware of the following limitations:"
-msgstr ""
+msgstr "Occorre essere consapevoli delle seguenti limitazioni:"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:613
#, no-c-format
-msgid ""
-"the components must be JavaBean components, they cannot be EJB3 beans (we "
-"are working on fixing this limitation)"
+msgid "the components must be JavaBean components, they cannot be EJB3 beans (we are working on fixing this limitation)"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:620
#, no-c-format
msgid "entities can never be hot-deloyed"
-msgstr ""
+msgstr "gli entity non possono mai essere deployati a caldo"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:626
#, no-c-format
-msgid ""
-"components deployed via <literal>components.xml</literal> may not be hot-"
-"deployed"
-msgstr ""
+msgid "components deployed via <literal>components.xml</literal> may not be hot-deployed"
+msgstr "i componenti deployati via <literal>components.xml</literal> non possono essere deployati a caldo"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:633
#, no-c-format
-msgid ""
-"the hot-deployable components will not be visible to any classes deployed "
-"outside of <literal>WEB-INF/dev</literal>"
+msgid "the hot-deployable components will not be visible to any classes deployed outside of <literal>WEB-INF/dev</literal>"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:640
#, no-c-format
-msgid ""
-"Seam debug mode must be enabled and <literal>jboss-seam-debug.jar</literal> "
-"must be in <literal>WEB-INF/lib</literal>"
+msgid "Seam debug mode must be enabled and <literal>jboss-seam-debug.jar</literal> must be in <literal>WEB-INF/lib</literal>"
msgstr ""
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:648
#, no-c-format
msgid "You must have the Seam filter installed in web.xml"
-msgstr ""
+msgstr "Occorre avere il filtro Seam installato in web.xml"
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:654
#, no-c-format
-msgid ""
-"You may see errors if the system is placed under any load and debug is "
-"enabled."
-msgstr ""
+msgid "You may see errors if the system is placed under any load and debug is enabled."
+msgstr "Si potrebbero vedere errori se il sistema è sotto carico ed è abilitato il debug."
#. Tag: para
#: Getting_Started_With_JBoss_Tools.xml:662
#, no-c-format
-msgid ""
-"If you create a WAR project using JBoss Tools, incremental hot deployment is "
-"available out of the box for classes in the <literal>src/action</literal> "
-"source directory. However, JBoss Tools does not support incremental hot "
-"deployment for EAR projects."
+msgid "If you create a WAR project using JBoss Tools, incremental hot deployment is available out of the box for classes in the <literal>src/action</literal> source directory. However, JBoss Tools does not support incremental hot deployment for EAR projects."
msgstr ""
+
15 years, 11 months
Seam SVN: r10036 - trunk/doc/Seam_Reference_Guide/it-IT.
by seam-commits@lists.jboss.org
Author: nico.ben
Date: 2009-02-11 15:45:04 -0500 (Wed, 11 Feb 2009)
New Revision: 10036
Modified:
trunk/doc/Seam_Reference_Guide/it-IT/Components.po
Log:
JBSEAM-3767: Italian translation of Seam guide
Modified: trunk/doc/Seam_Reference_Guide/it-IT/Components.po
===================================================================
--- trunk/doc/Seam_Reference_Guide/it-IT/Components.po 2009-02-11 20:25:14 UTC (rev 10035)
+++ trunk/doc/Seam_Reference_Guide/it-IT/Components.po 2009-02-11 20:45:04 UTC (rev 10036)
@@ -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:22+0000\n"
-"PO-Revision-Date: 2009-02-04 18:11+0100\n"
+"PO-Revision-Date: 2009-02-11 21:44+0100\n"
"Last-Translator: Nicola Benaglia <nico.benaz(a)gmail.com>\n"
"Language-Team: none\n"
"MIME-Version: 1.0\n"
@@ -206,7 +206,7 @@
#: Components.xml:172
#, no-c-format
msgid "An API for raising events that can be observed via <literal>@Observer</literal> methods, or method bindings in <literal>components.xml</literal>."
-msgstr ""
+msgstr "Un'API per sollevare eventi che possono essere osservati tramite i metodi <literal>@Observer</literal>, o binding di metodo in <literal>components.xml</literal>."
#. Tag: para
#: Components.xml:179
@@ -230,7 +230,7 @@
#: Components.xml:200
#, no-c-format
msgid "<literal>addListener(String type, String methodBinding)</literal> — add an observer for a particular event type."
-msgstr ""
+msgstr "<literal>addListener(String type, String methodBinding)</literal> — aggiunge un observer per un particolare tipo di evento."
#. Tag: literal
#: Components.xml:209
@@ -242,13 +242,13 @@
#: Components.xml:211
#, no-c-format
msgid "An API for interpolating the values of JSF EL expressions in Strings."
-msgstr ""
+msgstr "Un'API per interpolare i valori di espressioni EL JSF in String."
#. Tag: para
#: Components.xml:217
#, no-c-format
msgid "<literal>interpolate(String template)</literal> — scan the template for JSF EL expressions of the form <literal>#{...}</literal> and replace them with their evaluated values."
-msgstr ""
+msgstr "<literal>interpolate(String template)</literal> — analizza il template per espressioni EL JSF della forma <literal>#{...}</literal> e li sostituisce con i loro valori valutati."
#. Tag: literal
#: Components.xml:227
@@ -260,19 +260,19 @@
#: Components.xml:229
#, no-c-format
msgid "An API for creating value and method bindings."
-msgstr ""
+msgstr "Un'API per creare binding di valore e di metodo."
#. Tag: para
#: Components.xml:234
#, no-c-format
msgid "<literal>createValueBinding(String expression)</literal> — create a value binding object."
-msgstr ""
+msgstr "<literal>createValueBinding(String expression)</literal> — crea un oggetto per il binding di valore."
#. Tag: para
#: Components.xml:240
#, no-c-format
msgid "<literal>createMethodBinding(String expression)</literal> — create a method binding object."
-msgstr ""
+msgstr "<literal>createMethodBinding(String expression)</literal> — crea un oggetto per il binding di metodo."
#. Tag: literal
#: Components.xml:249
@@ -285,25 +285,25 @@
#: Components.xml:251
#, no-c-format
msgid "Manager component for a JBoss Cache <literal>PojoCache</literal> instance."
-msgstr ""
+msgstr "Componente manager per un'istanza <literal>PojoCache</literal> di JBoss Cache."
#. Tag: para
#: Components.xml:257
#, no-c-format
msgid "<literal>pojoCache.cfgResourceName</literal> — the name of the configuration file. Default to <literal>treecache.xml</literal>."
-msgstr ""
+msgstr "<literal>pojoCache.cfgResourceName</literal> — il nome del file di configurazione. Di default è <literal>treecache.xml</literal>."
#. Tag: title
#: Components.xml:273
#, no-c-format
msgid "Components for internationalization and themes"
-msgstr ""
+msgstr "Componenti per l'internazionalizzazione ed i temi"
#. Tag: para
#: Components.xml:274
#, no-c-format
msgid "The next group of components make it easy to build internationalized user interfaces using Seam."
-msgstr ""
+msgstr "Il prossimo gruppo di componenti semplifica la costruzione di interfacce utente internazionalizzate usando Seam."
#. Tag: literal
#: Components.xml:281
@@ -315,7 +315,7 @@
#: Components.xml:283
#, no-c-format
msgid "The Seam locale."
-msgstr ""
+msgstr "Il locale di Seam."
#. Tag: literal
#: Components.xml:289
@@ -327,7 +327,7 @@
#: Components.xml:291
#, no-c-format
msgid "The Seam timezone. The timezone is session scoped."
-msgstr ""
+msgstr "La timezone di Seam. La timezone ha scope di sessione."
#. Tag: literal
#: Components.xml:297
@@ -339,7 +339,7 @@
#: Components.xml:299
#, no-c-format
msgid "The Seam resource bundle. The resource bundle is stateless. The Seam resource bundle performs a depth-first search for keys in a list of Java resource bundles."
-msgstr ""
+msgstr "Il resource bundle di Seam. Il resource bundle è stateless. Il resource bundle di Seam esegue una ricerca delle chiavi in una lista di resource bundle di Java."
#. Tag: literal
#: Components.xml:307
@@ -351,13 +351,13 @@
#: Components.xml:309
#, no-c-format
msgid "The resource loader provides access to application resources and resource bundles."
-msgstr ""
+msgstr "Il resource loader fornisce accesso alle risorce dell'applicazione ed ai resource bundle."
#. Tag: para
#: Components.xml:314
#, no-c-format
msgid "<literal>resourceLoader.bundleNames</literal> — the names of the Java resource bundles to search when the Seam resource bundle is used. Default to <literal>messages</literal>."
-msgstr ""
+msgstr "<literal>resourceLoader.bundleNames</literal> — i nomi dei resource bundle da cerca quando viene usato il resource bundle di Seam. Di default è <literal>messages</literal>."
#. Tag: literal
#: Components.xml:324
@@ -369,7 +369,7 @@
#: Components.xml:326
#, no-c-format
msgid "Supports selection of the locale either at configuration time, or by the user at runtime."
-msgstr ""
+msgstr "Supporta la selezione del locale o a configuration time, o dall'utente a runtime."
#. Tag: para
#: Components.xml:332
@@ -382,31 +382,31 @@
#: Components.xml:337
#, no-c-format
msgid "<literal>localeSelector.locale</literal> — the actual <literal>java.util.Locale</literal>."
-msgstr ""
+msgstr "<literal>localeSelector.locale</literal> — l'attuale <literal>java.util.Locale</literal>."
#. Tag: para
#: Components.xml:343
#, no-c-format
msgid "<literal>localeSelector.localeString</literal> — the stringified representation of the locale."
-msgstr ""
+msgstr "<literal>localeSelector.localeString</literal> — la rappresentazione in stringa del locale."
#. Tag: para
#: Components.xml:349
#, no-c-format
msgid "<literal>localeSelector.language</literal> — the language for the specified locale."
-msgstr ""
+msgstr "<literal>localeSelector.language</literal> — il linguaggio per il locale specificato."
#. Tag: para
#: Components.xml:355
#, no-c-format
msgid "<literal>localeSelector.country</literal> — the country for the specified locale."
-msgstr ""
+msgstr "<literal>localeSelector.country</literal> — il paese del locale specificato."
#. Tag: para
#: Components.xml:361
#, no-c-format
msgid "<literal>localeSelector.variant</literal> — the variant for the specified locale."
-msgstr ""
+msgstr "<literal>localeSelector.variant</literal> — la variante del locale specificato."
#. Tag: para
#: Components.xml:367
15 years, 11 months
Seam SVN: r10035 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-11 15:25:14 -0500 (Wed, 11 Feb 2009)
New Revision: 10035
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Itext.xml
Log:
JBSEAM-3750
Modified: trunk/doc/Seam_Reference_Guide/en-US/Itext.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Itext.xml 2009-02-11 17:44:52 UTC (rev 10034)
+++ trunk/doc/Seam_Reference_Guide/en-US/Itext.xml 2009-02-11 20:25:14 UTC (rev 10035)
@@ -1413,8 +1413,19 @@
<literal>domainAxisLabel</literal> — The text label for the domain
axis. </para>
</listitem>
+
+
<listitem>
<para>
+ <literal>domainLabelPosition</literal> — The angle of the domain axis category labels.
+ Valid values are <literal>STANDARD</literal>, <literal>UP_45</literal>, <literal>UP_90</literal>,
+ <literal>DOWN_45</literal> and <literal>DOWN_90</literal>. Alternatively, the value
+ can the positive or negative angle in radians.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
<literal>domainAxisPaint</literal> — The color of the domain axis
label. </para>
</listitem>
@@ -1618,8 +1629,18 @@
<literal>domainAxisLabel</literal> — The text label for the domain
axis. </para>
</listitem>
+
<listitem>
<para>
+ <literal>domainLabelPosition</literal> — The angle of the domain axis category labels.
+ Valid values are <literal>STANDARD</literal>, <literal>UP_45</literal>, <literal>UP_90</literal>,
+ <literal>DOWN_45</literal> and <literal>DOWN_90</literal>. Alternatively, the value
+ can the positive or negative angle in radians.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
<literal>domainAxisPaint</literal> — The color of the domain axis
label. </para>
</listitem>
15 years, 11 months
Seam SVN: r10034 - trunk/src/pdf/org/jboss/seam/pdf/ui.
by seam-commits@lists.jboss.org
Author: norman.richards(a)jboss.com
Date: 2009-02-11 12:44:52 -0500 (Wed, 11 Feb 2009)
New Revision: 10034
Modified:
trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
trunk/src/pdf/org/jboss/seam/pdf/ui/UIChart.java
Log:
JBSEAM-3750
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java 2009-02-11 15:44:59 UTC (rev 10033)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UICategoryChartBase.java 2009-02-11 17:44:52 UTC (rev 10034)
@@ -4,6 +4,7 @@
import org.jboss.seam.log.*;
+import org.jfree.chart.axis.CategoryLabelPositions;
import org.jfree.chart.block.BlockBorder;
import org.jfree.chart.plot.CategoryPlot;
import org.jfree.chart.plot.Plot;
@@ -11,398 +12,389 @@
import org.jfree.chart.title.LegendTitle;
import org.jfree.chart.title.TextTitle;
-public abstract class UICategoryChartBase extends UIChart
-{
- private static Log log = Logging.getLog(UICategoryChartBase.class);
+public abstract class UICategoryChartBase extends UIChart {
+ private static Log log = Logging.getLog(UICategoryChartBase.class);
- private String orientation;
+ private String orientation;
- private boolean legend;
- private boolean is3D = false;
+ private boolean legend;
+ private boolean is3D = false;
- private String title;
- private String titleBackgroundPaint;
- private String titlePaint;
+ private String title;
+ private String titleBackgroundPaint;
+ private String titlePaint;
- private String legendBackgroundPaint;
- private String legendItemPaint;
- private String legendOutlinePaint;
+ private String legendBackgroundPaint;
+ private String legendItemPaint;
+ private String legendOutlinePaint;
- private String domainAxisLabel;
- private String domainAxisPaint;
- private Boolean domainGridlinesVisible;
- private String domainGridlinePaint;
- private String domainGridlineStroke;
+ private String domainAxisLabel;
+ private String domainLabelPosition;
+ private String domainAxisPaint;
+ private Boolean domainGridlinesVisible;
+ private String domainGridlinePaint;
+ private String domainGridlineStroke;
- private String rangeAxisLabel;
- private String rangeAxisPaint;
- private Boolean rangeGridlinesVisible;
- private String rangeGridlinePaint;
- private String rangeGridlineStroke;
+ private String rangeAxisLabel;
+ private String rangeAxisPaint;
+ private Boolean rangeGridlinesVisible;
+ private String rangeGridlinePaint;
+ private String rangeGridlineStroke;
- public String getDomainAxisLabel()
- {
- return (String) valueBinding("domainAxisLabel", domainAxisLabel);
- }
+ public String getDomainAxisLabel() {
+ return (String) valueBinding("domainAxisLabel", domainAxisLabel);
+ }
- public void setDomainAxisLabel(String categoryAxisLabel)
- {
- this.domainAxisLabel = categoryAxisLabel;
- }
+ public void setDomainAxisLabel(String categoryAxisLabel) {
+ this.domainAxisLabel = categoryAxisLabel;
+ }
- public String getRangeAxisLabel()
- {
- return (String) valueBinding("rangeAxisLabel", rangeAxisLabel);
- }
+ public String getRangeAxisLabel() {
+ return (String) valueBinding("rangeAxisLabel", rangeAxisLabel);
+ }
- public void setRangeAxisLabel(String valueAxisLabel)
- {
- this.rangeAxisLabel = valueAxisLabel;
- }
+ public void setRangeAxisLabel(String valueAxisLabel) {
+ this.rangeAxisLabel = valueAxisLabel;
+ }
- public void setTitle(String title)
- {
- this.title = title;
- }
+ public String getDomainLabelPosition() {
+ return (String) valueBinding("domainLabelPosition", domainLabelPosition);
+ }
- public String getTitle()
- {
- return (String) valueBinding("title", title);
- }
+ public void setDomainLabelPosition(String domainLabelPosition) {
+ this.domainLabelPosition = domainLabelPosition;
+ }
- public void setOrientation(String orientation)
- {
- this.orientation = orientation;
- }
+ public void setTitle(String title) {
+ this.title = title;
+ }
- public String getOrientation()
- {
- return (String) valueBinding("orientation", orientation);
- }
+ public String getTitle() {
+ return (String) valueBinding("title", title);
+ }
- public void setLegend(boolean legend)
- {
- this.legend = legend;
- }
+ public void setOrientation(String orientation) {
+ this.orientation = orientation;
+ }
- public boolean getLegend()
- {
- return (Boolean) valueBinding("legend", legend);
- }
+ public String getOrientation() {
+ return (String) valueBinding("orientation", orientation);
+ }
- public void setIs3D(boolean is3D)
- {
- this.is3D = true;
- }
+ public void setLegend(boolean legend) {
+ this.legend = legend;
+ }
- public boolean getIs3D()
- {
- return (Boolean) valueBinding("is3D", is3D);
- }
+ public boolean getLegend() {
+ return (Boolean) valueBinding("legend", legend);
+ }
- public void setTitleBackgroundPaint(String titleBackgroundPaint)
- {
- this.titleBackgroundPaint = titleBackgroundPaint;
- }
+ public void setIs3D(boolean is3D) {
+ this.is3D = true;
+ }
- public String getTitleBackgroundPaint()
- {
- return (String) valueBinding("titleBackgroundPaint", titleBackgroundPaint);
- }
+ public boolean getIs3D() {
+ return (Boolean) valueBinding("is3D", is3D);
+ }
- public void setTitlePaint(String titlePaint)
- {
- this.titlePaint = titlePaint;
- }
+ public void setTitleBackgroundPaint(String titleBackgroundPaint) {
+ this.titleBackgroundPaint = titleBackgroundPaint;
+ }
- public String getTitlePaint()
- {
- return (String) valueBinding("titlePaint", titlePaint);
- }
+ public String getTitleBackgroundPaint() {
+ return (String) valueBinding("titleBackgroundPaint",
+ titleBackgroundPaint);
+ }
- public String getLegendBackgroundPaint()
- {
- return (String) valueBinding("legendBackgroundPaint", legendBackgroundPaint);
- }
+ public void setTitlePaint(String titlePaint) {
+ this.titlePaint = titlePaint;
+ }
- public void setLegendBackgroundPaint(String legendBackgroundPaint)
- {
- this.legendBackgroundPaint = legendBackgroundPaint;
- }
+ public String getTitlePaint() {
+ return (String) valueBinding("titlePaint", titlePaint);
+ }
- public String getLegendItemPaint()
- {
- return (String) valueBinding("legendItemPaint", legendItemPaint);
- }
+ public String getLegendBackgroundPaint() {
+ return (String) valueBinding("legendBackgroundPaint",
+ legendBackgroundPaint);
+ }
- public void setLegendItemPaint(String legendItemPaint)
- {
- this.legendItemPaint = legendItemPaint;
- }
+ public void setLegendBackgroundPaint(String legendBackgroundPaint) {
+ this.legendBackgroundPaint = legendBackgroundPaint;
+ }
- public String getLegendOutlinePaint() {
- return (String) valueBinding("legendOutlinePaint", legendOutlinePaint);
- }
+ public String getLegendItemPaint() {
+ return (String) valueBinding("legendItemPaint", legendItemPaint);
+ }
- public void setLegendOutlinePaint(String legendOutlinePaint) {
- this.legendOutlinePaint = legendOutlinePaint;
- }
+ public void setLegendItemPaint(String legendItemPaint) {
+ this.legendItemPaint = legendItemPaint;
+ }
- public String getDomainGridlinePaint()
- {
- return (String) valueBinding("domainGridlinePaint", domainGridlinePaint);
- }
+ public String getLegendOutlinePaint() {
+ return (String) valueBinding("legendOutlinePaint", legendOutlinePaint);
+ }
- public void setDomainGridlinePaint(String domainGridlinePaint)
- {
- this.domainGridlinePaint = domainGridlinePaint;
- }
+ public void setLegendOutlinePaint(String legendOutlinePaint) {
+ this.legendOutlinePaint = legendOutlinePaint;
+ }
- public String getDomainGridlineStroke()
- {
- return (String) valueBinding("domainGridlineStroke", domainGridlineStroke);
- }
+ public String getDomainGridlinePaint() {
+ return (String) valueBinding("domainGridlinePaint", domainGridlinePaint);
+ }
- public void setDomainGridlineStroke(String domainGridlineStroke)
- {
- this.domainGridlineStroke = domainGridlineStroke;
- }
+ public void setDomainGridlinePaint(String domainGridlinePaint) {
+ this.domainGridlinePaint = domainGridlinePaint;
+ }
- public Boolean getDomainGridlinesVisible()
- {
- return (Boolean) valueBinding("domainGridlinesVisible", domainGridlinesVisible);
- }
+ public String getDomainGridlineStroke() {
+ return (String) valueBinding("domainGridlineStroke",
+ domainGridlineStroke);
+ }
- public void setDomainGridlinesVisible(Boolean domainGridlinesVisible)
- {
- this.domainGridlinesVisible = domainGridlinesVisible;
- }
+ public void setDomainGridlineStroke(String domainGridlineStroke) {
+ this.domainGridlineStroke = domainGridlineStroke;
+ }
- public String getRangeGridlinePaint()
- {
- return (String) valueBinding("rangeGridlinePaint", rangeGridlinePaint);
- }
+ public Boolean getDomainGridlinesVisible() {
+ return (Boolean) valueBinding("domainGridlinesVisible",
+ domainGridlinesVisible);
+ }
- public void setRangeGridlinePaint(String rangeGridlinePaint)
- {
- this.rangeGridlinePaint = rangeGridlinePaint;
- }
+ public void setDomainGridlinesVisible(Boolean domainGridlinesVisible) {
+ this.domainGridlinesVisible = domainGridlinesVisible;
+ }
- public String getRangeGridlineStroke()
- {
- return (String) valueBinding("rangeGridlineStroke", rangeGridlineStroke);
- }
+ public String getRangeGridlinePaint() {
+ return (String) valueBinding("rangeGridlinePaint", rangeGridlinePaint);
+ }
- public void setRangeGridlineStroke(String rangeGridlineStroke)
- {
- this.rangeGridlineStroke = rangeGridlineStroke;
- }
+ public void setRangeGridlinePaint(String rangeGridlinePaint) {
+ this.rangeGridlinePaint = rangeGridlinePaint;
+ }
- public Boolean getRangeGridlinesVisible()
- {
- return (Boolean) valueBinding("rangeGridlinesVisible", rangeGridlinesVisible);
- }
+ public String getRangeGridlineStroke() {
+ return (String) valueBinding("rangeGridlineStroke", rangeGridlineStroke);
+ }
- public void setRangeGridlinesVisible(Boolean rangeGridlinesVisible)
- {
- this.rangeGridlinesVisible = rangeGridlinesVisible;
- }
+ public void setRangeGridlineStroke(String rangeGridlineStroke) {
+ this.rangeGridlineStroke = rangeGridlineStroke;
+ }
- public String getDomainAxisPaint()
- {
- return (String) valueBinding("domainAxisPaint", domainAxisPaint);
- }
+ public Boolean getRangeGridlinesVisible() {
+ return (Boolean) valueBinding("rangeGridlinesVisible",
+ rangeGridlinesVisible);
+ }
- public void setDomainAxisPaint(String domainAxisPaint)
- {
- this.domainAxisPaint = domainAxisPaint;
- }
+ public void setRangeGridlinesVisible(Boolean rangeGridlinesVisible) {
+ this.rangeGridlinesVisible = rangeGridlinesVisible;
+ }
- public String getRangeAxisPaint()
- {
- return (String) valueBinding("rangeAxisPaint", rangeAxisPaint);
- }
+ public String getDomainAxisPaint() {
+ return (String) valueBinding("domainAxisPaint", domainAxisPaint);
+ }
- public void setRangeAxisPaint(String rangeAxisPaint)
- {
- this.rangeAxisPaint = rangeAxisPaint;
- }
+ public void setDomainAxisPaint(String domainAxisPaint) {
+ this.domainAxisPaint = domainAxisPaint;
+ }
- @Override
- public void restoreState(FacesContext context, Object state)
- {
- Object[] values = (Object[]) state;
+ public String getRangeAxisPaint() {
+ return (String) valueBinding("rangeAxisPaint", rangeAxisPaint);
+ }
- super.restoreState(context, values[0]);
+ public void setRangeAxisPaint(String rangeAxisPaint) {
+ this.rangeAxisPaint = rangeAxisPaint;
+ }
- orientation = (String) values[1];
- legend = (Boolean) values[2];
- is3D = (Boolean) values[3];
- title = (String) values[4];
- titleBackgroundPaint = (String) values[5];
- titlePaint = (String) values[6];
- legendBackgroundPaint = (String) values[7];
- legendItemPaint = (String) values[8];
- legendOutlinePaint = (String) values[9];
- domainAxisLabel = (String) values[10];
- domainAxisPaint = (String) values[11];
- domainGridlinesVisible = (Boolean) values[12];
- domainGridlinePaint = (String) values[13];
- domainGridlineStroke = (String) values[14];
- rangeAxisLabel = (String) values[15];
- rangeAxisPaint = (String) values[16];
- rangeGridlinesVisible = (Boolean) values[17];
- rangeGridlinePaint = (String) values[18];
- rangeGridlineStroke = (String) values[19];
- }
+ @Override
+ public void restoreState(FacesContext context, Object state) {
+ Object[] values = (Object[]) state;
- @Override
- public Object saveState(FacesContext context)
- {
- Object[] values = new Object[20];
- values[0] = super.saveState(context);
- values[1] = orientation;
- values[2] = legend;
- values[3] = is3D;
- values[4] = title;
- values[5] = titleBackgroundPaint;
- values[6] = titlePaint;
- values[7] = legendBackgroundPaint;
- values[8] = legendItemPaint;
- values[9] = legendOutlinePaint;
- values[10] = domainAxisLabel;
- values[11] = domainAxisPaint;
- values[12] = domainGridlinesVisible;
- values[13] = domainGridlinePaint;
- values[14] = domainGridlineStroke;
- values[15] = rangeAxisLabel;
- values[16] = rangeAxisPaint;
- values[17] = rangeGridlinesVisible;
- values[18] = rangeGridlinePaint;
- values[19] = rangeGridlineStroke;
+ super.restoreState(context, values[0]);
- return values;
- }
+ orientation = (String) values[1];
+ legend = (Boolean) values[2];
+ is3D = (Boolean) values[3];
+ title = (String) values[4];
+ titleBackgroundPaint = (String) values[5];
+ titlePaint = (String) values[6];
+ legendBackgroundPaint = (String) values[7];
+ legendItemPaint = (String) values[8];
+ legendOutlinePaint = (String) values[9];
+ domainAxisLabel = (String) values[10];
+ domainAxisPaint = (String) values[11];
+ domainGridlinesVisible = (Boolean) values[12];
+ domainGridlinePaint = (String) values[13];
+ domainGridlineStroke = (String) values[14];
+ rangeAxisLabel = (String) values[15];
+ rangeAxisPaint = (String) values[16];
+ rangeGridlinesVisible = (Boolean) values[17];
+ rangeGridlinePaint = (String) values[18];
+ rangeGridlineStroke = (String) values[19];
+ domainLabelPosition = (String) values[20];
+ }
- @Override
- public void configurePlot(Plot plot)
- {
- super.configurePlot(plot);
- if (plot instanceof CategoryPlot)
- {
- configurePlot((CategoryPlot) plot);
- }
- else
- {
- log.error("UICATEGORYCHART --- unknown plot " + plot);
- }
- }
+ @Override
+ public Object saveState(FacesContext context) {
+ Object[] values = new Object[21];
+ values[0] = super.saveState(context);
+ values[1] = orientation;
+ values[2] = legend;
+ values[3] = is3D;
+ values[4] = title;
+ values[5] = titleBackgroundPaint;
+ values[6] = titlePaint;
+ values[7] = legendBackgroundPaint;
+ values[8] = legendItemPaint;
+ values[9] = legendOutlinePaint;
+ values[10] = domainAxisLabel;
+ values[11] = domainAxisPaint;
+ values[12] = domainGridlinesVisible;
+ values[13] = domainGridlinePaint;
+ values[14] = domainGridlineStroke;
+ values[15] = rangeAxisLabel;
+ values[16] = rangeAxisPaint;
+ values[17] = rangeGridlinesVisible;
+ values[18] = rangeGridlinePaint;
+ values[19] = rangeGridlineStroke;
+ values[20] = domainLabelPosition;
- public void configurePlot(CategoryPlot plot)
- {
- // plot.setAxisOffset(RectangleInsets)
- // plot.setDomainAxisLocation(arg0);
- // plot.setRangeAxisLocation(arg0);
+ return values;
+ }
- if (getDomainGridlinesVisible() != null)
- {
- plot.setDomainGridlinesVisible(getDomainGridlinesVisible());
- }
+ @Override
+ public void configurePlot(Plot plot) {
+ super.configurePlot(plot);
+
+ if (plot instanceof CategoryPlot) {
+ configurePlot((CategoryPlot) plot);
+ } else {
+ log.error("UICATEGORYCHART --- unknown plot " + plot);
+ }
+ }
- if (findColor(getDomainGridlinePaint()) != null)
- {
- plot.setDomainGridlinePaint(findColor(getDomainGridlinePaint()));
- }
- if (findStroke(getDomainGridlineStroke()) != null)
- {
- plot.setDomainGridlineStroke(findStroke(getDomainGridlineStroke()));
- }
- if (findColor(getDomainAxisPaint()) != null)
- {
- plot.getDomainAxis().setLabelPaint(findColor(getDomainAxisPaint()));
- }
+ public void configurePlot(CategoryPlot plot) {
+ // plot.setAxisOffset(RectangleInsets)
+ // plot.setDomainAxisLocation(arg0);
+ // plot.setRangeAxisLocation(arg0);
- if (getRangeGridlinesVisible() != null)
- {
- plot.setRangeGridlinesVisible(getRangeGridlinesVisible());
- }
- if (findColor(getRangeGridlinePaint()) != null)
- {
- plot.setRangeGridlinePaint(findColor(getRangeGridlinePaint()));
- }
- if (findStroke(getRangeGridlineStroke()) != null)
- {
- plot.setRangeGridlineStroke(findStroke(getRangeGridlineStroke()));
- }
- if (findColor(getRangeAxisPaint()) != null)
- {
- plot.getRangeAxis().setLabelPaint(findColor(getRangeAxisPaint()));
- }
- configureRenderer(plot.getRenderer());
- }
+ if (getDomainGridlinesVisible() != null) {
+ plot.setDomainGridlinesVisible(getDomainGridlinesVisible());
+ }
- public void configureRenderer(CategoryItemRenderer renderer)
- {
- // renderer.setItemMargin(0.0);
+ if (findColor(getDomainGridlinePaint()) != null) {
+ plot.setDomainGridlinePaint(findColor(getDomainGridlinePaint()));
+ }
+
+ if (findStroke(getDomainGridlineStroke()) != null) {
+ plot.setDomainGridlineStroke(findStroke(getDomainGridlineStroke()));
+ }
+
+ if (findColor(getDomainAxisPaint()) != null) {
+ plot.getDomainAxis().setLabelPaint(findColor(getDomainAxisPaint()));
+ }
- // renderer.setBase(arg0);
- // renderer.setBaseFillPaint(arg0);
- // renderer.setBaseItemLabelFont(arg0);
- // renderer.setBaseItemLabelPaint(arg0);
- // renderer.setBaseItemLabelsVisible(arg0);
- // renderer.setBaseOutlinePaint(arg0);
- // renderer.setBaseOutlineStroke(arg0);
- // renderer.setBaseSeriesVisible(arg0);
- // renderer.setBaseSeriesVisibleInLegend(arg0);
- // renderer.setBaseShape(arg0);
- // renderer.setBaseStroke();
- // renderer.setFillPaint(arg0);
- // renderer.setItemLabelFont(arg0);
- // renderer.setItemLabelPaint(arg0);
- // renderer.setItemLabelsVisible(arg0);
- // renderer.setItemMargin(arg0);
- // renderer.setOutlinePaint(arg0)
- // renderer.setOutlineStroke(arg0)
- // renderer.setPaint(arg0);
- // renderer.setStroke(arg0);
+ if (getRangeGridlinesVisible() != null) {
+ plot.setRangeGridlinesVisible(getRangeGridlinesVisible());
+ }
+
+ if (findColor(getRangeGridlinePaint()) != null) {
+ plot.setRangeGridlinePaint(findColor(getRangeGridlinePaint()));
+ }
+
+ if (findStroke(getRangeGridlineStroke()) != null) {
+ plot.setRangeGridlineStroke(findStroke(getRangeGridlineStroke()));
+ }
+
+ if (findColor(getRangeAxisPaint()) != null) {
+ plot.getRangeAxis().setLabelPaint(findColor(getRangeAxisPaint()));
+ }
- // renderer.setBaseOutlineStroke(new BasicStroke(2f,
- // BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER, 10f,
- // new float[] {10,3}, 0));
- }
+ if (getDomainLabelPosition() != null) {
+ CategoryLabelPositions positions = categoryLabelPosition(getDomainLabelPosition());
+ plot.getDomainAxis().setCategoryLabelPositions(positions);
+ }
+
+ configureRenderer(plot.getRenderer());
+ }
- public void configureTitle(TextTitle chartTitle)
- {
- if (chartTitle != null)
- {
- if (findColor(getTitleBackgroundPaint()) != null)
- {
- chartTitle.setBackgroundPaint(findColor(getTitleBackgroundPaint()));
- }
+ private CategoryLabelPositions categoryLabelPosition(String position) {
+ if (position == null) {
+ return CategoryLabelPositions.STANDARD;
+ } else if (position.equals("UP_45")) {
+ return CategoryLabelPositions.UP_45;
+ } else if (position.equals("UP_90")) {
+ return CategoryLabelPositions.UP_90;
+ } else if (position.equals("DOWN_45")) {
+ return CategoryLabelPositions.DOWN_45;
+ } else if (position.equals("DOWN_90")) {
+ return CategoryLabelPositions.DOWN_90;
+ }
+
+ double angle = Double.parseDouble(position);
+ if (angle>0) {
+ return CategoryLabelPositions.createUpRotationLabelPositions(angle);
+ } else {
+ return CategoryLabelPositions.createDownRotationLabelPositions(-angle);
+ }
+ }
- if (findColor(getTitlePaint()) != null)
- {
- chartTitle.setPaint(findColor(getTitlePaint()));
- }
- }
- }
+ public void configureRenderer(CategoryItemRenderer renderer) {
+ // renderer.setItemMargin(0.0);
- void configureLegend(LegendTitle chartLegend)
- {
- if (chartLegend != null)
- {
- if (findColor(getLegendBackgroundPaint()) != null)
- {
- chartLegend.setBackgroundPaint(findColor(getLegendBackgroundPaint()));
- }
- if (findColor(getLegendOutlinePaint())!= null) {
- chartLegend.setBorder(new BlockBorder(findColor(getLegendOutlinePaint())));
- }
- if (findColor(getLegendItemPaint()) != null)
- {
- chartLegend.setItemPaint(findColor(getLegendItemPaint()));
- }
- }
- }
+ // renderer.setBase(arg0);
+ // renderer.setBaseFillPaint(arg0);
+ // renderer.setBaseItemLabelFont(arg0);
+ // renderer.setBaseItemLabelPaint(arg0);
+ // renderer.setBaseItemLabelsVisible(arg0);
+ // renderer.setBaseOutlinePaint(arg0);
+ // renderer.setBaseOutlineStroke(arg0);
+ // renderer.setBaseSeriesVisible(arg0);
+ // renderer.setBaseSeriesVisibleInLegend(arg0);
+ // renderer.setBaseShape(arg0);
+ // renderer.setBaseStroke();
+ // renderer.setFillPaint(arg0);
+ // renderer.setItemLabelFont(arg0);
+ // renderer.setItemLabelPaint(arg0);
+ // renderer.setItemLabelsVisible(arg0);
+ // renderer.setItemMargin(arg0);
+ // renderer.setOutlinePaint(arg0)
+ // renderer.setOutlineStroke(arg0)
+ // renderer.setPaint(arg0);
+ // renderer.setStroke(arg0);
+ // renderer.setBaseOutlineStroke(new BasicStroke(2f,
+ // BasicStroke.CAP_ROUND, BasicStroke.JOIN_MITER, 10f,
+ // new float[] {10,3}, 0));
+ }
+
+ public void configureTitle(TextTitle chartTitle) {
+ if (chartTitle != null) {
+ if (findColor(getTitleBackgroundPaint()) != null) {
+ chartTitle
+ .setBackgroundPaint(findColor(getTitleBackgroundPaint()));
+ }
+
+ if (findColor(getTitlePaint()) != null) {
+ chartTitle.setPaint(findColor(getTitlePaint()));
+ }
+ }
+ }
+
+ void configureLegend(LegendTitle chartLegend) {
+ if (chartLegend != null) {
+ if (findColor(getLegendBackgroundPaint()) != null) {
+ chartLegend.setBackgroundPaint(findColor(getLegendBackgroundPaint()));
+ }
+
+ if (findColor(getLegendOutlinePaint()) != null) {
+ chartLegend.setBorder(new BlockBorder(findColor(getLegendOutlinePaint())));
+ }
+
+ if (findColor(getLegendItemPaint()) != null) {
+ chartLegend.setItemPaint(findColor(getLegendItemPaint()));
+ }
+ }
+ }
+
}
Modified: trunk/src/pdf/org/jboss/seam/pdf/ui/UIChart.java
===================================================================
--- trunk/src/pdf/org/jboss/seam/pdf/ui/UIChart.java 2009-02-11 15:44:59 UTC (rev 10033)
+++ trunk/src/pdf/org/jboss/seam/pdf/ui/UIChart.java 2009-02-11 17:44:52 UTC (rev 10034)
@@ -10,7 +10,6 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
-import org.jboss.seam.core.Manager;
import org.jboss.seam.pdf.ITextUtils;
import org.jboss.seam.ui.graphicImage.GraphicImageResource;
import org.jboss.seam.ui.graphicImage.GraphicImageStore;
15 years, 11 months
Seam SVN: r10033 - branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-02-11 10:44:59 -0500 (Wed, 11 Feb 2009)
New Revision: 10033
Modified:
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pageflow-2.0.xsd
Log:
JBPAPP-1476
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pageflow-2.0.xsd
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pageflow-2.0.xsd 2009-02-11 15:08:14 UTC (rev 10032)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/pageflow-2.0.xsd 2009-02-11 15:44:59 UTC (rev 10033)
@@ -291,6 +291,7 @@
<xs:group name="action-elements">
<xs:choice>
<xs:element ref="action" />
+ <xs:element ref="script" />
</xs:choice>
</xs:group>
15 years, 11 months
Seam SVN: r10032 - in branches/enterprise/JBPAPP_4_3_FP01: examples/booking and 6 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-02-11 10:08:14 -0500 (Wed, 11 Feb 2009)
New Revision: 10032
Added:
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/META-INF/jboss.xml
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
Modified:
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/readme.txt
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/components.xml
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/web.xml
branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/components.properties
branches/enterprise/JBPAPP_4_3_FP01/examples/build.xml
branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/servlet/SeamListener.java
Log:
JBPAPP-1495
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/booking/readme.txt
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/booking/readme.txt 2009-02-11 15:00:23 UTC (rev 10031)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/booking/readme.txt 2009-02-11 15:08:14 UTC (rev 10032)
@@ -4,4 +4,13 @@
Transaction and persistence context management is handled by the
EJB container.
-example.name=booking
\ No newline at end of file
+example.name=booking
+
+To deploy this application to a cluster, first follow the steps 1-9 clustering-howto.txt in the root folder of the Seam distribution. Then execute the following command:
+ ant farm
+This command will deploy the archive to the farm directory of the "all" JBoss AS domain. To undeploy, run the following command:
+ ant unfarm
+HTTP session replication is enabled by default. You can disable it with the following commandline switch:
+ -Dsession.replication=false
+You can also toggle Seam's ManagedEntityInterceptor for any deployment with the following commandline switch:
+ -Ddistributable=false
\ No newline at end of file
Added: branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/META-INF/jboss.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/META-INF/jboss.xml (rev 0)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/META-INF/jboss.xml 2009-02-11 15:08:14 UTC (rev 10032)
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_4_2.dtd">
+<jboss>
+ <enterprise-beans>
+ <session>
+ <ejb-name>BookingListAction</ejb-name>
+ <clustered>@distributable@</clustered>
+ </session>
+ <session>
+ <ejb-name>HotelBookingAction</ejb-name>
+ <clustered>@distributable@</clustered>
+ </session>
+ <session>
+ <ejb-name>HotelSearchingAction</ejb-name>
+ <clustered>@distributable@</clustered>
+ </session>
+ </enterprise-beans>
+</jboss>
\ No newline at end of file
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/components.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/components.xml 2009-02-11 15:00:23 UTC (rev 10031)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/components.xml 2009-02-11 15:08:14 UTC (rev 10032)
@@ -10,7 +10,7 @@
http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
- <core:init jndi-pattern="@jndiPattern@" debug="true"/>
+ <core:init jndi-pattern="@jndiPattern@" debug="true" distributable="@distributable@"/>
<core:manager conversation-timeout="120000"
concurrent-request-timeout="500"
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/web.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/web.xml 2009-02-11 15:00:23 UTC (rev 10031)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/WEB-INF/web.xml 2009-02-11 15:08:14 UTC (rev 10032)
@@ -4,6 +4,8 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
+ <!-- <distributable/> -->
+
<display-name>Seam Booking Example</display-name>
<!-- Seam -->
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/components.properties
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/components.properties 2009-02-11 15:00:23 UTC (rev 10031)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/booking/resources/components.properties 2009-02-11 15:08:14 UTC (rev 10032)
@@ -1,3 +1,4 @@
# The pattern in components.xml is replaced by an application server specific value in the ant build. This value is used for running tests
-jndiPattern \#{ejbName}/local
\ No newline at end of file
+jndiPattern \#{ejbName}/local
+distributable true
\ No newline at end of file
Modified: branches/enterprise/JBPAPP_4_3_FP01/examples/build.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/examples/build.xml 2009-02-11 15:00:23 UTC (rev 10031)
+++ branches/enterprise/JBPAPP_4_3_FP01/examples/build.xml 2009-02-11 15:08:14 UTC (rev 10032)
@@ -32,6 +32,7 @@
<!-- Deployment directories -->
<property name="deploy.dir" value="${jboss.home}/server/production/deploy" />
<property name="tomcat.deploy.dir" value="${tomcat.home}/webapps" />
+ <property name="farm.deploy.dir" value="${jboss.home}/server/all/farm" />
<property name="conf.dir" value="${jboss.home}/server/production/conf" />
<!-- Library directories -->
@@ -531,10 +532,15 @@
<copy todir="${jar.dir}">
<fileset refid="jar.resources" />
<fileset refid="jar.extras" />
+ <filterset>
+ <filter token="distributable" value="${distributable}" />
+ </filterset>
</copy>
</target>
- <target name="init.war" />
+ <target name="init.war">
+ <property name="distributable" value="false"/>
+ </target>
<!-- Build the exploded war -->
<target name="war" depends="compile, init.war">
@@ -586,18 +592,25 @@
<fileset refid="war.resources" />
<filterset>
<filter token="debug" value="${debug}" />
- <filter token="jndiPattern" value="${example.name}/#{ejbName}/local" />
- <filter token="embeddedEjb" value="false" />
+ <filter token="distributable" value="${distributable}" />
+ <filter token="jndiPattern" value="${example.name}/#{ejbName}/local" />
</filterset>
</copy>
</target>
+
+ <target name="distributable.war" if="use.session.replication">
+ <replace file="${war.dir}/WEB-INF/web.xml">
+ <replacetoken><![CDATA[<!-- <distributable/> -->]]></replacetoken>
+ <replacevalue><![CDATA[<distributable/>]]></replacevalue>
+ </replace>
+ </target>
<!-- Build the exploded ear -->
<target name="ear">
<copy todir="${ear.dir}">
<fileset refid="seam.jar" />
- <fileset refid="ear.extras" />
<fileset refid="ear.resources" />
+ <fileset refid="ear.extras" />
</copy>
<mkdir dir="${ear.dir}/lib" />
<copy todir="${ear.dir}/lib">
@@ -622,7 +635,7 @@
</copy>
</target>
- <target name="archive" depends="jar,jboss.war,ear" description="Package the archives">
+ <target name="archive" depends="jar,jboss.war,distributable.war,ear" description="Package the archives">
<jar jarfile="${dist.dir}/${example.name}.jar" basedir="${jar.dir}" />
<jar jarfile="${dist.dir}/${example.name}.war" basedir="${war.dir}" />
<jar jarfile="${dist.dir}/${example.name}.ear">
@@ -633,6 +646,37 @@
</fileset>
</jar>
</target>
+
+ <target name="init.distributable">
+ <property name="distributable" value="true"/>
+ <condition property="use.session.replication">
+ <or>
+ <not><isset property="session.replication"/></not>
+ <equals arg1="${session.replication}" arg2="true"/>
+ </or>
+ </condition>
+ </target>
+
+ <target name="farm-archive" depends="init.distributable,archive"/>
+ <!-- FIXME Set the deploy.dir dynamically to avoid the duplicate targets for farming -->
+ <target name="farm-datasource" description="Deploy the datasource to a JBoss AS cluster">
+ <fail unless="jboss.home">jboss.home not set</fail>
+ <copy todir="${farm.deploy.dir}">
+ <fileset dir="${resources.dir}">
+ <include name="${example.ds}" />
+ </fileset>
+ </copy>
+ </target>
+ <target name="farm" depends="farm-archive,farm-datasource" description="Deploy the example to a JBoss AS cluster">
+ <fail unless="jboss.home">
+ jboss.home not set, update build.properties
+ </fail>
+ <copy file="${dist.dir}/${example.name}.ear" todir="${farm.deploy.dir}" />
+ </target>
+ <target name="unfarm" description="Undeploy the example from a JBoss AS cluster">
+ <delete file="${farm.deploy.dir}/${example.name}.ear" />
+ <delete file="${farm.deploy.dir}/${example.ds}" />
+ </target>
<!-- Deploy the target to JBoss AS -->
<target name="deploy" depends="archive, datasource" description="Deploy the example to JBoss AS">
@@ -755,8 +799,8 @@
<fileset refid="war.resources" />
<filterset>
<filter token="debug" value="${debug}" />
- <filter token="jndiPattern" value="#{ejbName}/local" />
- <filter token="embeddedEjb" value="false" />
+ <filter token="distributable" value="${distributable}" />
+ <filter token="jndiPattern" value="#{ejbName}/local" />
</filterset>
</copy>
</target>
@@ -824,13 +868,13 @@
<fileset refid="war.resources" />
<filterset>
<filter token="debug" value="${debug}" />
+ <filter token="distributable" value="${distributable}" />
<filter token="jndiPattern" value="#{ejbName}/local" />
- <filter token="embeddedEjb" value="false" />
</filterset>
</copy>
</target>
- <target name="noejb.archive" depends="noejb.jar,noejb.war" description="Package the archives for non-ejb war">
+ <target name="noejb.archive" depends="noejb.jar,noejb.war,distributable.war" description="Package the archives for non-ejb war">
<jar jarfile="${dist.dir}/${example.name}.war">
<fileset dir="${war.dir}" />
<zipfileset dir="${dist.dir}" prefix="WEB-INF/lib">
@@ -852,6 +896,20 @@
<delete file="${deploy.dir}/${example.name}.war" />
</target>
+ <target name="noejb.farm-archive" depends="init.distributable,noejb.archive"/>
+
+ <!-- FIXME Set the deploy.dir dynamically to avoid the duplicate targets for farming -->
+ <target name="jbosswar.farm" depends="noejb.farm-archive,farm-datasource" description="Deploy the example to a JBoss AS cluster">
+ <fail unless="jboss.home">
+ jboss.home not set, update build.properties
+ </fail>
+ <copy file="${dist.dir}/${example.name}.war" todir="${farm.deploy.dir}" />
+ </target>
+
+ <target name="jbosswar.unfarm" description="Undeploy the example from a JBoss AS cluster">
+ <delete file="${farm.deploy.dir}/${example.name}.war" />
+ </target>
+
<target name="jbosswar.explode" depends="noejb.jar, noejb.war, datasource" description="Deploy the example (exploded) to JBoss AS">
<fail unless="jboss.home">
jboss.home not set, update build.properties
Added: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java (rev 0)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/jmx/JBossClusterMonitor.java 2009-02-11 15:08:14 UTC (rev 10032)
@@ -0,0 +1,158 @@
+package org.jboss.seam.jmx;
+
+import static org.jboss.seam.ScopeType.APPLICATION;
+import static org.jboss.seam.annotations.Install.BUILT_IN;
+
+import java.util.Iterator;
+import java.util.Vector;
+
+import javax.management.MBeanServer;
+import javax.management.MBeanServerFactory;
+import javax.management.MalformedObjectNameException;
+import javax.management.ObjectName;
+import javax.servlet.ServletContext;
+
+import org.jboss.seam.Seam;
+import org.jboss.seam.annotations.Create;
+import org.jboss.seam.annotations.Install;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+import org.jboss.seam.annotations.Startup;
+import org.jboss.seam.annotations.intercept.BypassInterceptors;
+import org.jboss.seam.log.Log;
+import org.jboss.seam.log.Logging;
+
+/**
+ * The purpose of this component is to detect a clustered environment and
+ * to inform the HttpSessionListener whether the origin of a session destroyed
+ * event is the failover of a session from one node to the next. If a node
+ * is failing over, we don't want the SFSBs referenced by the session to be
+ * destroyed.
+ *
+ * @author Dan Allen
+ */
+@Name("org.jboss.seam.jmx.jbossClusterMonitor")
+@BypassInterceptors
+@Scope(APPLICATION)
+@Startup
+@Install(precedence=BUILT_IN, classDependencies="org.jgroups.MembershipListener")
+public class JBossClusterMonitor
+{
+ private static Log log = Logging.getLog(JBossClusterMonitor.class);
+
+ private MBeanServer jbossMBeanServer;
+
+ private boolean clustered;
+
+ private ObjectName clusteringCacheObjectName;
+
+ private ObjectName serverObjectName;
+
+ @Create
+ public void create()
+ {
+ jbossMBeanServer = locateJBoss();
+
+ if (!isJBoss())
+ {
+ return;
+ }
+
+ try
+ {
+ clusteringCacheObjectName = new ObjectName("jboss.cache:service=TomcatClusteringCache");
+ serverObjectName = new ObjectName("jboss.system:type=Server");
+ }
+ catch (MalformedObjectNameException e)
+ {
+ log.warn("Invalid JMX name: " + e.getMessage());
+ }
+
+ try
+ {
+ jbossMBeanServer.getMBeanInfo(clusteringCacheObjectName);
+ clustered = true;
+ log.info("JBoss cluster detected");
+ }
+ catch (Exception e) {}
+ }
+
+ public boolean isClustered()
+ {
+ return clustered;
+ }
+
+ /**
+ * Consults the jboss.system:type=Server MBean to determine if this instance
+ * of JBoss AS is currently being shutdown. Note that the flag only returns
+ * true if the shutdown() method on this MBean is used. It does not detect a
+ * force halt via a process signal (i.e., CTRL-C).
+ */
+ public boolean nodeIsShuttingDown()
+ {
+ if (!isJBoss())
+ {
+ return false;
+ }
+
+ try
+ {
+ return (Boolean) jbossMBeanServer.getAttribute(serverObjectName, "InShutdown");
+ }
+ catch (Exception e)
+ {
+ return false;
+ }
+ }
+
+ public boolean isLastNode()
+ {
+ if (!clustered)
+ {
+ return true;
+ }
+
+ // other options
+ // object name => jboss.jgroups:cluster=DefaultPartition,type=channel
+ // object name => jboss.jgroups:cluster=Tomcat-Cluster,type=channel
+ // attribute => NumberOfTasksInTimer
+
+ try
+ {
+ return ((Vector) jbossMBeanServer.getAttribute(clusteringCacheObjectName, "Members")).size() == 1;
+ }
+ catch (Exception e) {
+ log.warn("Could not determine number of members in cluster", e);
+ return true;
+ }
+ }
+
+ public boolean failover()
+ {
+ return isClustered() && nodeIsShuttingDown() && !isLastNode();
+ }
+
+ public boolean isJBoss()
+ {
+ return jbossMBeanServer != null;
+ }
+
+ protected MBeanServer locateJBoss()
+ {
+ for (Iterator i = MBeanServerFactory.findMBeanServer(null).iterator(); i.hasNext(); )
+ {
+ MBeanServer server = (MBeanServer) i.next();
+ if (server.getDefaultDomain().equals("jboss"))
+ {
+ return server;
+ }
+ }
+ return null;
+ }
+
+ // FIXME my sense is that this could lookup could be more elegant or conforming
+ public static JBossClusterMonitor getInstance(ServletContext ctx)
+ {
+ return (JBossClusterMonitor) ctx.getAttribute(Seam.getComponentName(JBossClusterMonitor.class));
+ }
+}
Modified: branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/servlet/SeamListener.java
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/servlet/SeamListener.java 2009-02-11 15:00:23 UTC (rev 10031)
+++ branches/enterprise/JBPAPP_4_3_FP01/src/main/org/jboss/seam/servlet/SeamListener.java 2009-02-11 15:08:14 UTC (rev 10032)
@@ -14,6 +14,7 @@
import org.jboss.seam.Seam;
import org.jboss.seam.contexts.ServletLifecycle;
import org.jboss.seam.init.Initialization;
+import org.jboss.seam.jmx.JBossClusterMonitor;
import org.jboss.seam.log.LogProvider;
import org.jboss.seam.log.Logging;
@@ -46,7 +47,16 @@
public void sessionDestroyed(HttpSessionEvent event)
{
- ServletLifecycle.endSession( event.getSession() );
+ JBossClusterMonitor monitor = JBossClusterMonitor.getInstance(event.getSession().getServletContext());
+ if (monitor != null && monitor.failover())
+ {
+ // If application is unfarmed or all nodes shutdown simultaneously, cluster cache may still fail to retrieve SFSBs to destroy
+ log.info("Detected fail-over, not destroying session context");
+ }
+ else
+ {
+ ServletLifecycle.endSession( event.getSession() );
+ }
}
}
15 years, 11 months
Seam SVN: r10031 - branches/enterprise/JBPAPP_4_3_FP01/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-02-11 10:00:23 -0500 (Wed, 11 Feb 2009)
New Revision: 10031
Modified:
branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml
branches/enterprise/JBPAPP_4_3_FP01/build/ui.pom.xml
Log:
JBPAPP-1699
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml 2009-02-10 12:36:40 UTC (rev 10030)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/root.pom.xml 2009-02-11 15:00:23 UTC (rev 10031)
@@ -208,11 +208,17 @@
</exclusion>
</exclusions>
</dependency>
+
+ <dependency>
+ <groupId>emma</groupId>
+ <artifactId>emma</artifactId>
+ <version>2.0.5312</version>
+ </dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
- <version>1.2_09-brew</version>
+ <version>1.2_10</version>
</dependency>
<dependency>
@@ -224,7 +230,7 @@
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
- <version>1.2_09-brew</version>
+ <version>1.2_10-brew</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
@@ -250,19 +256,25 @@
<dependency>
<groupId>jboss</groupId>
<artifactId>jboss-cache</artifactId>
- <version>1.4.1.SP10-brew</version>
+ <version>1.4.1.SP11</version>
</dependency>
<dependency>
<groupId>jgroups</groupId>
<artifactId>jgroups</artifactId>
- <version>2.4.4.GA-brew</version>
+ <version>2.4.5.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>beanshell</groupId>
+ <artifactId>beanshell</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
<groupId>hibernate</groupId>
<artifactId>hibernate3</artifactId>
- <version>3.2.4.SP1_CP06-brew</version>
+ <version>3.2.4.SP1_CP07-brew</version>
<exclusions>
<exclusion>
<groupId>commons-collections</groupId>
@@ -365,8 +377,8 @@
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
- <version>1.7.0clean-brew</version>
- <exclusions>
+ <version>1.8.0</version>
+ <exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
Modified: branches/enterprise/JBPAPP_4_3_FP01/build/ui.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_4_3_FP01/build/ui.pom.xml 2009-02-10 12:36:40 UTC (rev 10030)
+++ branches/enterprise/JBPAPP_4_3_FP01/build/ui.pom.xml 2009-02-11 15:00:23 UTC (rev 10031)
@@ -197,7 +197,7 @@
</exclusion>
</exclusions>
</dependency>
-
+
<dependency>
<groupId>emma</groupId>
<artifactId>emma</artifactId>
15 years, 11 months