フォーラム

ホーム » Liferay Portal » English » 3. Development

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Jack Bakker
need new db prim key before creat vaadin file upload comp with rollback..
2012/10/15 8:31
答え

Jack Bakker

ランク: Liferay Master

投稿: 840

参加年月日: 2010/01/03

最近の投稿

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 ?
Jack Bakker
RE: need new db prim key before creat vaadin file upload comp with rollback
2012/10/15 10:16
答え

Jack Bakker

ランク: Liferay Master

投稿: 840

参加年月日: 2010/01/03

最近の投稿

no longer needed

a class that implements Receiver allows for the filesystem filename to be changed after upload

turned into more of a Vaadin question than a Liferay one ; tho while on that point there are transaction challenges across LR/Vaadin