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

  • SEARCH
  • Home
  • 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 7042171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:08:09+00:00 2026-05-28T02:08:09+00:00

I just got the hang of using the Editor framework and am porting over

  • 0

I just got the hang of using the Editor framework and am porting over all my forms to use it. I’m running into some trouble on my Event form. I have 5 different time fields – for each field I use a DateBox to allow the user to select the time.

In my old Activity i converted the values of these fields to Long times, populated my proxy object and persisted it.

I want to do the same thing using the Editor framework. Is there anyway I can use an Editor with a DateBox to populate a Long field in my domain object. I’m sure there’s got to be a way to do this I’m just having trouble figuring it out.

If this is not the case and I just can’t do this for now, does anybody know a good solution for how to do this?

  • 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-05-28T02:08:10+00:00Added an answer on May 28, 2026 at 2:08 am

    You have to wrap the DateBox in an Editor<Long>. Something like:

    @Editor.Ignore
    @UiField
    DateBox dateField;
    
    LeafValueEditor<Long> longField = new LeafValueEditor<Long>() {
        @Override
        public Long getValue() {
            Date date = dateField.getValue();
            return date == null ? null : date.getTime();
        }
        @Override
        public void setValue(Long value) {
            Date date = value == null ? null : new Date(value.longValue());
            dateField.setValue(date);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i just got the hang of using jquery ajax for example, this code sends
Just got a question about generics, why doesn't this compile when using a generic
I just got Delphi 2009 and have previously read some articles about modifications that
I just got a dedicated server from a hosting company, and for some reason,
I just got started with Android and I was wondering how to use listeners
Just got some errors in code, which says the file is being used. What
just got a couple of new PanelPC's running Windows Embedded 2009 that we are
Just got a new website project for my company internal use. The whole website
I just got my storyboard working, now I'm trying to encapsulate all of the
I just got all set up and compiling in Maven with Flex-Mojos, and now

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.