Is there already a BindParam implicit for String -> Double? Because if not
maybe you can create one.

On Thu, Oct 29, 2009 at 10:12 AM, Jeppe Nejsum Madsen <je...@ingolfs.dk>wrote:

>
> Hi,
>
> Currently, whenever I need to bind numbers (Int, Double & Decimal) I
> have to call a formatting method to get the correct output (ie. number of
> decimals, thousand separator etc.) like this
>
> bind("lc", in ,
>     "avg_tco" -> formatNumber(res.filteredResult(lc).avgTCO))
>
> I would like to make this formatting implicit, but can't seem to figure
> out how.
>
> If I create an implicit Double => Text, it looks like this is not
> applied to the argument to "->". Since -> is made available due to an
> implicit conversion this may be the reason?
>
> At also looks like it's not possible to override the functionality in
> SuperArrowAssoc unless I implement everything myself.
>
> Any hints to a solution? Bonus points for a way to specify the number of
> decimals :-)
>
> /Jeppe
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to