Hi juan,

Could you direct these questions to [email protected] mailing list, please, and
I'll answer there.

Thx
Dan

PS: I don't think the apache mailing list servers allow attachments, but
you could always upload eg to imgur.com and provide a hyperlink.




On 23 June 2014 16:16, Juan Martin Buireo <[email protected]> wrote:

> Hi, I am again with the app and I want to do something else. I have the
> following structure of the objects:
> Invoice class : has some properties  and a List<InvoiceProduct>
> InvoiceProduct class: has some properties (such as quantity and a Product )
> Product class: has some properties of the product.
> What I want to do is that when I create an Invoice the value subtotal is
> in 0. And when I start adding products to the invoice the subtotal value
> changes (this is the sum of all products * quantity).
> I tried making only a getter on Invoice class like this:
>
> @MemberOrder(sequence = "6")
>     public double getSubtotal() {
>     double total = 0;
>     if(!products.isEmpty()) {
>     for(InvoiceProduct ip: products) {
>     total += (ip.getQuantity() * ip.getProduct().getPrice());
>     }
>     }
>     return total;
>     }
>
> But after adding items, the subtotal remains 0. What am I doing bad?
> Thanks
> PS: I send the picture of how it is rendered what I do
>
>
> 2014-06-07 2:28 GMT-03:00 Dan Haywood <[email protected]>:
>
>
>>
>> On 6 June 2014 16:14, Juan Martin Buireo <[email protected]> wrote:
>>
>>> Hi, I am finishing an app with Apache Isis. After doing this I have some
>>> things to tell you that would be better for Isis. I think that the
>>> documentation is poor. I think that it needs more examples. Also it would
>>> help a lot if you provide a documentation like Oracle with all methods and
>>> annotations explaining the return parameters and the parameters that
>>> receives. I tell you this because after using Apache Isis (for the first
>>> time), I think it is a great tool and very powerful but due to the lack of
>>> good documentation, easy things sometimes become very difficult to achieve.
>>>
>>
>> Thanks for the feedback.  We're constantly working to improve our
>> documentation, and we always provide help via the [email protected] mailing
>> list (cc'ed).
>>
>> But also, remember this is an open source community.  If you think
>> something can be improved, and you have the time to do so, then please
>> contribute.  Doesn't need to be code... docs also work (as do raising
>> bug/feature requests).  In this way the product gets better for all.
>>
>>
>>
>>> Is there a book of Apache Isis (such as Manning's book Spring in action,
>>> BPM in action , etc)? I am considering using this framework for rapid
>>> application development but I would need something to learn it entirely
>>> better. So if there is any book can you recommend me which one to read?
>>>
>>>
>> There isn't an up-to-date one, no.  Apache Isis has grown from the
>> combination of the original Naked Objects Framework plus a number of
>> "sister" projects that I wrote for a book, Domain Driven Design using Naked
>> Objects Framework (2010).  That book is now out of print, but possible to
>> obtain.  It'll provide useful context even if none of the code in it runs.
>>  See [1]
>>
>> The other book still around is Naked Objects 2002.  That'll give even
>> more insight into some of the original thinking/motivation of the framework.
>>
>> But, as I say, if what you want is up-to-date answers as to how to
>> achieve something, then ask on users@ or look at our documentation page
>> [2]
>>
>> Cheers
>> Dan
>>
>> [1] http://isis.apache.org/intro/learning-more/books.html
>> [2] http://isis.apache.org/documentation.html
>>
>> Thank you
>>> Juan
>>>
>>>
>>> 2014-06-05 1:02 GMT-03:00 Dan Haywood <[email protected]>:
>>>
>>>
>>>>
>>>>
>>>> On 5 June 2014 01:57, Juan Martin Buireo <[email protected]> wrote:
>>>>
>>>>> Thanks again for the quick answer. I have one more question left.
>>>>> About graphics on Isis, does Isis incorporate graphics (like pie charts,
>>>>> flow charts, bar charts, etc)? Or do I have to use an external library? If
>>>>> so, which one would you recommend me?
>>>>>
>>>>
>>>>
>>>>
>>>> http://isis.apache.org/components/viewers/wicket/third-party/danhaywood-isis-wicket-wickedcharts.html
>>>>
>>>> Or you could adapt this code (up on github) to integrate an open source
>>>> one such as JFreeChart.
>>>>
>>>> Cheers
>>>> Dan
>>>>
>>>>
>>>>
>>>>>
>>>>> Thanks again
>>>>> Juan
>>>>>
>>>>>
>>>>>
>>>
>>
>

Reply via email to