Re: Accessing to two (or more) relational databases at the same time

2015-06-05 Thread Vladimir Nišević
Hi Dan, yes, I have created two domain services representing/managing connections to those two databases. On PostConstrunct of each of them I create two Datanucleus PersistenceManagerFactories and the domain service methods use appropriate Dao's creating the PersistenceManager and managing the t

Error when building todoapp

2015-06-05 Thread James Agada
I am trying to build the today but I am getting this error 18:40:20,299 [DatastoreThread-12 ERROR] Error thrown executing CREATE TABLE isissettings."UserSetting" ( "key" NVARCHAR(128) NOT NULL, "user" NVARCHAR(50) NOT NULL, "description" NVARCHAR(254) NULL, "type" NV

Re: Accessing to two (or more) relational databases at the same time

2015-06-05 Thread Dan Haywood
Hi Vladimir, sorry no-one ever got back to you on this... did you come up with a solution? otherwise, I have some thoughts... Cheers Dan On 21 May 2015 at 05:51, Vladimir Nišević wrote: > Hi guys, we have a situation where we need to access to two(or more) oracle > and one ms-sql database an

Re: Validate method not working

2015-06-05 Thread Dan Haywood
Hi Gabriel, as Vladimir says, that validatePrice(...) is only fired when the property itself is edited. And, as he also says, one solution is to add a validateXxx method for the action, eg: public String validate1NewCategory() { return price >= 0? null : "The price must not be negative!"; }

Re: Caching Actions by simply using an annotation (param)

2015-06-05 Thread GESCONSULTOR - Óscar Bou
Hi, Dan. I’m planning on implement this. I’ve just created a Jira ticket [1]. Please, can you review and comment my implementation proposal? Thanks! Oscar [1] https://issues.apache.org/jira/browse/ISIS-1157 > El 10/5/2015, a las 17:25, G

Re: create new object with mandaory properties, best method

2015-06-05 Thread Dan Haywood
Hi Steve, The short answer is that Isis does not support this use case. The longer answer is that earlier versions of Isis - going back to when it was Naked Objects for Java - did support the use case. But supporting it adds a lot of complexity into the framework for very little benefit. Since

create new object with mandaory properties, best method

2015-06-05 Thread Stephen Cameron
Hi, *I am using the Isis Wicket viewer for a demo application.* I have a scenario where I wish to create a new object with mandatory properites, the simpleapp demo shows how to initialise an object via an action on the repository which is done with one form, then when you access the new object la