Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8487677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:18:57+00:00 2026-06-10T21:18:57+00:00

I have the following domain classes in my app class Video { private Image

  • 0

I have the following domain classes in my app

class Video {
    private Image image;
}

class Image {
    private final Map<ImageType, ImageAsset> images 
}

class ImageAsset {
    Url href;
}

enum ImageType {
   S1, S2, S3;
}

So basically a Video has 1 Image which has N ImageAssets – which are mapped by ImageType.

In my Spring MVC form – I bind it to the Video object in the Model:

<form:form commandName="video">

One of the fields of the form needs to be bound to the href field of a given ImageAsset. I would have expected to do it thus:

<form:imput path="image.images[S1].href" />

but this returns the error:

Invalid property 'image.images[S1].href' of bean class [Image]

removing the “href” from the expression returns something – I think its an ImageAsset, but I cannot access anymore properties form there.

How do I bind this form field to the href property of ImageAsset?

Thanks –

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T21:18:58+00:00Added an answer on June 10, 2026 at 9:18 pm

    Avja Zelur found solution himself:

    ImageAsset didn’t conform to the JavaBean spec. Sorted!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a structure with the following domain classes: class Service{ static hasMany=[serviceRequirements:ServiceRequirement]} And
Suppose you have the following domain classes class User { static hasMany = [books:Book]
i have the following (simplified) domain classes class Filter { String name static hasMany
In my domain model I have following Classes.A 'UserProfile' has one 'SecurityPrincipal' class SecurityPrincipal{
I have two basic domain classes: public class Event { private Long id; private
I am using Grails 1.3.7, and have the following domain classes: package com.fxpal.test class
Let's say I have the following hierarchy of domain classes. class School { String
I have the following domain classes: Holiday : class Holiday { String justification User
I have the following relationship between two domain classes: class Emp { String name
I have a project which it's domain contain following classes: Courier Customer Food Order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.