问题标签 [isis]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
132 浏览

isis - Apache Isis:@Property(editing = Editing.ENABLED) 不适用于 ViewModel

我向 ViewModel 添加了一个属性,并用 Editing.ENABLED 对其进行了标记。

但是这个字段在 UI 上是不可编辑的: ViewModel 属性 Editing.ENABLED

但它适用于 SimpleObject: 简单的 DomainObj 属性 Editing.Enabled

它是否适用于 ViewModel?也许 ViewModel 不应该有任何属性?

0 投票
1 回答
86 浏览

isis - Apache Isis (v1.14.0):属性在 JAXB 视图模型中不可编辑

我创建了这个 JAXB 视图模型:

但“editableField”属性不可编辑: JAXB 视图模型属性

这个问题与 Apache Isis 有关:@Property(editing = Editing.ENABLED) doesn't work for ViewModels

谢谢你。

0 投票
1 回答
197 浏览

isis - Apache Isis 如何显示值对象

最近,我使用 Apache Isis 构建了我的 DDD 项目。</p>

现在,我有一个实体对象 Customer,我认为 Customer 可能有很多值对象,例如。客户联系信息。


CustomerContactInfomation 只是一个值对象,它不能有任何动作,应该由客户维护。

Customer-CustomerContactInfomation 绝对是 1-1。

现在,我应该如何在 Customer 中显示 CustomerContactInfomation 并能够编辑 CustomerContactInfomation?

0 投票
1 回答
151 浏览

java - Apache Isis:Java 类型映射失败

我对开源 estatio 有一个问题(基于 apache isis 构建)

我首先在 DDL 文件中导出数据库架构。之后,我在 PostgresSQL 9.5 中导入了 DDL 文件。可以启动应用程序。并且可以执行一些夹具。我在“Estatio Demo Fixture”中遇到的问题。在应用程序尝试导入 org.estatio.fixture.financial.BankAccountForAcmeNl 之前,该应用程序似乎导入了一些固定装置。出现以下异常:

堆栈跟踪:

CommunicationChanel 的 id 在 DB 中描述如下: "id int4 NOT NULL DEFAULT nextval('"IncodeCommunications"."CommunicationChannel_id_seq"'::regclass)"

此表的 Id 是为每个插入语句自动创建的。在这种情况下,这不是插入语句,而是没有引用 ID 的查找语句。我的意思是它在 CommunicationChanelOwnerLink 中查找,如果有任何 id 为空白的行。

BigIntRDBMSMapping的这个块代码说,如果值为空(在这种情况下正是如此),那么它将尝试解析之前由 datanucleus 初始化的默认值。在这种情况下,默认值 = "nextvalIncodeCommunications.CommunicationChannel_id_seq::regclass"。此值不能转换为 Long 值。

知道这里到底发生了什么吗?谢谢。

0 投票
1 回答
142 浏览

isis - 如何在 apache isis wicket viewer 中可靠地设置对象布局样式?

我通过复制 module-simple 创建了一个模块。我的一切运作良好。但是,布局不遵循 layout.xml 规范 - 除了重命名文件之外,我没有更改任何内容。这是 SimpleObject 视图。 简单对象视图 这是我的 ZiemObject 视图 - 仅更改了名称。 这是我的缩放对象,具有完全相同的 layout.xml 当我删除 layout.xml 并尝试使用 @MemberOrder(name=..,sequence = .. ) 时,我得到的只是基本对象视图。

我究竟做错了什么?

0 投票
1 回答
137 浏览

javascript - JSON 字符串在 Postman 中被正确解析,但在 JavaScript 中同样失败

这是我传递给 POST 请求的 JSON 字符串:

AngularJS 资源代码是:

但是我收到服务器响应 422(无法处理的实体)错误:

在 Postman 中使用时,相同的 JSON 字符串可以成功运行。

0 投票
2 回答
182 浏览

java - 无法在 Apache isis 石英中注入服务

我在我的 apache isis 项目中使用石英进行调度。我有一个 MyJob 类,它实现了 org.quartz.Job,它有方法 execute,当调度程序在给定时间触发时调用。

我的问题是,我有一个类DemoService,它有一个showDemo()我想从执行方法调用的方法。但是当调度程序运行时,它会在demoService.showDemo().

我无法在该类中注入任何服务。它总是给NPE。如何将服务注入MyJob课程?

这是代码: -

0 投票
1 回答
25 浏览

isis - Incode 平台未能通过集成测试

我已经从 incode 平台创建了快速入门应用程序。构建始终失败。

测试集:domainapp.modules.simple.integtests.tests.SimpleObjectMenu_IntegTest$Create

测试运行:2,失败:0,错误:0,跳过:0,经过时间:0.294 秒 - 在 domainapp.modules.simple.integtests.tests.SimpleObjectMenu_IntegTest$Create

测试集:domainapp.modules.simple.integtests.tests.SimpleObjectMenu_IntegTest$ListAll

测试运行:2,失败:0,错误:1,跳过:0,经过时间:0.021 秒 <<< 失败!- 在 domainapp.modules.simple.integtests.tests.SimpleObjectMenu_IntegTest$ListAll happyCase(domainapp.modules.simple.integtests.tests.SimpleObjectMenu_IntegTest$ListAll) 已用时间:0.007 秒 <<< 错误!java.lang.NoSuchMethodError: org.apache.isis.applib.services.repository.RepositoryService.persist(Ljava/lang/Object;)V at domainapp.modules.simple.integtests.tests.SimpleObjectMenu_IntegTest$ListAll.happyCase(SimpleObjectMenu_IntegTest.java :43)


测试集:domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$DataNucleusId

测试运行:1,失败:0,错误:1,跳过:0,经过的时间:4.782 秒 <<< 失败!- 在 domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$DataNucleusId should_be_populated(domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$DataNucleusId) 已用时间:0.034 秒 <<< 错误!java.lang.NoSuchMethodError: org.apache.isis.applib.services.repository.RepositoryService.persist(Ljava/lang/Object;)V


测试集:domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$DataNucleusVersionTimestamp

测试运行:1,失败:0,错误:1,跳过:0,经过的时间:0 秒 <<< 失败!- 在 domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$DataNucleusVersionTimestamp should_be_populated(domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$DataNucleusVersionTimestamp) 已用时间:0 秒 <<< 错误!java.lang.NoSuchMethodError: org.apache.isis.applib.services.repository.RepositoryService.persist(Ljava/lang/Object;)V


测试集:domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Name

测试运行:2,失败:0,错误:2,跳过:0,经过时间:0 秒 <<< 失败!- 在 domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Name 可访问(domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Name) 已用时间:0 秒 <<< 错误!java.lang.NoSuchMethodError: org.apache.isis.applib.services.repository.RepositoryService.persist(Ljava/lang/Object;)V

not_editable(domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Name) 已用时间:0 秒 <<< 错误!java.lang.NoSuchMethodError: org.apache.isis.applib.services.repository.RepositoryService.persist(Ljava/lang/Object;)V


测试集:domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Title

测试运行:1,失败:0,错误:1,跳过:0,经过的时间:0 秒 <<< 失败!- 在 domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Title interpolatesName(domainapp.modules.simple.integtests.tests.SimpleObject_IntegTest$Title) 已用时间:0 秒 <<< 错误!“测试.txt” 53L、4999C

0 投票
2 回答
40 浏览

isis - 无法登录 Incode 平台

成功构建 Incode 平台后,我无法使用 sven/pass 或任何我能想到的密码组合登录。记录以下错误

org.apache.shiro.authc.DisabledAccountException 在 org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:78) 在 org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568) 在org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180) 在 org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267) 在 org.apache.shiro.authc。 AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198) at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270) at org .apache。org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizo​​r.authenticate(ShiroAuthenticatorOrAuthorizo​​r.java:151) 上的 shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)。 org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:73) 上的 standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:111)。 AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:66) 在 org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:210) 在 org.apache.wicket.authroles.authentication.panel.SignInPanel.access$100 (SignInPanel.java:46) 在 org.apache.wicket。authroles.authentication.panel.SignInPanel$SignInForm.onSubmit(SignInPanel.java:305) 在 org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1313) 在 org.apache.wicket.markup。 org.apache.wicket.markup.html.form.StatelessForm.process(StatelessForm.java:100) 中的 org.apache.wicket.markup.html.form 中的 html.form.Form.process(Form.java:976)。 org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:708) 的 Form.onFormSubmitted(Form.java:797) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 的 sun.reflect。 NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在 java.lang.reflect.Method.invoke(Method.java:498) 在 org.apache.wicket。RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:216) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:241)在 org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:234) 在 org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:895) 在 org.apache .wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) 在 org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265) 在 org.apache.wicket.request.cycle.RequestCycle.processRequest (RequestCycle.java:222) 在 org.apache.wicket.request。cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293)

不知道问题是什么以及我能做些什么来解决它。

0 投票
0 回答
78 浏览

mysql - Apache isis v1.15 repositoryService allInstances 返回不正确的大小

我对 Apache ISIS 很陌生,我想通过带有遗留数据库(MYSQL)的 dataNucleus 获取一个列表,有 300,000 条数据,但是当我尝试使用 repositoryService.allInstances() 方法来获取一个列表,返回列表的大小为 2。我有其他域对象,并且工作正常。这是代码和调试信息。

dataNucleus 调试日志

不知道为什么list的大小是2,不是所有的数据,调试sql可以执行并获取所有的数据。 dataNucleus sql execute 谁能告诉我我应该做什么,