Hi James.

In order to avoid errors with the programming model conventions you can install 
and uses the following templates on Eclipse:

http://isis.apache.org/getting-started/editor-templates.html

After installing, simply on a class definition enter "is" and press ctrl+space 
to get the list of templates starting with "is" where you will find those 
related to Isis.


Perhaps a link to the Eclipse editor templates could be included on the how-tos 
and QuickStart pages?

Enviado desde mi iPhone

El 12/06/2013, a las 19:14, Dan Haywood <[email protected]> 
escribió:

> Hi James,
> 
> w.r.t to the "default" prefix, I think you are mixing up two different
> things.
> 
> For a property, the prefix is just "default", not "default0" or "default1".
> 
> For an action, the prefix is "default0" (for the 0th param) or "default1".
> 
> Perhaps you could copy-n-paste the entire class so I can see?
> 
> ~~~
> w.r.t  the @Bounded annotation, if you have a compile error then I can only
> assume you are missing an import?
> 
> try replacing with @org.apache.isis.applib.annotation.Bounded, and see what
> happens.
> 
> Let us know how you get on,
> 
> Dan
> 
> 
> 
> On 12 June 2013 10:42, James Agada <[email protected]> wrote:
> 
>> I am trying to use apache isis on a small project to evaluate for my
>> team. I have been trying to set the default for a property value. I trie to
>> put the defaultXX in the domain on=bject or in the domain services object.
>> When I build, i get this error in the integration testing
>> .
>> integtests.repo.ToDoItems_newToDo_and_delete  Time elapsed: 5.781 sec  <<<
>> ERROR!
>> java.lang.RuntimeException:
>> org.apache.isis.core.metamodel.specloader.validator.MetaModelInvalidException:
>> 1: dom.todo.Contract#default0Start has prefix default, has probably been
>> orphaned.  If not an orphan, then rename and use @Named annotation
>> 2: dom.todo.Partytypes#default1newPartytype has prefix default, has
>> probably been orphaned.  If not an orphan, then rename and use @Named
>> annotation
>> 
>> I also have problem using the @Bounded in the domain object definition
>> as it reports a compile time error that symbol not found referring to the
>> Bounded.
>> What could I be doing wrong.?
>> James Agada
>> Managing Director ExpertEdge Software Division of Computer Warehouse Group
>> 14c Kayode Abraham Str, Off Ligali Ayorinde VI, Lagos NIGERIA
>> Mail: [email protected]
>> Tel:  +234 1 7333444 ext 2001
>> Mobile:  +234 8034021268
>> Web:  www.cwlgroup.com
>> 
>> 
>> This email and any attachment thereto are confidential and priviledged.
>> if you have received it in error, please delete immediately and notify the
>> sender. Do not disclose, copy, circulate or in any way use it. The
>> information contained therein is for the address only, if you reply on it,
>> its at your own risk. Emails are not guaranteed to be secure or error free,
>> the message and any attachment could be intercepted, corrupted, lost,
>> delayed, incomplete or ammended. Computer warehouse group and its divisions
>> do not accept liability for damage caused by this email or any attachment.
>> The message you tried to print is protected with Information Rights
>> Management. You don't have the necessary user rights to print the message.
>> 

Reply via email to