IBS Helpdesk

Professionelle IT-Lösungen

Entries for the ‘Java’ Category

JFormattedTextfield: Display double values as time format

Here you can find a Formatter-Implementation which is able to format double values in JFormattedTextfield as time format like “01:30″ and vice versa, i.e. needed for duration inputs. Furthermore you don’t need to input the :-separator, “0130″ will be automatically translated to “01:30″ . The formatter is also able to allow ‘native’ double inputs like [...]

Eclipselink, MS SQL Server & @@IDENTITY

When you are using the Eclipselink JPA implementation with a replicated MSSQL database (or a database with more complex triggers on some tables) you’re running probably into major problems when persisting objects, especially when you would like to use the cascaded persisting mechanism. Sometimes the database returns a wrong generated primary key which results in [...]

JSF: immediate=”true” und reRender=”…”

Umgebung:
JSF 1.2 / RichFaces 3.2.0.GA
Beschreibung:
In einer dataTable gibt es einen Link, der eine Zeile löschen soll – und das unabhängig von Validierungsfehlern im restlichen Formular. Daher wird immediate=”true” verwendet um die Validierung zu umgehen. Im reRender-Attribut ist die dataTable angegeben, damit die Sicht aktualisiert wird.
Problem:
Diese Vorgehensweise funktioniert nicht wie erwartet. Zwar wird immer der richtige [...]