Technical Topics
On this page I publish technical hints about various topics. They are a kind of external "memory" for me. Maybe they'll help passers by. I'l be glad about every kind of comment. Please use the contact form.
Tapestry 5: Customizing the appearance of validation errors (and getting rid of the "bubbles")
I have never liked the way Tapestry displays validation errors. First of all the red cross that is displayed after fields in error is destroying the layout of my forms far too often. The carefully arranged fields and labels are jumping around just to make place for the image. Secondly I really don't like the "error bubbles" that appear when client side validation causes errors. They sometimes appear surprisingly, often are covering important content of my sites and sometimes disappear too quickly for reading the error message they are supposed to display. In this topic I'll describe how to customize Tapestry in a way that I found more convenient.
...
ExpandMaven 2: Access Repositories via http and https in one configuration
My development machine is located behind a proxy. Therefore to load dependencies from the web Maven has to pass the proxy. That's what the section "proxies" in the settings.xml is for. The configuration looks as follows:
...
ExpandEclipse: Flip the order of parameters with the help of Regular Expressions
Recently I have switched from JUnit to TestNG. Thanks to the Eclipse plugin the conversion of the test code is no more work than just pressing a button. The assertion-methods are converted to those supplied by the class org.testng.AssertJUnit. But I considered this an intermediate solution and wanted to use the assertion-methods supplied by the class org.testng.Assert. That meant a little challenge. In JUnit the order of parameters for assertions with two parameters (e.g. assertEquals) is "expected", "actual". In TestNG it is just the other way round. For that reason the parameters needed to be flipped.
...
Expand