Re: WOLips complains about scala WOElement
Re: WOLips complains about scala WOElement
- Subject: Re: WOLips complains about scala WOElement
- From: Yung-Luen Lan <email@hidden>
- Date: Tue, 20 Sep 2011 12:49:20 +0800
Thanks Marius.
If I want to add support of scala class in WOLips, where should I look
at first?
I've already checkout the WOLips source code but I have no experience
writing Eclipse plugin.
Scala helps me writing more concise code not only shorter but also
error prune. Actor helps for concurrent programming and Option leads
to better API interface that eliminates most null pointer exceptions.
Functional operator gives clear intention rather than fiddling with
loops and counters.
I think WebObjects will get a new life if it leverage the modern
language features and design from scala. Look the Play! framework… :)
Regards,
yllan
On Mon, Sep 19, 2011 at 6:47 PM, Marius Soutier
<email@hidden> wrote:
> That's because WOLips doesn't recognize Scala classes. I think there's no workaround except extending WOLips.
>
> I hope you're not using Scala only to reduce line count :)
>
>
> On 19.09.2011, at 10:51, Yung-Luen Lan wrote:
>
>> Hi,
>>
>> I'm using WOLips stable with Eclipse 3.6 and scala 2.9.0.1 following
>> the WO wiki setup.
>>
>> Scala is amazing. It reduces a lot of LOC which results more concise
>> and clear code. So I gradually rewrite my project using scala, one
>> class at a time.
>>
>> However, Eclipse gives me errors:
>>
>> The class for 'APILogin' is either missing or does not extend
>> WOElement. line 204 WebObjects Template Problems
>>
>> where I write <wo:APILogin /> in html. I can still build with ant but
>> it cause error in eclipse. APILogin is a scala class extends other
>> java ERXComponent's subclass.
>>
>> Is there any way to get rid of this kind of error?
>>
>> Regards,
>> yllan
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>
>
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden