Hi

I have 2 domain objects objectA and object.  I can persist objectA and from 
objectA screen the control is returned to objectB domain screen.

On objectB form, the screen displays the domain properties.  However the screen 
also displays the title/header as "General" and a "Edit" button.

I have 2 issues. One is after editing the form of objectB, the form is not 
persisted.  The other thing is I want to replace the title of "General" and the 
"Ok" button on the screen to some defined values.

Please can anyone provide guidance on these issues.

Thanks in advance.
Dharmesh

From: Dan Haywood [mailto:[email protected]]
Sent: Saturday, December 28, 2013 11:02 PM
To: Chohan, Dharmesh
Cc: users
Subject: Re: ISIS Newbie

Hi Dharmesh,
... just to say again, I've replied to your questions below, but also have 
cc'ed the [email protected]<mailto:[email protected]> mailing list.  
However, in the future could you please subscribe to the users mailing list 
(send blank email to 
[email protected]<mailto:[email protected]>) and 
ask questions that way rather than mailing me directly.
Thanks
Dan

On 24 December 2013 10:23, Chohan, Dharmesh 
<[email protected]<mailto:[email protected]>> wrote:
Hi Dan

Thanks for your email.  I have gone through the relevant links you provided and 
am still struggling to start prototyping a project.  Here are my specific 
questions.


1.       Starting a clean project what is the Maven command to create a 
template.  I have run the quick start and the simple app.
mvn archetype:generate -D archetypeGroupId=org.apache.isis.archetype -D 
archetypeArtifactId=??? -D archetypeVersion=1.3.1 -D groupId=my.company -D 
artifactId=TopUp -D version=1.0-SNAPSHOT -B


2.       What is the minimum implementation requirement to create a domain 
object.

The dom.simple.SimpleObject class *is* an example of a domain class.    Try 
renaming this class (eg to Customer), renaming its properties, and then adding 
in new properties as you require.

To instantiate and persist and instance of this class, you can use 
dom.simple.SimpleObjects, which is the registered domain service that acts as a 
factory and repository for the SimpleObject entity.  Try renaming this class to 
match the entity name (eg to Customers).  (If you do rename, then also change 
isis.properties config file in WEB-INF).


3.       This is what I am trying to achieve,
Show a text label
Show a fixed value field non editable
Show a text input field

Example

Enter your card number* (the last 12 digits only)


[cid:[email protected]]


[cid:[email protected]]





Fixed


Isis' viewers provide a default representation of every property, and at the 
moment this renders the label to the left of the field.

I suggest you focus on the domain entity's properties, and worry less about how 
it represented.  Later on, we can get into how to customize the viewer if 
required.





I am also trying to disable the integration tests but they seem to be running 
when I do the "mvn clean install".  I have closed the integration project and 
renamed the myapp-dom > src/test/java to /src/test/javaMOVED


What you've done will disable the unit tests.  To disable/ignore the 
integration tests, you need to exclude the myapp-integtests module.  You can do 
this by opening up the parent pom.xml (myapp/pom.xml), locate the <modules> 
section, and remove/comment out the <module>integtests</module> line.

Cheers
Dan



Thanks
Dharmesh



From: Dan Haywood 
[mailto:[email protected]<mailto:[email protected]>]
Sent: Monday, December 23, 2013 12:49 PM
To: users; Chohan, Dharmesh
Subject: Re: ISIS Newbie

Hi Dharmesh,

Thanks for trying out Isis.  Before you go any further, could you subscribe to 
the users ML (send blank email to 
[email protected]<mailto:[email protected]>)?  I'm 
replying here directly to you as well, but otherwise you'll miss any other 
replies.

To answer your questions...

On 23 December 2013 12:02, Chohan, Dharmesh 
<[email protected]<mailto:[email protected]>> wrote:

Is there a documentation or

The documentation is all on [1], which - if you've gone through the quickstart 
- you've probably gone discovered already.


step by step guide for ISIS?

Lots of places you can look.  (These are all linked from the documentation page 
[1]):
* the screenshots tutorial [2]
* the tutorial app I presented at a conference [3] (this is in github, has 22 
separate tags for each of the steps, so is possibly closest to what you are 
after)
* the applib programmers guide [4]
* the Estatio app [5,6] ... this is an open source app that Jeroen (one of the 
other Isis committers) and I are working on; shows you what an Isis app looks 
like "in real life".

HTH
Dan


[1] http://isis.apache.org/documentation.html
[2] http://isis.apache.org/getting-started/screenshots.html
[3] https://github.com/danhaywood/rrraddd-isis-131
[4] http://isis.apache.org/applib-guide/about.html
[5] http://isis.apache.org/getting-started/powered-by.html
[6] https://github.com/estatio/estatio



Thanks
Dharmesh


Reply via email to