<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gddwnb</title>
	<atom:link href="http://blog.sveri.de/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sveri.de</link>
	<description>gedanken die die welt nicht braucht</description>
	<lastBuildDate>Tue, 04 Sep 2012 09:12:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>time field in extjs4 returning 310008e with json datastore and jackson</title>
		<link>http://blog.sveri.de/2012/09/04/time-field-in-extjs4-returning-310008e-with-json-datastore-and-jackson/</link>
		<comments>http://blog.sveri.de/2012/09/04/time-field-in-extjs4-returning-310008e-with-json-datastore-and-jackson/#comments</comments>
		<pubDate>Tue, 04 Sep 2012 09:12:22 +0000</pubDate>
		<dc:creator>sveri</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[extjs4]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[jackson]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=294</guid>
		<description><![CDATA[Currently i am trying to connect extjs datagrid via a extjs datamodel to a rest backend in java. It works great so far, however, i have a java.util.Date column which serializes to javascript millitime format, which can be read by &#8230; <a href="http://blog.sveri.de/2012/09/04/time-field-in-extjs4-returning-310008e-with-json-datastore-and-jackson/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Currently i am trying to connect extjs datagrid via a extjs datamodel to a rest backend in java.<br />
It works great so far, however, i have a java.util.Date column which serializes to javascript millitime format, which can be read by the datastore with the format: &#8216;time&#8217; option.</p>
<p>However, if you try to store an updated value of your row, the datastore will convert your date to &#8220;310008e&#8221;, which cannot be parsed into a date.</p>
<p>There are several options to solve this issue. One would be to write a converter for the extjs model, another one is to write a serializer class which implements JsonSerializer&lt;T&gt; and annotate the datefield with it.</p>
<p>I found this solution here: <a href="http://loianegroner.com/2010/09/how-to-serialize-java-util-date-with-jackson-json-processor-spring-3-0/">http://loianegroner.com/2010/09/how-to-serialize-java-util-date-with-jackson-json-processor-spring-3-0/</a><br />
There are some other options as well, please have a look in the comments of the linked blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/09/04/time-field-in-extjs4-returning-310008e-with-json-datastore-and-jackson/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>samsung galaxy s2 cannot connect to pc via usb</title>
		<link>http://blog.sveri.de/2012/08/16/samsung-galaxy-s2-cannot-connect-to-pc-via-usb/</link>
		<comments>http://blog.sveri.de/2012/08/16/samsung-galaxy-s2-cannot-connect-to-pc-via-usb/#comments</comments>
		<pubDate>Thu, 16 Aug 2012 14:41:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[galaxy]]></category>
		<category><![CDATA[mass storage]]></category>
		<category><![CDATA[s2]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=290</guid>
		<description><![CDATA[Hi, i own a galaxy S2 and some day i couldn&#8217;t connect to my pc anymore via usb. Windows/Linux, different machines, nothing worked. On my hunt throught the internet i found some forums stating that there are problems known with &#8230; <a href="http://blog.sveri.de/2012/08/16/samsung-galaxy-s2-cannot-connect-to-pc-via-usb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi,<br />
i own a galaxy S2 and some day i couldn&#8217;t connect to my pc anymore via usb. Windows/Linux, different machines, nothing worked.<br />
On my hunt throught the internet i found some forums stating that there are problems known with the usb port of the S2, so i ordered a new one and replaced it, but that did not help either.</p>
<p>Finally i found this blog post: <a href="http://www.bitblokes.de/2012/04/losung-samsung-galaxy-s2-verbindet-sich-nicht-als-massenspeicher/">http://www.bitblokes.de/2012/04/losung-samsung-galaxy-s2-verbindet-sich-nicht-als-massenspeicher/</a><br />
There it is said you have to enter the following number: <em>*#7284#</em> and then change from MODEM to PDA or maybe from PDA to MODEM and back.</p>
<p>That&#8217;s it, it does work again now. Seems to be a bug within the firmware. A pity i have not found it earlier and had to buy a new usb port w/o really having the need to.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/08/16/samsung-galaxy-s2-cannot-connect-to-pc-via-usb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eclipse juno, maven, spring 3 and deployment to tomcat</title>
		<link>http://blog.sveri.de/2012/08/15/eclipse-juno-maven-spring-3-and-deployment-to-tomcat/</link>
		<comments>http://blog.sveri.de/2012/08/15/eclipse-juno-maven-spring-3-and-deployment-to-tomcat/#comments</comments>
		<pubDate>Wed, 15 Aug 2012 06:48:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[ClassNotFoundException]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=287</guid>
		<description><![CDATA[Hi, i recently tried the above combination for a prototype and all of a sudden the following error appeared: It took me some time to figure out what happened, but somehow my project settings changed. To fix this error go &#8230; <a href="http://blog.sveri.de/2012/08/15/eclipse-juno-maven-spring-3-and-deployment-to-tomcat/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Hi,</p>
<p>i recently tried the above combination for a prototype and all of a sudden the following error appeared:<br />
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="java5" style="font-family:monospace;">Schwerwiegend: <a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/lang/Error.html"><span class="kw21">Error</span></a> configuring application listener of <span class="kw2">class</span> org.<span class="me1">springframework</span>.<span class="me1">web</span>.<span class="me1">context</span>.<span class="me1">ContextLoaderListener</span>
java.<span class="me1">lang</span>.<a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/lang/ClassNotFoundException.html"><span class="kw21">ClassNotFoundException</span></a>: org.<span class="me1">springframework</span>.<span class="me1">web</span>.<span class="me1">context</span>.<span class="me1">ContextLoaderListener</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">loader</span>.<span class="me1">WebappClassLoader</span>.<span class="me1">loadClass</span><span class="br0">&#40;</span>WebappClassLoader.<span class="me1">java</span>:1711<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">loader</span>.<span class="me1">WebappClassLoader</span>.<span class="me1">loadClass</span><span class="br0">&#40;</span>WebappClassLoader.<span class="me1">java</span>:1556<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">DefaultInstanceManager</span>.<span class="me1">loadClass</span><span class="br0">&#40;</span>DefaultInstanceManager.<span class="me1">java</span>:532<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">DefaultInstanceManager</span>.<span class="me1">loadClassMaybePrivileged</span><span class="br0">&#40;</span>DefaultInstanceManager.<span class="me1">java</span>:514<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">DefaultInstanceManager</span>.<span class="me1">newInstance</span><span class="br0">&#40;</span>DefaultInstanceManager.<span class="me1">java</span>:133<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">StandardContext</span>.<span class="me1">listenerStart</span><span class="br0">&#40;</span>StandardContext.<span class="me1">java</span>:4727<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">StandardContext</span>.<span class="me1">startInternal</span><span class="br0">&#40;</span>StandardContext.<span class="me1">java</span>:5285<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">util</span>.<span class="me1">LifecycleBase</span>.<span class="me1">start</span><span class="br0">&#40;</span>LifecycleBase.<span class="me1">java</span>:150<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">ContainerBase</span>$StartChild.<span class="me1">call</span><span class="br0">&#40;</span>ContainerBase.<span class="me1">java</span>:1559<span class="br0">&#41;</span>
	at org.<span class="me1">apache</span>.<span class="me1">catalina</span>.<span class="me1">core</span>.<span class="me1">ContainerBase</span>$StartChild.<span class="me1">call</span><span class="br0">&#40;</span>ContainerBase.<span class="me1">java</span>:1549<span class="br0">&#41;</span>
	at java.<span class="me1">util</span>.<span class="me1">concurrent</span>.<a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/util/concurrent/FutureTask.html"><span class="kw47">FutureTask</span></a>$Sync.<span class="me1">innerRun</span><span class="br0">&#40;</span>Unknown <a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/javax/xml/transform/Source.html"><span class="kw128">Source</span></a><span class="br0">&#41;</span>
	at java.<span class="me1">util</span>.<span class="me1">concurrent</span>.<a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/util/concurrent/FutureTask.html"><span class="kw47">FutureTask</span></a>.<span class="me1">run</span><span class="br0">&#40;</span>Unknown <a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/javax/xml/transform/Source.html"><span class="kw128">Source</span></a><span class="br0">&#41;</span>
	at java.<span class="me1">util</span>.<span class="me1">concurrent</span>.<a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/util/concurrent/ThreadPoolExecutor.html"><span class="kw47">ThreadPoolExecutor</span></a>.<span class="me1">runWorker</span><span class="br0">&#40;</span>Unknown <a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/javax/xml/transform/Source.html"><span class="kw128">Source</span></a><span class="br0">&#41;</span>
	at java.<span class="me1">util</span>.<span class="me1">concurrent</span>.<a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/util/concurrent/ThreadPoolExecutor.html"><span class="kw47">ThreadPoolExecutor</span></a>$Worker.<span class="me1">run</span><span class="br0">&#40;</span>Unknown <a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/javax/xml/transform/Source.html"><span class="kw128">Source</span></a><span class="br0">&#41;</span>
	at java.<span class="me1">lang</span>.<a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/java/lang/Thread.html"><span class="kw21">Thread</span></a>.<span class="me1">run</span><span class="br0">&#40;</span>Unknown <a href="http://java.sun.com/j2se/<span class="nu0">1</span>.<span class="nu0">5</span>.0/docs/api/javax/xml/transform/Source.html"><span class="kw128">Source</span></a><span class="br0">&#41;</span></pre></div></div></p>
<p>It took me some time to figure out what happened, but somehow my project settings changed.<br />
To fix this error go to projects properties  -&gt; deployment assembly and add the maven dependencies there to be mapped to WEB-INF/lib.</p>
<p>That&#8217;s it, quick fix for a weired thing like change of the settings -.-</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/08/15/eclipse-juno-maven-spring-3-and-deployment-to-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>integrate circumflex-orm into play 2.0 using scala</title>
		<link>http://blog.sveri.de/2012/04/19/integrate-circumflex-orm-into-play-2-0-using-scala/</link>
		<comments>http://blog.sveri.de/2012/04/19/integrate-circumflex-orm-into-play-2-0-using-scala/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 20:50:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[circumflex]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[orm]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=281</guid>
		<description><![CDATA[If you are like me and dont want to use the proposed orm anorm in play 2.0, you may want to use circumflex-orm (http://circumflex.ru/projects/orm/index.html) i give you a quick howto on the integration. First, create a cx.properties in the conf &#8230; <a href="http://blog.sveri.de/2012/04/19/integrate-circumflex-orm-into-play-2-0-using-scala/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If you are like me and dont want to use the proposed orm anorm in play 2.0, you may want to use circumflex-orm (<a title="circumflex-orm" href="http://circumflex.ru/projects/orm/index.html">http://circumflex.ru/projects/orm/index.html</a>) i give you a quick howto on the integration.</p>
<p>First, create a cx.properties in the conf folder of your project:<br />
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;">orm.<span class="me1">connection</span>.<span class="me1">driver</span><span class="sy0">=</span>com.<span class="me1">mysql</span>.<span class="me1">Driver</span>
orm.<span class="me1">connection</span>.<span class="me1">url</span><span class="sy0">=</span>jdbc<span class="sy0">:</span>mysql<span class="sy0">:</span><span class="co1">//localhost/database</span>
orm.<span class="me1">connection</span>.<span class="me1">username</span><span class="sy0">=</span>un
orm.<span class="me1">connection</span>.<span class="me1">password</span><span class="sy0">=</span>pw</pre></div></div></p>
<p>Also add the dependency to your Build.scala file:<br />
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">val</span></a> appDependencies <span class="sy0">=</span> Seq<span class="br0">&#40;</span>
  <span class="st0">&quot;ru.circumflex&quot;</span> <span class="sy0">%</span> <span class="st0">&quot;circumflex-orm&quot;</span> <span class="sy0">%</span> <span class="st0">&quot;2.1&quot;</span>
<span class="br0">&#41;</span></pre></div></div></p>
<p>Then create the class and it&#8217;s object:<br />
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">class</span></a> Task <a href="http://scala-lang.org"><span class="kw1">extends</span></a> Record<span class="br0">&#91;</span>Long, Task<span class="br0">&#93;</span> <a href="http://scala-lang.org"><span class="kw1">with</span></a> IdentityGenerator<span class="br0">&#91;</span>Long, Task<span class="br0">&#93;</span> <span class="br0">&#123;</span>
  <a href="http://scala-lang.org"><span class="kw1">def</span></a> <a href="http://scala-lang.org"><span class="kw1">this</span></a><span class="br0">&#40;</span>name<span class="sy0">:</span> String, description<span class="sy0">:</span> String<span class="br0">&#41;</span> <span class="sy0">=</span> <span class="br0">&#123;</span>
    <a href="http://scala-lang.org"><span class="kw1">this</span></a><span class="br0">&#40;</span><span class="br0">&#41;</span>
    <a href="http://scala-lang.org"><span class="kw1">this</span></a>.<span class="me1">name</span> <span class="sy0">:=</span> name
    <a href="http://scala-lang.org"><span class="kw1">this</span></a>.<span class="me1">description</span> <span class="sy0">:=</span> description
  <span class="br0">&#125;</span>
&nbsp;
  <a href="http://scala-lang.org"><span class="kw1">val</span></a> id <span class="sy0">=</span> <span class="st0">&quot;id&quot;</span>.<span class="me1">BIGINT</span>.<span class="me1">NOT_NULL</span>.<span class="me1">AUTO_INCREMENT</span>
  <a href="http://scala-lang.org"><span class="kw1">val</span></a> name <span class="sy0">=</span> <span class="st0">&quot;name&quot;</span>.<span class="me1">VARCHAR</span><span class="br0">&#40;</span>255<span class="br0">&#41;</span>.<span class="me1">NOT_NULL</span>
  <a href="http://scala-lang.org"><span class="kw1">val</span></a> description <span class="sy0">=</span> <span class="st0">&quot;description&quot;</span>.<span class="me1">TEXT</span>.<span class="me1">NOT_NULL</span>
&nbsp;
  <a href="http://scala-lang.org"><span class="kw1">def</span></a> PRIMARY<span class="sy0">_</span>KEY <span class="sy0">=</span> id
  <a href="http://scala-lang.org"><span class="kw1">def</span></a> relation <span class="sy0">=</span> Task
<span class="br0">&#125;</span>
&nbsp;
<a href="http://scala-lang.org"><span class="kw1">object</span></a> Task <a href="http://scala-lang.org"><span class="kw1">extends</span></a> Task <a href="http://scala-lang.org"><span class="kw1">with</span></a> Table<span class="br0">&#91;</span>Long, Task<span class="br0">&#93;</span> <span class="br0">&#123;</span>
  <a href="http://scala-lang.org"><span class="kw1">def</span></a> apply<span class="br0">&#40;</span>name<span class="sy0">:</span> String, description<span class="sy0">:</span> String<span class="br0">&#41;</span> <span class="sy0">=</span> <a href="http://scala-lang.org"><span class="kw1">new</span></a> Task<span class="br0">&#40;</span>name, description<span class="br0">&#41;</span>
  <a href="http://scala-lang.org"><span class="kw1">def</span></a> unapply<span class="br0">&#40;</span>t <span class="sy0">:</span> Task<span class="br0">&#41;</span> <span class="sy0">=</span> Option<span class="br0">&#40;</span>t.<span class="me1">name</span><span class="br0">&#40;</span><span class="br0">&#41;</span>, t.<span class="me1">description</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p>For more info about the fields and the usage of circumflex, look at the docs at their homepage please.</p>
<p>Finally you can retrieve with get for instance, it works without any additions.<br />
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">val</span></a> task <span class="sy0">=</span> Task.<span class="me1">get</span><span class="br0">&#40;</span><span class="nu0">1</span><span class="br0">&#41;</span>.<span class="me1">get</span>
println<span class="br0">&#40;</span><span class="st0">&quot;name&quot;</span> + task.<span class="me1">name</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span></pre></div></div></p>
<p>But to save and insert you have to promote a context:<br />
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">val</span></a> task <span class="sy0">=</span> <a href="http://scala-lang.org"><span class="kw1">new</span></a> Task<span class="br0">&#40;</span><span class="st0">&quot;foo&quot;</span>,<span class="st0">&quot;bar&quot;</span><span class="br0">&#41;</span>
  Context.<span class="me1">executeInNew</span> <span class="br0">&#123;</span>ctx <span class="sy0">=&gt;</span>
    println<span class="br0">&#40;</span>task.<span class="me1">save</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p>According to a gentle guy from circumflex this should belong into a filter, which must be put somewhere in the lifecycle usage of your app.<br />
Please have a look at the google group discussion for more information about that:<br />
<a href="https://groups.google.com/forum/?fromgroups#!topic/circumflex-scala/ma2uCVgPx1Q">https://groups.google.com/forum/?fromgroups#!topic/circumflex-scala/ma2uCVgPx1Q</a><br />
But thats a topic for another day.</p>
<p>Easy, isn&#8217;t it? In the end i still could use anorm, or something similar besides it, if i need some complex sql&#8217;s to get done, but, as far as i can tell, circumflex should suffice for most of them.</p>
<p><strong>Update:<br />
</strong>Well, transaction management was no topic for another day. It turned out that without the Context from circumflex cache management did not work.</p>
<p>It is possible to save and retrieve, but, retrieval happens from the cache, and without the transaction-management the cache does not get updatet.</p>
<p>So, what you have to do is write your own action class like this:<br />
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">import</span></a> play.<span class="me1">api</span>.<span class="me1">mvc</span>.<span class="me1">Action</span>
<a href="http://scala-lang.org"><span class="kw1">import</span></a> play.<span class="me1">api</span>.<span class="me1">mvc</span>.<span class="me1">Request</span>
<a href="http://scala-lang.org"><span class="kw1">import</span></a> play.<span class="me1">api</span>.<span class="me1">mvc</span>.<span class="me1">Result</span>
<a href="http://scala-lang.org"><span class="kw1">import</span></a> ru.<span class="me1">circumflex</span>.<span class="me1">core</span>.<span class="me1">Context</span>
&nbsp;
<a href="http://scala-lang.org"><span class="kw1">case</span></a> <a href="http://scala-lang.org"><span class="kw1">class</span></a> ScircumflexOrmActionWrapper<span class="br0">&#91;</span>A<span class="br0">&#93;</span><span class="br0">&#40;</span>action<span class="sy0">:</span> Action<span class="br0">&#91;</span>A<span class="br0">&#93;</span><span class="br0">&#41;</span> <a href="http://scala-lang.org"><span class="kw1">extends</span></a> Action<span class="br0">&#91;</span>A<span class="br0">&#93;</span> <span class="br0">&#123;</span>
&nbsp;
  <a href="http://scala-lang.org"><span class="kw1">def</span></a> apply<span class="br0">&#40;</span>request<span class="sy0">:</span> Request<span class="br0">&#91;</span>A<span class="br0">&#93;</span><span class="br0">&#41;</span><span class="sy0">:</span> Result <span class="sy0">=</span> <span class="br0">&#123;</span>
    Context.<span class="me1">executeInNew</span> <span class="br0">&#123;</span> ctx <span class="sy0">=&gt;</span>
      action<span class="br0">&#40;</span>request<span class="br0">&#41;</span>
    <span class="br0">&#125;</span>
  <span class="br0">&#125;</span>
&nbsp;
  lazy <a href="http://scala-lang.org"><span class="kw1">val</span></a> parser <span class="sy0">=</span> action.<span class="me1">parser</span>
<span class="br0">&#125;</span></pre></div></div></p>
<p>And then call it like that:<br />
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">def</span></a> index <span class="sy0">=</span> ScircumflexOrmActionWrapper <span class="br0">&#123;</span> Action <span class="br0">&#123;</span>
&nbsp;
	<a href="http://scala-lang.org"><span class="kw1">val</span></a> taskDbObj <span class="sy0">=</span> Task AS <span class="st0">&quot;taskDb&quot;</span>
	<a href="http://scala-lang.org"><span class="kw1">val</span></a> tasks <span class="sy0">=</span> SELECT<span class="br0">&#40;</span>taskDbObj.<span class="sy0">*</span><span class="br0">&#41;</span>.<span class="me1">FROM</span><span class="br0">&#40;</span>taskDbObj<span class="br0">&#41;</span>.<span class="me1">ORDER_BY</span><span class="br0">&#40;</span>taskDbObj.<span class="me1">createdAt</span> DESC<span class="br0">&#41;</span>.<span class="me1">list</span>
&nbsp;
	Ok<span class="br0">&#40;</span>html.<span class="me1">task</span>.<span class="me1">index</span><span class="br0">&#40;</span>tasks<span class="br0">&#41;</span><span class="br0">&#41;</span>
  <span class="br0">&#125;</span><span class="br0">&#125;</span></pre></div></div></p>
<p>Now you should have a working solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/19/integrate-circumflex-orm-into-play-2-0-using-scala/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Formbinding multiple objects of the same type in play framework 2 with scala</title>
		<link>http://blog.sveri.de/2012/04/19/formbinding-multiple-objects-of-the-same-type-in-play-framework-2-with-scala/</link>
		<comments>http://blog.sveri.de/2012/04/19/formbinding-multiple-objects-of-the-same-type-in-play-framework-2-with-scala/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 08:00:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[form binding]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[objects]]></category>
		<category><![CDATA[playframework]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=278</guid>
		<description><![CDATA[The play docs provide small code snippets on how to use repeated values with form binding, but they make not clear on how to bind to a List of objects. In the end it&#8217;s easy. Let&#8217;s say we have these &#8230; <a href="http://blog.sveri.de/2012/04/19/formbinding-multiple-objects-of-the-same-type-in-play-framework-2-with-scala/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>The play docs provide small code snippets on how to use repeated values with form binding, but they make not clear on how to bind to a List of objects. In the end it&#8217;s easy.</p>
<p>Let&#8217;s say we have these two classes:<br />
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">case</span></a> <a href="http://scala-lang.org"><span class="kw1">class</span></a> Task<span class="br0">&#40;</span>name<span class="sy0">:</span> String, description<span class="sy0">:</span> String<span class="br0">&#41;</span>
<a href="http://scala-lang.org"><span class="kw1">case</span></a> <a href="http://scala-lang.org"><span class="kw1">class</span></a> Tasks<span class="br0">&#40;</span>tasks<span class="sy0">:</span> List<span class="br0">&#91;</span>Task<span class="br0">&#93;</span><span class="br0">&#41;</span></pre></div></div></p>
<p>Then we can make a Form val like this:<br />
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">val</span></a> taskForm<span class="sy0">:</span> Form<span class="br0">&#91;</span>Tasks<span class="br0">&#93;</span> <span class="sy0">=</span> Form<span class="br0">&#40;</span>
      mapping<span class="br0">&#40;</span>
          <span class="st0">&quot;tasks&quot;</span> -<span class="sy0">&gt;</span> list<span class="br0">&#40;</span>mapping<span class="br0">&#40;</span>
              <span class="st0">&quot;name&quot;</span> -<span class="sy0">&gt;</span> text,
              <span class="st0">&quot;description&quot;</span> -<span class="sy0">&gt;</span> text
          <span class="br0">&#41;</span><span class="br0">&#40;</span>Task.<span class="me1">apply</span><span class="br0">&#41;</span><span class="br0">&#40;</span>Task.<span class="me1">unapply</span><span class="br0">&#41;</span><span class="br0">&#41;</span>
      <span class="br0">&#41;</span><span class="br0">&#40;</span>Tasks.<span class="me1">apply</span><span class="br0">&#41;</span><span class="br0">&#40;</span>Tasks.<span class="me1">unapply</span><span class="br0">&#41;</span>
  <span class="br0">&#41;</span></pre></div></div></p>
<p>The html would look like this:<br />
<div id="wpshdo_11" class="wp-synhighlighter-outer"><div id="wpshdt_11" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_11"></a><a id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;"><span class="sc2">&lt;<a href="http://december.com/html/4/element/tr.html"><span class="kw2">tr</span></a>&gt;</span>
  <span class="sc2">&lt;<a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;&lt;<a href="http://december.com/html/4/element/input.html"><span class="kw2">input</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;tasks[0].name&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text&quot;</span> &gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;</span>
  <span class="sc2">&lt;<a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;&lt;<a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;tasks[0].description&quot;</span> &gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a>&gt;</span>
  <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/tr.html"><span class="kw2">tr</span></a>&gt;</span>
<span class="sc2">&lt;<a href="http://december.com/html/4/element/tr.html"><span class="kw2">tr</span></a>&gt;</span>
  <span class="sc2">&lt;<a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;&lt;<a href="http://december.com/html/4/element/input.html"><span class="kw2">input</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;tasks[1].name&quot;</span> <span class="kw3">type</span><span class="sy0">=</span><span class="st0">&quot;text&quot;</span> &gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;</span>
  <span class="sc2">&lt;<a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;&lt;<a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a> <span class="kw3">name</span><span class="sy0">=</span><span class="st0">&quot;tasks[1].description&quot;</span>&gt;&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/textarea.html"><span class="kw2">textarea</span></a>&gt;</span>
  <span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/td.html"><span class="kw2">td</span></a>&gt;</span>
<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/tr.html"><span class="kw2">tr</span></a>&gt;</span></pre></div></div></p>
<p>And the retrieval as stated in the docs:<br />
<div id="wpshdo_12" class="wp-synhighlighter-outer"><div id="wpshdt_12" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_12"></a><a id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><pre class="scala" style="font-family:monospace;"><a href="http://scala-lang.org"><span class="kw1">val</span></a> tasks <span class="sy0">=</span> taskForm.<span class="me1">bindFromRequest</span>.<span class="me1">get</span></pre></div></div><br />
gives back a list of tasks with a task object inside for each table row.</p>
<p>I admit that my table is not a normal form, instead i use jquerys .serializeArray() on the table to submit the data via $.ajax(), but that&#8217;s a different story.</p>
<p>See also this question at stackoverflow from me:<br />
<a title="stackoverflow form binding play framework" href="http://stackoverflow.com/questions/10218814/bind-multiple-objects-in-play-framework-2-0-from-a-form/10223431#10223431">http://stackoverflow.com/questions/10218814/bind-multiple-objects-in-play-framework-2-0-from-a-form/10223431#10223431</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/19/formbinding-multiple-objects-of-the-same-type-in-play-framework-2-with-scala/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR context.GrailsContextLoader while trying to save in grails</title>
		<link>http://blog.sveri.de/2012/04/13/error-context-grailscontextloader-while-trying-to-save-in-grails/</link>
		<comments>http://blog.sveri.de/2012/04/13/error-context-grailscontextloader-while-trying-to-save-in-grails/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 15:28:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[grails 2]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[grailscontextloader]]></category>
		<category><![CDATA[save error]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=275</guid>
		<description><![CDATA[If you get the error: ERROR context.GrailsContextLoader  &#8211; Error executing bootstraps: null Message: null while trying to save something in grails 2, go ahead and make use of the nice: failOnError option the save method gives you (http://grails.org/doc/2.0.x/ref/Domain%20Classes/save.html). It will &#8230; <a href="http://blog.sveri.de/2012/04/13/error-context-grailscontextloader-while-trying-to-save-in-grails/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If you get the error:<br />
<em>ERROR context.GrailsContextLoader  &#8211; Error executing bootstraps: null</em><br />
<em>Message: null</em><br />
while trying to save something in grails 2, go ahead and make use of the nice: <em>failOnError</em> option the save method gives you (<a title="grails save method" href="http://grails.org/doc/2.0.x/ref/Domain%20Classes/save.html">http://grails.org/doc/2.0.x/ref/Domain%20Classes/save.html</a>).</p>
<p>It will produce a much better output regarding what is wrong, in my case it showed me that i forgot to set a needed variable in my class before i tried to save it.</p>
<p>A nice guy in the mailing list pinpointed me to this one (<a href="http://grails.1312388.n4.nabble.com/Error-executing-bootstraps-null-with-springsecurity-plugin-td4554560.html">http://grails.1312388.n4.nabble.com/Error-executing-bootstraps-null-with-springsecurity-plugin-td4554560.html</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/13/error-context-grailscontextloader-while-trying-to-save-in-grails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>play 2.0 formbind validation exception</title>
		<link>http://blog.sveri.de/2012/04/11/play-2-0-formbind-validation-exception/</link>
		<comments>http://blog.sveri.de/2012/04/11/play-2-0-formbind-validation-exception/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 19:19:19 +0000</pubDate>
		<dc:creator>sveri</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[formbind]]></category>
		<category><![CDATA[getter]]></category>
		<category><![CDATA[setter]]></category>
		<category><![CDATA[validationerror]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=271</guid>
		<description><![CDATA[If you get the following error: [ValidationException: Call to TraversableResolver.isReachable() threw an exception] when you try to do a formbind with play 2.0 framework: Form&#60;Task&#62; tasks = taskForm.bindFromRequest(); Then you should check if your class Task has getters and setters &#8230; <a href="http://blog.sveri.de/2012/04/11/play-2-0-formbind-validation-exception/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>If you get the following error: <em>[ValidationException: Call to TraversableResolver.isReachable() threw an exception] </em>when you try to do a formbind with play 2.0 framework:<br />
<em>Form&lt;Task&gt; tasks = taskForm.bindFromRequest();<br />
</em>Then you should check if your class <em>Task</em> has getters and setters for the variables you need, the springbind library play relies on needs them to work.<em><br />
</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/11/play-2-0-formbind-validation-exception/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>defining variables in playframework 2.0 templates</title>
		<link>http://blog.sveri.de/2012/04/09/defining-variables-in-playframework-2-0-templates/</link>
		<comments>http://blog.sveri.de/2012/04/09/defining-variables-in-playframework-2-0-templates/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 13:59:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2.0]]></category>
		<category><![CDATA[define]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[variable]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=261</guid>
		<description><![CDATA[Today i found out how to define variables in play&#8217;s templates. I would say play does not go the common way, instead it uses a functional approach. So to define a new variable you have to do something like: So &#8230; <a href="http://blog.sveri.de/2012/04/09/defining-variables-in-playframework-2-0-templates/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today i found out how to define variables in play&#8217;s templates. I would say play does not go the common way, instead it uses a functional approach. So to define a new variable you have to do something like:</p>
<div id="wpshdo_13" class="wp-synhighlighter-outer"><div id="wpshdt_13" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_13"></a><a id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://blog.sveri.de/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><pre class="html4strict" style="font-family:monospace;">@defining(User.getLoggedinUser()) {user =&gt;
  <span class="sc2">&lt;<a href="http://december.com/html/4/element/h1.html"><span class="kw2">h1</span></a>&gt;</span>hello @user.getName(), @user.getPrename()<span class="sc2">&lt;<span class="sy0">/</span><a href="http://december.com/html/4/element/h1.html"><span class="kw2">h1</span></a>&gt;</span>
}</pre></div></div>
<p>So basically the variable <em>user</em> references to the result of <em>User.getLoggedinUser()</em>, which is an object in this case and can only be used in the defined scope of the <em>{}</em>.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/09/defining-variables-in-playframework-2-0-templates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>two pitfalls with play framework 2 templates i ran into</title>
		<link>http://blog.sveri.de/2012/04/07/two-pitfalls-with-play-framework-2-templates-i-ran-into/</link>
		<comments>http://blog.sveri.de/2012/04/07/two-pitfalls-with-play-framework-2-templates-i-ran-into/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 09:51:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[2]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[include]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[subpackage]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[views]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=255</guid>
		<description><![CDATA[On my journey through the play framework 2 i ran into two pitfalls in the last days, that are easily solved. calling a template from a template with a white space (@navigation_top ()) between the template name and it&#8217;s paranthesis &#8230; <a href="http://blog.sveri.de/2012/04/07/two-pitfalls-with-play-framework-2-templates-i-ran-into/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>On my journey through the play framework 2 i ran into two pitfalls in the last days, that are easily solve<em>d</em>.</p>
<ol>
<li>calling a template from a template with a white space (<em>@navigation_top ()</em>) between the template name and it&#8217;s paranthesis results in a message like: <em>BaseScalaTemplate(play.api.templates.HtmlFormat$@3424b1d9) ()</em><br />
just showing the plain class output, to circumvent this you have to leave out the white space: <em>@navigation_top()</em></li>
<li>templates from the views package can be referenced without the package name in the template like above: <em>@navigation_top()</em> calls the navigation_top template and includes it.<br />
But if you add a subpackage and a template within you have to call it with the full package name.<br />
So a template navigation_top in views.navigation has to be included with:<br />
<em>@views.html.navigation.navigation_top()</em></li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/07/two-pitfalls-with-play-framework-2-templates-i-ran-into/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>twitter bootstrap 2.0.2 broke play 2.0 support</title>
		<link>http://blog.sveri.de/2012/04/05/twitter-bootstrap-2-0-2-broke-play-2-0-support/</link>
		<comments>http://blog.sveri.de/2012/04/05/twitter-bootstrap-2-0-2-broke-play-2-0-support/#comments</comments>
		<pubDate>Thu, 05 Apr 2012 21:57:29 +0000</pubDate>
		<dc:creator>sveri</dc:creator>
				<category><![CDATA[Computer-Mist]]></category>
		<category><![CDATA[play framework]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[bootstrap]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.sveri.de/?p=249</guid>
		<description><![CDATA[I just tried to get the twitter bootstrap lib running with play 2.0, but received an error, irc guys told me that the new twitter bootstrap broke the play support. This is the message: EcmaError: TypeError: Cannot call method &#8220;charAt&#8221; &#8230; <a href="http://blog.sveri.de/2012/04/05/twitter-bootstrap-2-0-2-broke-play-2-0-support/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>I just tried to get the twitter bootstrap lib running with play 2.0, but received an error, irc guys told me that the new twitter bootstrap broke the play support. This is the message:<br />
<em>EcmaError: TypeError: Cannot call method &#8220;charAt&#8221; of undefined (less-1.2.1.js#338)</em></p>
<p>I worked around it by using the 2.0.1 of bootstrap, the nice guy at the irc told me that the git version of play has it fixed already.</p>
<p>Btw. there is a nice and short tutorial to get bootstrap running with play:<br />
<a title="bootstrap play tutorial" href="https://plus.google.com/u/0/108788785914419775677/posts/QgyUF9cXPkv">https://plus.google.com/u/0/108788785914419775677/posts/QgyUF9cXPkv</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sveri.de/2012/04/05/twitter-bootstrap-2-0-2-broke-play-2-0-support/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
