Re: isis-wicket-gmap3 version 1.10.0-SNAPSHOT not found
Snaphots are available [1], the 1.9.0 release too [2]. Perhaps the usual cleanup, 'rm -Rf ~/.m2/repository/org/isisaddons/wicket/gmap3; mvn clean install', might bring it back in? [1] http://repository-estatio.forge.cloudbees.com/snapshot/org/isisaddons/wicket/gmap3/isis-wicket-gmap3-cpt/ [2] http://search.maven.org/#artifactdetails%7Corg.isisaddons.wicket.gmap3%7Cisis-wicket-gmap3-cpt%7C1.9.0%7Cjar On 5 November 2015 at 09:05, Stephen Cameronwrote: > Hi Dan, Jeroen, ? > > Has isis-wicket-gmap3 module version 1.10.0-SNAPSHOT been removed from > maven repository on purpose? > > I tried the 1.9.0 version with Isis 1.10.0-SNAPSHOT and don't see anything > appearing on a map as yet. Not sure where to start to fix it as yet. Not a > high priority though. > > Steve Cameron >
tellmeGen
Hello guys!! I hope is going good out there :) I was wondering a little question for you: I am using an tag in the html file with a wicket id and in the java code I have an if/else that if is "if" makes new Image(X, X); and if is "else" makes a new Label(X, X); So, when I use in the html file tag it works with a Label or Image (from java code) and when I use tag it doesn't works with the image created in the java code. I don't know if is a bug or what. I just want to know it! Thanks very much! Regards, Carlos.
Re: tellmeGen
Hi Carlos, It is a bug, but it is in your application ;-) You need different HTML elements depending on a condition, so you cannot use just or without some extra logic. One way to fix this is to use a Fragment or a Panel for each case, i.e. a Fragment for the image and another for the Label. Isis itself uses this approach at https://github.com/apache/isis/blob/db8641628b1aa0f9e69dcd84754df3bc79ef5a4b/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/ScalarPanelTextFieldAbstract.html Another way is to manipulate the component's tag on the fly. Use in your markup and : new Image(...) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.setName("img"); // this is the magic ! } } Greetings to the tellmeGen team! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 5, 2015 at 1:41 PM, carlos.sanchezwrote: > Hello guys!! > > I hope is going good out there :) I was wondering a little question for > you: > > I am using an tag in the html file with a wicket id and in the java > code I have an if/else that if is "if" makes new Image(X, X); and if is > "else" makes a new Label(X, X); > > So, when I use in the html file tag it works with a Label or Image > (from java code) and when I use tag it doesn't works with the image > created in the java code. I don't know if is a bug or what. I just want to > know it! > > > Thanks very much! > > Regards, > Carlos. >
Re: tellmeGen
Thanks you Martin! I will fix it now. I wanted to notify you if it was a bug but I see is fixed :) Greetings from tellmeGen team too!! El 2015-11-05 13:59, Martin Grigorov escribió: Hi Carlos, It is a bug, but it is in your application ;-) You need different HTML elements depending on a condition, so you cannot use just or without some extra logic. One way to fix this is to use a Fragment or a Panel for each case, i.e. a Fragment for the image and another for the Label. Isis itself uses this approach at https://github.com/apache/isis/blob/db8641628b1aa0f9e69dcd84754df3bc79ef5a4b/core/viewer-wicket-ui/src/main/java/org/apache/isis/viewer/wicket/ui/components/scalars/ScalarPanelTextFieldAbstract.html Another way is to manipulate the component's tag on the fly. Use in your markup and : new Image(...) { @Override protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.setName("img"); // this is the magic ! } } Greetings to the tellmeGen team! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Nov 5, 2015 at 1:41 PM, carlos.sanchez
Re: Compuond objects
It is possible to map java domain classes to views instead of tables. Estatio has a couple of examples... perhaps Jeroen could dig out a link for you (I'm typing this on my phone). Alternatively, yes, you could use view models. These then programmatically combine the data. On your particular use case I would inject the repositories for the "backing entities". One point to beat in mind is that Isis will handle view models with collections, it only serializes the state of the view model's properties (the determine the url of the view model). The workaround is to make the collection derived, using @Collection(notPersisted=true), and return is results by requerying the appropriate repository. Again, Estatio has some examples, I think Hth Dan. On 5 Nov 2015 15:16, "Cesar Lugo"wrote: > Hello. I have the need to create some objects that are compound from some > other domain objects (similar to a "view" in a relational database, > updatable views). Let's say I have Business with businessId and name > properties, 1:n to another entity named BusinessLocation with properties > businessLocationId and name and address properties (to keep things simple > for now). So, for example, I need to create a new object that is > BuisinessLocationView, which contains BuinessLocation.id, > BusinessLocation.name, Business.id and Buiness.name . Then, in some cases, > I > want to use such views like BusinessLocationView as a collection within > Business, and as a standalone collection, and also have the ability to > update its fields so the corresponding entities are updated with the > changes > (Business and BusinessLocation), and in some cases even add a new view like > BusinessLocationView so it adds a new BusinessLocation. > > > > Is there a way to do this? Is that what @ViewModel is for? > > > > I would appreciate If you could point me to any sample that might help. > > > > Cesar. > > > > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus >
RE: Compuond objects
In most cases I would prefer the second choice (view models), because I want all domain logic to be applied to the corresponding objects within the view if it gets updated or inserted, which won't happen if I use database views. I will try to find some example in Estatio. I don’t think I understood your last statement about view models and collections, perhaps I will when I dig a little more into this. Cesar. -Original Message- From: Dan Haywood [mailto:d...@haywood-associates.co.uk] Sent: Thursday, November 5, 2015 10:43 AM To: users Subject: Re: Compuond objects It is possible to map java domain classes to views instead of tables. Estatio has a couple of examples... perhaps Jeroen could dig out a link for you (I'm typing this on my phone). Alternatively, yes, you could use view models. These then programmatically combine the data. On your particular use case I would inject the repositories for the "backing entities". One point to beat in mind is that Isis will handle view models with collections, it only serializes the state of the view model's properties (the determine the url of the view model). The workaround is to make the collection derived, using @Collection(notPersisted=true), and return is results by requerying the appropriate repository. Again, Estatio has some examples, I think Hth Dan. On 5 Nov 2015 15:16, "Cesar Lugo"wrote: > Hello. I have the need to create some objects that are compound from > some other domain objects (similar to a "view" in a relational > database, updatable views). Let's say I have Business with businessId > and name properties, 1:n to another entity named BusinessLocation with > properties businessLocationId and name and address properties (to keep > things simple for now). So, for example, I need to create a new object > that is BuisinessLocationView, which contains BuinessLocation.id, > BusinessLocation.name, Business.id and Buiness.name . Then, in some > cases, I want to use such views like BusinessLocationView as a > collection within Business, and as a standalone collection, and also > have the ability to update its fields so the corresponding entities > are updated with the changes (Business and BusinessLocation), and in > some cases even add a new view like BusinessLocationView so it adds a > new BusinessLocation. > > > > Is there a way to do this? Is that what @ViewModel is for? > > > > I would appreciate If you could point me to any sample that might help. > > > > Cesar. > > > > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Re: Compuond objects
Here's an example where a viewmodel uses a database view: https://github.com/estatio/estatio/blob/master/estatioapp/dom/src/main/java/org/estatio/dom/invoice/viewmodel/InvoiceSummaryForInvoiceRun.java On 5 November 2015 at 17:42, Dan Haywoodwrote: > It is possible to map java domain classes to views instead of tables. > > Estatio has a couple of examples... perhaps Jeroen could dig out a link for > you (I'm typing this on my phone). > > Alternatively, yes, you could use view models. These then programmatically > combine the data. > > On your particular use case I would inject the repositories for the > "backing entities". > > One point to beat in mind is that Isis will handle view models with > collections, it only serializes the state of the view model's properties > (the determine the url of the view model). The workaround is to make the > collection derived, using @Collection(notPersisted=true), and return is > results by requerying the appropriate repository. > > Again, Estatio has some examples, I think > > Hth > Dan. > On 5 Nov 2015 15:16, "Cesar Lugo" wrote: > > > Hello. I have the need to create some objects that are compound from some > > other domain objects (similar to a "view" in a relational database, > > updatable views). Let's say I have Business with businessId and name > > properties, 1:n to another entity named BusinessLocation with properties > > businessLocationId and name and address properties (to keep things simple > > for now). So, for example, I need to create a new object that is > > BuisinessLocationView, which contains BuinessLocation.id, > > BusinessLocation.name, Business.id and Buiness.name . Then, in some > cases, > > I > > want to use such views like BusinessLocationView as a collection within > > Business, and as a standalone collection, and also have the ability to > > update its fields so the corresponding entities are updated with the > > changes > > (Business and BusinessLocation), and in some cases even add a new view > like > > BusinessLocationView so it adds a new BusinessLocation. > > > > > > > > Is there a way to do this? Is that what @ViewModel is for? > > > > > > > > I would appreciate If you could point me to any sample that might help. > > > > > > > > Cesar. > > > > > > > > > > > > > > > > --- > > This email has been checked for viruses by Avast antivirus software. > > https://www.avast.com/antivirus > > >
Security module
Hello, I am working with the security module add on (everything 1.9.0), and I am using isisModuleSecurityRealm using in shiro.ini. I tried to access with isis-module-security-admin using pass as the password, but does not let me in. If I change back to ini.Realm then I can access with Sven / pass . I have this in shiro.ini # to use .ini file # securityManager.realms = $iniRealm #to enable isis security module add-on instead isisModuleSecurityRealm=org.isisaddons.module.security.shiro.IsisModuleSecur ityRealm authenticationStrategy=org.isisaddons.module.security.shiro.AuthenticationSt rategyForIsisModuleSecurityRealm securityManager.authenticator.authenticationStrategy = $authenticationStrategy securityManager.realms = $isisModuleSecurityRealm I tried to access with isis-module-security-admin using pass as the password, but does not let me in. If I change back to ini.Realm then I can access with Sven / pass . Cesar. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
RE: Security module
Dan, Does the SeedSecurityModuleService init method get called? I think so, I see how users and roles being seeded in the trace. I just don't see any reference to it in the trace though. If so, does the IsisModuleSecurityRealm get called? Yes, I see it being called in the trace. If so, are there any exceptions in the stack trace? Yes. 11:32:24,103 [ShiroAuthenticatorOrAuthorizor qtp1410986873-18 ERROR] Unable to authenticate org.apache.shiro.authc.DisabledAccountException Here it is the trace: seed-users-and-roles-fixture-script : EXEC org.isisaddons.module.security.seed.SeedUsersAndRolesFixtureScript seed-users-and-roles-fixture-script/global-tenancy : EXEC org.isisaddons.module.security.seed.scripts.GlobalTenancy seed-users-and-roles-fixture-script/global-tenancy/Global : Global seed-users-and-roles-fixture-script/isis-module-security-admin-role-and-permissions : EXEC org.isisaddons.module.security.seed.scripts.IsisModuleSecurityAdminRoleAndPermissions seed-users-and-roles-fixture-script/isis-module-security-fixture-role-and-permissions : EXEC org.isisaddons.module.security.seed.scripts.IsisModuleSecurityFixtureRoleAndPermissions seed-users-and-roles-fixture-script/isis-module-security-regular-user-role-and-permissions : EXEC org.isisaddons.module.security.seed.scripts.IsisModuleSecurityRegularUserRoleAndPermissions seed-users-and-roles-fixture-script/isis-module-security-admin-user : EXEC org.isisaddons.module.security.seed.scripts.IsisModuleSecurityAdminUser seed-users-and-roles-fixture-script/isis-applib-fixture-results-role-and-permissions : EXEC org.isisaddons.module.security.seed.scripts.IsisApplibFixtureResultsRoleAndPermissions 11:32:19,265 [WebApplication main INFO ] [WicketFilter] Started Wicket version 6.17.0 in DEVELOPMENT mode *** WARNING: Wicket is running in DEVELOPMENT mode. *** *** ^^^*** *** Do NOT deploy to your live server(s) without changing this. *** *** See Application#getConfigurationType() for more information. *** 11:32:19,289 [ContextHandler main INFO ] Started o.e.j.w.WebAppContext@62cd562d{/,file:/home/cesar/Development/apps/ps/previserv/webapp/src/main/webapp/,AVAILABLE}{src/main/webapp} 11:32:19,304 [ServerConnector main INFO ] Started ServerConnector@d28c214{HTTP/1.1}{0.0.0.0:8080} 11:32:19,304 [Server main INFO ] Started @12622ms 11:32:19,304 [WebServerBootstrapper main INFO ] Started the application in 11980ms 11:32:23,866 [ClassCryptFactoryqtp1410986873-18 INFO ] using encryption/decryption object org.apache.wicket.util.crypt.SunJceCrypt@294bd80b 11:32:24,103 [ShiroAuthenticatorOrAuthorizor qtp1410986873-18 ERROR] Unable to authenticate org.apache.shiro.authc.DisabledAccountException at org.isisaddons.module.security.shiro.IsisModuleSecurityRealm.doGetAuthenticationInfo(IsisModuleSecurityRealm.java:82) at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568) at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180) at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267) at 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.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256) at org.apache.isis.security.shiro.ShiroAuthenticatorOrAuthorizor.authenticate(ShiroAuthenticatorOrAuthorizor.java:142) at org.apache.isis.core.runtime.authentication.standard.AuthenticationManagerStandard.authenticate(AuthenticationManagerStandard.java:122) at org.apache.isis.viewer.wicket.viewer.integration.wicket.AuthenticatedWebSessionForIsis.authenticate(AuthenticatedWebSessionForIsis.java:78) at org.apache.wicket.authroles.authentication.AuthenticatedWebSession.signIn(AuthenticatedWebSession.java:65) at org.apache.wicket.authroles.authentication.panel.SignInPanel.signIn(SignInPanel.java:218) at org.apache.wicket.authroles.authentication.panel.SignInPanel.onConfigure(SignInPanel.java:129) at org.apache.wicket.Component.configure(Component.java:1041) at org.apache.wicket.Component.internalBeforeRender(Component.java:926) at
Re: Security module
Does the SeedSecurityModuleService init method get called? If so, does the IsisModukeSecurityRealm get called? If so, are there any exceptions in the stack trace? On 5 Nov 2015 16:20, "Cesar Lugo"wrote: > Hello, I am working with the security module add on (everything 1.9.0), and > I am using isisModuleSecurityRealm using in shiro.ini. I tried to access > with isis-module-security-admin using pass as the password, but does not > let > me in. If I change back to ini.Realm then I can access with Sven / pass . > > > > I have this in shiro.ini > > > > # to use .ini file > > # securityManager.realms = $iniRealm > > > > > > #to enable isis security module add-on instead > > > isisModuleSecurityRealm=org.isisaddons.module.security.shiro.IsisModuleSecur > ityRealm > > > > > authenticationStrategy=org.isisaddons.module.security.shiro.AuthenticationSt > rategyForIsisModuleSecurityRealm > > securityManager.authenticator.authenticationStrategy = > $authenticationStrategy > > > > securityManager.realms = $isisModuleSecurityRealm > > > > > > I tried to access with isis-module-security-admin using pass as the > password, but does not let me in. If I change back to ini.Realm then I can > access with Sven / pass . > > > > Cesar. > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus >
security module not filtering maps or summaries
Hello, I found this using security module add on in combination with gmap3 add on and WicketCharts add on: In the wicket viewer, when I show tenanted entities, all entities in a collection (either parented or standalone) are filtered just fine when shown in a table, but when you switch to map view or summary chart view, all data is shown (not filtered by tenancy). I haven't tried with Excel module yet. I think this might be either a bug or a functionality to be added. Cesar. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus
Re: Course of Interest
topical article: https://www.linkedin.com/pulse/why-sql-right-querying-json-kurt-cagle On Tue, Nov 3, 2015 at 10:09 PM, Stephen Cameronwrote: > Also relevant to the discussion I think, 'dynamic' classes generated from > metadata. > > > http://www.eclipse.org/eclipselink/documentation/2.4/moxy/dynamic_jaxb001.htm > > On Tue, Nov 3, 2015 at 9:56 PM, Stephen Cameron < > steve.cameron...@gmail.com> wrote: > >> I cannot help much there, but looking about myself I see that some are >> using Neo4j to visualise ontologies [1]. >> >> In terms of building applications using linked data as the foundation, I >> have come across Callimachus [2], but no experience as yet. >> >> My interest has come from the database and data management side, more >> than the business application side. In that respect I know that linked data >> is starting to take off and those that I respect like it alot [3][4]. >> >> I would say the best ontologies are in the medical realm. a quick search >> results in [5] >> >> [1] https://github.com/SciGraph >> [2] http://callimachusproject.org/ >> [3] http://www.marklogic.com/what-is-marklogic/features/semantics/ >> [4] >> http://blogs.avalonconsult.com/blog/search/semantics-search-marklogic-7-gets-rdf/ >> [5] https://github.com/OGMS/ogms >> >> On Tue, Nov 3, 2015 at 9:15 PM, Dan Haywood > > wrote: >> >>> was just poking around for an example ontology that one might play >>> with... >>> the BBC looks like a good bet [1]. >>> >>> I suspect that there's some way to access the semantic web that drives >>> its >>> web pages in a machine processable form. This guy [2] seems to have >>> published some useful stuff in this area (works for the Beeb). >>> >>> Dan >>> >>> [1] http://www.bbc.co.uk/ontologies/bbc >>> [2] http://raimond.me.uk/pubs/ >>> >>> >>> On 3 November 2015 at 02:16, Stephen Cameron >> > >>> wrote: >>> >>> > On Tue, Nov 3, 2015 at 11:24 AM, Dan Haywood < >>> d...@haywood-associates.co.uk >>> > > >>> > wrote: >>> > >>> > > On 2 November 2015 at 23:27, Stephen Cameron < >>> steve.cameron...@gmail.com >>> > > >>> > > wrote: >>> > > >>> > > > >>> > > > What relevance of this too Apache Isis? Well you nearly got it >>> straight >>> > > > off, that the Isis meta-model is a model that maybe can be >>> exported as >>> > > OWL. >>> > > > I don't think so as its more of logical model than a conceptual >>> one. I >>> > am >>> > > > thinking the other way around, that a conceptual model in OWL, or >>> > > something >>> > > > else, could be the basis of the Isis meta-model. >>> > > > >>> > > > >>> > > > Also very interesting. I think this would be doable... further >>> > thoughts >>> > > below. >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > > The thing that led me to Isis was that half of this picture is >>> already >>> > > > done, the model to UI part, I thought maybe I could add the other >>> half >>> > > > (person to model)? >>> > > >>> > > >>> > > Yes, perhaps... >>> > > >>> > > Now that we have view models as first-class citizens, I could >>> imagine an >>> > > Isis application where every semantic resource could be surfaced as >>> an >>> > view >>> > > model (@DomainObject(nature=EXTERNAL_ENTITY) is probably how I would >>> > model >>> > > it). >>> > > >>> > > Or, an alternative would be treat them as regular persisted entities >>> via >>> > > DataNucleus, and use DN's Store API to know how to query a semantic >>> web >>> > of >>> > > resources. However, that's one extra layer to worry about which may >>> or >>> > may >>> > > not work. Sticking with Isis view models is probably easier. >>> > > >>> > > >>> > > >>> > >>> > > >>> > > >>> > > >>> > > > Also the meta-model in Isis is a OO model, which is >>> > > > nearly what you want perhaps? >>> > > >>> > > >>> > > >>> > > As you know, the way in which Isis builds up its metamodel is quite >>> > > flexible (the FacetFactory API).In Isis' default programming >>> model >>> > > there is a "special" FacetFactory called >>> > > "PropertyOrCollectionIdentifyingFacetFactory" that is used to infer >>> the >>> > > initial "know-what" structure of each domain class. I could imagine >>> a >>> > > similar facet factory for the semantic web that queried the OWL >>> metamodel >>> > > (?) to ask which triples exist for a particular resource. >>> > > >>> > > >>> > > >>> > >>> > > >>> > > > That is what I want to get a handle on via >>> > > > this course. >>> > > > >>> > > > >>> > > Good stuff; will hear back presently no doubt! >>> > > >>> > > Thx >>> > > Dan >>> > > >>> > > >>> > > Encouraging, I have browsed around in the meta-model code, but very >>> > casually! >>> > >>> > I am hoping that others might like to work through a design on this >>> mailing >>> > list, hence my suggestion of doing the course, so we are all on the >>> same >>> > page (mostly) at the start. >>> > >>> > Open-source CMS systems have gone down the semantic path a bit, such as >>> >
Re: security module not filtering maps or summaries
That is addressed in 1.10.0-SNAPSHOT. On 5 Nov 2015 6:05 pm, "Cesar Lugo"wrote: > Hello, I found this using security module add on in combination with gmap3 > add on and WicketCharts add on: > > > > In the wicket viewer, when I show tenanted entities, all entities in a > collection (either parented or standalone) are filtered just fine when > shown > in a table, but when you switch to map view or summary chart view, all data > is shown (not filtered by tenancy). I haven't tried with Excel module yet. > > > > I think this might be either a bug or a functionality to be added. > > > > Cesar. > > > > > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus >
Compuond objects
Hello. I have the need to create some objects that are compound from some other domain objects (similar to a "view" in a relational database, updatable views). Let's say I have Business with businessId and name properties, 1:n to another entity named BusinessLocation with properties businessLocationId and name and address properties (to keep things simple for now). So, for example, I need to create a new object that is BuisinessLocationView, which contains BuinessLocation.id, BusinessLocation.name, Business.id and Buiness.name . Then, in some cases, I want to use such views like BusinessLocationView as a collection within Business, and as a standalone collection, and also have the ability to update its fields so the corresponding entities are updated with the changes (Business and BusinessLocation), and in some cases even add a new view like BusinessLocationView so it adds a new BusinessLocation. Is there a way to do this? Is that what @ViewModel is for? I would appreciate If you could point me to any sample that might help. Cesar. --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus