Can you send the entire stack trace?

On Mon, Jun 29, 2009 at 5:37 PM, Peter Robinett <pe...@bubblefoundry.com>wrote:

>
> In my app I have Datacenters which can have many Nodes. Accordingly, I
> added a foreign key in the Node model to link to its Datacenter.
> However, when I would go to the create or edit pages it would say
> "Can't change" for the field. Based upon an old mailing list post
> (http://groups.google.com/group/liftweb/msg/63523ca1432e7bd7) I added
> the following :
> object datacenter extends MappedLongForeignKey(this, Datacenter) {
>        override def validSelectValues: Box[List[(Long, String)]] = Full
> (Datacenter.findAll.map(d => (d.id.is, d.name.is)))
> }
>
> I now have a select box with the correct values. Great. However, when
> I select a value and hit edit I get an error:
> Message: java.lang.Exception: Do not have permissions to set this
> field
>        net.liftweb.mapper.MappedField$class.set(MappedField.scala:425)
>        net.liftweb.mapper.MappedString.set(MappedString.scala:38)
>
> Any idea what's wrong here? The database tables are correctly
> configured (I'm using MySQL) and I'm running 1.1-SNAPSHOT. Thanks in
> advance for your help.
>
> Peter Robinett
>
> >
>


-- 
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp

--~--~---------~--~----~------------~-------~--~----~
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