简体   繁体   中英

Unable to resolve class LocalTime grails

I need realize a time input in my Grails application. I've downloaded joda-plugin for it. But when I want test it, writing a such string from doc example: <joda:timePicker name="myTime" value="${new LocalTime()}" precision="second" /> , I get such error: Unable to resolve class LocalTime How to fix it?

You need to import the class in your GSP to be able to use it.

Add

<%@ page import="org.joda.time.LocalTime" %>

at the top of your page.

Alternatively, use a fully qualified class reference in your <joda:timePicker> tag.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM