February 2010
5 posts
2 tags
Lift: Form fields attributes
+ = one - The most basic tag, there are no attributes in code nor markup. two - Same as above but with id attribute set in markup. As you can see in generated html this attribute is lost. three - -%> syntax preserves markup attributes. four - Other way of setting html attributes. five - When setting attributes in both code and markup the second one has higher priority.
Feb 17th
2 tags
Lift: "if(loggedIn)" in view
Via: http://wiki.github.com/dpp/liftweb/logging-in-users-without-any-db (there is a bug) View: Boot.scala:
Feb 16th
1 tag
scala note: NonLocalReturn
andrei-pamula: This code will print “1” and then exit. via: http://dev.bizo.com/2010/01/scala-supports-non-local-returns.html
Feb 16th
1 tag
Best scala 2.8 API →
Feb 13th
1 tag
Webapp testing with Webrat and [your language]
Webrat was written mainly to improve Rails` web applications testing. But what if webapp is written in something else? The answer is simple - webrat! Requirements: Ruby Installation: gem install mechanize webrat Done. Now create file test.rb and put in there: To run tests use command: spec test.rb For colorful and more readable output use: spec --color --format...
Feb 12th