Fwd: Re: Getting started with Bootstrap

22 views
Skip to first unread message

Peter Petersson

unread,
Dec 6, 2012, 3:49:48 PM12/6/12
to dbsc...@googlegroups.com



-------- Original Message --------
Subject: Re: Getting started with Bootstrap
Date: Thu, 06 Dec 2012 21:48:55 +0100
From: Peter Petersson <peterss...@gmail.com>
To: Carlos Montemui�o <carlos.m...@gmail.com>


The defaults as set up in default.props the h2 in memory db

best regards
� Peter Petersson

On 12/06/2012 09:20 PM, Carlos Montemui�o wrote:

Hi Peter, one quick question: are you using in-memory db or Posgresql?

El 06/12/2012 21:05, "Peter Petersson" <peterss...@gmail.com> escribi�:
I am running container:start and the TestDataMaker object at least runs createDefaultUserData but It seem like the rest of the development db test data is not injected like createAndGroupStudents ?

It seems that most (if not all) of the errors I can see originates from the following, for instance, accessing the students page the snippet tries to set a default select but cant find the (current year) value

Message: java.util.NoSuchElementException: key not found: 2012
� � � � scala.collection.MapLike$class.default(MapLike.scala:225)
� � � � scala.collection.immutable.MapLike$$anon$2.default(MapLike.scala:108)
� � � � scala.collection.MapLike$class.apply(MapLike.scala:135)
� � � � scala.collection.immutable.MapLike$$anon$2.apply(MapLike.scala:108)
� � � � scala.Option.map(Option.scala:133)
� � � � com.dbschools.mgb.snippet.Selectors.groupSelectValues(Selectors.scala:36)
� � � � com.dbschools.mgb.snippet.Selectors.<init>(Selectors.scala:32)
� � � � com.dbschools.mgb.snippet.Students.<init>(Students.scala:20)

Am I missing some initiation step? I can see a main method in TestDataMaker and the following line in build.sbt

fullRunTask(TaskKey[Unit]("load-sample-data", "Loads sample data"), Compile, "com.dbschools.mgb.TestDataMaker")

but even if i run "load-sample-data" from sbt before container:start the error persists.

best regards
� Peter Petersson

On 11/25/2012 04:13 AM, Dave Briccetti wrote:
Peter, thanks for agreeing to help us get started with Bootstrap. What�s the first step? Want to have a call to discuss, or do you want to jump in and change some files? --



--





Carlos Montemuiño

unread,
Dec 6, 2012, 6:24:06 PM12/6/12
to Peter Petersson, dbsc...@googlegroups.com

Perhaps Dave has some data in his Postgresql that's not in scripts.

El 06/12/2012 21:49, "Peter Petersson" <peterss...@gmail.com> escribió:


-------- Original Message --------
Subject: Re: Getting started with Bootstrap
Date: Thu, 06 Dec 2012 21:48:55 +0100
From: Peter Petersson <peterss...@gmail.com>
To: Carlos Montemuiño <carlos.m...@gmail.com>


The defaults as set up in default.props the h2 in memory db

best regards
  Peter Petersson

On 12/06/2012 09:20 PM, Carlos Montemuiño wrote:

Hi Peter, one quick question: are you using in-memory db or Posgresql?

El 06/12/2012 21:05, "Peter Petersson" <peterss...@gmail.com> escribió:
I am running container:start and the TestDataMaker object at least runs createDefaultUserData but It seem like the rest of the development db test data is not injected like createAndGroupStudents ?

It seems that most (if not all) of the errors I can see originates from the following, for instance, accessing the students page the snippet tries to set a default select but cant find the (current year) value

Message: java.util.NoSuchElementException: key not found: 2012
        scala.collection.MapLike$class.default(MapLike.scala:225)
        scala.collection.immutable.MapLike$$anon$2.default(MapLike.scala:108)
        scala.collection.MapLike$class.apply(MapLike.scala:135)
        scala.collection.immutable.MapLike$$anon$2.apply(MapLike.scala:108)
        scala.Option.map(Option.scala:133)
        com.dbschools.mgb.snippet.Selectors.groupSelectValues(Selectors.scala:36)
        com.dbschools.mgb.snippet.Selectors.<init>(Selectors.scala:32)

        com.dbschools.mgb.snippet.Students.<init>(Students.scala:20)

Am I missing some initiation step? I can see a main method in TestDataMaker and the following line in build.sbt

fullRunTask(TaskKey[Unit]("load-sample-data", "Loads sample data"), Compile, "com.dbschools.mgb.TestDataMaker")

but even if i run "load-sample-data" from sbt before container:start the error persists.

best regards
  Peter Petersson

On 11/25/2012 04:13 AM, Dave Briccetti wrote:
Peter, thanks for agreeing to help us get started with Bootstrap. What’s the first step? Want to have a call to discuss, or do you want to jump in and change some files? --



--





--
 
 

Dave Briccetti

unread,
Dec 8, 2012, 4:50:59 PM12/8/12
to dbsc...@googlegroups.com
Hi Peter. Sorry we weren’t more prepared for your entry. I have fixed the bug causing that key not found condition, and I have sent you a demo PostgreSQL database that should make things more interesting.

Peter Petersson

unread,
Dec 8, 2012, 5:02:21 PM12/8/12
to Dave Briccetti, dbsc...@googlegroups.com
Thanks :) I will take a look

On 12/08/2012 10:50 PM, Dave Briccetti wrote:
> Hi Peter. Sorry we weren�t more prepared for your entry. I have fixed
> the bug causing that key not found condition, and I have sent you a
> demo PostgreSQL database that should make things more interesting. --
>
>

Peter Petersson

unread,
Dec 9, 2012, 3:44:04 PM12/9/12
to dbsc...@googlegroups.com
Hi Dave

I do not currently have a PostgreSQL database on my dev comp. (only
MySql) and I noticed that there are no longer any demo user to use with
the minimal H2 db init stuff. Is this deliberately?

I am on Ubuntu so there is no problem for me to pull in the postgresql
database but if the H2 setup have whats needed to brows all pages I
rather wait with the postgre installation.

I am currently experimenting with the new flexmenu stuff added in lift
2.5 (M3) and will eventually incorporate it in the FoBo API for various
bootstrap menu types (nav menu, nav list, button dropdowns and more). If
all turns out good it will make a good and clean bootstrap menu
integration with Lift's sitmap (without losing any flexibility).

If you do not think working with the in memory H2 db is sufficient for
development I will install the postgre db, looking forward to your
response.

best regards
Peter Petersson

On 12/08/2012 10:50 PM, Dave Briccetti wrote:
> Hi Peter. Sorry we weren�t more prepared for your entry. I have fixed
> the bug causing that key not found condition, and I have sent you a
> demo PostgreSQL database that should make things more interesting. --
>
>

Diego Medina

unread,
Dec 9, 2012, 4:11:10 PM12/9/12
to Peter Petersson, dbsc...@googlegroups.com
just a side note, it would be nice if we could just use the h2
database, but not just inmemory, but the file based (like from the
simple sbt 2.5 templates), so that restarting the app does not mean we
lose all the records from h2.

Thanks

Diego

On Sun, Dec 9, 2012 at 3:44 PM, Peter Petersson
<peterss...@gmail.com> wrote:
> Hi Dave
>
> I do not currently have a PostgreSQL database on my dev comp. (only MySql)
> and I noticed that there are no longer any demo user to use with the minimal
> H2 db init stuff. Is this deliberately?
>
> I am on Ubuntu so there is no problem for me to pull in the postgresql
> database but if the H2 setup have whats needed to brows all pages I rather
> wait with the postgre installation.
>
> I am currently experimenting with the new flexmenu stuff added in lift 2.5
> (M3) and will eventually incorporate it in the FoBo API for various
> bootstrap menu types (nav menu, nav list, button dropdowns and more). If all
> turns out good it will make a good and clean bootstrap menu integration with
> Lift's sitmap (without losing any flexibility).
>
> If you do not think working with the in memory H2 db is sufficient for
> development I will install the postgre db, looking forward to your response.
>
> best regards
> Peter Petersson
>
> On 12/08/2012 10:50 PM, Dave Briccetti wrote:
>>
>> Hi Peter. Sorry we weren’t more prepared for your entry. I have fixed the
>> bug causing that key not found condition, and I have sent you a demo
>> PostgreSQL database that should make things more interesting. --
>>
>>
>
> --
>
>



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://www.fmpwizard.com

Dave Briccetti

unread,
Dec 10, 2012, 10:52:31 PM12/10/12
to dbsc...@googlegroups.com
Running on h2 should now work on every page.
Reply all
Reply to author
Forward
0 new messages