0.2 upgrade using book-index.html has an error #2

Closed
datamaskin opened this Issue Aug 6, 2012 · 4 comments

Comments

Projects
None yet
3 participants
@datamaskin

Invocation of the normal Grails index (list) is still generating an empty map: null([])

However, invoking book-index.html directly will display the list and add (+) button.

Adding a book displays an error dialog that I have saved as a screenshot.

OS: Ubuntu 12.04
Grails SDK: 2.0.3
JDK: 1.7.x

@ghost ghost assigned corinnekrych Aug 6, 2012

@corinnekrych

This comment has been minimized.

Show comment
Hide comment
@corinnekrych

corinnekrych Aug 6, 2012

Member

Hello David

For the moment there is no integration with normal scaffolding. I've just added it to the TO DO list. If you click on Author controller you will get the error you described.

I can't reproduce the last error. Could you please email me with your sample project so I'll have a look.

I've just put in github a test project with a step by step explanation. It's a simple example with Author and Book and a many-to-one relationship. If you don't create any author first, it will fail when creating book.
https://github.com/3musket33rs/html5-mobile-scaffolding-test

Cheers
Athos for the 3musket33rs

Member

corinnekrych commented Aug 6, 2012

Hello David

For the moment there is no integration with normal scaffolding. I've just added it to the TO DO list. If you click on Author controller you will get the error you described.

I can't reproduce the last error. Could you please email me with your sample project so I'll have a look.

I've just put in github a test project with a step by step explanation. It's a simple example with Author and Book and a many-to-one relationship. If you don't create any author first, it will fail when creating book.
https://github.com/3musket33rs/html5-mobile-scaffolding-test

Cheers
Athos for the 3musket33rs

@fabricematrat

This comment has been minimized.

Show comment
Hide comment
@fabricematrat

fabricematrat Aug 6, 2012

Member

Hi,

I just wonder what would be for a plugin the best strategy.
Modifying the URL Mapping to add our own index.html
Modifying the index.gsp to point to our new controller
At the end we should aim to have both gsp and mobile scaffolding together as with spring mobile we could build a web site which does serve normal gsp for web browsing on pc and html5 for mobile.
Also there is a strtegy for hybrid mobile wep app to put the html directly package on the phone. Then they will never reside in the web app directory but really on the phone.

Any suggestion would be welcome.

Member

fabricematrat commented Aug 6, 2012

Hi,

I just wonder what would be for a plugin the best strategy.
Modifying the URL Mapping to add our own index.html
Modifying the index.gsp to point to our new controller
At the end we should aim to have both gsp and mobile scaffolding together as with spring mobile we could build a web site which does serve normal gsp for web browsing on pc and html5 for mobile.
Also there is a strtegy for hybrid mobile wep app to put the html directly package on the phone. Then they will never reside in the web app directory but really on the phone.

Any suggestion would be welcome.

@datamaskin

This comment has been minimized.

Show comment
Hide comment
@datamaskin

datamaskin Aug 6, 2012

Hello Athos, thanks for the speedy reply.

Your github contribution posted below will probably answer my concerns.

However, if it is helpful to you I have pushed my version of the
Bookstore demo to github:

https://github.com/pimpedoutgeek/Bookstore

Regards, David.

On 08/06/2012 02:08 PM, corinnekrych wrote:

Hello David

For the moment there is no integration with normal scaffolding. I've just added it to the TO DO list. If you click on Author controller you will get the error you described.

I can't reproduce the last error. Could you please email me with your sample project so I'll have a look.

I've just put in github a test project with a step by step explanation. It's a simple example with Author and Book and a many-to-one relationship. If you don't create any author first, it will fail when creating book.
https://github.com/3musket33rs/html5-mobile-scaffolding-test

Cheers
Athos for the 3musket33rs


Reply to this email directly or view it on GitHub:
#2 (comment)

Hello Athos, thanks for the speedy reply.

Your github contribution posted below will probably answer my concerns.

However, if it is helpful to you I have pushed my version of the
Bookstore demo to github:

https://github.com/pimpedoutgeek/Bookstore

Regards, David.

On 08/06/2012 02:08 PM, corinnekrych wrote:

Hello David

For the moment there is no integration with normal scaffolding. I've just added it to the TO DO list. If you click on Author controller you will get the error you described.

I can't reproduce the last error. Could you please email me with your sample project so I'll have a look.

I've just put in github a test project with a step by step explanation. It's a simple example with Author and Book and a many-to-one relationship. If you don't create any author first, it will fail when creating book.
https://github.com/3musket33rs/html5-mobile-scaffolding-test

Cheers
Athos for the 3musket33rs


Reply to this email directly or view it on GitHub:
#2 (comment)

@corinnekrych

This comment has been minimized.

Show comment
Hide comment
@corinnekrych

corinnekrych Aug 7, 2012

Member

Your github repo sample is empty or I may miss something.

BR,
Corinne alias Athos.

Member

corinnekrych commented Aug 7, 2012

Your github repo sample is empty or I may miss something.

BR,
Corinne alias Athos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment