Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » [Neon] CodeType is not found by BEANS.opt()
[Neon] CodeType is not found by BEANS.opt() [message #1715854] Thu, 26 November 2015 16:22 Go to next message
Silvio Kohler is currently offline Silvio KohlerFriend
Messages: 31
Registered: October 2015
Member
I use SmartFields and ListBoxes which use getConfiguredCodeType() to define its content.

After migrating to Eclipse Scout Neon (M3), the content of the SmartFields/ListBoxes is not shown (they are empty).
Reason:
When setting a CodeType for a SmartField/ListBox, the method setCodeTypeClass of AbstractContentAssistField is called. This method calls BEANS.opt(m_codeTypeClass) with the given CodeType class.

In Scout Neon (M3), BEANS.opt(m_codeTypeClass) returns null for a CodeType (instance of AbstractCodeType).

The same code worked on Scout Mars as well as on the "pre"-version of the Scout HTML UI (which was not distributed on eclipse).

Did something change? Do codetypes need a new annotation or similar to work with BEANS?

Or is it a bug?
Re: [Neon] CodeType is not found by BEANS.opt() [message #1715872 is a reply to message #1715854] Thu, 26 November 2015 20:35 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I can reproduce this bug...

This might be also the reason why the RadioGroupBox is broken with M3 (see this thread) and Bug 481995 we have filed.

I will check with the SNAPSHOT version of Scout release/5.2.x branch (you need to have both your app and the scout sources in the same workspace, because snaptshots builds are not published in a maven repo).

[Updated on: Thu, 26 November 2015 20:35]

Report message to a moderator

Re: [Neon] CodeType is not found by BEANS.opt() [message #1715987 is a reply to message #1715872] Mon, 30 November 2015 08:13 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
@Silvio Kohler:
Can you confirm that it works for your with 5.2.0-SNAPSHOT?
Re: [Neon] CodeType is not found by BEANS.opt() [message #1715991 is a reply to message #1715987] Mon, 30 November 2015 08:57 Go to previous messageGo to next message
Silvio Kohler is currently offline Silvio KohlerFriend
Messages: 31
Registered: October 2015
Member
Hi Jeremie

It worked with 5.1.0.R006. It does not work with 5.2.0.M3.

I don't know about 5.2.0-SNAPSHOT. How can I switch to 5.2.0-SNAPSHOT (changing the version in the parent pom does not work)?
Re: [Neon] CodeType is not found by BEANS.opt() [message #1716008 is a reply to message #1715854] Mon, 30 November 2015 13:16 Go to previous messageGo to next message
Judith Gull is currently offline Judith GullFriend
Messages: 75
Registered: February 2010
Member
It was a Bug in the code service, which is now fixed.
CodeTypes do not need a bean annotation.
Re: [Neon] CodeType is not found by BEANS.opt() [message #1716009 is a reply to message #1715991] Mon, 30 November 2015 13:37 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Silvio Kohler wrote on Mon, 30 November 2015 09:57
I don't know about 5.2.0-SNAPSHOT. How can I switch to 5.2.0-SNAPSHOT (changing the version in the parent pom does not work)?


5.2.0-SNAPSHOT is the version at the HEAD of the release/5.2.x in the Git repository.
http://git.eclipse.org/c/scout/org.eclipse.scout.rt.git/

As I told before, there is no maven repository holding the jars of this snapshot version.

You can:
A/
* Checkout the scout RT repo in the same workspace as your application.
* Change the the scout.version in your pom to 5.2.0-SNAPSHOT.

B/
* Checkout the scout RT repo somewhere
* Run "maven clean install" on the Root pom => the version will be stored in your local maven repository
* Change the the scout.version in your pom to 5.2.0-SNAPSHOT.

[Updated on: Mon, 30 November 2015 13:41]

Report message to a moderator

Previous Topic:Neon M3 no Scout perspective
Next Topic:Build problem after moving to Git
Goto Forum:
  


Current Time: Sat Apr 27 01:03:30 GMT 2024

Powered by FUDForum. Page generated in 0.03125 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top