Giter Site home page Giter Site logo

Comments (7)

kevinherron avatar kevinherron commented on June 5, 2024

I'll have to look into whether that should be possible or not. You can write "anything" to a node of type Variant - you just have to encapsulate that anything in a Variant first.

edit: Doh... you probably did that as you wrote the String. I think you're right about this.

from milo.

ctron avatar ctron commented on June 5, 2024

That is what should happen .. at least I think it is.

So on the client side I am doing something like write ( new DataValue ( new Variant ( "String" ) ) )

On the server side it pops up like in the following screenshot:

milo1

So the original value is the DataValue, from there the Variant and then the String.

Or do you mean I should put a Variant inside the Variant?

from milo.

kevinherron avatar kevinherron commented on June 5, 2024

You can't put a Variant in a Variant - I think you're right about this being a bug. I should be able to fix it pretty quickly, but I also want to write some kind of test case for it.

from milo.

ctron avatar ctron commented on June 5, 2024

Yes I just saw that:

checkArgument(clazzIsArray || !Variant.class.equals(componentClazz), "Variant cannot contain Variant");

from milo.

ctron avatar ctron commented on June 5, 2024

Since it currently does block me, I can work on a fix if you like.

from milo.

kevinherron avatar kevinherron commented on June 5, 2024

Sure, in that block you've breakpointed in, you'll need to add a check to see if expected is Variant, and if so, allow the write to proceed.

If you could start a unit test for AttributeWriter that would be good too - you could just test this case for now.

from milo.

ctron avatar ctron commented on June 5, 2024

Alright then ... yes, you are right. A unit test seems to be a good way to start.

from milo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.