├── .gitignore ├── .travis.yml ├── README.md ├── RELEASENOTES.md ├── asta4d-archetype-prototype └── pom.xml ├── asta4d-archetype └── pom.xml ├── asta4d-core ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ └── org.eclipse.wst.validation.prefs ├── asta4d-core-test-all.launch ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── astamuse │ │ │ └── asta4d │ │ │ ├── Component.java │ │ │ ├── Configuration.java │ │ │ ├── Context.java │ │ │ ├── ContextMap.java │ │ │ ├── Page.java │ │ │ ├── data │ │ │ ├── ContextBindData.java │ │ │ ├── ContextDataFinder.java │ │ │ ├── ContextDataHolder.java │ │ │ ├── ContextDataSetFactory.java │ │ │ ├── DataOperationException.java │ │ │ ├── DataTypeTransformer.java │ │ │ ├── DefaultContextDataFinder.java │ │ │ ├── DefaultContextDataSetFactory.java │ │ │ ├── DefaultDataTypeTransformer.java │ │ │ ├── InjectTrace.java │ │ │ ├── InjectUtil.java │ │ │ ├── TypeInfo.java │ │ │ ├── TypeUnMacthPolicy.java │ │ │ ├── annotation │ │ │ │ ├── ContextData.java │ │ │ │ ├── ContextDataAnnotationConvertor.java │ │ │ │ └── ContextDataSet.java │ │ │ └── convertor │ │ │ │ ├── AbstractString2DateConvertor.java │ │ │ │ ├── AbstractString2Java8DateConvertor.java │ │ │ │ ├── DataValueConvertor.java │ │ │ │ ├── DataValueConvertorTargetTypeConvertable.java │ │ │ │ ├── String2Bool.java │ │ │ │ ├── String2Date.java │ │ │ │ ├── String2Enum.java │ │ │ │ ├── String2Int.java │ │ │ │ ├── String2Java8Instant.java │ │ │ │ ├── String2Java8LocalDate.java │ │ │ │ ├── String2Java8LocalDateTime.java │ │ │ │ ├── String2Java8LocalTime.java │ │ │ │ ├── String2Java8YearMonth.java │ │ │ │ ├── String2JodaDateTime.java │ │ │ │ ├── String2JodaLocalDate.java │ │ │ │ ├── String2JodaLocalDateTime.java │ │ │ │ ├── String2JodaLocalTime.java │ │ │ │ ├── String2JodaYearMonth.java │ │ │ │ ├── String2Long.java │ │ │ │ └── UnsupportedValueException.java │ │ │ ├── extnode │ │ │ ├── ClearNode.java │ │ │ ├── ExtNode.java │ │ │ ├── ExtNodeConstants.java │ │ │ └── GroupNode.java │ │ │ ├── interceptor │ │ │ ├── PageInterceptor.java │ │ │ └── base │ │ │ │ ├── ExceptionHandler.java │ │ │ │ ├── Executor.java │ │ │ │ ├── GenericInterceptor.java │ │ │ │ ├── GenericInterceptorConvertable.java │ │ │ │ └── InterceptorUtil.java │ │ │ ├── render │ │ │ ├── AttributeSetter.java │ │ │ ├── ChildReplacer.java │ │ │ ├── DebugRenderer.java │ │ │ ├── ElementNotFoundHandler.java │ │ │ ├── ElementRemover.java │ │ │ ├── ElementSetter.java │ │ │ ├── GoThroughRenderer.java │ │ │ ├── RenderAction.java │ │ │ ├── RenderActionRenderer.java │ │ │ ├── RenderActionStyle.java │ │ │ ├── RenderUtil.java │ │ │ ├── Renderable.java │ │ │ ├── Renderer.java │ │ │ ├── RendererTestHelper.java │ │ │ ├── RendererType.java │ │ │ ├── RowRenderer.java │ │ │ ├── SpecialRenderer.java │ │ │ ├── TextSetter.java │ │ │ ├── concurrent │ │ │ │ ├── ConcurrentRenderHelper.java │ │ │ │ └── FutureRendererHolder.java │ │ │ ├── test │ │ │ │ ├── RendererTestException.java │ │ │ │ ├── RendererTester.java │ │ │ │ ├── TestableElementWrapper.java │ │ │ │ └── TestableRendering.java │ │ │ └── transformer │ │ │ │ ├── ElementSetterTransformer.java │ │ │ │ ├── ElementTransformer.java │ │ │ │ ├── FutureTransformer.java │ │ │ │ ├── RenderableTransformer.java │ │ │ │ ├── RendererTransformer.java │ │ │ │ ├── Transformer.java │ │ │ │ └── TransformerFactory.java │ │ │ ├── snippet │ │ │ ├── DefaultSnippetInvoker.java │ │ │ ├── InitializableSnippet.java │ │ │ ├── SnippetDeclarationInfo.java │ │ │ ├── SnippetExcecutionInfo.java │ │ │ ├── SnippetExecutionHolder.java │ │ │ ├── SnippetInvokeException.java │ │ │ ├── SnippetInvoker.java │ │ │ ├── SnippetNotResovlableException.java │ │ │ ├── extract │ │ │ │ ├── DefaultSnippetExtractor.java │ │ │ │ └── SnippetExtractor.java │ │ │ ├── interceptor │ │ │ │ ├── ContextDataAutowireInterceptor.java │ │ │ │ ├── SnippetInitializeInterceptor.java │ │ │ │ └── SnippetInterceptor.java │ │ │ └── resolve │ │ │ │ ├── DefaultSnippetResolver.java │ │ │ │ ├── PriorRenderMethod.java │ │ │ │ └── SnippetResolver.java │ │ │ ├── template │ │ │ ├── AbstractTemplateResolver.java │ │ │ ├── ClasspathTemplateResolver.java │ │ │ ├── FileTemplateResolver.java │ │ │ ├── Template.java │ │ │ ├── TemplateException.java │ │ │ ├── TemplateNotFoundException.java │ │ │ ├── TemplateResolver.java │ │ │ └── TemplateUtil.java │ │ │ └── util │ │ │ ├── Asta4DWarningException.java │ │ │ ├── ClassUtil.java │ │ │ ├── ClosureReference.java │ │ │ ├── DelegatedContextMap.java │ │ │ ├── ElementUtil.java │ │ │ ├── GroupedException.java │ │ │ ├── IdGenerator.java │ │ │ ├── Java8Paranamer.java │ │ │ ├── Java8ParanamerBytecodeScanWrapper.java │ │ │ ├── Java8TimeUtil.java │ │ │ ├── MemorySafeResourceCache.java │ │ │ ├── MultiSearchPathResourceLoader.java │ │ │ ├── SelectorUtil.java │ │ │ ├── SyncClosureReference.java │ │ │ ├── UnmodifiableContextMap.java │ │ │ ├── annotation │ │ │ ├── AnnotatedProperty.java │ │ │ ├── AnnotatedPropertyInfo.java │ │ │ ├── AnnotatedPropertyUtil.java │ │ │ ├── AnnotationConvertor.java │ │ │ ├── ConvertableAnnotation.java │ │ │ └── ConvertableAnnotationRetriever.java │ │ │ ├── collection │ │ │ ├── ListConvertUtil.java │ │ │ ├── ParallelRecursivePolicy.java │ │ │ ├── RowConvertor.java │ │ │ └── RowConvertorBuilder.java │ │ │ ├── concurrent │ │ │ ├── DefaultExecutorServiceFactory.java │ │ │ ├── ExecutorServiceFactory.java │ │ │ └── SnippetExecutorServiceUtil.java │ │ │ └── i18n │ │ │ ├── I18nMessageHelper.java │ │ │ ├── I18nMessageHelperTypeAssistant.java │ │ │ ├── LocalizeUtil.java │ │ │ ├── MappedParamI18nMessageHelper.java │ │ │ ├── OrderedParamI18nMessageHelper.java │ │ │ ├── formatter │ │ │ ├── ApacheStrSubstitutorFormatter.java │ │ │ ├── JDKMessageFormatFormatter.java │ │ │ ├── MappedValueFormatter.java │ │ │ ├── OrderedValueFormatter.java │ │ │ └── SymbolPlaceholderFormatter.java │ │ │ └── pattern │ │ │ ├── CharsetResourceBundleFactory.java │ │ │ ├── JDKResourceBundleMessagePatternRetriever.java │ │ │ ├── LatinEscapingResourceBundleFactory.java │ │ │ ├── MessagePatternRetriever.java │ │ │ └── ResourceBundleFactory.java │ └── jsoup │ │ └── org │ │ └── jsoup │ │ └── parser │ │ ├── Asta4DTagSupportHtmlTreeBuilder.java │ │ └── Asta4DTagSupportHtmlTreeBuilderState.java │ └── test │ ├── java │ └── com │ │ └── astamuse │ │ └── asta4d │ │ └── test │ │ ├── render │ │ ├── AdvancedRenderingTest.java │ │ ├── AdvancedSnippetTest.java │ │ ├── ComponentRenderingTest.java │ │ ├── ContextBindDataTest.java │ │ ├── ExternalizeMessageTest.java │ │ ├── InjectTest.java │ │ ├── LambdaRenderingTest.java │ │ ├── ParallelTest.java │ │ ├── RenderingTest.java │ │ ├── ResolveTemplateByLocaleTest.java │ │ ├── SimpleSnippetRenderingTest.java │ │ ├── TemplateExtractionTest.java │ │ └── infra │ │ │ ├── BaseTest.java │ │ │ ├── SimpleCase.java │ │ │ └── TimeCalculator.java │ │ └── unit │ │ ├── ConvertableAnnotationTest.java │ │ ├── ElementNotFoundHandlerOnDocumentTest.java │ │ ├── InjectUtilForConvertableAnnotationTest.java │ │ ├── InjectUtilForInstanceTest.java │ │ ├── InjectUtilForMethodTest.java │ │ ├── InjectUtilForTypeUnMatchTest.java │ │ ├── InterceptorUtilTest.java │ │ ├── JDKResourceBundleMessagePatternRetrieverTest.java │ │ ├── MultiSearchPathResourceLoaderTest.java │ │ ├── ParallelListConvertingTest.java │ │ ├── RenderTesterTest.java │ │ ├── ResourceBundleUtilTest.java │ │ ├── TemplateResolverTest.java │ │ └── data │ │ ├── DateValueConvertorTest.java │ │ └── DefaultDataTypeTransformerTest.java │ └── resources │ ├── com │ └── astamuse │ │ └── asta4d │ │ └── test │ │ ├── render │ │ ├── confirms │ │ │ ├── AdvancedRendering_continualSelectAll.html │ │ │ ├── AdvancedRendering_dataRef.html │ │ │ ├── AdvancedRendering_pseudoRootRendering.html │ │ │ ├── AdvancedSnippet_deletedNestedSnippet.html │ │ │ ├── AdvancedSnippet_nestedEmbed.html │ │ │ ├── AdvancedSnippet_nestedSnippet.html │ │ │ ├── AdvancedSnippet_overrideRenderMethod.html │ │ │ ├── ComponentRenderingTest.html │ │ │ ├── ContextBindData_nonParallel.html │ │ │ ├── ContextBindData_parallel.html │ │ │ ├── ExternalizeMessage_DefaultMsg.html │ │ │ ├── ExternalizeMessage_SymbolPlaceholder_ja.html │ │ │ ├── ExternalizeMessage_SymbolPlaceholder_us.html │ │ │ ├── Inject_testInstanceDefaultSearch.html │ │ │ ├── Inject_testInstanceNameSearch.html │ │ │ ├── Inject_testInstanceScopeSearch.html │ │ │ ├── Inject_testInstanceTypeConvertor.html │ │ │ ├── Inject_testMethodDefaultSearch.html │ │ │ ├── Inject_testMethodNameSearch.html │ │ │ ├── Inject_testMethodScopeSearch.html │ │ │ ├── Inject_testMethodTypeConvertor.html │ │ │ ├── LambdaRendering_listChildReplacing.html │ │ │ ├── LambdaRendering_listElementRendering.html │ │ │ ├── LambdaRendering_listRecursiveRendering.html │ │ │ ├── LambdaRendering_listTextRendering.html │ │ │ ├── LambdaRendering_parallelStreamRenderingCorrectness.html │ │ │ ├── LambdaRendering_parallelStreamRenderingTimeConsuming.html │ │ │ ├── LambdaRendering_removeClassInListRendering.html │ │ │ ├── LambdaRendering_renderableRendering.html │ │ │ ├── ParallelTest_parallelListConversionLambda.html │ │ │ ├── ParallelTest_parallelSnippet.html │ │ │ ├── Rendering_addOperation.html │ │ │ ├── Rendering_childReplacing.html │ │ │ ├── Rendering_classAttrSetting.html │ │ │ ├── Rendering_clearNode.html │ │ │ ├── Rendering_elementRendering.html │ │ │ ├── Rendering_listChildReplacing.html │ │ │ ├── Rendering_listElementRendering.html │ │ │ ├── Rendering_listRecursiveRendering.html │ │ │ ├── Rendering_listTextRendering.html │ │ │ ├── Rendering_normalAttrSetting.html │ │ │ ├── Rendering_pseudoRootRendering.html │ │ │ ├── Rendering_recursiveRendering.html │ │ │ ├── Rendering_removeClassInListRendering.html │ │ │ ├── Rendering_renderableRendering.html │ │ │ ├── Rendering_textRendering.html │ │ │ ├── ResolveTemplateByLocale.html │ │ │ ├── ResolveTemplateByLocale_en.html │ │ │ ├── ResolveTemplateByLocale_ja_JP.html │ │ │ ├── SimpleSnippet_AttrConflict.html │ │ │ ├── SimpleSnippet_BasePackage.html │ │ │ ├── SimpleSnippet_SnippetInit.html │ │ │ ├── SimpleSnippet_SnippetTag.html │ │ │ ├── SimpleSnippet_StaticEmbed.html │ │ │ ├── SimpleSnippet_TagEmbed.html │ │ │ ├── TemplateWithBodyOnlyAttr.html │ │ │ ├── TemplateWithBodyOnlyMeta.html │ │ │ ├── TemplateWithClear.html │ │ │ ├── TemplateWithComment.html │ │ │ ├── TemplateWithEmbed.html │ │ │ ├── TemplateWithEmbedBaseFolder.html │ │ │ ├── TemplateWithExtension.html │ │ │ ├── TemplateWithExtensionAndEmbedMerge.html │ │ │ ├── TemplateWithSpecialHeadTags.html │ │ │ ├── TemplateWithoutBodyTag.html │ │ │ └── ThreeLevelExtension_Child.html │ │ ├── messages │ │ │ ├── named_placeholder_messages.properties │ │ │ ├── named_placeholder_messages_ja_JP.properties │ │ │ ├── number_placeholder_messages.properties │ │ │ ├── number_placeholder_messages_ja_JP.properties │ │ │ ├── symbol_placeholder_messages.properties │ │ │ ├── symbol_placeholder_messages_ja_JP.properties │ │ │ └── utf_8_messages_ja_JP.properties │ │ └── templates │ │ │ ├── AdvancedRendering_continualSelectAll.html │ │ │ ├── AdvancedRendering_dataRef.html │ │ │ ├── AdvancedRendering_pseudoRootRendering.html │ │ │ ├── AdvancedSnippet_deletedNestedSnippet.html │ │ │ ├── AdvancedSnippet_initializingFailed.html │ │ │ ├── AdvancedSnippet_nestedEmbed.html │ │ │ ├── AdvancedSnippet_nestedEmbed_include.html │ │ │ ├── AdvancedSnippet_nestedSnippet.html │ │ │ ├── AdvancedSnippet_overrideRenderMethod.html │ │ │ ├── ComponentRenderingTest.html │ │ │ ├── ComponentRenderingTest_component.html │ │ │ ├── ContextBindData_nonParallel.html │ │ │ ├── ContextBindData_parallel.html │ │ │ ├── ExternalizeMessage_DefaultMsg.html │ │ │ ├── ExternalizeMessage_NamedParamKey.html │ │ │ ├── ExternalizeMessage_NumberedParamKey.html │ │ │ ├── Inject_testInstanceDefaultSearch.html │ │ │ ├── Inject_testInstanceNameSearch.html │ │ │ ├── Inject_testInstanceScopeSearch.html │ │ │ ├── Inject_testInstanceTypeConvertor.html │ │ │ ├── Inject_testMethodDefaultSearch.html │ │ │ ├── Inject_testMethodNameSearch.html │ │ │ ├── Inject_testMethodScopeSearch.html │ │ │ ├── Inject_testMethodTypeConvertor.html │ │ │ ├── LambdaRendering_listChildReplacing.html │ │ │ ├── LambdaRendering_listElementRendering.html │ │ │ ├── LambdaRendering_listRecursiveRendering.html │ │ │ ├── LambdaRendering_listTextRendering.html │ │ │ ├── LambdaRendering_parallelStreamRenderingCorrectness.html │ │ │ ├── LambdaRendering_parallelStreamRenderingTimeConsuming.html │ │ │ ├── LambdaRendering_removeClassInListRendering.html │ │ │ ├── LambdaRendering_renderableRendering.html │ │ │ ├── ParallelTest_parallelListConversionLambda.html │ │ │ ├── ParallelTest_parallelSnippet.html │ │ │ ├── Rendering_addOperation.html │ │ │ ├── Rendering_childReplacing.html │ │ │ ├── Rendering_classAttrSetting.html │ │ │ ├── Rendering_clearNode.html │ │ │ ├── Rendering_elementRendering.html │ │ │ ├── Rendering_listChildReplacing.html │ │ │ ├── Rendering_listElementRendering.html │ │ │ ├── Rendering_listRecursiveRendering.html │ │ │ ├── Rendering_listTextRendering.html │ │ │ ├── Rendering_normalAttrSetting.html │ │ │ ├── Rendering_pseudoRootRendering.html │ │ │ ├── Rendering_recursiveRendering.html │ │ │ ├── Rendering_removeClassInListRendering.html │ │ │ ├── Rendering_renderableRendering.html │ │ │ ├── Rendering_textRendering.html │ │ │ ├── ResolveTemplateByLocale.html │ │ │ ├── ResolveTemplateByLocale_en.html │ │ │ ├── ResolveTemplateByLocale_ja_JP.html │ │ │ ├── SimpleSnippet_AttrConflict.html │ │ │ ├── SimpleSnippet_BasePackage.html │ │ │ ├── SimpleSnippet_SnippetInit.html │ │ │ ├── SimpleSnippet_SnippetTag.html │ │ │ ├── SimpleSnippet_StaticEmbed.html │ │ │ ├── SimpleSnippet_TagEmbed.html │ │ │ ├── TemplateWithBodyOnlyAttr.html │ │ │ ├── TemplateWithBodyOnlyMeta.html │ │ │ ├── TemplateWithClear.html │ │ │ ├── TemplateWithComment.html │ │ │ ├── TemplateWithEmbed.html │ │ │ ├── TemplateWithEmbedBaseFolder.html │ │ │ ├── TemplateWithEmbedNotFound.html │ │ │ ├── TemplateWithExtension.html │ │ │ ├── TemplateWithExtensionAndEmbedMerge.html │ │ │ ├── TemplateWithExtensionAndEmbedMerge_Embed.html │ │ │ ├── TemplateWithExtension_Parent.html │ │ │ ├── TemplateWithSpecialHeadTags.html │ │ │ ├── TemplateWithSpecialHeadTags_embed.html │ │ │ ├── TemplateWithoutBodyTag.html │ │ │ ├── ThreeLevelExtension_Child.html │ │ │ ├── ThreeLevelExtension_Middle.html │ │ │ ├── ThreeLevelExtension_Parent.html │ │ │ └── myembed.html │ │ └── unit │ │ ├── JDKResourceBundleMessagePatternRetrieverTest.properties │ │ └── JDKResourceBundleMessagePatternRetrieverTest_KeyNotExisting.properties │ └── logback.xml ├── asta4d-doc ├── debugCompile.sh ├── pom.xml └── src │ ├── docbkx │ ├── META │ │ └── var.ent │ ├── en │ │ ├── adv_request_handler.xml │ │ ├── best_practice.xml │ │ ├── detail_form_flow.xml │ │ ├── detail_i18n.xml │ │ ├── detail_integration_spring.xml │ │ ├── detail_servlet_conf.xml │ │ ├── detail_snippet.xml │ │ ├── detail_template.xml │ │ ├── detail_url_rule.xml │ │ ├── detail_var_injection.xml │ │ ├── form_flow.xml │ │ ├── inheritable_template.xml │ │ ├── overview.xml │ │ ├── overview_backup.xml │ │ ├── renderer.xml │ │ ├── request_handler.xml │ │ ├── side_effect.xml │ │ └── url_mapping.xml │ ├── index.xml │ ├── index_jp.xml.backup │ └── jp │ │ ├── contextdata.xml │ │ ├── controller.xml │ │ ├── interceptor.xml │ │ ├── overview.xml │ │ ├── renderer.xml │ │ ├── request_handler.xml │ │ ├── snippet.xml │ │ └── template.xml │ └── resources │ └── docbkx │ ├── css │ ├── highlight.css │ ├── manual-multipage.css │ ├── manual-singlepage.css │ └── manual.css │ ├── images │ └── logo.png │ └── xsl │ ├── common.xsl │ ├── html-multipage.xsl │ ├── html-singlepage.xsl │ ├── html.xsl │ └── pdf.xsl ├── asta4d-sample ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.wst.common.project.facet.core.xml │ └── org.eclipse.wst.validation.prefs ├── pom.xml ├── src │ ├── main │ │ ├── java │ │ │ └── com │ │ │ │ └── astamuse │ │ │ │ └── asta4d │ │ │ │ └── sample │ │ │ │ ├── Asta4DSampleServlet.java │ │ │ │ ├── PageNotFoundException.java │ │ │ │ ├── UrlRules.java │ │ │ │ ├── customrule │ │ │ │ ├── CustomRuleAfterAddSrc.java │ │ │ │ ├── CustomRuleAfterAddSrcAndTarget.java │ │ │ │ ├── CustomRuleBuilder.java │ │ │ │ ├── CustomRuleGroupConfigurable.java │ │ │ │ ├── CustomRuleInitializer.java │ │ │ │ └── CustomRuleSet.java │ │ │ │ ├── forward │ │ │ │ └── LoginFailure.java │ │ │ │ ├── handler │ │ │ │ ├── AddUserHandler.java │ │ │ │ ├── EchoHandler.java │ │ │ │ ├── FormCompleteHandler.java │ │ │ │ ├── FormValidateHandler.java │ │ │ │ ├── GetUserListHandler.java │ │ │ │ ├── LoginHandler.java │ │ │ │ └── form │ │ │ │ │ ├── JobForm.java │ │ │ │ │ ├── JobPositionForm.java │ │ │ │ │ ├── PersonForm.java │ │ │ │ │ ├── cascade │ │ │ │ │ ├── CascadeFormHandler.java │ │ │ │ │ ├── EducationForm.java │ │ │ │ │ └── PersonFormIncludingCascadeForm.java │ │ │ │ │ ├── common │ │ │ │ │ ├── Asta4DSamplePrjCommonFormHandler.java │ │ │ │ │ ├── SamplePrjCommonValidatoinMessageLogics.java │ │ │ │ │ ├── SamplePrjTypeUnMatchValidator.java │ │ │ │ │ └── SamplePrjValueValidator.java │ │ │ │ │ ├── multiinput │ │ │ │ │ ├── CascadeJobForm.java │ │ │ │ │ ├── MultiInputForm.java │ │ │ │ │ └── MultiInputFormHandler.java │ │ │ │ │ ├── multistep │ │ │ │ │ ├── MultiStepFormHandler.java │ │ │ │ │ └── PersonFormForMultiStep.java │ │ │ │ │ ├── singlestep │ │ │ │ │ └── SingleStepFormHandler.java │ │ │ │ │ └── splittedinput │ │ │ │ │ ├── SplittedInputForm.java │ │ │ │ │ └── SplittedInputFormHandler.java │ │ │ │ ├── interceptor │ │ │ │ ├── SamplePageInterceptor.java │ │ │ │ └── SampleSnippetInterceptor.java │ │ │ │ ├── snippet │ │ │ │ ├── ComplicatedSnippet.java │ │ │ │ ├── ExtendSnippet.java │ │ │ │ ├── FormSnippet.java │ │ │ │ ├── ShowCodeSnippet.java │ │ │ │ ├── SimpleSnippet.java │ │ │ │ └── form │ │ │ │ │ ├── CascadeFormSnippet.java │ │ │ │ │ ├── ListSnippet.java │ │ │ │ │ ├── MultiInputFormSnippet.java │ │ │ │ │ ├── MultiStepFormSnippet.java │ │ │ │ │ ├── SingleStepFormSnippet.java │ │ │ │ │ ├── SplittedInputFormSnippet.java │ │ │ │ │ └── common │ │ │ │ │ └── Asta4DSamplePrjCommonFormSnippet.java │ │ │ │ └── util │ │ │ │ └── persondb │ │ │ │ ├── AbstractDbManager.java │ │ │ │ ├── Education.java │ │ │ │ ├── EducationDbManager.java │ │ │ │ ├── IdentifiableEntity.java │ │ │ │ ├── JobExperence.java │ │ │ │ ├── JobExperenceDbManager.java │ │ │ │ ├── JobPosition.java │ │ │ │ ├── JobPositionDbManager.java │ │ │ │ ├── Person.java │ │ │ │ └── PersonDbManager.java │ │ ├── resources │ │ │ ├── BeanValidationMessages_ja.properties │ │ │ ├── asta4d.conf.properties │ │ │ ├── messages.properties │ │ │ ├── messages_ja.properties │ │ │ └── spring │ │ │ │ └── configuration.xml │ │ └── webapp │ │ │ ├── WEB-INF │ │ │ └── web.xml │ │ │ ├── css │ │ │ ├── common.css │ │ │ └── prettify.css │ │ │ ├── js │ │ │ └── prettify.js │ │ │ ├── layout │ │ │ ├── baselayout.html │ │ │ └── common.html │ │ │ └── templates │ │ │ ├── attributevalues.html │ │ │ ├── contextdata.html │ │ │ ├── embed │ │ │ ├── embedded.html │ │ │ ├── embedded_withbody.html │ │ │ └── main.html │ │ │ ├── error.html │ │ │ ├── errors │ │ │ ├── 404.html │ │ │ └── 500.html │ │ │ ├── extend │ │ │ ├── appendchild.html │ │ │ ├── insertchild.html │ │ │ ├── overridechild.html │ │ │ └── parent.html │ │ │ ├── form │ │ │ ├── cascade │ │ │ │ ├── comment.html │ │ │ │ ├── complete.html │ │ │ │ ├── confirm.html │ │ │ │ ├── customGlobalMessageBar.html │ │ │ │ ├── formBase.html │ │ │ │ └── input.html │ │ │ ├── list.html │ │ │ ├── multiinput │ │ │ │ ├── comment.html │ │ │ │ ├── complete.html │ │ │ │ ├── confirm.html │ │ │ │ ├── customGlobalMessageBar.html │ │ │ │ ├── formBase.html │ │ │ │ ├── formJob.html │ │ │ │ ├── formPerson.html │ │ │ │ ├── input-1.html │ │ │ │ └── input-2.html │ │ │ ├── multistep │ │ │ │ ├── btns-complete.html │ │ │ │ ├── btns-confirm.html │ │ │ │ ├── btns-input.html │ │ │ │ ├── comment.html │ │ │ │ ├── complete.html │ │ │ │ ├── confirm.html │ │ │ │ ├── formContent.html │ │ │ │ └── input.html │ │ │ ├── singlestep │ │ │ │ ├── btns.html │ │ │ │ ├── comment.html │ │ │ │ └── edit.html │ │ │ └── splittedinput │ │ │ │ ├── comment.html │ │ │ │ ├── complete.html │ │ │ │ ├── confirm.html │ │ │ │ ├── customGlobalMessageBar.html │ │ │ │ ├── formBase.html │ │ │ │ ├── formJob.html │ │ │ │ ├── formPerson.html │ │ │ │ ├── input-1.html │ │ │ │ ├── input-2.html │ │ │ │ └── input-3.html │ │ │ ├── index.html │ │ │ ├── localize.html │ │ │ ├── passvariables.html │ │ │ ├── renderertypes.html │ │ │ ├── snippet-error.html │ │ │ ├── snippet.html │ │ │ ├── success.html │ │ │ └── variableinjection.html │ └── test │ │ └── java │ │ └── .KEEP └── start-jettty-asta4d-sample.launch ├── asta4d-spring ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ └── org.eclipse.wst.validation.prefs ├── pom.xml └── src │ ├── main │ └── java │ │ └── com │ │ └── astamuse │ │ └── asta4d │ │ └── misc │ │ └── spring │ │ ├── Asta4dBeanNameGenerator.java │ │ ├── SpringInitializableServlet.java │ │ ├── SpringManagedInstanceAdapter.java │ │ ├── SpringManagedInstanceResolver.java │ │ ├── SpringManagedSnippetResolver.java │ │ ├── annotation │ │ └── Snippet.java │ │ └── mvc │ │ ├── Asta4dContextInitializeHandlerInterceptor.java │ │ ├── SpringWebPageView.java │ │ ├── SpringWebPageViewResolver.java │ │ └── controller │ │ └── GenericController.java │ └── test │ └── java │ └── .KEEP ├── asta4d-web ├── .classpath ├── .project ├── .settings │ ├── org.eclipse.core.resources.prefs │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.m2e.core.prefs │ ├── org.eclipse.wst.common.component │ ├── org.eclipse.wst.common.project.facet.core.xml │ └── org.eclipse.wst.validation.prefs ├── pom.xml └── src │ ├── main │ ├── java │ │ └── com │ │ │ └── astamuse │ │ │ └── asta4d │ │ │ └── web │ │ │ ├── WebApplicationConfiguration.java │ │ │ ├── WebApplicationContext.java │ │ │ ├── WebApplicationContextDataFinder.java │ │ │ ├── WebApplicationTemplateResolver.java │ │ │ ├── WebApplicatoinConfigurationInitializer.java │ │ │ ├── annotation │ │ │ ├── CookieData.java │ │ │ ├── FlashData.java │ │ │ ├── HeaderData.java │ │ │ ├── PathVar.java │ │ │ ├── QueryParam.java │ │ │ ├── RequestContextData.java │ │ │ ├── SessionData.java │ │ │ └── convertor │ │ │ │ └── WebSpecialScopeConvertor.java │ │ │ ├── builtin │ │ │ ├── AbstractGenericPathHandler.java │ │ │ ├── GenericPathTemplateHandler.java │ │ │ └── StaticResourceHandler.java │ │ │ ├── copyleft │ │ │ ├── NOTICE │ │ │ ├── SpringAntPathMatcher.java │ │ │ ├── SpringAntPathStringMatcher.java │ │ │ └── SpringStringUtils.java │ │ │ ├── dispatch │ │ │ ├── AntPathRuleMatcher.java │ │ │ ├── DefaultRequestHandlerInvoker.java │ │ │ ├── DefaultRequestHandlerInvokerFactory.java │ │ │ ├── DispatcherRuleMatcher.java │ │ │ ├── HttpMethod.java │ │ │ ├── RedirectInterceptor.java │ │ │ ├── RedirectUtil.java │ │ │ ├── RequestDispatcher.java │ │ │ ├── RequestHandlerInvoker.java │ │ │ ├── RequestHandlerInvokerFactory.java │ │ │ ├── interceptor │ │ │ │ ├── RequestHandlerInterceptor.java │ │ │ │ └── RequestHandlerResultHolder.java │ │ │ ├── mapping │ │ │ │ ├── ResultTransformerReorganizer.java │ │ │ │ ├── UrlMappingResult.java │ │ │ │ ├── UrlMappingRule.java │ │ │ │ ├── UrlMappingRuleInitializer.java │ │ │ │ ├── UrlMappingRuleRewriter.java │ │ │ │ ├── UrlMappingRuleSet.java │ │ │ │ ├── UrlMappingRuleSetHelper.java │ │ │ │ └── handy │ │ │ │ │ ├── HandyRuleAfterAddSrc.java │ │ │ │ │ ├── HandyRuleAfterAddSrcAndTarget.java │ │ │ │ │ ├── HandyRuleAfterAttr.java │ │ │ │ │ ├── HandyRuleAfterHandler.java │ │ │ │ │ ├── HandyRuleBuilder.java │ │ │ │ │ ├── HandyRuleSet.java │ │ │ │ │ ├── base │ │ │ │ │ ├── AttrConfigurableRule.java │ │ │ │ │ ├── HandlerConfigurableRule.java │ │ │ │ │ ├── HandyRuleBase.java │ │ │ │ │ ├── HandyRuleConfigurable.java │ │ │ │ │ └── HandyRuleConfigurer.java │ │ │ │ │ ├── rest │ │ │ │ │ ├── JsonSupportRule.java │ │ │ │ │ ├── JsonSupportRuleHelper.java │ │ │ │ │ ├── JsonSupportRuleSet.java │ │ │ │ │ ├── XmlSupportRule.java │ │ │ │ │ ├── XmlSupportRuleHelper.java │ │ │ │ │ └── XmlSupportRuleSet.java │ │ │ │ │ └── template │ │ │ │ │ ├── TemplateRuleHelper.java │ │ │ │ │ └── TemplateRuleWithForward.java │ │ │ ├── request │ │ │ │ ├── MultiResultHolder.java │ │ │ │ ├── RequestHandler.java │ │ │ │ ├── ResultTransformer.java │ │ │ │ ├── ResultTransformerUtil.java │ │ │ │ └── transformer │ │ │ │ │ ├── Asta4DPageTransformer.java │ │ │ │ │ ├── DefaultExceptionTransformer.java │ │ │ │ │ ├── DefaultJsonTransformer.java │ │ │ │ │ ├── DefaultStringTransformer.java │ │ │ │ │ ├── DefaultTemplateNotFoundExceptionTransformer.java │ │ │ │ │ ├── DefaultXmlTransformer.java │ │ │ │ │ ├── SimpleTypeMatchTransformer.java │ │ │ │ │ └── StopTransformer.java │ │ │ └── response │ │ │ │ └── provider │ │ │ │ ├── Asta4DPageProvider.java │ │ │ │ ├── BinaryDataProvider.java │ │ │ │ ├── ContentProvider.java │ │ │ │ ├── EmptyContentProvider.java │ │ │ │ ├── HeaderInfoProvider.java │ │ │ │ ├── JsonDataProvider.java │ │ │ │ ├── RedirectTargetProvider.java │ │ │ │ ├── SerialProvider.java │ │ │ │ └── XmlDataProvider.java │ │ │ ├── form │ │ │ ├── CascadeArrayFunctions.java │ │ │ ├── CascadeArrayFunctionsHelper.java │ │ │ ├── annotation │ │ │ │ ├── CascadeFormField.java │ │ │ │ ├── Form.java │ │ │ │ ├── FormField.java │ │ │ │ ├── convert │ │ │ │ │ ├── CascadeFormFieldAnnotationConvertor.java │ │ │ │ │ ├── FormAnnotationConvertor.java │ │ │ │ │ └── FormFieldAnnotationConvertor.java │ │ │ │ └── renderable │ │ │ │ │ ├── AvailableWhenEditOnly.java │ │ │ │ │ ├── Checkbox.java │ │ │ │ │ ├── Date.java │ │ │ │ │ ├── Hidden.java │ │ │ │ │ ├── Input.java │ │ │ │ │ ├── Password.java │ │ │ │ │ ├── Radio.java │ │ │ │ │ ├── Select.java │ │ │ │ │ ├── SelectMultiple.java │ │ │ │ │ ├── Textarea.java │ │ │ │ │ ├── Time.java │ │ │ │ │ └── convert │ │ │ │ │ ├── AvailabeWhenEditOnlyAnnotationConvertor.java │ │ │ │ │ └── CommonInputAnnotationConvertor.java │ │ │ ├── field │ │ │ │ ├── FormFieldPrepareRenderer.java │ │ │ │ ├── FormFieldValueRenderer.java │ │ │ │ ├── OptionValueMap.java │ │ │ │ ├── OptionValuePair.java │ │ │ │ ├── PrepareRenderingDataUtil.java │ │ │ │ ├── SimpleFormFieldPrepareRenderer.java │ │ │ │ ├── SimpleFormFieldValueRenderer.java │ │ │ │ ├── SimpleFormFieldWithOptionValueRenderer.java │ │ │ │ └── impl │ │ │ │ │ ├── AbstractRadioAndCheckboxPrepareRenderer.java │ │ │ │ │ ├── AbstractRadioAndCheckboxRenderer.java │ │ │ │ │ ├── AbstractSelectRenderer.java │ │ │ │ │ ├── AvailableWhenEditOnlyRenderer.java │ │ │ │ │ ├── CheckboxPrepareRenderer.java │ │ │ │ │ ├── CheckboxRenderer.java │ │ │ │ │ ├── DateRenderer.java │ │ │ │ │ ├── DoNothingFormFieldRenderer.java │ │ │ │ │ ├── HiddenRenderer.java │ │ │ │ │ ├── InputDefaultRenderer.java │ │ │ │ │ ├── PasswordRenderer.java │ │ │ │ │ ├── RadioPrepareRenderer.java │ │ │ │ │ ├── RadioRenderer.java │ │ │ │ │ ├── SelectMultipleRenderer.java │ │ │ │ │ ├── SelectPrepareRenderer.java │ │ │ │ │ ├── SelectSingleRenderer.java │ │ │ │ │ ├── TextareaRenderer.java │ │ │ │ │ └── TimeRenderer.java │ │ │ ├── flow │ │ │ │ ├── base │ │ │ │ │ ├── BasicFormFlowHandlerTrait.java │ │ │ │ │ ├── BasicFormFlowSnippetTrait.java │ │ │ │ │ ├── BasicFormFlowTraitHelper.java │ │ │ │ │ ├── CommonFormResult.java │ │ │ │ │ ├── DelatedContext.java │ │ │ │ │ ├── FormFlowConstants.java │ │ │ │ │ ├── FormFlowTraceData.java │ │ │ │ │ ├── FormFlowTraceDataAccessor.java │ │ │ │ │ ├── FormProcessData.java │ │ │ │ │ ├── FormRenderingData.java │ │ │ │ │ ├── InjectionTraceDataRedirectInterceptor.java │ │ │ │ │ ├── SimpleFormProcessData.java │ │ │ │ │ ├── StepAwaredValidatableForm.java │ │ │ │ │ ├── StepAwaredValidationFormHelper.java │ │ │ │ │ ├── StepAwaredValidationTarget.java │ │ │ │ │ ├── StepRepresentableForm.java │ │ │ │ │ └── ValidationProcessor.java │ │ │ │ ├── classical │ │ │ │ │ ├── ClassicalFormFlowConstant.java │ │ │ │ │ ├── ClassicalMultiStepFormFlowHandlerTrait.java │ │ │ │ │ ├── ClassicalMultiStepFormFlowSnippetTrait.java │ │ │ │ │ ├── ClassicalMultiStepFormFlowTraitHelper.java │ │ │ │ │ ├── OneStepFormHandlerTrait.java │ │ │ │ │ ├── OneStepFormSnippetTrait.java │ │ │ │ │ └── UpdatableFormFlowHandlerTrait.java │ │ │ │ └── ext │ │ │ │ │ ├── ExcludingFieldRetrievableForm.java │ │ │ │ │ ├── ExcludingFieldRetrievableFormHelper.java │ │ │ │ │ ├── ExcludingFieldRetrievableFormRenderable.java │ │ │ │ │ ├── ExcludingFieldRetrievableFormValidationProcessor.java │ │ │ │ │ ├── IncludingFieldRetrievableForm.java │ │ │ │ │ ├── MultiInputStepForm.java │ │ │ │ │ ├── MultiInputStepFormFlowHandlerTrait.java │ │ │ │ │ └── MultiInputStepFormFlowSnippetTrait.java │ │ │ ├── js │ │ │ │ └── ClientCascadeUtil.js │ │ │ └── validation │ │ │ │ ├── CommonValidatorBase.java │ │ │ │ ├── FormValidationMessage.java │ │ │ │ ├── FormValidator.java │ │ │ │ ├── JsrValidator.java │ │ │ │ └── TypeUnMatchValidator.java │ │ │ ├── initialization │ │ │ ├── Initializer.java │ │ │ └── SimplePropertyFileInitializer.java │ │ │ ├── messaging │ │ │ ├── Asta4dMessage.java │ │ │ ├── Asta4dMessageListener.java │ │ │ ├── DataMessage.java │ │ │ ├── MessageManager.java │ │ │ ├── README │ │ │ └── UnregisterMessage.java │ │ │ ├── servlet │ │ │ └── Asta4dServlet.java │ │ │ ├── sitecategory │ │ │ ├── SiteCategoryAwaredPathConvertor.java │ │ │ ├── SiteCategoryAwaredResourceLoader.java │ │ │ ├── SiteCategoryAwaredStaticResourceHandler.java │ │ │ ├── SiteCategoryAwaredTemplateResolver.java │ │ │ └── SiteCategoryUtil.java │ │ │ └── util │ │ │ ├── ClosureVarRef.java │ │ │ ├── SecureIdGenerator.java │ │ │ ├── SystemPropertyUtil.java │ │ │ ├── bean │ │ │ ├── AnnotationMethodHelper.java │ │ │ ├── DeclareInstanceAdapter.java │ │ │ ├── DeclareInstanceResolver.java │ │ │ ├── DeclareInstanceUtil.java │ │ │ └── DefaultDeclareInstanceResolver.java │ │ │ ├── context │ │ │ └── SessionMap.java │ │ │ ├── data │ │ │ ├── BinaryDataUtil.java │ │ │ ├── JsonUtil.java │ │ │ └── XmlUtil.java │ │ │ ├── message │ │ │ ├── DefaultMessageRenderingHelper.java │ │ │ └── MessageRenderingHelper.java │ │ │ └── timeout │ │ │ ├── DefaultSessionAwareExpirableDataManager.java │ │ │ ├── ExpirableDataManager.java │ │ │ └── TooManyDataException.java │ └── resources │ │ └── com │ │ └── astamuse │ │ └── asta4d │ │ └── web │ │ └── util │ │ └── message │ │ └── DefaultMessageContainerSnippet.html │ └── test │ ├── java │ └── com │ │ └── astamuse │ │ └── asta4d │ │ └── web │ │ └── test │ │ ├── WebTestBase.java │ │ ├── dispatch │ │ └── RequestDispatcherTest.java │ │ ├── form │ │ ├── FormRenderCase.java │ │ ├── MultiStepFormTest.java │ │ ├── OneStepFormTest.java │ │ ├── SubArray.java │ │ ├── SubArray2.java │ │ ├── SubForm.java │ │ ├── TestForm.java │ │ └── field │ │ │ ├── CheckboxTest.java │ │ │ ├── DateTest.java │ │ │ ├── FieldRenderBuilder.java │ │ │ ├── HiddenTest.java │ │ │ ├── InputDefaultTest.java │ │ │ ├── PasswordTest.java │ │ │ ├── RadioTest.java │ │ │ ├── SelectMultipleTest.java │ │ │ ├── SelectSingleTest.java │ │ │ ├── TextareaTest.java │ │ │ └── TimeTest.java │ │ ├── initialization │ │ ├── SimplePropertyFileInitializerTest.java │ │ └── TestMessagePatternRetriever.java │ │ ├── render │ │ ├── base │ │ │ └── WebRenderCase.java │ │ └── message │ │ │ ├── DefaultMessageRendererOverrideTest.java │ │ │ └── DefaultMessageRendererTest.java │ │ └── unit │ │ ├── DefaultSessionAwareExpirableDataManagerTest.java │ │ ├── GenericPathHandlerTest.java │ │ ├── ResultTransformerUtilTest.java │ │ ├── StaticResourceHandlerTest.java │ │ ├── WebSpecialScopeConvertorTest.java │ │ ├── form │ │ ├── CascadeArrayFunctionsTest.java │ │ └── ExcludingFieldRetrievableFormHelperTest.java │ │ └── sitecategory │ │ └── SiteCategoryAwaredTemplateResolverTest.java │ └── resources │ └── com │ └── astamuse │ └── asta4d │ └── web │ └── test │ ├── form │ ├── confirms │ │ ├── Checkbox_normalDisplay.html │ │ ├── Checkbox_normalDisplayMultiValue.html │ │ ├── Checkbox_normalEdit.html │ │ ├── Checkbox_normalEditMultiValue.html │ │ ├── Checkbox_staticOptionDisplay.html │ │ ├── Checkbox_staticOptionDisplayMultiValue.html │ │ ├── Checkbox_staticOptionEdit.html │ │ ├── Checkbox_staticOptionEditMultiValue.html │ │ ├── Date.html │ │ ├── Hidden.html │ │ ├── InputDefault.html │ │ ├── MultiStepForm_complete.html │ │ ├── MultiStepForm_complete_withDisplay.html │ │ ├── MultiStepForm_goBack.html │ │ ├── MultiStepForm_goToConfirm.html │ │ ├── MultiStepForm_goToConfirm_withDisplay.html │ │ ├── MultiStepForm_initInput.html │ │ ├── MultiStepForm_inputWithTypeUnMatchError.html │ │ ├── MultiStepForm_inputWithValueValidationError.html │ │ ├── MultiStepForm_inputWithoutTraceMap.html │ │ ├── OneStepForm_initInput.html │ │ ├── OneStepForm_inputWithTypeUnMatchError.html │ │ ├── OneStepForm_inputWithValueValidationError.html │ │ ├── Password.html │ │ ├── Radio_displayMissingEditTarget.html │ │ ├── Radio_normalDisplay.html │ │ ├── Radio_normalEdit.html │ │ ├── Radio_staticOptionDisplay.html │ │ ├── Radio_staticOptionEdit.html │ │ ├── SelectMultiple_normalDisplay.html │ │ ├── SelectMultiple_normalDisplayMultiValue.html │ │ ├── SelectMultiple_normalEdit.html │ │ ├── SelectMultiple_normalEditMultiValue.html │ │ ├── SelectMultiple_staticOptionDisplay.html │ │ ├── SelectMultiple_staticOptionDisplayMultiValue.html │ │ ├── SelectMultiple_staticOptionEdit.html │ │ ├── SelectMultiple_staticOptionEditMultiValue.html │ │ ├── SelectSingle_normalDisplay.html │ │ ├── SelectSingle_normalEdit.html │ │ ├── SelectSingle_staticOptionDisplay.html │ │ ├── SelectSingle_staticOptionEdit.html │ │ ├── Textarea.html │ │ └── Time.html │ └── templates │ │ ├── Checkbox_duplicatedElement.html │ │ ├── Checkbox_duplicatedElementInDuplicator.html │ │ ├── Checkbox_emptyIdElement.html │ │ ├── Checkbox_emptyIdElementInDuplicator.html │ │ ├── Checkbox_normalDisplay.html │ │ ├── Checkbox_normalDisplayMultiValue.html │ │ ├── Checkbox_normalEdit.html │ │ ├── Checkbox_normalEditMultiValue.html │ │ ├── Checkbox_staticOptionDisplay.html │ │ ├── Checkbox_staticOptionDisplayMultiValue.html │ │ ├── Checkbox_staticOptionEdit.html │ │ ├── Checkbox_staticOptionEditMultiValue.html │ │ ├── Date.html │ │ ├── Hidden.html │ │ ├── InputDefault.html │ │ ├── MultiStepForm_Base.html │ │ ├── MultiStepForm_complete.html │ │ ├── MultiStepForm_complete_withDisplay.html │ │ ├── MultiStepForm_goBack.html │ │ ├── MultiStepForm_goToConfirm.html │ │ ├── MultiStepForm_goToConfirm_withDisplay.html │ │ ├── MultiStepForm_initInput.html │ │ ├── MultiStepForm_inputWithTypeUnMatchError.html │ │ ├── MultiStepForm_inputWithValueValidationError.html │ │ ├── MultiStepForm_inputWithoutTraceMap.html │ │ ├── OneStepForm_Base.html │ │ ├── OneStepForm_initInput.html │ │ ├── OneStepForm_inputWithTypeUnMatchError.html │ │ ├── OneStepForm_inputWithValueValidationError.html │ │ ├── Password.html │ │ ├── Radio_displayMissingEditTarget.html │ │ ├── Radio_duplicatedElement.html │ │ ├── Radio_duplicatedElementInDuplicator.html │ │ ├── Radio_emptyIdElement.html │ │ ├── Radio_emptyIdElementInDuplicator.html │ │ ├── Radio_normalDisplay.html │ │ ├── Radio_normalEdit.html │ │ ├── Radio_staticOptionDisplay.html │ │ ├── Radio_staticOptionDisplay_error.html │ │ ├── Radio_staticOptionEdit.html │ │ ├── SelectMultiple_normalDisplay.html │ │ ├── SelectMultiple_normalDisplayMultiValue.html │ │ ├── SelectMultiple_normalEdit.html │ │ ├── SelectMultiple_normalEditMultiValue.html │ │ ├── SelectMultiple_staticOptionDisplay.html │ │ ├── SelectMultiple_staticOptionDisplayMultiValue.html │ │ ├── SelectMultiple_staticOptionEdit.html │ │ ├── SelectMultiple_staticOptionEditMultiValue.html │ │ ├── SelectSingle_normalDisplay.html │ │ ├── SelectSingle_normalEdit.html │ │ ├── SelectSingle_staticOptionDisplay.html │ │ ├── SelectSingle_staticOptionEdit.html │ │ ├── Textarea.html │ │ └── Time.html │ ├── render │ ├── confirms │ │ ├── DefaultMessageRender_duplicatorOverride.html │ │ ├── DefaultMessageRender_existingMsgSelector.html │ │ ├── DefaultMessageRender_notExistingMsgSelector.html │ │ ├── DefaultMessageRender_someExistingMsgSelector.html │ │ └── DefaultMessageRender_someExistingMsgSelector2.html │ └── templates │ │ ├── DefaultMessageRender_duplicatorOverride.html │ │ ├── DefaultMessageRender_existingMsgSelector.html │ │ ├── DefaultMessageRender_notExistingMsgSelector.html │ │ ├── DefaultMessageRender_someExistingMsgSelector.html │ │ └── DefaultMessageRender_someExistingMsgSelector2.html │ └── unit │ ├── StaticResourceHandlerTestFile.js │ ├── StaticResourceHandlerTestFile_ja.js │ └── sitecategory │ ├── category1 │ ├── testTemplate1.html │ └── testTemplate2.html │ ├── category2 │ ├── testTemplate2.html │ └── testTemplate3.html │ └── category3 │ ├── testTemplate1.html │ ├── testTemplate3.html │ └── testTemplate4.html ├── astamuse-format.xml ├── createSite.sh ├── currentVersion ├── debugcreateSite.sh ├── deploy.sh ├── fixVersion.sh ├── page_index.html ├── pom.xml ├── startJetty.bat ├── startJetty.sh └── userguide_index.html /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | 3 | /asta4d-archetype/target 4 | /asta4d-archetype/src 5 | 6 | /asta4d-archetype-prototype/target 7 | /asta4d-archetype-prototype/src 8 | 9 | /asta4d-core/target 10 | /asta4d-core/test-output 11 | 12 | /asta4d-doc/target 13 | 14 | /asta4d-sample/target 15 | /asta4d-sample/test-output 16 | 17 | /asta4d-spring/target 18 | /asta4d-spring/test-output 19 | 20 | /asta4d-web/target 21 | /asta4d-web/test-output 22 | 23 | pom.xml.versionsBackup 24 | /asta4d-sample/.settings/org.eclipse.wst.common.component 25 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: java 2 | 3 | jdk: 4 | - oraclejdk8 5 | 6 | install: 7 | - echo "Downloading Maven 3.0"; 8 | - wget https://archive.apache.org/dist/maven/binaries/apache-maven-3.0-bin.zip || travis_terminate 1 9 | - unzip -qq apache-maven-3.0-bin.zip || travis_terminate 1 10 | - export M2_HOME=$PWD/apache-maven-3.0 11 | - export PATH=$M2_HOME/bin:$PATH 12 | - mvn -version 13 | - mvn clean package install -DskipTests -Dgpg.skip 14 | script: 15 | - cd asta4d-core 16 | - mvn test 17 | - cd ../asta4d-web 18 | - mvn test 19 | -------------------------------------------------------------------------------- /asta4d-core/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding//src/test/resources=UTF-8 5 | encoding//src/test/resources/com/astamuse/asta4d/test/render/confirms/ExternalizeMessage_SymbolPlaceholder_us.html=UTF-8 6 | encoding/=UTF-8 7 | -------------------------------------------------------------------------------- /asta4d-core/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 13 | org.eclipse.jdt.core.compiler.source=1.8 14 | -------------------------------------------------------------------------------- /asta4d-core/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /asta4d-core/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /asta4d-core/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-core/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/ContextMap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d; 18 | 19 | public interface ContextMap { 20 | 21 | public void put(String key, Object data); 22 | 23 | public T get(String key); 24 | 25 | public ContextMap createClone(); 26 | } 27 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/data/ContextDataSetFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.data; 18 | 19 | public interface ContextDataSetFactory { 20 | @SuppressWarnings("rawtypes") 21 | public Object createInstance(Class cls); 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/data/DataTypeTransformer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.data; 18 | 19 | import com.astamuse.asta4d.data.convertor.UnsupportedValueException; 20 | 21 | public interface DataTypeTransformer { 22 | public Object transform(Class srcType, Class targetType, Object data) throws UnsupportedValueException; 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/data/convertor/String2Java8LocalDate.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.data.convertor; 2 | 3 | import java.time.LocalDate; 4 | import java.time.format.DateTimeFormatter; 5 | 6 | public class String2Java8LocalDate extends AbstractString2Java8DateConvertor implements DataValueConvertor { 7 | 8 | protected DateTimeFormatter[] availableFormatters() { 9 | return String2Java8Instant.dtfs; 10 | } 11 | 12 | @Override 13 | protected LocalDate convert2Target(DateTimeFormatter formatter, String obj) { 14 | return formatter.parse(obj, LocalDate::from); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/data/convertor/String2Java8YearMonth.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.data.convertor; 2 | 3 | import java.time.YearMonth; 4 | import java.time.format.DateTimeFormatter; 5 | 6 | public class String2Java8YearMonth extends AbstractString2Java8DateConvertor implements DataValueConvertor { 7 | 8 | //@formatter:off 9 | static final DateTimeFormatter[] dtfs = new DateTimeFormatter[] { 10 | DateTimeFormatter.ofPattern("yyyy-MM"), 11 | DateTimeFormatter.ofPattern("yyyyMM"), 12 | }; 13 | //@formatter:on 14 | protected DateTimeFormatter[] availableFormatters() { 15 | return dtfs; 16 | } 17 | 18 | @Override 19 | protected YearMonth convert2Target(DateTimeFormatter formatter, String obj) { 20 | return YearMonth.parse(obj, formatter); 21 | } 22 | 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/interceptor/PageInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.interceptor; 19 | 20 | import com.astamuse.asta4d.render.Renderer; 21 | 22 | public interface PageInterceptor { 23 | 24 | public void prePageRendering(Renderer renderer); 25 | 26 | public void postPageRendering(Renderer renderer); 27 | } 28 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/interceptor/base/Executor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.interceptor.base; 19 | 20 | public interface Executor { 21 | 22 | public void execute(H executionHolder) throws Exception; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/interceptor/base/GenericInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.interceptor.base; 19 | 20 | public interface GenericInterceptor { 21 | 22 | public boolean beforeProcess(H executionHolder) throws Exception; 23 | 24 | public void afterProcess(H executionHolder, ExceptionHandler exceptionHandler); 25 | } 26 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/interceptor/base/GenericInterceptorConvertable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.interceptor.base; 19 | 20 | public interface GenericInterceptorConvertable { 21 | public GenericInterceptor asGenericInterceptor(); 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/render/Renderable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.render; 18 | 19 | /** 20 | * A callback interface that allows delay the rendering logic until the real rendering is required 21 | * 22 | * @author e-ryu 23 | * 24 | */ 25 | @FunctionalInterface 26 | public interface Renderable { 27 | public Renderer render(); 28 | } 29 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/render/RendererTestHelper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.render; 18 | 19 | public class RendererTestHelper { 20 | public static RendererType getRendererType(Renderer renderer) { 21 | return renderer.getRendererType(); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/render/RowRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.render; 18 | 19 | import java.util.function.Function; 20 | 21 | /** 22 | * 23 | * @author e-ryu 24 | * 25 | */ 26 | @FunctionalInterface 27 | public interface RowRenderer extends Function { 28 | 29 | } 30 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/snippet/InitializableSnippet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.snippet; 19 | 20 | public interface InitializableSnippet { 21 | public void init() throws SnippetInvokeException; 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/snippet/SnippetInvoker.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.snippet; 19 | 20 | import com.astamuse.asta4d.render.Renderer; 21 | 22 | public interface SnippetInvoker { 23 | public Renderer invoke(String renderDeclaration) throws SnippetNotResovlableException, SnippetInvokeException; 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/snippet/extract/SnippetExtractor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.snippet.extract; 19 | 20 | import com.astamuse.asta4d.snippet.SnippetDeclarationInfo; 21 | 22 | public interface SnippetExtractor { 23 | public SnippetDeclarationInfo extract(String renderDeclaration); 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/snippet/interceptor/SnippetInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.snippet.interceptor; 19 | 20 | import com.astamuse.asta4d.interceptor.base.GenericInterceptor; 21 | import com.astamuse.asta4d.snippet.SnippetExecutionHolder; 22 | 23 | public interface SnippetInterceptor extends GenericInterceptor { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/snippet/resolve/PriorRenderMethod.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.snippet.resolve; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target(ElementType.METHOD) 10 | public @interface PriorRenderMethod { 11 | 12 | } 13 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/template/TemplateResolver.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.template; 2 | 3 | public interface TemplateResolver { 4 | /** 5 | * 6 | * @param path 7 | * @return 8 | * @throws TemplateException 9 | * error occurs when parsing template file 10 | * @throws TemplateNotFoundException 11 | * template file does not exist 12 | */ 13 | public Template findTemplate(String path) throws TemplateException, TemplateNotFoundException; 14 | } 15 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/ClosureReference.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.util; 2 | 3 | public class ClosureReference { 4 | /** 5 | * This ref is not volatile, which means you should avoid to use it in crossing threads sharing.
6 | * For cross thread sharing, use {@link SyncClosureReference} instead. 7 | */ 8 | public T ref = null; 9 | } 10 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/Java8ParanamerBytecodeScanWrapper.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.util; 2 | 3 | import java.lang.reflect.AccessibleObject; 4 | 5 | import com.thoughtworks.paranamer.BytecodeReadingParanamer; 6 | import com.thoughtworks.paranamer.Paranamer; 7 | 8 | public class Java8ParanamerBytecodeScanWrapper extends BytecodeReadingParanamer { 9 | 10 | public Java8ParanamerBytecodeScanWrapper() { 11 | super(); 12 | } 13 | 14 | @Override 15 | public String[] lookupParameterNames(AccessibleObject methodOrConstructor) { 16 | return lookupParameterNames(methodOrConstructor, true); 17 | } 18 | 19 | @Override 20 | public String[] lookupParameterNames(AccessibleObject methodOrConstructor, boolean throwExceptionIfMissing) { 21 | try { 22 | return super.lookupParameterNames(methodOrConstructor, throwExceptionIfMissing); 23 | } catch (Exception ex) { 24 | return Paranamer.EMPTY_NAMES; 25 | } 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/Java8TimeUtil.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.util; 2 | 3 | import java.time.LocalDateTime; 4 | import java.time.ZoneId; 5 | import java.time.ZoneOffset; 6 | import java.time.ZonedDateTime; 7 | 8 | public class Java8TimeUtil { 9 | 10 | private static final ZoneOffset _defaultZoneOffset; 11 | static { 12 | LocalDateTime ldt = LocalDateTime.now(); 13 | ZonedDateTime zdt = ldt.atZone(ZoneId.systemDefault()); 14 | _defaultZoneOffset = zdt.getOffset(); 15 | } 16 | 17 | public static final ZoneOffset defaultZoneOffset() { 18 | return _defaultZoneOffset; 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/SyncClosureReference.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.util; 2 | 3 | public class SyncClosureReference { 4 | /** 5 | * This ref is volatile, which is necessary for make sure all threads can retrieve the reference after it has been assigned. Further, 6 | * since we will write it once and read it many times in most situations, the cost is payable. 7 | */ 8 | public volatile T ref = null; 9 | } 10 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/annotation/AnnotatedProperty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.util.annotation; 18 | 19 | public @interface AnnotatedProperty { 20 | String name() default ""; 21 | } 22 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/annotation/AnnotationConvertor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.util.annotation; 18 | 19 | import java.lang.annotation.Annotation; 20 | 21 | public interface AnnotationConvertor { 22 | public T convert(S originalAnnotation); 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/collection/ParallelRecursivePolicy.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.util.collection; 19 | 20 | public enum ParallelRecursivePolicy { 21 | EXCEPTION, CURRENT_THREAD, NEW_THREAD 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/collection/RowConvertor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.util.collection; 19 | 20 | 21 | @FunctionalInterface 22 | public interface RowConvertor { 23 | 24 | public T convert(int rowIndex, S obj); 25 | 26 | default public boolean isParallel() { 27 | return false; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/concurrent/ExecutorServiceFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.util.concurrent; 19 | 20 | import java.util.concurrent.ExecutorService; 21 | 22 | public interface ExecutorServiceFactory { 23 | public ExecutorService createExecutorService(); 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/i18n/formatter/MappedValueFormatter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.util.i18n.formatter; 19 | 20 | import java.util.Map; 21 | 22 | public interface MappedValueFormatter { 23 | 24 | public String format(String pattern, Map paramMap); 25 | } 26 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/i18n/formatter/OrderedValueFormatter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.util.i18n.formatter; 19 | 20 | public interface OrderedValueFormatter { 21 | 22 | public String format(String pattern, Object... params); 23 | 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-core/src/main/java/com/astamuse/asta4d/util/i18n/pattern/ResourceBundleFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.util.i18n.pattern; 18 | 19 | import java.util.Locale; 20 | import java.util.ResourceBundle; 21 | 22 | public interface ResourceBundleFactory { 23 | public ResourceBundle retrieveResourceBundle(String baseName, Locale locale); 24 | } -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedRendering_continualSelectAll.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | replacetext 8 |
9 |
10 |
11 | a 12 |
13 |
14 | b 15 |
16 |
17 |
18 | 19 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedRendering_dataRef.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | outerValue 8 |
9 |
10 |
    11 |
  • listParam0
  • 12 |
  • listParam1
  • 13 |
  • listParam2
  • 14 |
15 |
16 |
17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedRendering_pseudoRootRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | t2 7 |
8 |
9 | t3 10 |
11 |
12 |
13 | 1 14 |
test-append 15 |
16 | 2 17 |
test-append 18 |
19 | 3 20 |
test-append 21 |
22 | 23 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedSnippet_deletedNestedSnippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedSnippet_nestedEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

666

6 |
7 |
8 | 3 9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedSnippet_nestedSnippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

666

6 |
7 | 777 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/AdvancedSnippet_overrideRenderMethod.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

child

6 |

child

7 | 8 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ComponentRenderingTest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 |
8 | all 9 |
10 |
11 |
12 |
13 |
14 |
15 | vv 16 |
17 |
18 |
19 |
20 |
21 |
22 | hello 23 |
24 |
25 |
26 | 27 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ContextBindData_nonParallel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 1 7 |
8 |
9 | 1 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ContextBindData_parallel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 1 7 |
8 |
9 | 1 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ExternalizeMessage_DefaultMsg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | weather is: raining 7 |
8 |
9 |
10 | weather is: sunny 11 |
12 |
13 |
14 | weather is: cloud 15 |
16 |
17 |
18 | weather is: cloudy 19 |
20 |
21 | 22 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ExternalizeMessage_SymbolPlaceholder_ja.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tomorrowの天気はsunnyです。 5 |
今日の天気は曇りです。 6 |
明日の天気は雨です。 7 |
今日の天気は曇りです。 8 |
明日の天気は雨です。 9 |
お問い合わせは<a href="https://www.test.com/">こちら</a>まで。 10 |
お問い合わせは 11 | こちらまで。 12 |
html:お問い合わせは<a href="https://www.test.com/">こちら</a>まで。 13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ExternalizeMessage_SymbolPlaceholder_us.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Tomorrow's weather is sunny. 5 |
Today's weather is cloudy. 6 |
明日の天気は雨です。 7 |
Today's weather is cloudy. 8 |
明日の天気は雨です。 9 |
Click <a href="https://www.test.com/">here</a> to contact us. 10 |
Click 11 | here to contact us. 12 |
html:Click <a href="https://www.test.com/">here</a> to contact us. 13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testInstanceDefaultSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | cv-value at context 7 | gv-value 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testInstanceNameSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | cv-value for name replace 7 | gv-value for name replace 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testInstanceScopeSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | cv-value at global 7 | gv-value at global 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testInstanceTypeConvertor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 111 8 | 555 9 | true 10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testMethodDefaultSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | av-value at attr 8 | pv-value at parent 9 | cv-value at context 10 | gv-value 11 |
12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testMethodNameSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | av-value for name replace 7 | cv-value for name replace 8 | gv-value for name replace 9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testMethodScopeSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | av-value at context 8 | pv-value at context 9 | cv-value at global 10 | gv-value at global 11 |
12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Inject_testMethodTypeConvertor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 222 8 | 333 9 | false 10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_listChildReplacing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | BBB:0 8 |
9 |
10 | BBB:1 11 |
12 |
13 | BBB:2 14 |
15 |
16 | BBB:3 17 |
18 |
19 | 20 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_listElementRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | BBB:0 7 | BBB:1 8 | BBB:2 9 | BBB:3 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_listRecursiveRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | aa-0 8 | bb-0 9 |
10 |
11 | aa-1 12 | bb-1 13 |
14 |
15 | aa-2 16 | bb-2 17 |
18 |
19 | aa-3 20 | bb-3 21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_listTextRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | a 8 |
9 |
10 | b 11 |
12 |
13 | c 14 |
15 |
16 | 1 17 |
18 |
19 | 2 20 |
21 |
22 | 3 23 |
24 |
25 | 10 26 |
27 |
28 | 20 29 |
30 |
31 | 30 32 |
33 |
34 | true 35 |
36 |
37 | false 38 |
39 |
40 | false 41 |
42 |
43 | 44 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_parallelStreamRenderingCorrectness.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | a 8 |
9 |
10 | b 11 |
12 |
13 | c 14 |
15 |
16 | d 17 |
18 |
19 | e 20 |
21 |
22 | f 23 |
24 |
25 | g 26 |
27 |
28 | h 29 |
30 |
31 | i 32 |
33 |
34 | j 35 |
36 |
37 | 38 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_parallelStreamRenderingTimeConsuming.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | a 8 |
9 |
10 | b 11 |
12 |
13 | c 14 |
15 |
16 | 17 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/LambdaRendering_renderableRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | xx 8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ParallelTest_parallelListConversionLambda.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | a-sleep 8 |
9 |
10 | b-sleep 11 |
12 |
13 | c-sleep 14 |
15 |
16 | d-sleep 17 |
18 |
19 | 20 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ParallelTest_parallelSnippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | in div 7 |
8 | replace to span 9 |
10 |
11 | xx 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_addOperation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | r-1 7 | r-2 8 | r-3 9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_childReplacing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 |
8 | i am a danymic element 9 |
10 |
11 | xx 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_classAttrSetting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_clearNode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_elementRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | i am a danymic element 7 |
8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_listChildReplacing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | BBB:0 8 |
9 |
10 | BBB:1 11 |
12 |
13 | BBB:2 14 |
15 |
16 | BBB:3 17 |
18 |
19 | 20 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_listElementRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | BBB:0 7 | BBB:1 8 | BBB:2 9 | BBB:3 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_listRecursiveRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | aa-0 8 | bb-0 9 |
10 |
11 | aa-1 12 | bb-1 13 |
14 |
15 | aa-2 16 | bb-2 17 |
18 |
19 | aa-3 20 | bb-3 21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_listTextRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | a 8 |
9 |
10 | b 11 |
12 |
13 | c 14 |
15 |
16 | 1 17 |
18 |
19 | 2 20 |
21 |
22 | 3 23 |
24 |
25 | 10 26 |
27 |
28 | 20 29 |
30 |
31 | 30 32 |
33 |
34 | true 35 |
36 |
37 | false 38 |
39 |
40 | false 41 |
42 |
43 | 44 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_normalAttrSetting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_pseudoRootRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | rendering at pseudo root 7 |
8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_recursiveRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | wow! 8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_renderableRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | xx 8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/Rendering_textRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | Prometheus 8 |
9 | I love this game! 10 | three space here(   ) 11 | 3 > 2 or 3 < 2, it's a question. 12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ResolveTemplateByLocale.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | This is default locale template. 7 |
8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ResolveTemplateByLocale_en.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | This is en locale template. 7 |
8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ResolveTemplateByLocale_ja_JP.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | This is ja_JP locale template. 7 |
8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/SimpleSnippet_AttrConflict.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 5 8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/SimpleSnippet_BasePackage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | bb123 7 |
8 | xx 9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/SimpleSnippet_SnippetInit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | fire-resolved 7 | 1 8 |
9 |
10 | fire-resolved 11 | 1 12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/SimpleSnippet_SnippetTag.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | wow 7 |
8 | xx 9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/SimpleSnippet_StaticEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | embed content 7 |
8 |
9 | statically loaded before snippet being executed 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/SimpleSnippet_TagEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | all 7 |
8 | xx 9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithBodyOnlyAttr.html: -------------------------------------------------------------------------------- 1 |
2 | aaa 3 |
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithBodyOnlyMeta.html: -------------------------------------------------------------------------------- 1 |
2 | aaa 3 |
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithClear.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithComment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | xxx 4 | 5 | 6 |
7 | OK 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | embed content 7 |
8 |
9 | hello 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithEmbedBaseFolder.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | embed content 7 |
8 |
9 | hello 10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithExtension.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | xxx 4 | 6 | 9 | 12 | 15 | 18 | 19 | override body 20 | 21 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithExtensionAndEmbedMerge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | xxx 4 | 6 | 9 | 12 | 15 | 18 | 21 | 24 | 25 | override body 26 |
27 | only me should be included into body 28 |
29 | 30 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithSpecialHeadTags.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | xxx 9 | 10 | 11 |
12 | OK 13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/TemplateWithoutBodyTag.html: -------------------------------------------------------------------------------- 1 |
2 | aaa 3 |
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/confirms/ThreeLevelExtension_Child.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 |
15 | xxx 16 |
17 |
18 | 19 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/named_placeholder_messages.properties: -------------------------------------------------------------------------------- 1 | weatherreport1={date}'s weather is {weather}. 2 | weatherreport2={date}'s weather is {weather}. 3 | weatherreport2.date=Today 4 | weatherreport2.weather=cloudy 5 | weatherreport3={date}'s weather is {weather}. 6 | weatherreport3.date=Tomorrow 7 | weatherreport3.weather=rain 8 | 9 | weatherreport-split#1={date}'s weather 10 | weatherreport-split#2=is {weather}. 11 | 12 | textUrl=Click here to contact us. 13 | htmlUrl=html:Click here to contact us. 14 | escapeUrl=text:html:Click here to contact us. -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/named_placeholder_messages_ja_JP.properties: -------------------------------------------------------------------------------- 1 | weatherreport1={date}\u306e\u5929\u6c17\u306f{weather}\u3067\u3059\u3002 2 | weatherreport2={date}\u306e\u5929\u6c17\u306f{weather}\u3067\u3059\u3002 3 | weatherreport2.date=\u4eca\u65e5 4 | weatherreport2.weather=\u66c7\u308a 5 | weatherreport3={date}\u306e\u5929\u6c17\u306f{weather}\u3067\u3059\u3002 6 | weatherreport3.date=\u660e\u65e5 7 | weatherreport3.weather=\u96e8 8 | 9 | textUrl=\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 10 | htmlUrl=html:\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 11 | escapeUrl=text:html:\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/number_placeholder_messages.properties: -------------------------------------------------------------------------------- 1 | weatherreport1={0}''s weather is {1}. 2 | weatherreport2={0}''s weather is {1}. 3 | weatherreport2.date=Today 4 | weatherreport2.weather=cloudy 5 | weatherreport3={0}''s weather is {1}. 6 | weatherreport3.date=Tomorrow 7 | weatherreport3.weather=rain 8 | 9 | textUrl=Click here to contact us. 10 | htmlUrl=html:Click here to contact us. 11 | escapeUrl=text:html:Click here to contact us. -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/number_placeholder_messages_ja_JP.properties: -------------------------------------------------------------------------------- 1 | weatherreport1={0}\u306e\u5929\u6c17\u306f{1}\u3067\u3059\u3002 2 | weatherreport2={0}\u306e\u5929\u6c17\u306f{1}\u3067\u3059\u3002 3 | weatherreport2.date=\u4eca\u65e5 4 | weatherreport2.weather=\u66c7\u308a 5 | weatherreport3={0}\u306e\u5929\u6c17\u306f{1}\u3067\u3059\u3002 6 | weatherreport3.date=\u660e\u65e5 7 | weatherreport3.weather=\u96e8 8 | 9 | textUrl=\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 10 | htmlUrl=html:\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 11 | escapeUrl=text:html:\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/symbol_placeholder_messages.properties: -------------------------------------------------------------------------------- 1 | weatherreport=Tomorrow's weather is sunny. 2 | weatherreport1=%s's weather is %s. 3 | weatherreport2=%s's weather is %s. 4 | weatherreport2.date=Today 5 | weatherreport2.weather=cloudy 6 | weatherreport3=%s's weather is %s. 7 | weatherreport3.date=Tomorrow 8 | weatherreport3.weather=rain 9 | 10 | textUrl=Click here to contact us. 11 | htmlUrl=html:Click here to contact us. 12 | escapeUrl=text:html:Click here to contact us. -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/symbol_placeholder_messages_ja_JP.properties: -------------------------------------------------------------------------------- 1 | weatherreport=Tomorrow's weather is sunny (ja). 2 | weatherreport1=%s\u306e\u5929\u6c17\u306f%s\u3067\u3059\u3002 3 | weatherreport2=%s\u306e\u5929\u6c17\u306f%s\u3067\u3059\u3002 4 | weatherreport2.date=\u4eca\u65e5 5 | weatherreport2.weather=\u66c7\u308a 6 | weatherreport3=%s\u306e\u5929\u6c17\u306f%s\u3067\u3059\u3002 7 | weatherreport3.date=\u660e\u65e5 8 | weatherreport3.weather=\u96e8 9 | 10 | textUrl=\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 11 | htmlUrl=html:\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 12 | escapeUrl=text:html:\u304a\u554f\u3044\u5408\u308f\u305b\u306f\u3053\u3061\u3089\u307e\u3067\u3002 -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/messages/utf_8_messages_ja_JP.properties: -------------------------------------------------------------------------------- 1 | weatherreport={date}の天気は{weather}です。 -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedRendering_continualSelectAll.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | a 9 | b 10 |
11 |
12 |
a
13 |
b
14 |
15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedRendering_dataRef.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
a
8 |
9 |
  • a
10 |
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedRendering_pseudoRootRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | xxx 8 |
9 | 10 |
11 | yyy 12 |
13 | 14 |
15 | 16 | 17 |
18 |
19 | 20 |
21 | 22 | 23 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedSnippet_deletedNestedSnippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedSnippet_initializingFailed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedSnippet_nestedEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |

7 | 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedSnippet_nestedEmbed_include.html: -------------------------------------------------------------------------------- 1 |
2 |
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedSnippet_nestedSnippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 |

8 | 9 | 10 |
11 |
12 | 13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/AdvancedSnippet_overrideRenderMethod.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |

7 |
8 | 9 |

10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ComponentRenderingTest.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
vv
7 |
8 | 9 |
10 |
vv
11 |
12 | 13 |
14 |
vv
15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ComponentRenderingTest_component.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | xx 7 |
8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ContextBindData_nonParallel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ContextBindData_parallel.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ExternalizeMessage_DefaultMsg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
weather is: {weather}

6 |
weather is: {weather}

7 |
weather is: {weather}

8 |
weather is: {weather}

9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testInstanceDefaultSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testInstanceNameSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testInstanceScopeSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testInstanceTypeConvertor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testMethodDefaultSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testMethodNameSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testMethodScopeSearch.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Inject_testMethodTypeConvertor.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
7 | 8 | 9 | 10 | 11 | 12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_listChildReplacing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | aaa 9 | fasdf 10 |
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_listElementRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_listRecursiveRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | aaa 9 | bbb 10 |
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_listTextRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
xx
9 |
xx
10 |
xx
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_parallelStreamRenderingCorrectness.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_parallelStreamRenderingTimeConsuming.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_removeClassInListRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 |
    9 |
  • 10 | : 11 | 123 12 |
  • 13 |
14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/LambdaRendering_renderableRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ParallelTest_parallelListConversionLambda.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ParallelTest_parallelSnippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 |
xx
12 |
13 | 14 |
15 |
xx
16 |
17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_addOperation.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_childReplacing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | fei nu 8 |
xx
9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_classAttrSetting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_clearNode.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 |
aa
7 |
bb
8 |
bb
9 |
cc
10 |
cc
11 | aa
12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_elementRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | fei nu 8 |
xx
9 |
10 | 11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_listChildReplacing.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | aaa 9 | fasdf 10 |
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_listElementRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_listRecursiveRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | aaa 9 | bbb 10 |
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_listTextRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
xx
9 |
xx
10 |
xx
11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_normalAttrSetting.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_pseudoRootRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 | 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_recursiveRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
8 | ff 9 |
10 |
11 | 12 | 13 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_removeClassInListRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 |
    9 |
  • 10 | : 11 | 123 12 |
  • 13 |
14 | 15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_renderableRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 |
9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/Rendering_textRendering.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 |
xx
8 | 9 | 10 | 11 |
12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ResolveTemplateByLocale.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
This is default locale template.
7 | 8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ResolveTemplateByLocale_en.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
This is en locale template.
7 | 8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ResolveTemplateByLocale_ja_JP.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
This is ja_JP locale template.
7 | 8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/SimpleSnippet_AttrConflict.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 |
8 |
9 |
10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/SimpleSnippet_BasePackage.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | fei nu 8 |
xx
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/SimpleSnippet_SnippetInit.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 |
9 |
10 | 11 | 12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/SimpleSnippet_SnippetTag.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | fei nu 8 |
xx
9 |
10 |
11 | 12 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/SimpleSnippet_StaticEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/SimpleSnippet_TagEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | fei nu 7 |
xx
8 |
9 | 10 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithBodyOnlyAttr.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
aaa
5 | 6 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithBodyOnlyMeta.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
aaa
7 | 8 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithClear.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
6 | 7 |
8 | 9 | xxx 10 | 11 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithComment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | this is a comment and would be removed at last rendering result. 5 | yyy 6 | comment too. 7 | 8 | xxx 9 | 10 | 11 | 12 | this is a comment and would be removed at last rendering result. 13 | 14 | 15 | 16 | 17 | this is a comment and would be removed at last rendering result. 18 | 19 | 20 |
OK
21 | 22 | 23 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithEmbed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithEmbedBaseFolder.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithEmbedNotFound.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithExtension.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | 17 | 18 | override body 19 | 20 | 21 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithExtensionAndEmbedMerge.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | 10 | 13 | 14 | 15 | 16 | override body 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithExtensionAndEmbedMerge_Embed.html: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 11 | 12 | 13 |
only me should be included into body
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithExtension_Parent.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | xxx 4 | 6 | 7 | 10 | 11 | 12 | 13 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithSpecialHeadTags.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 | 9 | this is a comment and would be removed at last rendering result. 10 | yyy 11 | comment too. 12 | 13 | 14 | 15 | 16 | 17 | 18 | xxx 19 | 20 | 21 | 22 | 23 |
OK
24 | 25 | 26 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithSpecialHeadTags_embed.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/TemplateWithoutBodyTag.html: -------------------------------------------------------------------------------- 1 |
aaa
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ThreeLevelExtension_Child.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ThreeLevelExtension_Middle.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 |
xxx
10 |
11 |
12 |
13 | 14 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/ThreeLevelExtension_Parent.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/render/templates/myembed.html: -------------------------------------------------------------------------------- 1 |
2 | embed content 3 |
4 |
5 | hello 6 |
-------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/unit/JDKResourceBundleMessagePatternRetrieverTest.properties: -------------------------------------------------------------------------------- 1 | test=testxxx -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/com/astamuse/asta4d/test/unit/JDKResourceBundleMessagePatternRetrieverTest_KeyNotExisting.properties: -------------------------------------------------------------------------------- 1 | testxxx=testxxx -------------------------------------------------------------------------------- /asta4d-core/src/test/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36}[%line] - %msg%n 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /asta4d-doc/debugCompile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | touch src/docbkx/index.xml 3 | mvn -DprjDocRoot=. docbkx:generate-html@html-singlepage -------------------------------------------------------------------------------- /asta4d-doc/src/docbkx/META/var.ent: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /asta4d-doc/src/docbkx/en/detail_form_flow.xml: -------------------------------------------------------------------------------- 1 | 2 | 10 | details of form flow 11 | To be written. 12 | -------------------------------------------------------------------------------- /asta4d-doc/src/resources/docbkx/css/highlight.css: -------------------------------------------------------------------------------- 1 | /* 2 | code highlight CSS resemblign the Eclipse IDE default color schema 3 | @author Costin Leau 4 | */ 5 | 6 | .hl-keyword { 7 | color: #7F0055; 8 | font-weight: bold; 9 | } 10 | 11 | .hl-comment { 12 | color: #3F5F5F; 13 | font-style: italic; 14 | } 15 | 16 | .hl-multiline-comment { 17 | color: #3F5FBF; 18 | font-style: italic; 19 | } 20 | 21 | .hl-tag { 22 | color: #3F7F7F; 23 | } 24 | 25 | .hl-attribute { 26 | color: #7F007F; 27 | } 28 | 29 | .hl-value { 30 | color: #2A00FF; 31 | } 32 | 33 | .hl-string { 34 | color: #2A00FF; 35 | } -------------------------------------------------------------------------------- /asta4d-doc/src/resources/docbkx/css/manual-multipage.css: -------------------------------------------------------------------------------- 1 | @IMPORT url("manual.css"); 2 | 3 | body.firstpage { 4 | background: url("../images/background.png") no-repeat center top; 5 | } -------------------------------------------------------------------------------- /asta4d-doc/src/resources/docbkx/css/manual-singlepage.css: -------------------------------------------------------------------------------- 1 | @IMPORT url("manual.css"); 2 | 3 | body { 4 | background: url("../images/background.png") no-repeat center top; 5 | } 6 | -------------------------------------------------------------------------------- /asta4d-doc/src/resources/docbkx/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astamuse/asta4d/9273956311941948966555cd3579362a282a1ffa/asta4d-doc/src/resources/docbkx/images/logo.png -------------------------------------------------------------------------------- /asta4d-sample/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/main/resources/BeanValidationMessages_ja.properties=UTF-8 5 | encoding//src/main/resources/messages_ja.properties=UTF-8 6 | encoding//src/test/java=UTF-8 7 | encoding/=UTF-8 8 | -------------------------------------------------------------------------------- /asta4d-sample/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 13 | org.eclipse.jdt.core.compiler.source=1.8 14 | -------------------------------------------------------------------------------- /asta4d-sample/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-sample/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/PageNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.sample; 18 | 19 | public class PageNotFoundException extends RuntimeException { 20 | 21 | /** 22 | * 23 | */ 24 | private static final long serialVersionUID = 1L; 25 | 26 | public PageNotFoundException() { 27 | super(); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/customrule/CustomRuleAfterAddSrc.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.sample.customrule; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | import com.astamuse.asta4d.web.dispatch.mapping.handy.HandyRuleAfterAddSrc; 5 | import com.astamuse.asta4d.web.dispatch.mapping.handy.HandyRuleAfterAttr; 6 | import com.astamuse.asta4d.web.dispatch.mapping.handy.HandyRuleAfterHandler; 7 | 8 | @SuppressWarnings({ "rawtypes", "unchecked" }) 9 | public class CustomRuleAfterAddSrc extends HandyRuleAfterAddSrc, HandyRuleAfterHandler> 10 | implements CustomRuleGroupConfigurable, CustomRuleBuilder { 11 | 12 | public CustomRuleAfterAddSrc(UrlMappingRule rule) { 13 | super(rule); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/customrule/CustomRuleAfterAddSrcAndTarget.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.sample.customrule; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | import com.astamuse.asta4d.web.dispatch.mapping.handy.HandyRuleAfterAddSrcAndTarget; 5 | 6 | public class CustomRuleAfterAddSrcAndTarget extends HandyRuleAfterAddSrcAndTarget 7 | implements CustomRuleGroupConfigurable { 8 | 9 | public CustomRuleAfterAddSrcAndTarget(UrlMappingRule rule) { 10 | super(rule); 11 | } 12 | 13 | } 14 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/customrule/CustomRuleBuilder.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.sample.customrule; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | import com.astamuse.asta4d.web.dispatch.mapping.handy.HandyRuleBuilder; 5 | 6 | @SuppressWarnings("unchecked") 7 | public interface CustomRuleBuilder extends HandyRuleBuilder { 8 | 9 | @Override 10 | default CustomRuleAfterAddSrc buildHandyRuleAfterAddSrc(UrlMappingRule rule) { 11 | return new CustomRuleAfterAddSrc(rule); 12 | } 13 | 14 | @Override 15 | default CustomRuleAfterAddSrcAndTarget buildHandyRuleAfterAddSrcAndTarget(UrlMappingRule rule) { 16 | return new CustomRuleAfterAddSrcAndTarget(rule); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/customrule/CustomRuleGroupConfigurable.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.sample.customrule; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.handy.base.HandyRuleConfigurable; 4 | 5 | public interface CustomRuleGroupConfigurable extends HandyRuleConfigurable { 6 | 7 | default T group(String group) { 8 | configureRule(rule -> { 9 | rule.getExtraVarMap().put("CustomGroup", group); 10 | }); 11 | return (T) this; 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/customrule/CustomRuleInitializer.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.sample.customrule; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRuleInitializer; 4 | 5 | public class CustomRuleInitializer implements UrlMappingRuleInitializer { 6 | @Override 7 | public void initUrlMappingRules(CustomRuleSet rules) { 8 | rules.add("/", "index.html").id("top").group("somegroup"); 9 | rules.add("/index.html").reMapTo("top"); 10 | rules.add("/gohandler").group("handler-group").handler(new Object() { 11 | public void handler() { 12 | System.out.println(""); 13 | } 14 | }).forward("handlerResult.html"); 15 | } 16 | 17 | } 18 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/customrule/CustomRuleSet.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.sample.customrule; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.handy.HandyRuleSet; 4 | 5 | @SuppressWarnings({ "unchecked" }) 6 | public class CustomRuleSet extends HandyRuleSetimplements CustomRuleBuilder { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/forward/LoginFailure.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.sample.forward; 19 | 20 | @SuppressWarnings("serial") 21 | public class LoginFailure extends Exception { 22 | 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/snippet/ExtendSnippet.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.sample.snippet; 18 | 19 | import com.astamuse.asta4d.render.Renderer; 20 | 21 | public class ExtendSnippet { 22 | public Renderer renderTabs(String target) { 23 | return Renderer.create("#" + target, "+class", "active"); 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/java/com/astamuse/asta4d/sample/util/persondb/IdentifiableEntity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.sample.util.persondb; 18 | 19 | public interface IdentifiableEntity extends Cloneable { 20 | 21 | public Integer getId(); 22 | 23 | public void setId(Integer id); 24 | 25 | public Object clone() throws CloneNotSupportedException; 26 | } 27 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/resources/asta4d.conf.properties: -------------------------------------------------------------------------------- 1 | #these two options are configured by Asta4DSampleServlet#createConfiguration to integrate with runtime flag 2 | #cacheEnable=false 3 | #saveCallstackInfoOnRendererCreation=true 4 | 5 | urlMappingRuleInitializer=com.astamuse.asta4d.sample.UrlRules 6 | 7 | snippetExecutorFactory.threadName=asta4d-sample-snippet 8 | snippetExecutorFactory.poolSize=100 9 | 10 | snippetResolver.searchPathList=com.astamuse.asta4d.sample.snippet,com.astamuse.asta4d.sample.sn 11 | 12 | parallelListConvertingExecutorFactory.threadName=asta4d-sample-list 13 | parallelListConvertingExecutorFactory.poolSize=100 14 | 15 | i18nMessageHelper.messagePatternRetriever.resourceNames=messages -------------------------------------------------------------------------------- /asta4d-sample/src/main/resources/messages.properties: -------------------------------------------------------------------------------- 1 | validation.type.name.Integer=integer 2 | validation.type.msg={0} is expected but value "{1}" found 3 | 4 | validation.field.PersonForm.name=expects a string less than 6 characters 5 | 6 | sample.peoplecount=There are(is) {0} people in the room. 7 | 8 | sample.weatherreport=Today''s weather is {0}. 9 | sample.weatherreport.sunny=good 10 | sample.weatherreport.cloudy=not good 11 | sample.weatherreport.rain=bad 12 | 13 | sample.textUrl=Click here to contact us. 14 | sample.htmlUrl=html:Click here to contact us. 15 | sample.escapedUrl=text:html:Click here to contact us. -------------------------------------------------------------------------------- /asta4d-sample/src/main/resources/messages_ja.properties: -------------------------------------------------------------------------------- 1 | validation.type.name.Integer=数字 2 | validation.type.msg={0}を入力してください 3 | 4 | validation.field.PersonForm.name=六文字以下の文字列を入力してください 5 | 6 | sample.peoplecount=この部屋に{0}人がいます。 7 | 8 | sample.weatherreport=今日の天気は{0}です。 9 | sample.weatherreport.sunny=晴れ 10 | sample.weatherreport.cloudy=曇り 11 | sample.weatherreport.rain=雨 12 | 13 | 14 | textUrl=お問い合わせはこちらまで。 15 | htmlUrl=html:お問い合わせはこちらまで。 16 | escapedUrl=text:html:お問い合わせはこちらまで。 -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/layout/common.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
7 | 8 | 11 |

12 | 13 |

14 |
15 | 16 |
17 | 18 |
19 |
20 | 21 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/embed/embedded.html: -------------------------------------------------------------------------------- 1 | 2 |

This is embedded template text.

3 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/embed/embedded_withbody.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

This is embedded template text in a html file with full html structure

9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Asta4D Sample Project 7 | 8 | 9 |

Error Page

10 | 11 |
12 |
13 |

Some error has occurred.

14 |
15 |
16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/errors/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | we extend this page from the common parent because this is an expected action and we know that there is no error. 10 | 11 | 12 | 13 | Asta4D Sample Project - 404 14 | 15 | 16 | The target data does not exist. 17 | 18 |
19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/errors/500.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | we do not extend this page from any existing common parent because we have no idea where the error occurs 6 | but we have to make sure at least this page can be shown correctly. 7 | 8 | There is an error occured. Check the log. 9 |
10 |
11 |
12 | 13 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/extend/appendchild.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
  • This is child template text.
  • 5 |
    6 | 7 | 8 |
    9 |
    10 |
    11 |
    12 | 13 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/extend/insertchild.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
  • This is child template text.
  • 5 |
    6 | 7 | 8 |
    9 |
    10 |
    11 | 12 |
    13 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/extend/overridechild.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 |
  • This is child template text.
  • 5 |
    6 | 7 | 8 |
    9 |
    10 |
    11 | 12 |
    13 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/cascade/comment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
      7 |
    • declare two url rules for separated handlers for add and edit 8 |
    • extend from common form page for steps rather than embeding 9 |
    • cascade form 10 |
        11 |
      • reuse a form POJO across different form flows 12 |
      • handle dynamic length fields(array fields) 13 |
      14 |
    • use @AvailableWhenEditOnly to hide edit operation related DOMs on display mode 15 |
    • exit flow without final complete page 16 |
    • customize global message bar 17 |
    18 | 19 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/cascade/complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Complete 9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/cascade/confirm.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Confirm 9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/cascade/customGlobalMessageBar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 |
    12 |
      13 | 14 |
    15 |
      16 | 17 |
    18 |
      19 | 20 |
    21 |
    22 | 23 | 24 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/multiinput/comment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
      7 |
    • There are two splitted input forms for complicated input scenario
    • 8 |
    • restore values with traceMap in back/edit operation
    • 9 |
    • extra cascading form sample 10 |
        11 |
      • flexible depth of cascading( Form -> Form -> Form )
      • 12 |
      • using the array in array cascading form field( Form -> Form[] -> Form[] )
      • 13 |
      14 |
    • 15 |
    16 | 17 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/multiinput/complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Complete 10 | 11 | 12 | 13 | 14 | 15 | 16 |
    17 | 18 |
    19 |
    20 | 21 | 22 |
    23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/multiinput/customGlobalMessageBar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 |
    12 |
      13 | 14 |
    15 |
      16 | 17 |
    18 |
      19 | 20 |
    21 |
    22 | 23 | 24 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/multistep/btns-complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
    9 | 10 |
    11 | 12 | 13 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/multistep/btns-confirm.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
    9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 | 17 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/multistep/btns-input.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
    9 | 10 | 11 | 12 | 13 | 14 |
    15 | 16 | 17 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/singlestep/btns.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/singlestep/comment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
      7 |
    • declare an url rule for a single input step form 8 |
    • define a common button template file for all the form pages 9 |
    • render option data for select, radio and checkbo by snippet 10 |
    • request handler 11 |
        12 |
      • form initialization 13 |
      • update form data to database 14 |
      • output update result message to default global message bar 15 |
      16 |
    • validation 17 |
        18 |
      • annotate form field on form POJO 19 |
          20 |
        • extend from the entity POJO 21 |
        • customize field name by nameLable of form field annotation 22 |
        23 |
      • annotate bean validation on entity POJO 24 |
      • use default validation message generation mechanism 25 |
      • output validation messages to default global message bar 26 |
      27 |
    28 | 29 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/splittedinput/comment.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |
      7 |
    • There are three input steps. 8 |
    • Utilizing ExcludingFieldRetrievableForm mechanism. 9 |
        10 |
      • The first and second input step share the same form class (split single form into multiple input steps) 11 |
      • The first and second input step share the same html snippet for page rendering. 12 |
      13 |
    • Making use of StepRepresentableForm to specify form rendering target rather the whole form instance itself. 14 |
    • Using StepAwaredValidatableForm and StepAwaredValidationTarget to annotate validation target rather than the form instance itself. 15 |
    16 | 17 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/splittedinput/complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | Complete 10 | 11 | 12 | 13 | 14 | 15 | 16 |
    17 | 18 |
    19 |
    20 | 21 | 22 |
    23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/form/splittedinput/customGlobalMessageBar.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 11 |
    12 |
      13 | 14 |
    15 |
      16 | 17 |
    18 |
      19 | 20 |
    21 |
    22 | 23 | 24 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/snippet-error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | simulate a snippet side error 9 | 10 | 11 |
    dummy text
    12 |
    13 | 14 | -------------------------------------------------------------------------------- /asta4d-sample/src/main/webapp/templates/snippet.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Use Snippet for rendering dynamic page 9 | 10 | 11 | 12 |
    13 |
    14 |
    dummy text
    15 | 16 | 17 |

    name:dummy name

    18 |

    age:0

    19 |
    20 |
    21 |
    22 | 23 | 24 |
    25 | 26 |
    27 | 28 | 29 | -------------------------------------------------------------------------------- /asta4d-sample/src/test/java/.KEEP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astamuse/asta4d/9273956311941948966555cd3579362a282a1ffa/asta4d-sample/src/test/java/.KEEP -------------------------------------------------------------------------------- /asta4d-spring/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/test/java=UTF-8 4 | encoding/=UTF-8 5 | -------------------------------------------------------------------------------- /asta4d-spring/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 13 | org.eclipse.jdt.core.compiler.source=1.8 14 | -------------------------------------------------------------------------------- /asta4d-spring/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /asta4d-spring/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-spring/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-spring/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /asta4d-spring/src/main/java/com/astamuse/asta4d/misc/spring/annotation/Snippet.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.misc.spring.annotation; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.ElementType; 5 | import java.lang.annotation.Retention; 6 | import java.lang.annotation.RetentionPolicy; 7 | import java.lang.annotation.Target; 8 | 9 | import org.springframework.context.annotation.Scope; 10 | import org.springframework.stereotype.Component; 11 | 12 | @Target(ElementType.TYPE) 13 | @Retention(RetentionPolicy.RUNTIME) 14 | @Documented 15 | @Component 16 | @Scope("prototype") 17 | public @interface Snippet { 18 | String value() default ""; 19 | } 20 | -------------------------------------------------------------------------------- /asta4d-spring/src/test/java/.KEEP: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astamuse/asta4d/9273956311941948966555cd3579362a282a1ffa/asta4d-spring/src/test/java/.KEEP -------------------------------------------------------------------------------- /asta4d-web/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | encoding//src/main/java=UTF-8 3 | encoding//src/main/resources=UTF-8 4 | encoding//src/test/java=UTF-8 5 | encoding//src/test/resources=UTF-8 6 | encoding/=UTF-8 7 | -------------------------------------------------------------------------------- /asta4d-web/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled 3 | org.eclipse.jdt.core.compiler.codegen.methodParameters=generate 4 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 5 | org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve 6 | org.eclipse.jdt.core.compiler.compliance=1.8 7 | org.eclipse.jdt.core.compiler.debug.lineNumber=generate 8 | org.eclipse.jdt.core.compiler.debug.localVariable=generate 9 | org.eclipse.jdt.core.compiler.debug.sourceFile=generate 10 | org.eclipse.jdt.core.compiler.problem.assertIdentifier=error 11 | org.eclipse.jdt.core.compiler.problem.enumIdentifier=error 12 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 13 | org.eclipse.jdt.core.compiler.source=1.8 14 | -------------------------------------------------------------------------------- /asta4d-web/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /asta4d-web/.settings/org.eclipse.wst.common.component: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /asta4d-web/.settings/org.eclipse.wst.common.project.facet.core.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/.settings/org.eclipse.wst.validation.prefs: -------------------------------------------------------------------------------- 1 | disabled=06target 2 | eclipse.preferences.version=1 3 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/copyleft/NOTICE: -------------------------------------------------------------------------------- 1 | This package contains some copies from spring framework for using its ant path parser. It originated with Apache License, Version 2.0. Following 2 | is the original License declaration: 3 | 4 | Copyright 2002-2009 the original author or authors. 5 | 6 | Licensed under the Apache License, Version 2.0 (the "License"); 7 | you may not use this file except in compliance with the License. 8 | You may obtain a copy of the License at 9 | 10 | http://www.apache.org/licenses/LICENSE-2.0 11 | 12 | Unless required by applicable law or agreed to in writing, software 13 | distributed under the License is distributed on an "AS IS" BASIS, 14 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 | See the License for the specific language governing permissions and 16 | limitations under the License. -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/RedirectInterceptor.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.web.dispatch; 18 | 19 | public interface RedirectInterceptor { 20 | 21 | public void beforeRedirect(); 22 | 23 | public void afterRedirectDataRestore(); 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/RequestHandlerInvokerFactory.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.dispatch; 19 | 20 | public interface RequestHandlerInvokerFactory { 21 | 22 | public RequestHandlerInvoker getInvoker(); 23 | 24 | } -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/ResultTransformerReorganizer.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping; 2 | 3 | import java.util.List; 4 | 5 | import com.astamuse.asta4d.web.dispatch.request.ResultTransformer; 6 | 7 | public interface ResultTransformerReorganizer { 8 | public List reorganize(List transformerList); 9 | } 10 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/UrlMappingRuleInitializer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.dispatch.mapping; 19 | 20 | public interface UrlMappingRuleInitializer> { 21 | public void initUrlMappingRules(T rules); 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/UrlMappingRuleRewriter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.web.dispatch.mapping; 18 | 19 | public interface UrlMappingRuleRewriter { 20 | public void rewrite(UrlMappingRule rule); 21 | } 22 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/HandyRuleAfterAddSrcAndTarget.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | import com.astamuse.asta4d.web.dispatch.mapping.handy.base.AttrConfigurableRule; 5 | import com.astamuse.asta4d.web.dispatch.mapping.handy.base.HandyRuleBase; 6 | 7 | public class HandyRuleAfterAddSrcAndTarget> extends HandyRuleBase 8 | implements AttrConfigurableRule { 9 | 10 | public HandyRuleAfterAddSrcAndTarget(UrlMappingRule rule) { 11 | super(rule); 12 | } 13 | 14 | } 15 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/HandyRuleAfterAttr.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | import com.astamuse.asta4d.web.dispatch.mapping.handy.base.HandlerConfigurableRule; 5 | 6 | public class HandyRuleAfterAttr, C extends HandyRuleAfterHandler> extends HandyRuleAfterHandler 7 | implements HandlerConfigurableRule { 8 | 9 | public HandyRuleAfterAttr(UrlMappingRule rule) { 10 | super(rule); 11 | } 12 | 13 | /* The following overriding is not necessary but we have to override to address the compile error due to Java's bad type inference ability */ 14 | @Override 15 | public B handler(Object... handlerList) { 16 | return HandlerConfigurableRule.super.handler(handlerList); 17 | } 18 | 19 | } 20 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/HandyRuleAfterHandler.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | import com.astamuse.asta4d.web.dispatch.mapping.handy.base.HandyRuleBase; 5 | import com.astamuse.asta4d.web.dispatch.mapping.handy.rest.JsonSupportRule; 6 | import com.astamuse.asta4d.web.dispatch.mapping.handy.rest.XmlSupportRule; 7 | import com.astamuse.asta4d.web.dispatch.mapping.handy.template.TemplateRuleWithForward; 8 | 9 | public class HandyRuleAfterHandler> extends HandyRuleBase 10 | implements TemplateRuleWithForward, JsonSupportRule, XmlSupportRule { 11 | 12 | public HandyRuleAfterHandler(UrlMappingRule rule) { 13 | super(rule); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/base/HandlerConfigurableRule.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.base; 2 | 3 | import java.util.List; 4 | 5 | import com.astamuse.asta4d.web.util.bean.DeclareInstanceUtil; 6 | 7 | public interface HandlerConfigurableRule> extends HandyRuleConfigurable { 8 | 9 | default T handler(Object... handlerList) { 10 | configureRule(rule -> { 11 | List list = rule.getHandlerList(); 12 | for (Object handler : handlerList) { 13 | list.add(DeclareInstanceUtil.createInstance((handler))); 14 | } 15 | }); 16 | return (T) this; 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/base/HandyRuleBase.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.base; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | 5 | public abstract class HandyRuleBase implements HandyRuleConfigurable { 6 | 7 | protected UrlMappingRule rule; 8 | 9 | public HandyRuleBase(UrlMappingRule rule) { 10 | this.rule = rule; 11 | } 12 | 13 | @Override 14 | public void configureRule(HandyRuleConfigurer configure) { 15 | configure.configure(rule); 16 | } 17 | 18 | } 19 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/base/HandyRuleConfigurable.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.base; 2 | 3 | public interface HandyRuleConfigurable { 4 | public void configureRule(HandyRuleConfigurer configure); 5 | } 6 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/base/HandyRuleConfigurer.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.base; 2 | 3 | import com.astamuse.asta4d.web.dispatch.mapping.UrlMappingRule; 4 | 5 | @FunctionalInterface 6 | public interface HandyRuleConfigurer { 7 | public void configure(UrlMappingRule rule); 8 | } 9 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/rest/JsonSupportRuleHelper.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.rest; 2 | 3 | import com.astamuse.asta4d.web.dispatch.request.ResultTransformer; 4 | import com.astamuse.asta4d.web.dispatch.request.transformer.DefaultExceptionTransformer; 5 | import com.astamuse.asta4d.web.dispatch.request.transformer.DefaultJsonTransformer; 6 | 7 | public class JsonSupportRuleHelper { 8 | 9 | static ResultTransformer registeredTransformer = null; 10 | 11 | static final ResultTransformer FallbackJsonTransformer = new DefaultJsonTransformer(); 12 | 13 | static final ResultTransformer ExceptionTransformer = new DefaultExceptionTransformer(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/rest/JsonSupportRuleSet.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.rest; 2 | 3 | import com.astamuse.asta4d.web.dispatch.request.ResultTransformer; 4 | 5 | public interface JsonSupportRuleSet { 6 | 7 | default void registerJsonTransformer(ResultTransformer transformer) { 8 | JsonSupportRuleHelper.registeredTransformer = transformer; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/rest/XmlSupportRuleHelper.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.rest; 2 | 3 | import com.astamuse.asta4d.web.dispatch.request.ResultTransformer; 4 | import com.astamuse.asta4d.web.dispatch.request.transformer.DefaultExceptionTransformer; 5 | import com.astamuse.asta4d.web.dispatch.request.transformer.DefaultXmlTransformer; 6 | 7 | public class XmlSupportRuleHelper { 8 | 9 | static ResultTransformer registeredTransformer = null; 10 | 11 | static final ResultTransformer FallbackXmlTransformer = new DefaultXmlTransformer(); 12 | 13 | static final ResultTransformer ExceptionTransformer = new DefaultExceptionTransformer(); 14 | 15 | } 16 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/mapping/handy/rest/XmlSupportRuleSet.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.dispatch.mapping.handy.rest; 2 | 3 | import com.astamuse.asta4d.web.dispatch.request.ResultTransformer; 4 | 5 | public interface XmlSupportRuleSet { 6 | 7 | default void registerXmlTransformer(ResultTransformer transformer) { 8 | XmlSupportRuleHelper.registeredTransformer = transformer; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/dispatch/request/ResultTransformer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.dispatch.request; 19 | 20 | public interface ResultTransformer { 21 | public Object transformToContentProvider(Object result); 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/form/CascadeArrayFunctions.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.form; 2 | 3 | 4 | public interface CascadeArrayFunctions { 5 | 6 | public static final int[] EMPTY_INDEXES = new int[0]; 7 | 8 | /** 9 | * Sub classes can override this method to supply a customized array index placeholder mechanism. 10 | * 11 | * @param s 12 | * @param indexes 13 | * @return 14 | */ 15 | default String rewriteArrayIndexPlaceHolder(String s, int[] indexes) { 16 | String ret = s; 17 | for (int i = indexes.length - 1; i >= 0; i--) { 18 | ret = CascadeArrayFunctionsHelper.PlaceHolderSearchPattern[i].matcher(ret).replaceAll("$1\\" + indexes[i] + "$3"); 19 | } 20 | return ret; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/form/CascadeArrayFunctionsHelper.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.form; 2 | 3 | import java.util.regex.Pattern; 4 | 5 | public class CascadeArrayFunctionsHelper { 6 | static final Pattern[] PlaceHolderSearchPattern = new Pattern[100]; 7 | static { 8 | for (int i = 0; i < PlaceHolderSearchPattern.length; i++) { 9 | PlaceHolderSearchPattern[i] = Pattern.compile("(^|.*[^@])(@{" + (i + 1) + "})([^@].*|$)"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/form/field/impl/CheckboxRenderer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.web.form.field.impl; 18 | 19 | public class CheckboxRenderer extends AbstractRadioAndCheckboxRenderer { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/form/flow/base/CommonFormResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.web.form.flow.base; 18 | 19 | public enum CommonFormResult { 20 | SUCCESS, FAILED 21 | } 22 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/form/flow/ext/IncludingFieldRetrievableForm.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.form.flow.ext; 2 | 3 | /** 4 | * Currently this is simple help interface to simplify excluding declaration, thus we do not support cascaded form.We will add the full 5 | * support of cascade form in future. 6 | * 7 | */ 8 | public interface IncludingFieldRetrievableForm extends ExcludingFieldRetrievableForm { 9 | default String[] getExcludeFields() { 10 | return ExcludingFieldRetrievableFormHelper.retrieveExcludingFieldsByIncluding(this.getClass(), getIncludeFields()); 11 | } 12 | 13 | public String[] getIncludeFields(); 14 | } 15 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/form/validation/FormValidator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.web.form.validation; 18 | 19 | import java.util.List; 20 | 21 | public interface FormValidator { 22 | public List validate(Object form); 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/messaging/Asta4dMessage.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.messaging; 19 | 20 | import java.io.Serializable; 21 | 22 | public interface Asta4dMessage extends Serializable { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/messaging/Asta4dMessageListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.messaging; 19 | 20 | public interface Asta4dMessageListener { 21 | 22 | boolean onMessage(String messageid, Asta4dMessage message); 23 | 24 | boolean unregister(String messageid, UnregisterMessage message); 25 | } 26 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/messaging/README: -------------------------------------------------------------------------------- 1 | This package is obsolete and was used to implement some experimental function. 2 | For some reasons, we don't want to remove the sources and then remain them here. -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/sitecategory/SiteCategoryAwaredPathConvertor.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.sitecategory; 2 | 3 | public interface SiteCategoryAwaredPathConvertor { 4 | default String convertCategorySpecifiedPath(String category, String path) { 5 | if (category.isEmpty()) {// category would not be null 6 | return path; 7 | } else { 8 | if (path.startsWith("/")) { 9 | return "/" + category + path; 10 | } else { 11 | return "/" + category + "/" + path; 12 | } 13 | } 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/util/ClosureVarRef.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.util; 2 | 3 | public class ClosureVarRef { 4 | 5 | private T data; 6 | 7 | public ClosureVarRef() { 8 | this.data = null; 9 | } 10 | 11 | public ClosureVarRef(T data) { 12 | this.data = data; 13 | } 14 | 15 | public void set(T data) { 16 | this.data = data; 17 | } 18 | 19 | public T get() { 20 | return this.data; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/util/bean/DeclareInstanceAdapter.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.util.bean; 19 | 20 | public interface DeclareInstanceAdapter { 21 | public Object asTargetInstance(); 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/util/bean/DeclareInstanceResolver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | 18 | package com.astamuse.asta4d.web.util.bean; 19 | 20 | public interface DeclareInstanceResolver { 21 | public Object resolve(Object declaration); 22 | } 23 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/util/data/XmlUtil.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.util.data; 2 | 3 | import java.io.IOException; 4 | import java.io.OutputStream; 5 | 6 | import com.fasterxml.jackson.core.JsonProcessingException; 7 | import com.fasterxml.jackson.dataformat.xml.XmlMapper; 8 | 9 | public class XmlUtil { 10 | // private static final xmlm 11 | private static final XmlMapper mapper = new XmlMapper(); 12 | 13 | public final static void toXml(OutputStream out, Object obj) throws IOException { 14 | mapper.writeValue(out, obj); 15 | } 16 | 17 | public final static String toXml(Object obj) throws JsonProcessingException { 18 | return mapper.writeValueAsString(obj); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /asta4d-web/src/main/java/com/astamuse/asta4d/web/util/message/MessageRenderingHelper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014 astamuse company,Ltd. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | * 16 | */ 17 | package com.astamuse.asta4d.web.util.message; 18 | 19 | import com.astamuse.asta4d.render.Renderer; 20 | 21 | public interface MessageRenderingHelper { 22 | public Renderer createMessageRenderer(); 23 | } 24 | -------------------------------------------------------------------------------- /asta4d-web/src/main/resources/com/astamuse/asta4d/web/util/message/DefaultMessageContainerSnippet.html: -------------------------------------------------------------------------------- 1 |
    2 |
      3 |
    • info-msg-stub 4 |
    5 |
      6 |
    • warn-msg-stub 7 |
    8 |
      9 |
    • err-msg-stub 10 |
    11 |
    -------------------------------------------------------------------------------- /asta4d-web/src/test/java/com/astamuse/asta4d/web/test/initialization/TestMessagePatternRetriever.java: -------------------------------------------------------------------------------- 1 | package com.astamuse.asta4d.web.test.initialization; 2 | 3 | import com.astamuse.asta4d.util.i18n.pattern.JDKResourceBundleMessagePatternRetriever; 4 | 5 | public class TestMessagePatternRetriever extends JDKResourceBundleMessagePatternRetriever { 6 | public String[] getResourceNames() { 7 | return resourceNames; 8 | } 9 | } -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/Hidden.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 |
    11 | 12 | 13 | 14 |
    15 | 16 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/InputDefault.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 |
    11 | 12 | 13 | 14 | 15 | 16 | x 17 | 18 |
    19 | y 20 |
    21 |
    22 | z 23 |
    24 |
    25 | 26 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | data-content 9 | 10 | 123 11 | 12 |
    13 | 14 | 1998 15 |
    16 |
    17 | 18 | 1999 19 |
    20 | 21 |
    22 | 23 | 88 24 |
    25 |
    26 | 27 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_complete_withDisplay.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 | data-content 8 |
    9 |
    10 | 123 11 |
    12 |
    13 | 1998 14 |
    15 |
    16 | 1999 17 |
    18 |
    19 | 88 20 |
    21 |
    22 | 23 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_goToConfirm_withDisplay.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 | data-content 8 |
    9 |
    10 | 123 11 |
    12 |
    13 | 1998 14 |
    15 |
    16 | 1999 17 |
    18 |
    19 | 88 20 |
    21 | 22 |
    23 | 24 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_initInput.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 | 14 |
    15 | 16 |
    17 |
    18 | 19 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_inputWithTypeUnMatchError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 15 |
    16 | 17 |
    18 | 19 |
    20 |
    21 | 22 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_inputWithValueValidationError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 15 |
    16 |
    17 | 18 |
    19 | 20 |
    21 | 22 |
    23 |
    24 | 25 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/MultiStepForm_inputWithoutTraceMap.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 | 14 |
    15 | 16 |
    17 |
    18 | 19 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/OneStepForm_initInput.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 | 14 |
    15 | 16 |
    17 |
    18 | 19 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/OneStepForm_inputWithTypeUnMatchError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 15 |
    16 | 17 |
    18 | 19 |
    20 |
    21 | 22 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/OneStepForm_inputWithValueValidationError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 15 |
    16 |
    17 | 18 |
    19 | 20 |
    21 | 22 |
    23 |
    24 | 25 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/Password.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 |
    11 | 12 | ****** 13 | 14 | ****** 15 | 16 | ****** 17 |
    18 | 19 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/Radio_displayMissingEditTarget.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/confirms/Textarea.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 |
    11 | 13 |
     
    14 |    
    16 |    
     
    17 |    
    19 |    
    x
    20 | 22 | y 23 |
    24 | z 25 |
    26 |
    27 | 28 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Checkbox_duplicatedElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Checkbox_duplicatedElementInDuplicator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 |
    8 | 9 |
    10 |
    11 | 12 |
    13 |
    14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Checkbox_emptyIdElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Checkbox_emptyIdElementInDuplicator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 |
    8 | 9 |
    10 | 11 |
    12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Hidden.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 | 11 |
    12 | 13 | 14 | 15 |
    16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/InputDefault.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 | 11 |
    12 | 13 | 14 | 15 |
    16 |
    17 |
    18 | 19 | 20 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_Base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 15 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_complete.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_complete_withDisplay.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 |
    8 |
    9 | 10 |
    11 |
    12 | 13 |
    14 |
    15 | 16 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_goBack.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_goToConfirm.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_goToConfirm_withDisplay.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 |
    8 |
    9 | 10 |
    11 |
    12 | 13 |
    14 |
    15 | 16 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_initInput.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_inputWithTypeUnMatchError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_inputWithValueValidationError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/MultiStepForm_inputWithoutTraceMap.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/OneStepForm_Base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 |
    13 |
    14 | 15 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/OneStepForm_initInput.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/OneStepForm_inputWithTypeUnMatchError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/OneStepForm_inputWithValueValidationError.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Password.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 |
    10 | 11 |
    12 | 13 | 14 | 15 |
    16 | 17 | 18 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Radio_displayMissingEditTarget.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 |
    8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Radio_duplicatedElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Radio_duplicatedElementInDuplicator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 |
    8 | 9 |
    10 |
    11 | 12 |
    13 |
    14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Radio_emptyIdElement.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 | 8 | 9 | 10 |
    11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Radio_emptyIdElementInDuplicator.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 7 |
    8 | 9 |
    10 | 11 |
    12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Radio_staticOptionDisplay_error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 11 | 12 | 13 | 14 | 15 | 16 | 17 |
    18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/form/templates/Textarea.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | 8 | 10 | 12 |
    13 | 14 |
    15 | 17 | 19 | 21 | 23 |
    24 |
    25 | 26 | 27 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/confirms/DefaultMessageRender_duplicatorOverride.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
      7 |
    • iinnffoo1
    • 8 |
    • iinnffoo2
    • 9 |
    10 |
      11 |
    • warn-1
    • 12 |
    13 |
      14 |
    15 |
    16 |
    17 | warn-2 18 |
    19 |
    20 | err-1 21 |
    22 |
    23 | err-2 24 |
    25 | 26 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/confirms/DefaultMessageRender_existingMsgSelector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 | iinnffoo1 7 |
    8 |
    9 | iinnffoo2 10 |
    11 |
    12 | warn-1 13 |
    14 |
    15 | err-1 16 |
    17 |
    18 | err-2 19 |
    20 |
    21 | err-3 22 |
    23 | 24 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/confirms/DefaultMessageRender_notExistingMsgSelector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
      7 |
    • iinnffoo1
    • 8 |
    • iinnffoo2
    • 9 |
    10 |
      11 |
    • warn-1
    • 12 |
    13 |
      14 |
    • err-1
    • 15 |
    • err-2
    • 16 |
    • err-3
    • 17 |
    18 |
    19 |
    20 |
    21 |
    22 | 23 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/confirms/DefaultMessageRender_someExistingMsgSelector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
      7 |
    • iinnffoo1
    • 8 |
    9 |
      10 |
    • warn-1
    • 11 |
    12 |
      13 |
    • err-2
    • 14 |
    • err-3
    • 15 |
    16 |
    17 |
    18 | iinnffoo2 19 |
    20 |
    21 | err-1 22 |
    23 | 24 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/confirms/DefaultMessageRender_someExistingMsgSelector2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
      7 |
    • iinnffoo1
    • 8 |
    9 |
      10 |
    11 |
      12 |
    • err-1
    • 13 |
    • err-2
    • 14 |
    15 |
    16 |
    17 | iinnffoo2 18 |
    19 | 20 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/templates/DefaultMessageRender_duplicatorOverride.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
      7 |
    • 8 | info-msg-stub 9 |
    10 |
      11 |
    • 12 | warn-msg-stub 13 |
    14 |
      15 |
    • 16 | err-msg-stub 17 |
    18 |
    19 | 20 |
    21 | 22 |
    23 |
    24 | 25 |
    26 |
    27 | 28 |
    29 | 30 | 31 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/templates/DefaultMessageRender_existingMsgSelector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 |
    8 | 9 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/templates/DefaultMessageRender_notExistingMsgSelector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 |
    8 | 9 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/templates/DefaultMessageRender_someExistingMsgSelector.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 |
    8 | 9 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/render/templates/DefaultMessageRender_someExistingMsgSelector2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |
    6 |
    7 |
    8 | 9 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/StaticResourceHandlerTestFile.js: -------------------------------------------------------------------------------- 1 | StaticResourceHandlerTestFile -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/StaticResourceHandlerTestFile_ja.js: -------------------------------------------------------------------------------- 1 | StaticResourceHandlerTestFile_ja -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category1/testTemplate1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category1:testTemplate1 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category1/testTemplate2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category1:testTemplate2 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category2/testTemplate2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category2:testTemplate2 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category2/testTemplate3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category2:testTemplate3 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category3/testTemplate1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category3:testTemplate1 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category3/testTemplate3.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category3:testTemplate3 5 | 6 | -------------------------------------------------------------------------------- /asta4d-web/src/test/resources/com/astamuse/asta4d/web/test/unit/sitecategory/category3/testTemplate4.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | category3:testTemplate4 5 | 6 | -------------------------------------------------------------------------------- /currentVersion: -------------------------------------------------------------------------------- 1 | 1.2.1-SNAPSHOT 2 | -------------------------------------------------------------------------------- /debugcreateSite.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | version=1.1-b1 4 | 5 | copyTo=../asta4d-github-page/1.1-b1 6 | 7 | cp userguide_index.html $copyTo/userguide/index.html 8 | 9 | cp page_index.html $copyTo/index.html 10 | 11 | sed "s/@version/$version/g" $copyTo/userguide/index.html 12 | 13 | sed "s/@version/$version/g" $copyTo/index.html -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | mvn clean deploy -------------------------------------------------------------------------------- /fixVersion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | fixVer=$1 4 | 5 | if [ "fixVer"X = ""X ] 6 | then 7 | cmd=`BASENAME $0` 8 | echo $cmd \ \ 9 | exit 2 10 | else 11 | BASEDIR=$(cd $(dirname $0) && pwd) 12 | cd $BASEDIR 13 | echo $fixVer > currentVersion 14 | mvn versions:set -DnewVersion=$fixVer 15 | cd asta4d-archetype-prototype 16 | mvn versions:set -DnewVersion=$fixVer 17 | fi -------------------------------------------------------------------------------- /page_index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |

    Asta4D @version

    7 |
    8 | 14 | 15 | -------------------------------------------------------------------------------- /startJetty.bat: -------------------------------------------------------------------------------- 1 | set topfolder=%~dp0 2 | mvn %1 test -DskipTests=true -Pjetty-run -------------------------------------------------------------------------------- /startJetty.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | # Base directory for this entire project 6 | BASEDIR=$(cd $(dirname $0) && pwd) 7 | mvn test -DskipTests=true -Pjetty-run 8 | 9 | -------------------------------------------------------------------------------- /userguide_index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 |

    Asta4D @version User Guide

    7 |
    8 | 13 | 14 | --------------------------------------------------------------------------------