Thursday, April 11, 2013

jaxws @Webservice and @Transactional

The magic is:
<tx:annotation-driven mode="aspectj"/>

Wednesday, September 7, 2011

vaadin-xs and wrong css styles

When using vaadin-xs plugin I've noticed that page renders incorrectly (wrong font sizes, wrong input sizes) without specifying correct doctype to the html page.

The magic is to add
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

at the beginning of the html page. Thanks to this

Thursday, August 11, 2011

ubuntu network with p8p67 motherboard (rtl8111e LAN)

Got new motherboard: asus p8p67 with realtek 8111e Gigabit LAN controller. On ubuntu the network works ugly - sometimes it doesn't connect to google and some other sites.

The problem is that ubuntu loads wrong driver for the network - r8169 instead of r8168. The solution is to download correct driver from realtek website and use it.

Wednesday, August 10, 2011

ubuntu 11.04 - setup sun java

sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk

according to this

Friday, July 1, 2011

javafx listview sometimes doesn't catch clicks

I had this form:

    def viewerWrapper = Group {
                content: [
                    viewerScroll,
                    contents
                ]
            }
    def viewerContent = [
                viewerWrapper,
                ... //other components


contents is VBox holding ListView.

In this configuration contents sometimes didn't catch mouse clicks. You had to click twice.

The solution is to move contents up from the Group:


    def viewerWrapper = Group {
                content: [
                    viewerScroll,
                ]
            }
    def viewerContent = [
                viewerWrapper,
                contents
                ... //other components


this will work perfectly

Wednesday, June 22, 2011

wizard with swinghtmltemplate

We want to create wizard for creating new persons with swinghtmltemplate. Wizard is a dialog with 3 pages:
  • Greeting
  • Entering data
  • Confirmation

We will store the overall form design in in the default.html. This file contains bottom panel and places the wizard page in specified position. This file can be used as a skin (or layout) later for simular wizards.

This is the final result (click to see animation):



swinghtmltemplate 0.6 released

Happy to announce release 0.6 of my swinghtmltemplate project.

There is an integration with Flying Saucer (xhtmlrenderer) project added in this release, allowing to use real html for component content and mix it with swing components. Read more about it here. You can check it online in the builder tool.

Other changes include:
  • popupMenu component, also available online in the builder tool
  • 'size' atribute for input tag
  • percents can be used as cell width/height in table tag
  • 'onchange' attribute in list tag
  • card layout support
  • bug fixes