如何在电梯选择元素中设置空值?
我试图在电梯选择元素中设置一个空值(作为首选):
SHtml.select(("", "") :: (MyObject.findAll(By(MyObject.creator, User.currentUser.open_!.id))), ...
但是它给了我这个错误:
error: type mismatch;
found: List[(String, java.lang.Object)]
required: Seq[(String, String)]
有什么想法吗? 谢谢!
I am trying to set an empty value (as a first choice) in a lift select element:
SHtml.select(("", "") :: (MyObject.findAll(By(MyObject.creator, User.currentUser.open_!.id))), ...
However it gives me this error:
error: type mismatch;
found: List[(String, java.lang.Object)]
required: Seq[(String, String)]
Any ideas?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试将其分解为几个步骤。
然后使用该
choices
var 作为SHtml.select
方法的输入。没有什么可以阻止这种方法的发挥作用。Try breaking it up into a few steps.
Then use that
choices
var as input to theSHtml.select
method. There's nothing preventing this approach from working.I82Much 的示例存在编译问题并显示错误。
我修改了他的答案,没有问题。已测试。
定义变量:
然后使用它
Example of I82Much has problems with compiling and shows errors.
I have modified his answer and have no problems. Tested.
define variable:
and then use it