I'm trying to register a custom FormBuilderLocator for a generic type.
Boot.scala has this
LiftRules.prependGlobalFormBuilder(FormBuilderLocator[FormValue[CaseNo]]((value,
setter) =>
SHtml.text(value.asString, s => setter(new FormValue[CaseNo](s)))))
My screen object has this
val caseNo = field("Case No", new FormValue[CaseNo], valConversion)
The part that I don't understand is that the FormBuilderLocator is
registered under the string key
gov.wicourts.jdash2.form.FormValue[gov.wicourts.jdash2.lib.CaseNo]
but vendForm() is looking for a FormBuilderLocator under the string key
gov.wicourts.jdash2.form.FormValue[_ <: gov.wicourts.jdash2.lib.CaseNo]
The other odd thing is that FormValue[String] works fine. I thought
maybe this was because String is final, but that doesn't seem to
matter.
Does anybody have any ideas how to make this work?
Thanks much,
Pete
Hi all,
I'm trying to register a custom FormBuilderLocator for a generic type.
Boot.scala has this
LiftRules.prependGlobalFormBuilder(FormBuilderLocator[FormValue[CaseNo]]((value,
setter) =>
SHtml.text(value.asString, s => setter(new FormValue[CaseNo](s)))))
My screen object has this
val caseNo = field("Case No", new FormValue[CaseNo], valConversion)
The part that I don't understand is that the FormBuilderLocator is
registered under the string key
gov.wicourts.jdash2.form.FormValue[gov.wicourts.jdash2.lib.CaseNo]
but vendForm() is looking for a FormBuilderLocator under the string key
gov.wicourts.jdash2.form.FormValue[_ <: gov.wicourts.jdash2.lib.CaseNo]
The other odd thing is that FormValue[String] works fine. I thought
maybe this was because String is final, but that doesn't seem to
matter.
Does anybody have any ideas how to make this work?
Thanks much,
Pete
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.
Pete
Pete
Oh, do you still want a sample project and issue for this (which I'm
happy to provide if you want)?
Pete
On Fri, Apr 15, 2011 at 6:24 PM, David Pollak
In any case, ticket is here
Pete
Hmm... sorry if this comes through twice, but I would have expected
this to have shown up by now.