have a Vaadin portlet add document form which includes a file upload (with browse) ; for a pdf
I want to name the pdf file server side using the same as db primary key (postgresql 8.4)
Doc doc = DocLocalServiceUtil.create(0)
doc = DocLocalServiceUtil.addDoc(doc)
String fileName = doc.getDocId()
..
but for rollback, what if user just navigates away from the form ?
Please sign in to flag this as inappropriate.