Seam SVN: r8579 - trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 12:19:32 -0400 (Tue, 05 Aug 2008)
New Revision: 8579
Added:
trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/Messages.java
trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java
Modified:
trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentTagBase.java
Log:
JBSEAM-3137
Added: trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/Messages.java
===================================================================
--…
[View More]- trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/Messages.java (rev 0)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/Messages.java 2008-08-05 16:19:32 UTC (rev 8579)
@@ -0,0 +1,311 @@
+package org.jboss.seam.ui.util.cdk;
+
+import java.text.MessageFormat;
+import java.util.HashMap;
+import java.util.Locale;
+import java.util.Map;
+import java.util.ResourceBundle;
+
+public class Messages {
+ private static final String BUNDLE_NAME = "org.ajax4jsf.messages";
+
+ private static Map<ClassLoader, ResourceBundle> bundles = new HashMap<ClassLoader, ResourceBundle>();
+
+ private static synchronized ResourceBundle getBundle() {
+ ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
+ ResourceBundle bundle = (ResourceBundle) bundles.get(contextClassLoader);
+ if (bundle == null) {
+ bundle = ResourceBundle.getBundle(BUNDLE_NAME, Locale.getDefault(), contextClassLoader);
+ bundles.put(contextClassLoader, bundle);
+ }
+
+ return bundle;
+ }
+
+ public static final String getMessage(String name) {
+ String value = getBundle().getString(name);
+ return value == null ? "%" + name + "%" : value;
+ }
+
+ public static final String getMessage(String name, Object param) {
+ String pattern = getBundle().getString(name);
+ if(pattern == null) return "%" + name + "%";
+ return MessageFormat.format(pattern, new Object[]{param});
+ }
+
+ public static final String getMessage(String name, Object param1, Object param2) {
+ String pattern = getBundle().getString(name);
+ if(pattern == null) return "%" + name + "%";
+ return MessageFormat.format(pattern, new Object[]{param1, param2});
+ }
+
+ public static final String getMessage(String name, Object[] params) {
+ String pattern = getBundle().getString(name);
+ if(pattern == null) return "%" + name + "%";
+ return MessageFormat.format(pattern, params);
+ }
+
+ public static final String BUNDLE_MAP_NO_PUT_VALUE = "BUNDLE_MAP_NO_PUT_VALUE";
+ public static final String BUNDLE_MAP_NO_REMOVE_VALUE = "BUNDLE_MAP_NO_REMOVE_VALUE";
+ public static final String NO_CONVERTER_REGISTERED = "NO_CONVERTER_REGISTERED";
+ public static final String FOR_TARGETS_NO_AJAX_CONTAINER = "FOR_TARGETS_NO_AJAX_CONTAINER";
+ public static final String VAR_MUST_BE_LITERAL = "VAR_MUST_BE_LITERAL";
+ public static final String EVENT_MUST_BE_LITERAL = "EVENT_MUST_BE_LITERAL";
+ public static final String CREATE_JAVASCRIPT_EVENT = "CREATE_JAVASCRIPT_EVENT";
+ public static final String CALLED_SET_PARENT = "CALLED_SET_PARENT";
+ public static final String DETECT_NEW_COMPONENT = "DETECT_NEW_COMPONENT";
+ public static final String SET_VALUE_BINDING_FOR_EVENT = "SET_VALUE_BINDING_FOR_EVENT";
+ public static final String COULD_NOT_LOAD_RESOURCE_BUNDLE = "COULD_NOT_LOAD_RESOURCE_BUNDLE";
+ public static final String FACES_CONTEXT_NOT_CREATED = "FACES_CONTEXT_NOT_CREATED";
+ public static final String FACES_CONTEXT_HAS_NOT_EXTERNAL = "FACES_CONTEXT_HAS_NOT_EXTERNAL";
+ public static final String FACES_CONTEXT_HAS_NOT_RESPONSE = "FACES_CONTEXT_HAS_NOT_RESPONSE";
+ public static final String CREATE_ALTERNATE_HANDLER = "CREATE_ALTERNATE_HANDLER";
+ public static final String ALTERNATE_HANDLER_CONSTRUCTOR_WARNING = "ALTERNATE_HANDLER_CONSTRUCTOR_WARNING";
+ public static final String VIEW_HANDLER_INSTANTIATION_ERROR = "VIEW_HANDLER_INSTANTIATION_ERROR";
+ public static final String ERROR_ON_PAGE = "ERROR_ON_PAGE";
+ public static final String LIFECYCLE_ERROR = "LIFECYCLE_ERROR";
+ public static final String LIFECYCLE_ERROR_AT_PHASE = "LIFECYCLE_ERROR_AT_PHASE";
+ public static final String COMPONENT_TREE_NOT_CREATED = "COMPONENT_TREE_NOT_CREATED";
+ public static final String SET_AJAX_LISTENER = "SET_AJAX_LISTENER";
+ public static final String ADD_AJAX_AREA = "ADD_AJAX_AREA";
+ public static final String ADD_AJAX_AREAS = "ADD_AJAX_AREAS";
+ public static final String SET_AJAX_REQUEST = "SET_AJAX_REQUEST";
+ public static final String SUBMITTED_AJAX_REQUEST = "SUBMITTED_AJAX_REQUEST";
+ public static final String SEND_EVENT_TO_AJAX_LISTENER = "SEND_EVENT_TO_AJAX_LISTENER";
+ public static final String RENDER_AJAX_REQUEST = "RENDER_AJAX_REQUEST";
+ public static final String RENDERING_AJAX_REGION_ERROR = "RENDERING_AJAX_REGION_ERROR";
+ public static final String RESTORE_AJAX_COMPONENT_STATE = "RESTORE_AJAX_COMPONENT_STATE";
+ public static final String SAVE_AJAX_COMPONENT_STATE = "SAVE_AJAX_COMPONENT_STATE";
+ public static final String CREATE_AJAX_AREAS_SET_TO_RENDER = "CREATE_AJAX_AREAS_SET_TO_RENDER";
+ public static final String ARGUMENT_IS_NOT_AJAX_REGION_ERROR = "ARGUMENT_IS_NOT_AJAX_REGION_ERROR";
+ public static final String NULL_EVENT_SUBMITTED_ERROR = "NULL_EVENT_SUBMITTED_ERROR";
+ public static final String CONTENT_TYPE_ENCODING = "CONTENT_TYPE_ENCODING";
+ public static final String CONTENT_TYPE_NO_ENCODING = "CONTENT_TYPE_NO_ENCODING";
+ public static final String FILTER_START_INFO = "FILTER_START_INFO";
+ public static final String FILTER_XML_OUTPUT = "FILTER_XML_OUTPUT";
+ public static final String FILTER_NO_XML_CHAIN = "FILTER_NO_XML_CHAIN";
+ public static final String FILTER_NO_XML_CHAIN_2 = "FILTER_NO_XML_CHAIN_2";
+ public static final String FILTER_STOP_INFO = "FILTER_STOP_INFO";
+ public static final String PARSER_NOT_INSTANTIATED_ERROR = "PARSER_NOT_INSTANTIATED_ERROR";
+ public static final String PARSING_TIME_INFO = "PARSING_TIME_INFO";
+ public static final String JTIDY_PARSING_ERROR = "JTIDY_PARSING_ERROR";
+ public static final String COMPONENT_NOT_FOUND = "COMPONENT_NOT_FOUND";
+ public static final String EVENT_IS_READ_ONLY = "EVENT_IS_READ_ONLY";
+ public static final String FLUSH_BUFFERED_STREAM_ERROR = "FLUSH_BUFFERED_STREAM_ERROR";
+ public static final String UNSUPPORTED_ENCODING_WARNING = "UNSUPPORTED_ENCODING_WARNING";
+ public static final String UNSUPPORTED_ENCODING_WARNING_2 = "UNSUPPORTED_ENCODING_WARNING_2";
+ public static final String NO_WRITER_CALLED_INFO = "NO_WRITER_CALLED_INFO";
+ public static final String PARSE_XML_DOCUMENT_INFO = "PARSE_XML_DOCUMENT_INFO";
+ public static final String NO_WRITER_POSSIBLE_ERROR = "NO_WRITER_POSSIBLE_ERROR";
+ public static final String CREATE_WRITER_INFO = "CREATE_WRITER_INFO";
+ public static final String NO_STREAM_POSSIBLE_ERROR = "NO_STREAM_POSSIBLE_ERROR";
+ public static final String CREATE_STREAM_INFO = "CREATE_STREAM_INFO";
+ public static final String OPEN_CLOSE_TAGS_DO_NOT_MATCH_ERROR = "OPEN_CLOSE_TAGS_DO_NOT_MATCH_ERROR";
+ public static final String VARIABLE_SUBSTITUTION_WARNING = "VARIABLE_SUBSTITUTION_WARNING";
+ public static final String START_DOCUMENT_SAX_EXCEPTION = "START_DOCUMENT_SAX_EXCEPTION";
+ public static final String COMMENT_SAX_EXCEPTION = "COMMENT_SAX_EXCEPTION";
+ public static final String END_ELEMENT_SAX_EXCEPTION = "END_ELEMENT_SAX_EXCEPTION";
+ public static final String END_DOCUMENT_SAX_EXCEPTION = "END_DOCUMENT_SAX_EXCEPTION";
+ public static final String START_ELEMENT_SAX_EXCEPTION = "START_ELEMENT_SAX_EXCEPTION";
+ public static final String TEXT_SAX_EXCEPTION = "TEXT_SAX_EXCEPTION";
+ public static final String MESSAGE_PARSING_INFO = "MESSAGE_PARSING_INFO";
+ public static final String CREATE_JTIDY_INFO = "CREATE_JTIDY_INFO";
+ public static final String READING_TIDY_PROPERTIES_ERROR = "READING_TIDY_PROPERTIES_ERROR";
+ public static final String ILLEGAL_METHOD_STATE = "ILLEGAL_METHOD_STATE";
+ public static final String WRAPPED_RULES_NULL_ERROR = "WRAPPED_RULES_NULL_ERROR";
+ public static final String NO_NAME_ATTRIBUTE_ERROR = "NO_NAME_ATTRIBUTE_ERROR";
+ public static final String ENCODE_COMPILED_TEMPLATE_INFO = "ENCODE_COMPILED_TEMPLATE_INFO";
+ public static final String ENCODING_TEMPLATE_TERMINATED_INFO = "ENCODING_TEMPLATE_TERMINATED_INFO";
+ public static final String ENCODE_COMPILED_TEMPLATE_INFO2 = "ENCODE_COMPILED_TEMPLATE_INFO2";
+ public static final String CONVERTING_NON_VALUE_HOLDER_COMPONENT_ERROR = "CONVERTING_NON_VALUE_HOLDER_COMPONENT_ERROR";
+ public static final String COMPONENT_CLASS_ERROR = "COMPONENT_CLASS_ERROR";
+ public static final String CONTEXT_NULL_ERROR = "CONTEXT_NULL_ERROR";
+ public static final String COMPONENT_NULL_ERROR = "COMPONENT_NULL_ERROR";
+ public static final String START_DECODING_COMPONENT_INFO = "START_DECODING_COMPONENT_INFO";
+ public static final String START_ENCODING_COMPONENT_INFO = "START_ENCODING_COMPONENT_INFO";
+ public static final String CHILDREN_ENCODING_COMPONENT_INFO = "CHILDREN_ENCODING_COMPONENT_INFO";
+ public static final String FINISH_ENCODING_COMPONENT_INFO = "FINISH_ENCODING_COMPONENT_INFO";
+ public static final String NAMESPACE_NOT_RECOGNIZED_ERROR = "NAMESPACE_NOT_RECOGNIZED_ERROR";
+ public static final String RENDERER_METHOD_NOT_SET_ERROR = "RENDERER_METHOD_NOT_SET_ERROR";
+ public static final String METHOD_CALL_ERROR_1 = "METHOD_CALL_ERROR_1";
+ public static final String METHOD_CALL_ERROR_2 = "METHOD_CALL_ERROR_2";
+ public static final String METHOD_CALL_ERROR_3 = "METHOD_CALL_ERROR_3";
+ public static final String METHOD_CALL_ERROR_4 = "METHOD_CALL_ERROR_4";
+ public static final String METHOD_CALL_ERROR_5 = "METHOD_CALL_ERROR_5";
+ public static final String METHOD_CALL_ERROR_6 = "METHOD_CALL_ERROR_6";
+ public static final String METHOD_CALL_ERROR_1a = "METHOD_CALL_ERROR_1a";
+ public static final String METHOD_CALL_ERROR_2a = "METHOD_CALL_ERROR_2a";
+ public static final String METHOD_CALL_ERROR_3a = "METHOD_CALL_ERROR_3a";
+ public static final String METHOD_CALL_ERROR_4a = "METHOD_CALL_ERROR_4a";
+ public static final String METHOD_CALL_ERROR_5a = "METHOD_CALL_ERROR_5a";
+ public static final String METHOD_CALL_ERROR_6a = "METHOD_CALL_ERROR_6a";
+ public static final String PARSING_TEMPLATE_ERROR = "PARSING_TEMPLATE_ERROR";
+ public static final String TEMPLATE_IO_ERROR = "TEMPLATE_IO_ERROR";
+ public static final String PARSING_TEMPLATE_ERROR_2 = "PARSING_TEMPLATE_ERROR_2";
+ public static final String START_COMPILE_TEMPLATE_INFO = "START_COMPILE_TEMPLATE_INFO";
+ public static final String PARSING_TEMPLATE_ERROR_a = "PARSING_TEMPLATE_ERROR_a";
+ public static final String TEMPLATE_IO_ERROR_a = "TEMPLATE_IO_ERROR_a";
+ public static final String PARSING_TEMPLATE_ERROR_2a = "PARSING_TEMPLATE_ERROR_2a";
+ public static final String FINISH_COMPILE_TEMPLATE_INFO = "FINISH_COMPILE_TEMPLATE_INFO";
+ public static final String TEMPLATE_NOT_COMPILED_ERROR = "TEMPLATE_NOT_COMPILED_ERROR";
+ public static final String NO_CHILD_ALLOWED = "NO_CHILD_ALLOWED";
+ public static final String NO_FACET_NAME_ATTRIBUTE = "NO_FACET_NAME_ATTRIBUTE";
+ public static final String BREAKPOINTS_UNSUPPORTED_ERROR = "BREAKPOINTS_UNSUPPORTED_ERROR";
+ public static final String BREAKPOINT_NOT_REGISTERED_ERROR = "BREAKPOINT_NOT_REGISTERED_ERROR";
+ public static final String CHILD_NOT_ALLOWED_ERROR = "CHILD_NOT_ALLOWED_ERROR";
+ public static final String INVOKE_RENDERER_METHOD_ERROR = "INVOKE_RENDERER_METHOD_ERROR";
+ public static final String METHOD_CALL_ERROR_2b = "METHOD_CALL_ERROR_2b";
+ public static final String METHOD_CALL_ERROR_4b = "METHOD_CALL_ERROR_4b";
+ public static final String METHOD_CALL_ERROR_6b = "METHOD_CALL_ERROR_6b";
+ public static final String STYLE_ATTRIBUTE_ERROR = "STYLE_ATTRIBUTE_ERROR";
+ public static final String BREAKPOINTS_UNSUPPORTED_ERROR_2 = "BREAKPOINTS_UNSUPPORTED_ERROR_2";
+ public static final String BREAKPOINTS_UNSUPPORTED_ERROR_3 = "BREAKPOINTS_UNSUPPORTED_ERROR_3";
+ public static final String REQUEST_CHAMELEON_RENDER_KIT_INFO = "REQUEST_CHAMELEON_RENDER_KIT_INFO";
+ public static final String GET_DEFAULT_RENDER_KIT_ERROR = "GET_DEFAULT_RENDER_KIT_ERROR";
+ public static final String DEFAULT_RENDER_KIT_INFO = "DEFAULT_RENDER_KIT_INFO";
+ public static final String AJAX_RESPONSE_NOT_RENDERED_INFO = "AJAX_RESPONSE_NOT_RENDERED_INFO";
+ public static final String ENTER_BEFORE_RENDER_VIEW_PHASE = "ENTER_BEFORE_RENDER_VIEW_PHASE";
+ public static final String SET_RENDER_KIT_ID_INFO = "SET_RENDER_KIT_ID_INFO";
+ public static final String PROCESS_AJAX_EVENTS_INFO = "PROCESS_AJAX_EVENTS_INFO";
+ public static final String DELEGATE_AJAX_PROCESSING_INFO = "DELEGATE_AJAX_PROCESSING_INFO";
+ public static final String BREAKPOINTS_UNSUPPORTED_INSIDE_ATTRIBUTE_ERROR = "BREAKPOINTS_UNSUPPORTED_INSIDE_ATTRIBUTE_ERROR";
+ public static final String BUILD_ONCLICK_INFO = "BUILD_ONCLICK_INFO";
+ public static final String UNNAMED_PARAMETER_ERROR = "UNNAMED_PARAMETER_ERROR";
+ public static final String AJAX_STATUS_COMPONENT_NOT_FOWND_WARNING = "AJAX_STATUS_COMPONENT_NOT_FOWND_WARNING";
+ public static final String COMPONENT_NULL_ERROR_2 = "COMPONENT_NULL_ERROR_2";
+ public static final String CALCULATE_COMPONENT_ID_INFO = "CALCULATE_COMPONENT_ID_INFO";
+ public static final String DETECTING_ENCODING_DISABLED_ERROR = "DETECTING_ENCODING_DISABLED_ERROR";
+ public static final String OBTAIN_RESPONSE_SET_HEADER_ERROR = "OBTAIN_RESPONSE_SET_HEADER_ERROR";
+ public static final String INVOKE_AJAX_REGION_LISTENER = "INVOKE_AJAX_REGION_LISTENER";
+ public static final String APPENDING_AJAX_REGION_TO_NON_AJAX_CONTAINER_WARNING = "APPENDING_AJAX_REGION_TO_NON_AJAX_CONTAINER_WARNING";
+ public static final String RENDER_CHILDREN_NON_AJAX_INFO = "RENDER_CHILDREN_NON_AJAX_INFO";
+ public static final String RENDER_CHILDREN_AJAX_INFO = "RENDER_CHILDREN_AJAX_INFO";
+ public static final String ENCODE_CHILD_AJAX_INFO = "ENCODE_CHILD_AJAX_INFO";
+ public static final String RENDER_AJAX_AREA_INFO = "RENDER_AJAX_AREA_INFO";
+ public static final String DECODE_AJAX_REQUEST_STATUS_INFO = "DECODE_AJAX_REQUEST_STATUS_INFO";
+ public static final String REQUEST_PARAMETERS_MAP = "REQUEST_PARAMETERS_MAP";
+ public static final String SET_MYFACES_SEQUENCE_INFO = "SET_MYFACES_SEQUENCE_INFO";
+ public static final String SKIP_ENCODING_HTML_INFO = "SKIP_ENCODING_HTML_INFO";
+ public static final String SKIP_ENCODE_BEGIN_HTML_INFO = "SKIP_ENCODE_BEGIN_HTML_INFO";
+ public static final String SKIP_ENCODE_END_HTML_INFO = "SKIP_ENCODE_END_HTML_INFO";
+ public static final String QUERY_STRING_BUILDING_ERROR = "QUERY_STRING_BUILDING_ERROR";
+ public static final String BUILD_RESOURCE_URI_INFO = "BUILD_RESOURCE_URI_INFO";
+ public static final String RESTORE_DATA_FROM_RESOURCE_URI_INFO = "RESTORE_DATA_FROM_RESOURCE_URI_INFO";
+ public static final String STREAM_CORRUPTED_ERROR = "STREAM_CORRUPTED_ERROR";
+ public static final String DESERIALIZE_DATA_INPUT_ERROR = "DESERIALIZE_DATA_INPUT_ERROR";
+ public static final String DATA_CLASS_NOT_FOUND_ERROR = "DATA_CLASS_NOT_FOUND_ERROR";
+ public static final String METHOD_NOT_IMPLEMENTED = "METHOD_NOT_IMPLEMENTED";
+ public static final String ENCODE_HTML_INFO = "ENCODE_HTML_INFO";
+ public static final String ENCODE_HTML_INFO_2 = "ENCODE_HTML_INFO_2";
+ public static final String ENCODE_BEGIN_HTML_INFO = "ENCODE_BEGIN_HTML_INFO";
+ public static final String ENCODE_END_HTML_INFO = "ENCODE_END_HTML_INFO";
+ public static final String SEND_CONTENT_INFO = "SEND_CONTENT_INFO";
+ public static final String NO_INPUT_STREAM_ERROR = "NO_INPUT_STREAM_ERROR";
+ public static final String SET_RESPONSE_HEADERS_INFO = "SET_RESPONSE_HEADERS_INFO";
+ public static final String BUILD_RESOURCE_INFO = "BUILD_RESOURCE_INFO";
+ public static final String NO_RESOURCE_REGISTERED_ERROR = "NO_RESOURCE_REGISTERED_ERROR";
+ public static final String NO_RESOURCE_REGISTERED_ERROR_2 = "NO_RESOURCE_REGISTERED_ERROR_2";
+ public static final String NO_RESOURCE_EXISTS_ERROR = "NO_RESOURCE_EXISTS_ERROR";
+ public static final String INSTANTIATE_RESOURCE_ERROR = "INSTANTIATE_RESOURCE_ERROR";
+ public static final String INSTANTIATE_CLASS_ERROR = "INSTANTIATE_CLASS_ERROR";
+ public static final String STATIC_RESOURCE_NOT_FOUND_ERROR = "STATIC_RESOURCE_NOT_FOUND_ERROR";
+ public static final String PARSING_IF_MODIFIED_SINCE_WARNING = "PARSING_IF_MODIFIED_SINCE_WARNING";
+ public static final String GET_CONTENT_FROM_CACHE_INFO = "GET_CONTENT_FROM_CACHE_INFO";
+ public static final String CONTENT_NOT_FOUND_ERROR = "CONTENT_NOT_FOUND_ERROR";
+ public static final String SEND_RESOURCE_ERROR = "SEND_RESOURCE_ERROR";
+ public static final String SEND_RESOURCE_ERROR_2 = "SEND_RESOURCE_ERROR_2";
+ public static final String READING_PROPERTIES_ERROR = "READING_PROPERTIES_ERROR";
+ public static final String SEND_IMAGE_ERROR = "SEND_IMAGE_ERROR";
+ public static final String SEND_IMAGE_ERROR_2 = "SEND_IMAGE_ERROR_2";
+ public static final String SKIP_ENCODE_BEGIN_HTML_INFO_2 = "SKIP_ENCODE_BEGIN_HTML_INFO_2";
+ public static final String MARK_AS_RENDERED_INFO = "MARK_AS_RENDERED_INFO";
+ public static final String SKIP_ENCODE_END_HTML_INFO_2 = "SKIP_ENCODE_END_HTML_INFO_2";
+ public static final String VARIABLE_SUBSTITUTION_ERROR = "VARIABLE_SUBSTITUTION_ERROR";
+ public static final String SET_SKIN_FACTORY_INFO = "SET_SKIN_FACTORY_INFO";
+ public static final String CREATING_SKIN_FACTORY_ERROR = "CREATING_SKIN_FACTORY_ERROR";
+ public static final String NULL_SKIN_NAME_ERROR = "NULL_SKIN_NAME_ERROR";
+ public static final String CREATE_SKIN_INFO = "CREATE_SKIN_INFO";
+ public static final String DEFAULT_PROPERTIES_NOT_FOUND_ERROR = "DEFAULT_PROPERTIES_NOT_FOUND_ERROR";
+ public static final String SKIN_PROPERTIES_IO_ERROR = "SKIN_PROPERTIES_IO_ERROR";
+ public static final String SKIN_NOT_FOUND_ERROR = "SKIN_NOT_FOUND_ERROR";
+ public static final String ACESSING_SKIN_PROPERTY_AS_ARRAY_ERROR = "ACESSING_SKIN_PROPERTY_AS_ARRAY_ERROR";
+ public static final String ACESSING_SKIN_PROPERTY_ERROR = "ACESSING_SKIN_PROPERTY_ERROR";
+ public static final String SKIN_PROPERTIES_READ_ONLY_ERROR = "SKIN_PROPERTIES_READ_ONLY_ERROR";
+ public static final String NO_DATA_ADAPTOR = "NO_DATA_ADAPTOR";
+ public static final String NO_VALUE_HOLDER_ERROR = "NO_VALUE_HOLDER_ERROR";
+ public static final String NO_EDITABLE_VALUE_HOLDER_ERROR = "NO_EDITABLE_VALUE_HOLDER_ERROR";
+ public static final String INVALID_VALIDATION_EXPRESSION = "INVALID_VALIDATION_EXPRESSION";
+ public static final String NO_ACTION_SOURCE_ERROR = "NO_ACTION_SOURCE_ERROR";
+ public static final String NO_ACTION_SOURCE2_ERROR = "NO_ACTION_SOURCE2_ERROR";
+ public static final String INVALID_ACTION_LISTENER = "INVALID_ACTION_LISTENER";
+ public static final String INVALID_VALUE_CHANGE_LISTENER = "INVALID_VALUE_CHANGE_LISTENER";
+ public static final String NO_VALUE_REFERENCE_ERROR = "NO_VALUE_REFERENCE_ERROR";
+ public static final String NO_BYTE_ARRAY_ERROR = "NO_BYTE_ARRAY_ERROR";
+ public static final String BUFFER_TYPE_ERROR = "BUFFER_TYPE_ERROR";
+ public static final String IMAGE_ERROR = "IMAGE_ERROR";
+ public static final String CANNOT_WRITE_RASTERS = "CANNOT_WRITE_RASTERS";
+ public static final String NULL_OUTPUT_ERROR = "NULL_OUTPUT_ERROR";
+ public static final String IMAGE_NOT_BUFFERED_ERROR = "IMAGE_NOT_BUFFERED_ERROR";
+ public static final String NOT_DATA_OUTPUT_ERROR = "NOT_DATA_OUTPUT_ERROR";
+ public static final String NULL_COLOR_PARAMETER_ERROR = "NULL_COLOR_PARAMETER_ERROR";
+ public static final String DECODE_COLOR_PARAMETER_ERROR = "DECODE_COLOR_PARAMETER_ERROR";
+ public static final String NULL_COLOR_PARAMETER_ERROR_2 = "NULL_COLOR_PARAMETER_ERROR_2";
+ public static final String DECODE_PARAMETER_ERROR = "DECODE_PARAMETER_ERROR";
+ public static final String IMAGE_GENERATOR_CLASS_NOT_FOUND = "IMAGE_GENERATOR_CLASS_NOT_FOUND";
+ public static final String CREATING_IMAGE_GENERATOR_ERROR = "CREATING_IMAGE_GENERATOR_ERROR";
+ public static final String INVALID_COMMENT_INDEX = "INVALID_COMMENT_INDEX";
+ public static final String LOADING_IMAGE_ERROR = "LOADING_IMAGE_ERROR";
+ public static final String NOT_INDEXED_IMAGE_ERROR = "NOT_INDEXED_IMAGE_ERROR";
+ public static final String INVALID_RADIUS = "INVALID_RADIUS";
+ public static final String INVALID_ATTRIBUTE_VALUE = "INVALID_ATTRIBUTE_VALUE";
+ public static final String VALUE_BINDING_TYPE_ERROR = "VALUE_BINDING_TYPE_ERROR";
+ public static final String NO_CONVERTER_FOUND_ERROR = "NO_CONVERTER_FOUND_ERROR";
+ public static final String GRABBER_ERROR = "GRABBER_ERROR";
+ public static final String TOOMANY_COLORS_ERROR = "TOOMANY_COLORS_ERROR";
+ public static final String GET_RESOURCE_AS_STREAM_ERROR = "GET_RESOURCE_AS_STREAM_ERROR";
+ public static final String PARSING_WEB_XML_IO_ERROR = "PARSING_WEB_XML_IO_ERROR";
+ public static final String PARSING_WEB_XML_SAX_ERROR = "PARSING_WEB_XML_SAX_ERROR";
+ public static final String NULL_FILTER_NAME_WARNING = "NULL_FILTER_NAME_WARNING";
+ public static final String FILTER_NOT_FOUND_ERROR = "FILTER_NOT_FOUND_ERROR";
+ public static final String FILTER_NOT_CONFIGURED_ERROR = "FILTER_NOT_CONFIGURED_ERROR";
+ public static final String NO_PREFIX_OR_SUFFIX_IN_FILTER_MAPPING_ERROR = "NO_PREFIX_OR_SUFFIX_IN_FILTER_MAPPING_ERROR";
+ public static final String CONFIG_INITIALIZATION_ERROR = "CONFIG_INITIALIZATION_ERROR";
+ public static final String FIELD_READING_ERROR = "FIELD_READING_ERROR";
+ public static final String CONFIG_INITIALIZATION_ERROR_2 = "CONFIG_INITIALIZATION_ERROR_2";
+ public static final String DOM_METHOD_NOT_SUPPORTED = "DOM_METHOD_NOT_SUPPORTED";
+ public static final String METHOD_NOT_SUPPORTED = "METHOD_NOT_SUPPORTED";
+ public static final String NAMED_ITEM_NOT_FOUND_ERROR = "NAMED_ITEM_NOT_FOUND_ERROR";
+ public static final String AJAX_SUPPORT_REQUEST_PARAMETER_INFO = "AJAX_SUPPORT_REQUEST_PARAMETER_INFO";
+ public static final String COMMAND_LINK_SUBMIT_INFO = "COMMAND_LINK_SUBMIT_INFO";
+ public static final String COMMAND_LINK_NOT_IN_FORM_WARNING = "COMMAND_LINK_NOT_IN_FORM_WARNING";
+ public static final String MUST_BE_EXPRESSION_ERROR = "MUST_BE_EXPRESSION_ERROR";
+ public static final String NOT_PARENT_AJAX_CONTAINER_ERROR = "NOT_PARENT_AJAX_CONTAINER_ERROR";
+ public static final String MUST_BE_LITERAL_ERROR = "MUST_BE_LITERAL_ERROR";
+ public static final String FACET_TAG_MANY_CHILDREN_ERROR = "FACET_TAG_MANY_CHILDREN_ERROR";
+ public static final String NO_UI_COMPONENT_TAG_ANCESTOR_ERROR = "NO_UI_COMPONENT_TAG_ANCESTOR_ERROR";
+ public static final String NO_VALUE_REFERENCE_ERROR_2 = "NO_VALUE_REFERENCE_ERROR_2";
+ public static final String NULL_TYPE_ATTRIBUTE_ERROR = "NULL_TYPE_ATTRIBUTE_ERROR";
+ public static final String NULL_ATTRIBUTE_ERROR = "NULL_ATTRIBUTE_ERROR";
+ public static final String AJAX_VIEW_EXPIRED = "AJAX_VIEW_EXPIRED";
+ public static final String SKIN_CYCLIC_REFERENCE = "SKIN_CYCLIC_REFERENCE";
+ public static final String SKIN_ILLEGAL_REFERENCE = "SKIN_ILLEGAL_REFERENCE";
+ public static final String NAME_MUST_BE_LITERAL = "NAME_MUST_BE_LITERAL";
+ public static final String INSTANTIATE_LISTENER_ERROR = "INSTANTIATE_LISTENER_ERROR";
+ public static final String NOT_AJAX_CONTAINER_ERROR = "NOT_AJAX_CONTAINER_ERROR";
+ public static final String INVALID_EXPRESSION = "INVALID_EXPRESSION";
+ public static final String NOT_INSTANCE_OF_ERROR = "NOT_INSTANCE_OF_ERROR";
+ public static final String UNSUPPORTED_ENCODING_ERROR = "UNSUPPORTED_ENCODING_ERROR";
+ public static final String UNSUPPORTED_INPUT_SOURCE_ERROR = "UNSUPPORTED_INPUT_SOURCE_ERROR";
+ public static final String STRING_CONVERSION_ERROR = "STRING_CONVERSION_ERROR";
+ public static final String UTF_CONVERSION_ERROR = "UTF_CONVERSION_ERROR";
+ public static final String READ_ONLY_NODE_ERROR = "READ_ONLY_NODE_ERROR";
+ public static final String NOT_PARENT_AJAX_COMPONENT_ERROR = "NOT_PARENT_AJAX_COMPONENT_ERROR";
+ public static final String INVALID_VALUE = "INVALID_VALUE";
+ public static final String DATASCROLLER_PAGE_MISSING = "DATASCROLLER_PAGE_MISSING";
+
+ public static void main(String[] args) {
+ String m = getMessage(INVALID_ATTRIBUTE_VALUE, "A", "B");
+ System.out.println(m);
+ }
+
+}
Property changes on: trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/Messages.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java (rev 0)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java 2008-08-05 16:19:32 UTC (rev 8579)
@@ -0,0 +1,88 @@
+package org.jboss.seam.ui.util.cdk;
+
+import javax.el.MethodExpression;
+import javax.el.ValueExpression;
+import javax.faces.component.ActionSource2;
+import javax.faces.component.EditableValueHolder;
+import javax.faces.component.UIComponent;
+import javax.faces.component.ValueHolder;
+import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
+import javax.faces.event.MethodExpressionActionListener;
+import javax.faces.event.MethodExpressionValueChangeListener;
+import javax.faces.validator.MethodExpressionValidator;
+import javax.faces.webapp.UIComponentELTag;
+
+import org.jboss.seam.log.Log;
+import org.jboss.seam.log.LogProvider;
+import org.jboss.seam.log.Logging;
+
+/**
+ * @author Maksim Kaszynski
+ *
+ */
+public abstract class UIComponentELTagBase extends UIComponentELTag {
+
+ private static final LogProvider log = Logging.getLogProvider(UIComponentELTagBase.class);
+
+ protected void setActionListenerProperty(UIComponent component, MethodExpression actionListener) {
+ if (actionListener != null) {
+ if (component instanceof ActionSource2) {
+ ActionSource2 actionSource2 = (ActionSource2) component;
+ actionSource2.addActionListener(new MethodExpressionActionListener(actionListener));
+ } else {
+ throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext())));
+ }
+ }
+ }
+
+ protected void setActionProperty(UIComponent component, MethodExpression action) {
+ if (action != null) {
+ if (component instanceof ActionSource2) {
+ ActionSource2 actionSource2 = (ActionSource2) component;
+ actionSource2.setActionExpression(action);
+ } else {
+ throw new IllegalArgumentException(Messages.getMessage(Messages.NO_ACTION_SOURCE2_ERROR, component.getClientId(getFacesContext())));
+ }
+ }
+ }
+
+ protected void setConverterProperty(UIComponent component, ValueExpression converter) {
+ if (converter != null) {
+ if (component instanceof ValueHolder) {
+ ValueHolder output = (ValueHolder) component;
+ if (!converter.isLiteralText()) {
+ component.setValueExpression("converter", converter);
+ } else {
+ Converter conv = FacesContext.getCurrentInstance().getApplication().createConverter(converter.getExpressionString());
+ output.setConverter(conv);
+ }
+ } else {
+ throw new IllegalArgumentException(Messages.getMessage(Messages.NO_VALUE_HOLDER_ERROR, component.getClass().getName()));
+ }
+ }
+ }
+
+ protected void setValidatorProperty(UIComponent component, MethodExpression validator) {
+
+ if (validator != null) {
+ if (component instanceof EditableValueHolder) {
+ EditableValueHolder input = (EditableValueHolder) component;
+ input.addValidator(new MethodExpressionValidator(validator));
+ } else {
+ throw new IllegalArgumentException(Messages.getMessage(Messages.NO_EDITABLE_VALUE_HOLDER_ERROR, component.getId()));
+ }
+ }
+ }
+
+ protected void setValueChangeListenerProperty(UIComponent component, MethodExpression valueChangeListener) {
+ if (valueChangeListener != null) {
+ if (component instanceof EditableValueHolder) {
+ EditableValueHolder input = (EditableValueHolder) component;
+ input.addValueChangeListener(new MethodExpressionValueChangeListener(valueChangeListener));
+ } else {
+ throw new IllegalArgumentException(Messages.getMessage(Messages.NO_EDITABLE_VALUE_HOLDER_ERROR, component.getId()));
+ }
+ }
+ }
+}
Property changes on: trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentELTagBase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentTagBase.java
===================================================================
--- trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentTagBase.java 2008-08-05 16:19:11 UTC (rev 8578)
+++ trunk/ui/src/main/java/org/jboss/seam/ui/util/cdk/UIComponentTagBase.java 2008-08-05 16:19:32 UTC (rev 8579)
@@ -15,9 +15,10 @@
import javax.faces.event.ActionEvent;
import javax.faces.event.ValueChangeEvent;
-import org.richfaces.webapp.taglib.UIComponentELTagBase;
-
-@Deprecated
+/**
+ * @author Maksim Kaszynski
+ *
+ */
public abstract class UIComponentTagBase extends UIComponentELTagBase {
protected ExpressionFactory getExpressionFactory() {
[View Less]
16 years, 7 months
Seam SVN: r8578 - trunk/examples/excel.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 12:19:11 -0400 (Tue, 05 Aug 2008)
New Revision: 8578
Modified:
trunk/examples/excel/
Log:
svn:ignores
Property changes on: trunk/examples/excel
___________________________________________________________________
Name: svn:ignore
- dist
exploded-archives
+ dist
exploded-archives
test-build
16 years, 7 months
Seam SVN: r8577 - trunk/src/mail/org/jboss/seam/mail/ui.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 12:18:46 -0400 (Tue, 05 Aug 2008)
New Revision: 8577
Modified:
trunk/src/mail/org/jboss/seam/mail/ui/MailComponent.java
Log:
Replace deprecated method
Modified: trunk/src/mail/org/jboss/seam/mail/ui/MailComponent.java
===================================================================
--- trunk/src/mail/org/jboss/seam/mail/ui/MailComponent.java 2008-08-05 14:38:44 UTC (rev 8576)
+++ trunk/src/mail/org/jboss/seam/mail/ui/MailComponent.java 2008-…
[View More]08-05 16:18:46 UTC (rev 8577)
@@ -170,13 +170,13 @@
*/
protected Object getValue(String localName)
{
- if (getValueBinding(localName) == null)
+ if (getValueExpression(localName) == null)
{
return null;
}
else
{
- return getValueBinding(localName).getValue(getFacesContext());
+ return getValueExpression(localName).getValue(getFacesContext().getELContext());
}
}
[View Less]
16 years, 7 months
Seam SVN: r8576 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 10:38:44 -0400 (Tue, 05 Aug 2008)
New Revision: 8576
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Testing.xml
Log:
Improve test instructions slightly
Modified: trunk/doc/Seam_Reference_Guide/en-US/Testing.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Testing.xml 2008-08-05 12:39:29 UTC (rev 8575)
+++ trunk/doc/Seam_Reference_Guide/en-US/Testing.xml 2008-08-05 14:38:44 UTC (…
[View More]rev 8576)
@@ -418,6 +418,17 @@
</row>
<row>
<entry>
+ <literal>javax.el</literal>
+ </entry>
+ <entry>
+ <literal>el-api</literal>
+ </entry>
+ <entry>
+ <literal>lib/el-api.jar</literal>
+ </entry>
+ </row>
+ <row>
+ <entry>
<literal>javax.activation</literal>
</entry>
<entry>
@@ -447,13 +458,14 @@
<para>
And, of course you need to put your built project and tests onto
- the classpath. Don't forget to put all the correct configuration
- files for JPA and Seam onto the classpath as well.Seam asks
- Embedded JBoss to deploy any resource (jar or directory)
- which has <literal>seam.properties</literal> in it's root.
- Therefore, if you don't assemble a directory structure that
- resembles a deployable archive containing your built project, you
- must put a <literal>seam.properties</literal> in each resource.
+ the classpath as well as jar for your test framework. Don't forget
+ to put all the correct configuration files for JPA and Seam onto
+ the classpath as well.Seam asks Embedded JBoss to deploy any
+ resource (jar or directory) which has
+ <literal>seam.properties</literal> in it's root. Therefore, if you
+ don't assemble a directory structure that resembles a deployable
+ archive containing your built project, you must put a
+ <literal>seam.properties</literal> in each resource.
</para>
<para>
[View Less]
16 years, 7 months
Seam SVN: r8575 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-05 08:39:29 -0400 (Tue, 05 Aug 2008)
New Revision: 8575
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Excel.xml
Log:
Formatting, Excel entity
Modified: trunk/doc/Seam_Reference_Guide/en-US/Excel.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Excel.xml 2008-08-05 08:35:30 UTC (rev 8574)
+++ trunk/doc/Seam_Reference_Guide/en-US/Excel.xml 2008-08-05 12:39:29 UTC (rev 8575)
@@ -1,52 +…
[View More]1,54 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
+<!ENTITY excel 'the <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> spreadsheet application'>
+<!ENTITY Excel 'The <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> spreadsheet application'>
+]>
+
+
+
<chapter id="excel">
- <title>
- <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> spreadsheet generation
- </title>
+ <title>&Excel;</title>
<para>
- Seam also supports generation of <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark>
- spreadsheets through the excellent <ulink url="http://jexcelapi.sourceforge.net/"><literal>JExcelAPI</literal></ulink> library. The generated document is compatible with
- <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> spreadsheet applications
- versions 95, 97, 2000, XP and 2003. Currently a limited subset of the library functionality is exposed but the ultimate goal
- is to be able to do everything the library allows for. Please refer to the JExcelAPI documentation for more information on
- capabilities and limitations.
+ Seam also supports generation of
+ &excel;
+ spreadsheets through the excellent
+ <ulink url="http://jexcelapi.sourceforge.net/">JExcelAPI</ulink> library.
+ The generated document is compatible with &excel;
+ versions 95, 97, 2000, XP and 2003. Currently a limited subset of the
+ library functionality is exposed but the ultimate goal is to be able to do
+ everything the library allows for. Please refer to the JExcelAPI
+ documentation for more information on capabilities and limitations.
</para>
<section id="excel.intro">
- <title><trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> Support</title>
+ <title>&Excel; support</title>
<para>
- <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> support is provided by
- <literal>jboss-seam-excel.jar</literal>
- . This JAR contains the <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark>
- JSF controls, which are used to construct views that can render the document, and
- the DocumentStore component, which serves the rendered document to the user. To include
- <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> spreadsheet support
- in your application, included
- <literal>jboss-seam-excel.jar</literal>
- in your
- <literal>WEB-INF/lib</literal>
- directory along with the <literal>jxl.jar</literal> JAR file. Furthermore, you need to configure the DocumentStore servlet in your
- web.xml
+ &Excel; <literal>jboss-seam-excel.jar</literal>. This JAR contains the
+ &excel; JSF controls, which are used to construct views that can render
+ the document, and the DocumentStore component, which serves the
+ rendered document to the user. To include &excel; support in your
+ application, included <literal>jboss-seam-excel.jar</literal> in your
+ <literal>WEB-INF/lib</literal> directory along with the
+ <literal>jxl.jar</literal> JAR file. Furthermore, you need to configure
+ the DocumentStore servlet in your web.xml
</para>
<para>
- The Seam <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> module
- requires the use of Facelets as the view technology. Additionally, it requires the use of the seam-ui package.
+ &Excel; Seam module requires the use of Facelets as the view
+ technology. Additionally, it requires the use of the seam-ui package.
</para>
<para>
- The
- <literal>examples/excel</literal>
- project contains an example of the <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark>
- support in action. It demonstrates proper deployment packaging, and it shows the exposed functionality
+ The <literal>examples/excel</literal> project contains an example of
+ &excel; support in action. It demonstrates proper deployment packaging,
+ and it shows the exposed functionality.
</para>
<para>
- Customizing the module to support other kinds of <trademark class="registered">Microsoft</trademark>
- <trademark class="registered">Excel</trademark> spreadsheet API's has been made very easy. Implement the
- <literal>ExcelWorkbook</literal>
- interface, set the component name to
- <literal>org.jboss.seam.excel.<myModule></literal>
- and set the UIWorkbook type to
- <literal>myModule</literal>
- and your own exporter will be used. Default is "jxl", but support for CSV has also been added, using the type
- "csv".
+ Customizing the module to support other kinds of &excel; spreadsheet
+ API's has been made very easy. Implement the
+ <literal>ExcelWorkbook</literal> interface, set the component name to
+ <literal>org.jboss.seam.excel.<myModule></literal> and set the
+ UIWorkbook type to <literal>myModule</literal> and your own exporter
+ will be used. Default is "jxl", but support for CSV has also been
+ added, using the type "csv".
</para>
</section>
[View Less]
16 years, 7 months
Seam SVN: r8574 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-08-05 04:35:30 -0400 (Tue, 05 Aug 2008)
New Revision: 8574
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml
Log:
Added excel dependencies to core + own section in ref doc
Modified: trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Dependencies.xml 2008-08-05 08:27:56 UTC (rev 8573)
+++ trunk/doc/Seam_Reference_Guide/en-US/Dependencies.…
[View More]xml 2008-08-05 08:35:30 UTC (rev 8574)
@@ -114,6 +114,21 @@
<para>Required when using Seam's PDF features</para>
</entry>
</row>
+
+ <row>
+ <entry>
+ <para><literal>jboss-seam-excel.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Required when using Seam's <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> features</para>
+ </entry>
+ </row>
<row>
<entry>
@@ -503,6 +518,73 @@
</tgroup>
</table>
</section>
+
+ <section>
+ <title>Seam <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark></title>
+
+ <table>
+ <title>Seam <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> Dependencies</title>
+
+ <tgroup cols="4">
+ <colspec colnum="1" colwidth="4*" />
+ <colspec colnum="2" colwidth="2*" />
+ <colspec colnum="3" colwidth="3*" />
+ <colspec colnum="4" colwidth="5*" />
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+ <entry align="center">
+ <para>Type</para>
+ </entry>
+ <entry align="center">
+ <para>Scope</para>
+ </entry>
+ <entry align="center">
+ <para>Notes</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+ <row>
+ <entry>
+ <para><literal>jxl.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>JExcelAPI Library</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
+ <para><literal>jboss-seam-excel.jar</literal></para>
+ </entry>
+ <entry align="center">
+ <para>runtime</para>
+ </entry>
+ <entry align="center">
+ <para>war</para>
+ </entry>
+ <entry>
+ <para>Seam <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> core library</para>
+ </entry>
+ </row>
+
+ </tbody>
+ </tgroup>
+ </table>
+ </section>
+
<section>
<title>JBoss Rules</title>
[View Less]
16 years, 7 months
Seam SVN: r8573 - trunk/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2008-08-05 04:27:56 -0400 (Tue, 05 Aug 2008)
New Revision: 8573
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Excel.xml
Log:
Added xrefs and ulinks, expanded examples
Modified: trunk/doc/Seam_Reference_Guide/en-US/Excel.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Excel.xml 2008-08-04 23:25:48 UTC (rev 8572)
+++ trunk/doc/Seam_Reference_Guide/en-US/Excel.xml 2008-08-05 08:27:56 UTC (rev 8573)
@@ -4,…
[View More]10 +4,10 @@
</title>
<para>
Seam also supports generation of <trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark>
- spreadsheets through the excellent JExcelAPI library. The generated document is compatible with
+ spreadsheets through the excellent <ulink url="http://jexcelapi.sourceforge.net/"><literal>JExcelAPI</literal></ulink> library. The generated document is compatible with
<trademark class="registered">Microsoft</trademark> <trademark class="registered">Excel</trademark> spreadsheet applications
versions 95, 97, 2000, XP and 2003. Currently a limited subset of the library functionality is exposed but the ultimate goal
- is to be able to do everything the library allows for. Please visit the JExcelAPI [link] home page for more information on
+ is to be able to do everything the library allows for. Please refer to the JExcelAPI documentation for more information on
capabilities and limitations.
</para>
@@ -24,7 +24,7 @@
<literal>jboss-seam-excel.jar</literal>
in your
<literal>WEB-INF/lib</literal>
- directory along with the jxl.jar JAR file. Furthermore, you need to configure the DocumentStore servlet in your
+ directory along with the <literal>jxl.jar</literal> JAR file. Furthermore, you need to configure the DocumentStore servlet in your
web.xml
</para>
<para>
@@ -45,7 +45,7 @@
<literal>org.jboss.seam.excel.<myModule></literal>
and set the UIWorkbook type to
<literal>myModule</literal>
- and your own exporter will be used. Default is "jxl", but support for csv has also been added, using the type
+ and your own exporter will be used. Default is "jxl", but support for CSV has also been added, using the type
"csv".
</para>
@@ -90,7 +90,7 @@
</section>
<section id="excel.workbook">
<title>Workbooks</title>
- <para>Workbooks are the top-level containers of worksheets, cell templates and worksheet templates</para>
+ <para>Workbooks are the top-level parents of worksheets, cell templates and worksheet templates.</para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -240,7 +240,7 @@
<listitem>
<para>
<literal>temporaryFileDuringWriteDirectory</literal>
- —Used in conjunction with the useTemporaryFileDuringWrite setting to set the target
+ —Used in conjunction with the <literal>useTemporaryFileDuringWrite</literal> setting to set the target
directory for the temporary files. This value can be NULL, in which case the normal system
default temporary directory is used instead. The value is a string (the directory to which
temporary files should be written).
@@ -268,19 +268,19 @@
<listitem>
<para>
<literal><e:cellTemplate/></literal>
- —A cell template. See link for more information.
+ —Zero or more cell templates (see <xref linkend="excel.templates.cell"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:worksheetTemplate/></literal>
- —A worksheet template. See link for more information.
+ —Zero or more worksheet templates (see <xref linkend="excel.templates.worksheetsettings"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:worksheet/></literal>
- —A worksheet. See link for more information.
+ —Zero or more worksheets (see <xref linkend="excel.worksheet"/>).
</para>
</listitem>
</itemizedlist>
@@ -301,11 +301,11 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:workbook>
- <e:worksheet>
- <e:cell value="Hello World" row="1" column="1"/>
- </e:worksheet>
- <e:workbook>
+<e:workbook>
+ <e:worksheet>
+ <e:cell value="Hello World" row="0" column="0"/>
+ </e:worksheet>
+<e:workbook>
]]>
</programlisting>
<para>defines a workbook with a worksheet and a greeting at A1</para>
@@ -313,7 +313,11 @@
</section>
<section id="excel.worksheet">
<title>Worksheets</title>
- <para>Worksheets are the children of workbooks and the parent of columns</para>
+ <para>
+ Worksheets are the children of workbooks and the parent of columns and worksheet commands
+ They can also contain explicitly placed cells, formulas, images and hyperlinks. They are the
+ pages that make up the workbook.
+ </para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -346,7 +350,7 @@
—The name of the worksheet. The valus is a string. Defaults to Sheet# where # is the
worksheet index. If the given worksheet name exists, that sheet is selected. This can be
used for merging several data sets into a single worksheet, just define the same name for
- them (using startRow and startCol to make sure that they don't occupy the same space).
+ them (using <literal>startRow</literal> and <literal>startCol</literal> to make sure that they don't occupy the same space).
</para>
</listitem>
<listitem>
@@ -368,8 +372,8 @@
<listitem>
<para>
<literal>templates</literal>
- —The comma-separated list of worksheetTemplates to cascade on. The value is a
- string. See link for more information on cascading worksheet settings
+ —The comma-separated list of <literal>worksheetTemplates</literal> to cascade on. The value is a
+ string (see <xref linkend="excel.templates.cell"/>).
</para>
</listitem>
<listitem>
@@ -507,8 +511,7 @@
<para>
<literal>paperSize</literal>
—The paper size to be used when printing this sheet. The value is a string that can
- be one of "a4", "a3", "letter", "legal" etc. See the jxl.format.PaperSize JavaDoc for the
- full list.
+ be one of "a4", "a3", "letter", "legal" etc (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.PaperSize</ulink>).
</para>
</listitem>
<listitem>
@@ -613,21 +616,26 @@
<listitem>
<para>
<literal><e:printArea/></literal>
- —Zero or more print area definitions. See link.
+ —Zero or more print area definitions (see <xref linkend="excel.printareatitles"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:printTitle/></literal>
- —Zero or more print title definitions. See link.
+ —Zero or more print title definitions (see <xref linkend="excel.printareatitles"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:headerFooter/></literal>
- —Zero or more header/footer definitions. See link.
+ —Zero or more header/footer definitions ((see <xref linkend="excel.headersfooters"/>)).
</para>
</listitem>
+ <listitem>
+ <para>
+ Zero or more worksheet commands (see <xref linkend="excel.worksheetcommands"/> ).
+ </para>
+ </listitem>
</itemizedlist>
<para>
<emphasis>Facets</emphasis>
@@ -646,24 +654,26 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:workbook>
- <e:worksheet name="foo" startColumn="2" startRow="2">
- <e:column value="#{personList}" var="person">
- <f:facet name="header">
- <e:cell value="Last name"/>
- </f:facet>
- <e:cell value="#{person.lastName}"/>
- </e:column>
- </e:worksheet>
- <e:workbook>
+<e:workbook>
+ <e:worksheet name="foo" startColumn="1" startRow="1">
+ <e:column value="#{personList}" var="person">
+ <f:facet name="header">
+ <e:cell value="Last name"/>
+ </f:facet>
+ <e:cell value="#{person.lastName}"/>
+ </e:column>
+ </e:worksheet>
+<e:workbook>
]]>
</programlisting>
<para>defines a worksheet with the name "foo", starting at B2.</para>
- <para>See also link e:worksheetTemplate</para>
</section>
<section id="excel.columns">
<title>Columns</title>
- <para>Columns are the children of worksheets and the parents of cells</para>
+ <para>
+ Columns are the children of worksheets and the parents of cells, images, formulas and hyperlinks.
+ They are the structure that control the iteration of the worksheet data.
+ </para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -706,25 +716,25 @@
<listitem>
<para>
<literal><e:cell/></literal>
- —A cell that contains bindings to the actual value. See link for more information.
+ —Zero or more cells (see <xref linkend="excel.cells"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:formula/></literal>
- —A formula. See link for more information.
+ —Zero or more formulas (see <xref linkend="excel.formulas"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:image/></literal>
- —An image. See link for more information.
+ —Zero or more images (see <xref linkend="excel.images"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:hyperLink/></literal>
- —A hyperlink. See link for more information.
+ —Zero or more hyperlinks (see <xref linkend="excel.hyperlinks"/>).
</para>
</listitem>
</itemizedlist>
@@ -754,16 +764,16 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:workbook>
- <e:worksheet>
- <e:column value="#{personList}" var="person">
- <f:facet name="header">
- <e:cell value="Last name"/>
- </f:facet>
- <e:cell value="#{person.lastName}"/>
- </e:column>
- </e:worksheet>
- <e:workbook>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <f:facet name="header">
+ <e:cell value="Last name"/>
+ </f:facet>
+ <e:cell value="#{person.lastName}"/>
+ </e:column>
+ </e:worksheet>
+<e:workbook>
]]>
</programlisting>
<para>defines a column with a header and an iterated output</para>
@@ -772,9 +782,9 @@
<section id="excel.cells">
<title>Cells</title>
<para>
- Cells are nested within columns (for iteration) or inside worksheets (for direct placement using the column and
- row attributes) and are responsible for outputting the value (usually though en EL-expression involving the
- var-attribute of the datatable. They can contains fonts and other formattings and can also use pre-defined
+ Cells are nested within columns (for iteration) or inside worksheets (for direct placement using the <literal>column</literal> and
+ <literal>row</literal> attributes) and are responsible for outputting the value (usually though en EL-expression involving the
+ <literal>var</literal>-attribute of the datatable. They can contains fonts and other formattings and can also use pre-defined
templates.
</para>
<informaltable>
@@ -797,14 +807,14 @@
<para>
<literal>column</literal>
—The column where to place the cell. The default is the internal counter. The value
- is a number.
+ is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>row</literal>
—The row where to place the cell. The default is the internal counter. The value is
- number.
+ number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
@@ -818,7 +828,7 @@
<para>
<literal>templates</literal>
—A comma-separated list of cascading, predefined templates to apply before the own
- formattings.
+ formattings (see <xref linkend="excel.templates.cell"/>).
</para>
</listitem>
<listitem>
@@ -870,7 +880,7 @@
<listitem>
<para>
<literal>mask</literal>
- —See link for information on format masks.
+ —A format mask (see <xref linkend="excel.cells.formatmasks"/>).
</para>
</listitem>
<listitem>
@@ -909,24 +919,24 @@
<listitem>
<para>
<literal><e:font/></literal>
- —Zero or more font definitions. See link.
+ —Zero or more font definitions (see <xref linkend="excel.cells.fonts"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:border/></literal>
- —Zero or more border definitions. See link.
+ —Zero or more border definitions (see <xref linkend="excel.cells.borders"/>).
</para>
</listitem>
<listitem>
<para>
<literal><e:background/></literal>
- —Zero or more background definitions. See link.
+ —Zero or more background definitions (see <xref linkend="excel.cells.backgrounds"/>).
</para>
</listitem>
<listitem>
<para>
- <literal>Zero or more validation conditions. See link for more information</literal>
+ Zero or more validation conditions (see <xref linkend="excel.cells.validation"/>).
</para>
</listitem>
@@ -948,20 +958,23 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:column value="#{personList}" var="person">
- <f:facet name="header">
- <e:cell value="Last name"/>
- </f:facet>
- <e:cell value="#{person.lastName}"/>
- </e:column>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <f:facet name="header">
+ <e:cell value="Last name"/>
+ </f:facet>
+ <e:cell value="#{person.lastName}"/>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defines a column with a header and an iterated output</para>
- <para>See also e:cellTemplate</para>
- <section id="excel.fonts">
+ <section id="excel.cells.fonts">
<title>Fonts</title>
<para>
- Fonts are nested inside e:cell, e:formula and e:cellTemplate tags and are defined through the e:font tag.
+ Fonts are nested inside cells, formulas, hyperlinks or cell templates. They determine the typeface of the cell data
</para>
<informaltable>
<tgroup cols="2">
@@ -991,7 +1004,7 @@
<para>
<literal>color</literal>
—The color of the background. The value is a string that can be one of "blue",
- "red" etc. See the JExcelAPI Javadoc for jxl.format.Colour for the full list.
+ "red" etc (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).
</para>
</listitem>
<listitem>
@@ -1060,18 +1073,24 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:cell value="#{person.age">
- <e:font fontName="Times New Roman" color="red" bold="true"/>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <e:cell value="#{person.age">
+ <e:font fontName="Times New Roman" color="red" bold="true"/>
+ </e:cell>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defines a cell with a red, bold, Times New Roman font.</para>
</section>
- <section id="excel.backgrounds">
+ <section id="excel.cells.backgrounds">
<title>Backgrounds</title>
<para>
- Backgrounds are nested inside e:cell, e:formula and e:cellTemplate tags and are defined through the
- e:background tag.
+ Backgrounds are nested inside cells, formulas, hyperlinks or cell templates. They determine
+ the color and pattern of the cell.
</para>
<informaltable>
<tgroup cols="2">
@@ -1093,7 +1112,7 @@
<para>
<literal>pattern</literal>
—The pattern of the background. The value is a string that can be one of "solid",
- "grey_25" etc. See the JExcelAPI Javadocs for jxl.format.Pattern for the full list. The
+ "grey_25" etc (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Pattern</ulink>). The
default is "solid".
</para>
</listitem>
@@ -1101,7 +1120,7 @@
<para>
<literal>color</literal>
—The color of the background. The value is a string that can be one of "blue",
- "red" etc. See the JExcelAPI Javadoc for jxl.format.Colour for the full list.
+ "red" etc
</para>
</listitem>
</itemizedlist>
@@ -1132,17 +1151,24 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:cell value="#{person.age">
- <e:background color="green" pattern="grey_25"/>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <e:cell value="#{person.age">
+ <e:background color="green" pattern="grey_25"/>
+ </e:cell>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defined a green cell background with a 25% grey mask.</para>
</section>
- <section id="excel.borders">
+ <section id="excel.cells.borders">
<title>Borders</title>
<para>
- Borders are nested inside e:cell, e:formula and e:cellTemplate tags and are defined through e:border tags.
+ Borders are nested inside cells, formulas, hyperlinks and cell templates.
+ They determine the color and line style of the cell borders.
</para>
<informaltable>
<tgroup cols="2">
@@ -1171,14 +1197,14 @@
<para>
<literal>lineStyle</literal>
—The border line style. The value is a string that can be one of "medium", "thin"
- etc. See the JExcelAPI Javadoc for jxl.format.BorderLineStyle for the full list.
+ etc (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.BorderLineStyle</ulink>).
</para>
</listitem>
<listitem>
<para>
<literal>color</literal>
—The color of the border. The value is a string that can be one of "blue", "red"
- etc. See the JExcelAPI Javadoc for jxl.format.Colour for the full list.
+ etc (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).
</para>
</listitem>
</itemizedlist>
@@ -1209,18 +1235,24 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:cell value="#{person.age">
- <e:border border="left" color="green" lineStyle="thin"/>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <e:cell value="#{person.age">
+ <e:border border="left" color="green" lineStyle="thin"/>
+ </e:cell>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defined a thin green border on the left edge of the cell.</para>
</section>
- <section id="excel.validation">
+ <section id="excel.cells.validation">
<title>Validation</title>
<para>
- Validations are nested inside e:cell, e:formula and e:cellTemplate tags and are defined trough
- e:numericValidation, e:rangeValidation and e:listValidation / e:listValidationItem tags.
+ Validations are nested inside cells, formulas or cell templates.
+ They add constrains for the cell data.
</para>
<informaltable>
<tgroup cols="2">
@@ -1314,9 +1346,15 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:cell value="#{person.age">
- <e:numericValidation condition="between" value="4" value2="18"/>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <e:cell value="#{person.age">
+ <e:numericValidation condition="between" value="4" value2="18"/>
+ </e:cell>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>adds numeric validation to a cell specifying that the value must be between 4 and 18.</para>
@@ -1392,9 +1430,15 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:cell value="#{person.position">
- <e:rangeValidation startColumn="1" startRow="1" endColumn="1" endRow="10"/>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <e:cell value="#{person.position">
+ <e:rangeValidation startColumn="0" startRow="0" endColumn="0" endRow="10"/>
+ </e:cell>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>
@@ -1428,7 +1472,7 @@
<itemizedlist>
<listitem>
<para>
- <literal>Zero or more list validation items. See link for more information.</literal>
+ <literal>Zero or more list validation items.</literal>
</para>
</listitem>
</itemizedlist>
@@ -1498,22 +1542,28 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:cell value="#{person.position">
- <e:listValidation>
- <e:listValidationItem value="manager"/>
- <e:listValidationItem value="employee"/>
- </e:listValidation>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:column value="#{personList}" var="person">
+ <e:cell value="#{person.position">
+ <e:listValidation>
+ <e:listValidationItem value="manager"/>
+ <e:listValidationItem value="employee"/>
+ </e:listValidation>
+ </e:cell>
+ </e:column>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>adds validation to a cell specifying that the value must be "manager" or "employee".</para>
</section>
- <section id="excel.formatmasks">
+ <section id="excel.cells.formatmasks">
<title>Format masks</title>
<para>
Format masks are defined in the mask attribute in cell templates, cells or formulas.
<emphasis>Note that when using templates, the format mask must be placed in the first template</emphasis>
- to be cascaded since the constructor hierarchy in JExcelAPI used for copying cell formats makes it hard to
+ to be cascaded since the constructor hierarchy in <literal>JExcelAPI</literal> used for copying cell formats makes it hard to
change the format mask at a later stage. There are two types of format masks, one for numbers and one for
dates
</para>
@@ -1521,11 +1571,10 @@
<title>Number masks</title>
<para>
When encountering a format mask, first it is checked if it is in internal form, e.g "format1",
- "accounting_float" and so on. See the JExcelAPI JavaDoc for jxl.write.NumberFormats for the complete
- list.
+ "accounting_float" and so on (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/writ...">jxl.write.NumberFormats</ulink>).
</para>
<para>
- if the mask is not in the list, it is treated as a custom mask as described in java.text.DecimalFormat,
+ if the mask is not in the list, it is treated as a custom mask (see <ulink url="http://java.sun.com/javase/6/docs/api/java/text/DecimalFormat.html">java.text.DecimalFormat</ulink>).
e.g "0.00" and automatically converted to the closest match.
</para>
</section>
@@ -1533,11 +1582,10 @@
<title>Date masks</title>
<para>
When encountering a format mask, first it is checked if it is in internal form, e.g "format1", "format2"
- and so on. See the JExcelAPI JavaDoc for jxl.write.DateFormats for the complete list.
+ and so on (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/writ...">jxl.write.DecimalFormats</ulink>).
</para>
<para>
- if the mask is not in the list, it is treated as a custom mask as described in
- java.text.SimpleDateFormat, e.g "dd.MM.yyyy" and automatically converted to the closest match.
+ if the mask is not in the list, it is treated as a custom mask (see <ulink url="http://java.sun.com/javase/6/docs/api/java/text/DateFormat.html">java.text.DateFormat</ulink>)., e.g "dd.MM.yyyy" and automatically converted to the closest match.
</para>
</section>
</section>
@@ -1545,30 +1593,43 @@
<section id="excel.formulas">
<title>Formulas</title>
<para>
- Formulas are defined with the e:formula tag. It is essentially a e:cell tag so refer to the e:cell
- documentation link for available attributes. Note that they can apply templates and have own font definitions
+ Formulas are nested within columns (for iteration) or inside worksheets (for direct placement using the <literal>column</literal> and
+ <literal>row</literal> attributes) and add calculations or functions to ranges of cells. They are essentially cells, see <xref linkend="excel.cells"/>
+ for available attributes. Note that they can apply templates and have own font definitions
etc just as normal cells.
</para>
<para>
- The formula of the cell in placed in the value-attribute as a normal <trademark class="registered">Microsoft</trademark>
+ The formula of the cell in placed in the <literal>value</literal>-attribute as a normal <trademark class="registered">Microsoft</trademark>
<trademark class="registered">Excel</trademark> spreadsheet application notation. Note that when doing
cross-sheet formulas, the worksheets must exist before referencing a formula against them. The value is a
string.
-
</para>
<programlisting role="XML">
<![CDATA[
- <e:formula row="2" column="2" value="FooSheet!A1+BarSheet1!A1" templates="fooTemplate">
- <e:font fontSize="12"/>
- </e:formula>
+<e:workbook>
+ <e:cellTemplate name="fooTemplate">
+ <e:font color="red"/>
+ </e:cellTemplate>
+ <e:worksheet name="fooSheet">
+ <e:cell column="0" row="0" value="1"/>
+ </e:worksheet>
+ <e:worksheet name="barSheet">
+ <e:cell column="0" row="0" value="2"/>
+ <e:formula column="0" row="1"
+ value="fooSheet!A1+barSheet1!A1"
+ templates="fooTemplate">
+ <e:font fontSize="12"/>
+ </e:formula>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defines an formula in B2 summing cells A1 in worksheets FooSheet and BarSheet</para>
-
</section>
<section id="excel.images">
<title>Images</title>
- <para>Images are defined with the e:image tag.</para>
+ <para>Images are nested within columns (for iteration) or inside worksheets (for direct placement using the
+ <literal>startColumn/startRow</literal> and <literal>endColumn/endRow</literal> attributes)</para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -1589,28 +1650,28 @@
<para>
<literal>startColumn</literal>
—The starting column of the image. The default is the internal counter. The value is
- a number.
+ a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>startRow</literal>
—The starting row of the image. The default is the internal counter. The value is a
- number.
+ number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>columnSpan</literal>
—The column span of the image. The default is one resulting in the default width of
- the image. The value is a number.
+ the image. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>rowSpan</literal>
—The row span of the image. The default is the one resulting in the default height
- of the image. The value is a number.
+ of the image. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
@@ -1647,7 +1708,11 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:image startRow="1" startColumn="1" rowSpan="5" columnSpan="5" URI="http://foo.org/logo.jpg"/>
+<e:workbook>
+ <e:worksheet>
+ <e:image startRow="0" startColumn="0" rowSpan="4" columnSpan="4" URI="http://foo.org/logo.jpg"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defines an image in A1:E5 based on the given data</para>
@@ -1655,7 +1720,8 @@
</section>
<section id="excel.hyperlinks">
<title>Hyperlinks</title>
- <para>Hyperlinks are defined with the e:hyperlink tag.</para>
+ <para>Hyperlinks are nested within columns (for iteration) or inside worksheets (for direct placement using the
+ <literal>startColumn/startRow</literal> and <literal>endColumn/endRow</literal> attributes). They add link navigation to URIs</para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -1676,28 +1742,28 @@
<para>
<literal>startColumn</literal>
—The starting column of the hyperlink. The default is the internal counter. The
- value is a number.
+ value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>startRow</literal>
—The starting row of the hyperlink. The default is the internal counter. The value
- is a number.
+ is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>endColumn</literal>
—The ending column of the hyperlink. The default is the internal counter. The value
- is a number.
+ is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>endRow</literal>
—The ending row of the hyperlink. The default is the internal counter. The value is
- a number.
+ a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
@@ -1740,7 +1806,12 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:hyperLink startRow="1" startColumn="1" endRow="5" endColumn="5" URL="http://seamframework.org" description="The Seam Framework"/>
+<e:workbook>
+ <e:worksheet>
+ <e:hyperLink startRow="0" startColumn="0" endRow="4" endColumn="4"
+ URL="http://seamframework.org" description="The Seam Framework"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defines a described hyperlink pointing to SFWK in the area A1:E5</para>
@@ -1748,8 +1819,8 @@
<section id="excel.headersfooters">
<title>Headers and footers</title>
<para>
- Headers and footers are defined with e:headerFooter, e:headerFooterCommands and e:headerFooterCommand tags
- nested within a e:worksheet or e:worksheetTemplate.
+ Headers and footers are childrens of worksheets and worksheet templates and parents of header and footer commands
+ They add headers and footers to printed worksheets.
</para>
<informaltable>
<tgroup cols="2">
@@ -1814,7 +1885,7 @@
</tgroup>
</informaltable>
<para>
- The e:headerFooterCommands is just a nesting container in order to support multiple e:headerFooterCommand tags.
+ The <literal><e:headerFooterCommands></literal> is just a nesting container in order to support multiple header/footer commands.
</para>
<informaltable>
<tgroup cols="2">
@@ -1844,7 +1915,7 @@
<itemizedlist>
<listitem>
<para>
- <literal>Zero or more header/footer commands. See link for more information.</literal>
+ Zero or more header/footer commands.
</para>
</listitem>
</itemizedlist>
@@ -1863,7 +1934,8 @@
</tbody>
</tgroup>
</informaltable>
- <para>The acutal command that places something a header/footer facet is defined with e:headerFooterCommand</para>
+ <para>Header/footer commands adds actual commands to the header or footer in the location where the
+ containing facet points.</para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -1952,13 +2024,17 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:headerFooter type="header">
- <f:facet name="left">
- <e:headerFooterCommands>
- <e:headerFooterCommand command="page_number"/>
- </e:headerFooterCommands>
- </f:facet>
- </e:headerFooter>
+<e:workbook>
+ <e:worksheet>
+ <e:headerFooter type="header">
+ <f:facet name="left">
+ <e:headerFooterCommands>
+ <e:headerFooterCommand command="page_number"/>
+ </e:headerFooterCommands>
+ </f:facet>
+ </e:headerFooter>
+ <e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>Defines a header with the page number in the left corner.</para>
@@ -1966,8 +2042,7 @@
<section id="excel.printareatitles">
<title>Print areas and titles</title>
<para>
- Print areas and titles are defined with e:printArea and e:printTitle tags nested within a e:worksheet or
- e:worksheetTemplate.
+ Print areas and titles childrens of worksheets and worksheet templates and provide... print areas and titles.
</para>
<informaltable>
<tgroup cols="2">
@@ -1988,25 +2063,25 @@
<listitem>
<para>
<literal>firstColumn</literal>
- —The column of the top-left corner of the area. The parameter is a number.
+ —The column of the top-left corner of the area. The parameter is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>firstRow</literal>
- —The row of the top-left corner of the area. The parameter is a number.
+ —The row of the top-left corner of the area. The parameter is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>lastColumn</literal>
- —The column of the bottom-right corner of the area. The parameter is a number.
+ —The column of the bottom-right corner of the area. The parameter is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>lastRow</literal>
- —The row of the bottom-right corner of the area. The parameter is a number.
+ —The row of the bottom-right corner of the area. The parameter is a number. Note that the value is 0-based.
</para>
</listitem>
</itemizedlist>
@@ -2037,18 +2112,23 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:printTitles firstRow="1" firstColumn="1" lastRow="1" lastColumn="10"/>
- <e:printArea firstRow="2" firstColumn="1" lastRow="10" lastColumn="10"/>
+<e:workbook>
+ <e:worksheet>
+ <e:printTitles firstRow="0" firstColumn="0" lastRow="0" lastColumn="9"/>
+ <e:printArea firstRow="1" firstColumn="0" lastRow="9" lastColumn="9"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>defines a print title between A1:A10 and a print area between B2:J10.</para>
</section>
<section id="excel.worksheetcommands">
<title>Worksheet Commands</title>
+ <para>Worksheet commands are children of workbooks and are usually executed only once.</para>
<section id="excel.worksheetcommands.grouping">
<title>Grouping</title>
<para>
- Grouping of rows and columns are done on worksheet level with the e:groupRows and e:groupColumns tags
+ Provides grouping of columns and rows.
</para>
<informaltable>
<tgroup cols="2">
@@ -2069,13 +2149,13 @@
<listitem>
<para>
<literal>startRow</literal>
- —The row to start the grouping at. The value is a number.
+ —The row to start the grouping at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>endRow</literal>
- —The row to end the grouping at. The value is a number.
+ —The row to end the grouping at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
@@ -2129,13 +2209,13 @@
<listitem>
<para>
<literal>startColumn</literal>
- —The column to start the grouping at. The value is a number.
+ —The column to start the grouping at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>endColumn</literal>
- —The column to end the grouping at. The value is a number.
+ —The column to end the grouping at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
@@ -2173,8 +2253,12 @@
<programlisting role="XML">
<![CDATA[
- <e:groupRows startRow="5" endRow="10" collapse="true"/>
- <e:groupColumns startColumn="5" endColumn="10" collapse="false"/>
+<e:workbook>
+ <e:worksheet>
+ <e:groupRows startRow="4" endRow="9" collapse="true"/>
+ <e:groupColumns startColumn="0" endColumn="9" collapse="false"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>
@@ -2185,7 +2269,7 @@
</section>
<section id="excel.worksheetcommands.pagebreaks">
<title>Page breaks</title>
- <para>Page breaks are defined at worksheet level with the e:rowPageBreak tag</para>
+ <para>Provides page breaks</para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -2205,7 +2289,7 @@
<listitem>
<para>
<literal>row</literal>
- —The row to break at. The value is a number.
+ —The row to break at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
</itemizedlist>
@@ -2236,14 +2320,18 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:rowPageBreak row="5"/>
+<e:workbook>
+ <e:worksheet>
+ <e:rowPageBreak row="4"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>breaks page at row 5.</para>
</section>
<section id="excel.worksheetcommands.merging">
<title>Merging</title>
- <para>Merging is done on worksheet level with the e:mergeCells tag</para>
+ <para>Provides cell merging</para>
<informaltable>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*" />
@@ -2263,25 +2351,25 @@
<listitem>
<para>
<literal>startRow</literal>
- —The row to start the merging from. The value is a number.
+ —The row to start the merging from. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>startColumn</literal>
- —The column to start the merging from. The value is a number.
+ —The column to start the merging from. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>endRow</literal>
- —The row to end the merging at. The value is a number.
+ —The row to end the merging at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
<listitem>
<para>
<literal>endColumn</literal>
- —The column to end the merging at. The value is a number.
+ —The column to end the merging at. The value is a number. Note that the value is 0-based.
</para>
</listitem>
</itemizedlist>
@@ -2312,10 +2400,14 @@
</informaltable>
<programlisting role="XML">
<![CDATA[
- <e:mergeCells startRow="5" startColumn="5" endRow="10" endColumn="10"/>
+<e:workbook>
+ <e:worksheet>
+ <e:mergeCells startRow="0" startColumn="0" endRow="9" endColumn="9"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
- <para>merges the cells in the range (5,5) to (10,10).</para>
+ <para>merges the cells in the range A1:J10</para>
</section>
</section>
<section id="excel.templates">
@@ -2330,39 +2422,53 @@
<para>Cell templates are defined on workbook level using the following notation</para>
<programlisting role="XML">
<![CDATA[
- <e:cellTemplate name="foo"/>
+<e:workbook>
+ <e:cellTemplate name="foo">
+ <font color="red"/>
+ </e:cellTemplate>
+</e:workbook>
]]>
</programlisting>
<para>and are later used by referencing them in the templates attribute of a cell</para>
<programlisting role="XML">
<![CDATA[
- <e:cell templates="foo"/>
+<e:workbook>
+ <e:worksheet>
+ <e:cell templates="foo" column="0" row="0" value="ping"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>
- Cell templates have the same attributes as cells so refer to the link to see the available attributes. Note
+ Cell templates have the same attributes as cells (see <xref linkend="excel.cells"/>). Note
that the cellTemplate can also contain tags for font, border and background definitions and they are merged
with the definitions of the cell using the templates so a more complex definition could look like
</para>
<programlisting role="XML">
<![CDATA[
-<e:cellTemplate name="foo" alignment="right">
- <e:font name="Times New Roman"/>
- <e:background color="blue"/>
-</e:cellTemplate>
+<e:workbook>
+ <e:cellTemplate name="foo" alignment="right">
+ <e:font name="Times New Roman"/>
+ <e:background color="blue"/>
+ </e:cellTemplate>
-<e:cellTemplate name="bar" wrap="true">
- <e:font color="red"/>
- <e:border color="yellow" lineStyle="thick"/>
-</e:cellTemplate>
+ <e:cellTemplate name="bar" wrap="true">
+ <e:font color="red"/>
+ <e:border color="yellow" lineStyle="thick"/>
+ </e:cellTemplate>
+</e:workbook>
]]>
</programlisting>
<para>so that a cell that later on applies the templates</para>
<programlisting role="XML">
<![CDATA[
- <e:cell templates="foo,bar">
- <e:border border="left" color="green" lineStyle="thin"/>
- </e:cell>
+<e:workbook>
+ <e:worksheet>
+ <e:cell templates="foo,bar" column="0" row="0" value="ping">
+ <e:border border="left" color="green" lineStyle="thin"/>
+ </e:cell>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>
@@ -2378,20 +2484,24 @@
</para>
<programlisting role="XML">
<![CDATA[
- <e:worksheetTemplate name="foo" horizontalFreeze="5"/>
+<e:workbook>
+ <e:worksheet>
+ <e:worksheetTemplate name="foo" horizontalFreeze="5"/>
+ </e:worksheet>
+</e:workbook>
]]>
</programlisting>
<para>and when you later use it like</para>
<programlisting role="XML">
<![CDATA[
- <e:worksheet templates="foo" verticalFreeze="5">
- ...
- </e:worksheet>
+<e:workbook>
+ <e:worksheet templates="foo" verticalFreeze="5"/>
+</e:workbook>
]]>
</programlisting>
<para>
you end up with a worksheet that is frozen at column 5 and row 5. Note that a worksheetTemplate is
- essentially a named worksheet so refer to the linked documentation for available attributes.
+ essentially a named worksheet (see <xref linkend="excel.worksheet"/>).
</para>
</section>
@@ -2441,8 +2551,7 @@
id="theDataTable"
value="#{personList.personList}"
var="person"
- style="xlsFontName : Times New Roman; xlsBackgroundColor : red"
- >
+ style="xlsFontName : Times New Roman; xlsBackgroundColor : red">
...
</h:dataTable>
</h:form>
@@ -2482,7 +2591,7 @@
<para>xlsFontColor</para>
</entry>
<entry valign="top">
- <para>The color of the font. See link for valid colors</para>
+ <para>The color of the font (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2506,7 +2615,7 @@
<para>xlsFontScriptStyle</para>
</entry>
<entry valign="top">
- <para>The script style of the font. See link for valid script styles</para>
+ <para>The script style of the font (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.ScriptStyle</ulink>).</para>
</entry>
</row>
<row>
@@ -2522,7 +2631,7 @@
<para>xlsFontUnderlineStyle</para>
</entry>
<entry valign="top">
- <para>The underline style of the font. See link for valid underline styles</para>
+ <para>The underline style of the font (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.UnderlineStyle</ulink>).</para>
</entry>
</row>
<row>
@@ -2530,7 +2639,7 @@
<para>xlsBackgroundColor</para>
</entry>
<entry valign="top">
- <para>The background color of the cell. See link for valid colors</para>
+ <para>The background color of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2538,7 +2647,7 @@
<para>xlsBackgroundPattern</para>
</entry>
<entry valign="top">
- <para>The background pattern of the cell. See link for valid patterns</para>
+ <para>The background pattern of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Pattern</ulink>).</para>
</entry>
</row>
<row>
@@ -2546,7 +2655,7 @@
<para>xlsAlignment</para>
</entry>
<entry valign="top">
- <para>The alignment of the cell value. See link for valid alignments</para>
+ <para>The alignment of the cell value (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Alignment</ulink>).</para>
</entry>
</row>
<row>
@@ -2581,7 +2690,7 @@
<para>xlsBorderColor</para>
</entry>
<entry valign="top">
- <para>The the border color of the entire cell. See link for valid colors</para>
+ <para>The the border color of the entire cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2589,7 +2698,7 @@
<para>xlsBorderColorLeft</para>
</entry>
<entry valign="top">
- <para>The the border color of the left edge of the cell. See link for valid colors</para>
+ <para>The the border color of the left edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2597,7 +2706,7 @@
<para>xlsBorderColorTop</para>
</entry>
<entry valign="top">
- <para>The the border color of the top edge of the cell. See link for valid colors</para>
+ <para>The the border color of the top edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2605,7 +2714,7 @@
<para>xlsBorderColorRight</para>
</entry>
<entry valign="top">
- <para>The the border color of the right edge of the cell. See link for valid colors</para>
+ <para>The the border color of the right edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2613,7 +2722,7 @@
<para>xlsBorderColorBottom</para>
</entry>
<entry valign="top">
- <para>The the border color of the bottom edge of the cell. See link for valid colors</para>
+ <para>The the border color of the bottom edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2621,7 +2730,7 @@
<para>xlsBorderLineStyle</para>
</entry>
<entry valign="top">
- <para>The the border line style of the entire cell. See link for valid border line styles</para>
+ <para>The the border line style of the entire cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).</para>
</entry>
</row>
<row>
@@ -2630,7 +2739,7 @@
</entry>
<entry valign="top">
<para>
- The the border line style of the left edge of the cell. See link for valid border line styles
+ The the border line style of the left edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).
</para>
</entry>
</row>
@@ -2640,7 +2749,7 @@
</entry>
<entry valign="top">
<para>
- The the border line style of the top edge of the cell. See link for valid border line styles
+ The the border line style of the top edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).
</para>
</entry>
</row>
@@ -2650,7 +2759,7 @@
</entry>
<entry valign="top">
<para>
- The the border line style of the right edge of the cell. See link for valid border line
+ The the border line style of the right edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).
styles
</para>
</entry>
@@ -2661,7 +2770,7 @@
</entry>
<entry valign="top">
<para>
- The the border line style of the bottom edge of the cell. See link for valid border line
+ The the border line style of the bottom edge of the cell (see <ulink url="http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/jxl/form...">jxl.format.Colour</ulink>).
styles
</para>
</entry>
[View Less]
16 years, 7 months
Seam SVN: r8572 - in trunk/src/main/org/jboss/seam: security and 1 other directory.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2008-08-04 19:25:48 -0400 (Mon, 04 Aug 2008)
New Revision: 8572
Modified:
trunk/src/main/org/jboss/seam/Component.java
trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java
Log:
enable security interceptor for role annotations
Modified: trunk/src/main/org/jboss/seam/Component.java
===================================================================
--- trunk/src/main/org/jboss/seam/Component.java 2008-08-04 16:50:04 UTC (rev 8571)
+++ …
[View More]trunk/src/main/org/jboss/seam/Component.java 2008-08-04 23:25:48 UTC (rev 8572)
@@ -85,6 +85,7 @@
import org.jboss.seam.annotations.intercept.Interceptors;
import org.jboss.seam.annotations.security.PermissionCheck;
import org.jboss.seam.annotations.security.Restrict;
+import org.jboss.seam.annotations.security.RoleCheck;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.async.AsynchronousInterceptor;
import org.jboss.seam.bpm.BusinessProcessInterceptor;
@@ -1096,11 +1097,21 @@
return;
}
+ for (Annotation annotation : getBeanClass().getAnnotations())
+ {
+ if (annotation.annotationType().isAnnotationPresent(RoleCheck.class))
+ {
+ secure = true;
+ return;
+ }
+ }
+
for (Method method : getBeanClass().getMethods())
{
for (Annotation annotation : method.getAnnotations())
{
- if (annotation.annotationType().isAnnotationPresent(PermissionCheck.class))
+ if (annotation.annotationType().isAnnotationPresent(PermissionCheck.class) ||
+ annotation.annotationType().isAnnotationPresent(RoleCheck.class))
{
secure = true;
return;
@@ -1116,6 +1127,7 @@
secure = true;
return;
}
+
}
}
}
Modified: trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java
===================================================================
--- trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java 2008-08-04 16:50:04 UTC (rev 8571)
+++ trunk/src/main/org/jboss/seam/security/SecurityInterceptor.java 2008-08-04 23:25:48 UTC (rev 8572)
@@ -172,6 +172,15 @@
restrict.value() : createDefaultExpr(method));
}
+ for (Annotation annotation : method.getDeclaringClass().getAnnotations())
+ {
+ if (annotation.annotationType().isAnnotationPresent(RoleCheck.class))
+ {
+ if (restriction == null) restriction = new Restriction();
+ restriction.addRoleRestriction(annotation.annotationType().getSimpleName().toLowerCase());
+ }
+ }
+
for (Annotation annotation : method.getAnnotations())
{
if (annotation.annotationType().isAnnotationPresent(PermissionCheck.class))
[View Less]
16 years, 7 months
Seam SVN: r8571 - trunk/build.
by seam-commits@lists.jboss.org
Author: pete.muir(a)jboss.org
Date: 2008-08-04 12:50:04 -0400 (Mon, 04 Aug 2008)
New Revision: 8571
Modified:
trunk/build/classpath.tmpl
Log:
Add mail and excel unit tests to eclipse src folders
Modified: trunk/build/classpath.tmpl
===================================================================
--- trunk/build/classpath.tmpl 2008-08-04 14:48:24 UTC (rev 8570)
+++ trunk/build/classpath.tmpl 2008-08-04 16:50:04 UTC (rev 8571)
@@ -13,6 +13,8 @@
<classpathentry kind="src" path="src/…
[View More]gen"/>
<classpathentry kind="src" path="src/interop/jul"/>
<classpathentry kind="src" path="src/test/unit"/>
+ <classpathentry kind="src" path="src/test/mail/unit"/>
+ <classpathentry kind="src" path="src/test/excel/unit"/>
<classpathentry kind="src" path="src/test/integration/src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="output" path="output/classes"/>
[View Less]
16 years, 7 months
Seam SVN: r8570 - in branches/Seam_2_0_FP: build and 4 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2008-08-04 10:48:24 -0400 (Mon, 04 Aug 2008)
New Revision: 8570
Added:
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.md5
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.sha1
branches/…
[View More]Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.md5
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.sha1
branches/Seam_2_0_FP/dependency-report.txt
branches/Seam_2_0_FP/seamfp_plan.html
Modified:
branches/Seam_2_0_FP/build/core.pom.xml
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.md5
branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.sha1
branches/Seam_2_0_FP/build/root.pom.xml
branches/Seam_2_0_FP/src/main/org/jboss/seam/Entity.java
branches/Seam_2_0_FP/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java
Log:
Backport of JBSEAM-3049
Modified: branches/Seam_2_0_FP/build/core.pom.xml
===================================================================
--- branches/Seam_2_0_FP/build/core.pom.xml 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/build/core.pom.xml 2008-08-04 14:48:24 UTC (rev 8570)
@@ -270,14 +270,8 @@
<optional>true</optional>
<scope>runtime</scope>
</dependency>
-
+
<dependency>
- <groupId>oswego-concurrent</groupId>
- <artifactId>concurrent</artifactId>
- <optional>true</optional>
- </dependency>
-
- <dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<optional>true</optional>
Added: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar
===================================================================
(Binary files differ)
Property changes on: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.md5
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.md5 (rev 0)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.md5 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1 @@
+9df5ceb2481a1319b92e39432846f938
\ No newline at end of file
Added: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.sha1
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.sha1 (rev 0)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.jar.sha1 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1 @@
+2cf5bf004f44dad4f5d6d9445f5c40eb3846434a
\ No newline at end of file
Added: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom (rev 0)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.jbpm</groupId>
+ <artifactId>jbpm-jpdl</artifactId>
+ <version>3.2.2.GA_CP03</version>
+</project>
Added: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.md5
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.md5 (rev 0)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.md5 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1 @@
+3ae373e9313d3b9ce7840cceb8699e44
\ No newline at end of file
Added: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.sha1
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.sha1 (rev 0)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/3.2.2.GA_CP03/jbpm-jpdl-3.2.2.GA_CP03.pom.sha1 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1 @@
+1b6f49290f2efc708d3aeae0ed7e50ebedc4606d
\ No newline at end of file
Modified: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml 2008-08-04 14:48:24 UTC (rev 8570)
@@ -5,7 +5,8 @@
<versioning>
<versions>
<version>3.2.2.GA_CP02</version>
+ <version>3.2.2.GA_CP03</version>
</versions>
- <lastUpdated>20080703123226</lastUpdated>
+ <lastUpdated>20080715091333</lastUpdated>
</versioning>
</metadata>
\ No newline at end of file
Modified: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.md5
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.md5 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.md5 2008-08-04 14:48:24 UTC (rev 8570)
@@ -1 +1 @@
-0489f2d197feb928fb7298fad97b60f4
\ No newline at end of file
+605651396f3132894f5a3a908f4929f6
\ No newline at end of file
Modified: branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.sha1
===================================================================
--- branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.sha1 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/build/localRepo/org/jbpm/jbpm-jpdl/maven-metadata.xml.sha1 2008-08-04 14:48:24 UTC (rev 8570)
@@ -1 +1 @@
-90f81c8b00035e1535e06df6cad71ab695688de5
\ No newline at end of file
+01c98e7d5072dc86ade110492f962dbdd401a65f
\ No newline at end of file
Modified: branches/Seam_2_0_FP/build/root.pom.xml
===================================================================
--- branches/Seam_2_0_FP/build/root.pom.xml 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/build/root.pom.xml 2008-08-04 14:48:24 UTC (rev 8570)
@@ -232,7 +232,7 @@
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-jpdl</artifactId>
- <version>3.2.2.GA_CP02</version>
+ <version>3.2.2.GA_CP03</version>
</dependency>
<dependency>
@@ -828,12 +828,6 @@
</dependency>
<dependency>
- <groupId>oswego-concurrent</groupId>
- <artifactId>concurrent</artifactId>
- <version>1.3.4</version>
- </dependency>
-
- <dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>1.8.0.8-brew</version>
Added: branches/Seam_2_0_FP/dependency-report.txt
===================================================================
--- branches/Seam_2_0_FP/dependency-report.txt (rev 0)
+++ branches/Seam_2_0_FP/dependency-report.txt 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1,220 @@
+
+-----------------------------------------
+Dependencies for Seam 2.0.2-FP
+*****************************************
+-----------------------------------------
+
+
+
+
+-----------------------------------------
+Dependency Tree for core
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam:ejb:2.0.2-FP
++- org.hibernate:hibernate:jar:3.2.4.sp1:compile
+| +- asm:asm-attrs:jar:1.5.3:compile
+| +- cglib:cglib:jar:2.1_3:compile
+| \- asm:asm:jar:1.5.3:compile
++- org.hibernate:hibernate-annotations:jar:3.3.0.ga:compile
++- org.hibernate:hibernate-validator:jar:3.0.0.GA:compile
++- org.hibernate:hibernate-search:jar:3.0.0.GA:compile
+| +- org.hibernate:hibernate-commons-annotations:jar:3.0.0.ga:compile
+| \- org.apache.lucene:lucene-core:jar:2.2.0:compile
++- org.hibernate:hibernate-entitymanager:jar:3.3.1.ga:compile
+| \- jboss:jboss-common-core:jar:2.0.4.GA:compile
++- javassist:javassist:jar:3.5.0.GA:compile
++- dom4j:dom4j:jar:1.6.1-jboss:compile
++- javax.portlet:portlet-api:jar:1.0:compile
++- javax.servlet:servlet-api:jar:2.5:provided (scope not updated to runtime)
++- javax.mail:mail:jar:1.4:provided
+| \- javax.activation:activation:jar:1.1:provided
++- javax.xml.ws:jaxws-api:jar:2.0:provided
+| \- javax.xml.bind:jaxb-api:jar:2.0:provided
+| \- javax.xml.bind:jsr173_api:jar:1.0:provided
++- javax.jws:jsr181-api:jar:1.0-MR1:provided
++- javax.faces:jsf-api:jar:1.2_08:provided
++- javax.servlet.jsp:jsp-api:jar:2.1:provided
++- javax.ejb:ejb-api:jar:3.0:provided
++- javax.xml.soap:saaj-api:jar:1.3:provided
++- javax.jms:jms:jar:1.1:provided
++- javax.annotation:jsr250-api:jar:1.0:provided
++- javax.transaction:jta:jar:1.0.1B:provided (scope not updated to compile)
++- org.codehaus.groovy:groovy-all:jar:1.5.4:compile
++- log4j:log4j:jar:1.2.14:compile
++- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
++- javax.persistence:persistence-api:jar:1.0:provided (scope not updated to compile)
++- antlr:antlr:jar:2.7.6:compile
++- org.apache.ant:ant-antlr:jar:1.7.0:compile
++- jboss:jboss-cache:jar:1.4.1.SP9:compile
++- jboss:jboss-system:jar:4.2.2.GA:compile
++- jboss:jboss-jmx:jar:4.2.2.GA:compile
++- jgroups:jgroups:jar:2.4.2.GA_CP01-brew:compile
++- org.drools:drools-core:jar:4.0.7-SOA-P:compile
+| \- org.mvel:mvel:jar:1.3.1-java1.4:compile
++- org.drools:drools-compiler:jar:4.0.7-SOA-P:compile
+| +- org.antlr:antlr-runtime:jar:3.0:compile
+| +- org.eclipse.jdt:core:jar:3.2.3.v_686_R32x:compile
+| \- janino:janino:jar:2.5.10:compile
++- org.testng:testng:jar:5.6:compile
++- org.dbunit:dbunit:jar:2.2:compile
+| +- commons-lang:commons-lang:jar:2.1:compile
+| \- commons-logging:commons-logging:jar:1.1.0.jboss:compile
++- org.jbpm:jbpm-jpdl:jar:3.2.2.GA_CP03:compile
++- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
++- org.jboss.seam.embedded:jboss-embedded-api:jar:beta3:compile
+| \- org.jboss.microcontainer:jboss-deployers-client-spi:jar:2.0.0.Beta6:compile
+| \- org.jboss.microcontainer:jboss-deployers-core-spi:jar:2.0.0.Beta6:compile
++- quartz:quartz:jar:1.5.2:compile
++- javax.faces:jsf-impl:jar:1.2_08:compile
++- org.tuckey:urlrewritefilter:jar:3.0.4:runtime
++- oswego-concurrent:concurrent:jar:1.3.4:compile
+\- hsqldb:hsqldb:jar:1.8.0.8-brew:compile
+
+
+
+-----------------------------------------
+Dependency Tree for debug
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam-debug:jar:2.0.2-FP
++- org.jboss.seam:jboss-seam:jar:2.0.2-FP:compile
+| +- javassist:javassist:jar:3.5.0.GA:compile
+| +- dom4j:dom4j:jar:1.6.1-jboss:compile
+| \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
++- javax.faces:jsf-api:jar:1.2_08:provided
++- javax.faces:jsf-impl:jar:1.2_08:compile
++- com.sun.facelets:jsf-facelets:jar:1.1.14:compile
++- javax.servlet:servlet-api:jar:2.5:provided
+\- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
+
+
+
+-----------------------------------------
+Dependency Tree for ui
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam-ui:jar:2.0.2-FP
++- javax.servlet:servlet-api:jar:2.5:provided
++- javax.servlet.jsp:jsp-api:jar:2.1:provided
++- org.jboss.seam:jboss-seam:jar:2.0.2-FP:compile
+| +- javassist:javassist:jar:3.5.0.GA:compile
+| +- dom4j:dom4j:jar:1.6.1-jboss:compile
+| \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
++- antlr:antlr:jar:2.7.6:compile
++- org.richfaces.framework:richfaces-api:jar:3.1.4.GA:compile
+| \- commons-collections:commons-collections:jar:3.1:compile (version managed from 3.2)
++- org.richfaces.ui:richfaces-ui:jar:3.1.4.GA:compile
+| \- org.richfaces.framework:richfaces-impl:jar:3.1.4.GA:compile
+| +- javax.servlet:jstl:jar:1.0:compile
+| \- commons-digester:commons-digester:jar:1.8:compile
++- javax.faces:jsf-api:jar:1.2_08:provided (scope not updated to compile)
++- org.jbpm:jbpm-jpdl:jar:3.2.2.GA_CP03:compile
++- jboss:jboss-cache:jar:1.4.1.SP9:compile
++- jboss:jboss-system:jar:4.2.2.GA:compile
++- jboss:jboss-jmx:jar:4.2.2.GA:compile
++- org.hibernate:hibernate:jar:3.2.4.sp1:compile
+| +- javax.transaction:jta:jar:1.0.1B:compile
+| +- asm:asm-attrs:jar:1.5.3:compile
+| +- cglib:cglib:jar:2.1_3:compile
+| \- asm:asm:jar:1.5.3:compile
++- com.sun.facelets:jsf-facelets:jar:1.1.14:compile
++- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
++- commons-beanutils:commons-beanutils:jar:1.7.0:compile
++- javax.persistence:persistence-api:jar:1.0:provided
++- org.hibernate:hibernate-validator:jar:3.0.0.GA:compile
+\- org.testng:testng:jar:jdk15:5.1:test
+ \- junit:junit:jar:3.8.1:test
+
+
+
+-----------------------------------------
+Dependency Tree for remoting
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam-remoting:jar:2.0.2-FP
++- org.jboss.seam:jboss-seam:jar:2.0.2-FP:compile
+| +- javassist:javassist:jar:3.5.0.GA:compile
+| \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
+| \- javax.el:el-api:jar:1.0:compile
++- com.google.gwt:gwt-servlet:jar:1.4.60:compile
++- dom4j:dom4j:jar:1.6.1-jboss:compile
++- org.hibernate:hibernate:jar:3.2.4.sp1:compile
+| +- javax.transaction:jta:jar:1.0.1B:compile
+| +- asm:asm-attrs:jar:1.5.3:compile
+| +- antlr:antlr:jar:2.7.6:compile
+| +- cglib:cglib:jar:2.1_3:compile
+| \- asm:asm:jar:1.5.3:compile
++- javax.servlet:servlet-api:jar:2.5:provided
+\- javax.jms:jms:jar:1.1:provided
+
+
+
+-----------------------------------------
+Dependency Tree for mail
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam-mail:jar:2.0.2-FP
++- org.jboss.seam:jboss-seam:jar:2.0.2-FP:compile
+| +- javassist:javassist:jar:3.5.0.GA:compile
+| +- dom4j:dom4j:jar:1.6.1-jboss:compile
+| \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
++- org.jboss.seam:jboss-seam-ui:jar:2.0.2-FP:compile
+| \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
++- org.jboss.seam:jboss-seam-pdf:jar:2.0.2-FP:compile
++- com.sun.facelets:jsf-facelets:jar:1.1.14:compile
++- javax.faces:jsf-api:jar:1.2_08:provided
++- javax.mail:mail:jar:1.4:provided
+| \- javax.activation:activation:jar:1.1:provided
+\- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
+
+
+
+-----------------------------------------
+Dependency Tree for pdf
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam-pdf:jar:2.0.2-FP
++- com.lowagie:itext:jar:2.0.7:compile
++- jfree:jfreechart:jar:1.0.9:compile
+| \- jfree:jcommon:jar:1.0.12:compile
++- org.jboss.seam:jboss-seam:jar:2.0.2-FP:compile
+| +- javassist:javassist:jar:3.5.0.GA:compile
+| +- dom4j:dom4j:jar:1.6.1-jboss:compile
+| \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
++- org.jboss.seam:jboss-seam-ui:jar:2.0.2-FP:compile
+| \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
++- com.sun.facelets:jsf-facelets:jar:1.1.14:compile
++- javax.faces:jsf-api:jar:1.2_08:provided
++- javax.servlet:servlet-api:jar:2.5:provided
+\- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
+
+
+
+-----------------------------------------
+Dependency Tree for ioc
+*****************************************
+-----------------------------------------
+
+org.jboss.seam:jboss-seam-ioc:jar:2.0.2-FP
++- org.springframework:spring:jar:2.0.6:compile
++- cglib:cglib-nodep:jar:2.1_3:compile
++- org.jboss.seam:jboss-seam:jar:2.0.2-FP:compile
+| +- dom4j:dom4j:jar:1.6.1-jboss:compile
+| \- org.jboss.el:jboss-el:jar:2.0.1.GA:compile
++- javax.el:el-api:jar:1.0:provided (scope not updated to compile)
++- javax.transaction:jta:jar:1.0.1B:provided (scope not updated to compile)
++- javassist:javassist:jar:3.5.0.GA:compile
++- javax.persistence:persistence-api:jar:1.0:provided
++- org.hibernate:hibernate:jar:3.2.4.sp1:compile
+| +- asm:asm-attrs:jar:1.5.3:compile
+| +- antlr:antlr:jar:2.7.6:compile
+| +- cglib:cglib:jar:2.1_3:compile
+| \- asm:asm:jar:1.5.3:compile
+\- javax.servlet:servlet-api:jar:2.5:provided
Property changes on: branches/Seam_2_0_FP/dependency-report.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: branches/Seam_2_0_FP/seamfp_plan.html
===================================================================
--- branches/Seam_2_0_FP/seamfp_plan.html (rev 0)
+++ branches/Seam_2_0_FP/seamfp_plan.html 2008-08-04 14:48:24 UTC (rev 8570)
@@ -0,0 +1,681 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+<title>Insert title here</title>
+</head>
+<body>
+ <h2>
+
+ <a name="tasks" id="tasks">Tasks</a>
+ </h2>
+ <div class="scroll-div">
+ <table cellspacing="0" cellpadding="0" border="1">
+ <tr class="header" align="left">
+ <th>
+ <span>WBS</span>
+ </th>
+
+ <th>
+ <span>Name</span>
+ </th>
+ <th>
+ <span>Start</span>
+ </th>
+ <th>
+ <span>Finish</span>
+
+ </th>
+ <th>
+ <span>Work</span>
+ </th>
+ <th>
+ <span>Priority</span>
+ </th>
+ <th>
+
+ <span>Complete</span>
+ </th>
+ <th>
+ <span>Cost</span>
+ </th>
+ </tr>
+ <tr class="odd">
+ <td>
+
+ <span>1</span>
+ </td>
+ <td>
+ <a name="task1" style="font-weight: bold; margin-left: 0px" id="task1">
+ <span>Seam Feature Pack</span>
+ </a>
+ </td>
+ <td>
+
+ <span>May 21</span>
+ </td>
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>66d </span>
+
+ </td>
+ <td></td>
+ <td></td>
+ <td>
+ <span></span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+
+ <span>1.1</span>
+ </td>
+ <td>
+ <a name="task2" style="margin-left: 18px" id="task2">
+ <span>Development</span>
+ </a>
+ </td>
+ <td>
+
+ <span>May 21</span>
+ </td>
+ <td>
+ <span>Jul 1</span>
+ </td>
+ <td>
+ <span>30d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>90%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>240</span>
+ </td>
+ </tr>
+ <tr class="odd">
+ <td>
+ <span>1.2</span>
+ </td>
+ <td>
+
+ <a name="task3" style="font-weight: bold; margin-left: 18px" id="task3">
+ <span>Release Phase</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 2</span>
+ </td>
+ <td>
+
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>33d </span>
+ </td>
+ <td></td>
+ <td></td>
+ <td>
+
+ <span></span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.1</span>
+ </td>
+ <td>
+
+ <a name="task4" style="margin-left: 36px" id="task4">
+ <span>Create SVN Tag</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 2</span>
+ </td>
+ <td>
+
+ <span>Jul 2</span>
+ </td>
+ <td>
+ <span>4h </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span>4</span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.2.2</span>
+ </td>
+ <td>
+ <a name="task5" style="margin-left: 36px" id="task5">
+ <span>Process Brew Builds</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 2</span>
+ </td>
+ <td>
+ <span>Jul 2</span>
+ </td>
+ <td>
+ <span>4h </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>4</span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.3</span>
+ </td>
+ <td>
+
+ <a name="task6" style="margin-left: 36px" id="task6">
+ <span>Publish Release Candidate to webqa</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 3</span>
+ </td>
+ <td>
+
+ <span>Jul 3</span>
+ </td>
+ <td>
+ <span>1d </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span>8</span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.2.4</span>
+ </td>
+ <td>
+ <a name="task7" style="margin-left: 36px" id="task7">
+ <span>Publish Release Candidate to cspqa</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 3</span>
+ </td>
+ <td>
+ <span>Jul 3</span>
+ </td>
+ <td>
+ <span>1d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>8</span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.5</span>
+ </td>
+ <td>
+
+ <a name="task8" style="margin-left: 36px" id="task8">
+ <span>Create Release Notes</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 2</span>
+ </td>
+ <td>
+
+ <span>Jul 3</span>
+ </td>
+ <td>
+ <span>2d </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span>16</span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.2.6</span>
+ </td>
+ <td>
+ <a name="task9" style="margin-left: 36px" id="task9">
+ <span>Test zip distro</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 3</span>
+ </td>
+ <td>
+ <span>Jul 16</span>
+ </td>
+ <td>
+ <span>10d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>80</span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.7</span>
+ </td>
+ <td>
+
+ <a name="task10" style="margin-left: 36px" id="task10">
+ <span>Verify documentation</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 3</span>
+ </td>
+ <td>
+
+ <span>Jul 8</span>
+ </td>
+ <td>
+ <span>4d </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span>32</span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.2.8</span>
+ </td>
+ <td>
+ <a name="task11" style="margin-left: 36px" id="task11">
+ <span>Test Release Candidate on cspqa</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 4</span>
+ </td>
+ <td>
+ <span>Jul 4</span>
+ </td>
+ <td>
+ <span>1d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>8</span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.9</span>
+ </td>
+ <td>
+
+ <a name="task12" style="margin-left: 36px" id="task12">
+ <span>Test RHEL4/5 rpms on webqa</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 4</span>
+ </td>
+ <td>
+
+ <span>Jul 17</span>
+ </td>
+ <td>
+ <span>10d </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span>80</span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.2.10</span>
+ </td>
+ <td>
+ <a name="task13" style="margin-left: 36px" id="task13">
+ <span>Push release to RHN</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 18</span>
+ </td>
+ <td>
+ <span>Jul 18</span>
+ </td>
+ <td>
+ <span>1d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>8</span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.11</span>
+ </td>
+ <td>
+
+ <a name="task14" style="margin-left: 36px" id="task14">
+ <span>Push Release to CSP</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 18</span>
+ </td>
+ <td>
+
+ <span>Jul 18</span>
+ </td>
+ <td>
+ <span>1d </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span>8</span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.2.12</span>
+ </td>
+ <td>
+ <a name="task15" style="margin-left: 36px" id="task15">
+ <span>Push Documentation to redhat.com</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 9</span>
+ </td>
+ <td>
+ <span>Jul 9</span>
+ </td>
+ <td>
+ <span>1d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span>8</span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+ <span>1.2.13</span>
+ </td>
+ <td>
+
+ <a name="task16" style="margin-left: 36px" id="task16">
+ <span>GA Release</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span></span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span></span>
+ </td>
+ </tr>
+ <tr class="odd">
+
+ <td>
+ <span>1.3</span>
+ </td>
+ <td>
+ <a name="task17" style="font-weight: bold; margin-left: 18px" id="task17">
+ <span>Documentation Translation</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>3d </span>
+
+ </td>
+ <td></td>
+ <td></td>
+ <td>
+ <span></span>
+ </td>
+ </tr>
+ <tr class="even">
+ <td>
+
+ <span>1.3.1</span>
+ </td>
+ <td>
+ <a name="task18" style="margin-left: 36px" id="task18">
+ <span>Process Japanese translation</span>
+ </a>
+ </td>
+ <td>
+
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>1d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span></span>
+ </td>
+ </tr>
+ <tr class="odd">
+ <td>
+ <span>1.3.2</span>
+ </td>
+ <td>
+
+ <a name="task19" style="margin-left: 36px" id="task19">
+ <span>Process Chinese translation</span>
+ </a>
+ </td>
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>1d </span>
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+ <span></span>
+ </td>
+ </tr>
+ <tr class="even">
+
+ <td>
+ <span>1.3.3</span>
+ </td>
+ <td>
+ <a name="task20" style="margin-left: 36px" id="task20">
+ <span>Process Portuguese translation</span>
+ </a>
+ </td>
+
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>Jul 21</span>
+ </td>
+ <td>
+ <span>1d </span>
+
+ </td>
+ <td align="center">
+ <span></span>
+ </td>
+ <td align="right">
+ <span>0%
+ </span>
+ </td>
+ <td align="right">
+
+ <span></span>
+ </td>
+ </tr>
+ </table>
+ </div>
+
+</body>
+</html>
\ No newline at end of file
Property changes on: branches/Seam_2_0_FP/seamfp_plan.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: branches/Seam_2_0_FP/src/main/org/jboss/seam/Entity.java
===================================================================
--- branches/Seam_2_0_FP/src/main/org/jboss/seam/Entity.java 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/src/main/org/jboss/seam/Entity.java 2008-08-04 14:48:24 UTC (rev 8570)
@@ -158,11 +158,11 @@
{
throw new NotEntityException("Not an entity class: " + clazz.getName());
}
- String name = getModelName(clazz);
+ String name = getModelName(entityClass);
Model model = (Model) Contexts.getApplicationContext().get(name);
if (model == null || !(model instanceof Entity))
{
- Entity entity = new Entity(clazz);
+ Entity entity = new Entity(entityClass);
Contexts.getApplicationContext().set(name, entity);
return entity;
}
Modified: branches/Seam_2_0_FP/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java
===================================================================
--- branches/Seam_2_0_FP/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java 2008-08-04 14:43:22 UTC (rev 8569)
+++ branches/Seam_2_0_FP/src/main/org/jboss/seam/persistence/HibernatePersistenceProvider.java 2008-08-04 14:48:24 UTC (rev 8570)
@@ -20,6 +20,7 @@
import org.jboss.seam.Component;
import org.jboss.seam.Entity;
import org.jboss.seam.ScopeType;
+import org.jboss.seam.Entity.NotEntityException;
import org.jboss.seam.annotations.Install;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
@@ -318,11 +319,19 @@
public static Class getEntityClass(Object bean)
{
- Class clazz = Hibernate.getClass(bean);
- if (clazz == null)
+ Class clazz = null;
+ try
{
clazz = Entity.forBean(bean).getBeanClass();
}
+ catch (NotEntityException e) {
+ // It's ok, try some other methods
+ }
+
+ if (clazz == null)
+ {
+ clazz = Hibernate.getClass(bean);
+ }
return clazz;
}
[View Less]
16 years, 7 months