[
https://jira.jboss.org/jira/browse/JBSEAM-3330?page=com.atlassian.jira.pl...
]
judy guglielmin commented on JBSEAM-3330:
-----------------------------------------
Please understand that this is due to the framework components of Seam in tangent with the
jsf lifecycle. The entities are "wired" directly to the database so any submit
will update for default seam-gen generated templates. A partial-submit submits all
components on the form, so the form input does get persisted to the database. In some
instances this may be desirable. However, Hibernate does support a manual flush (not
sure what you mean my not universally supported??). It is very simple to implement and
allows control over when persistence occurs. Another solution can be to not use partial
submit on forms where you don't want things persisted directly to the database. You
could still use validator="#{someBean.somemethod}" for each of the
(icefaces)input components, but they would only be fired when you submitted the form (via
ice:commandButton).
ICEfaces edit page in seam-gen application updates without save
---------------------------------------------------------------
Key: JBSEAM-3330
URL:
https://jira.jboss.org/jira/browse/JBSEAM-3330
Project: Seam
Issue Type: Bug
Components: ICE Faces Integration, Tools
Affects Versions: 2.0.3.CR1
Environment: ICEfaces
Reporter: Valerie Griffin
Assignee: judy guglielmin
The generated code includes partial submit. Whenever a field is changed, the database is
updated without requiring the Save button.
I've reported this problem to ICEfaces. The fix they propose requires the use of
manual flush, which I understand is not universally supported. (The fix is to use manual
flush and to override update, persist, and remove to invoke the manual flush.)
I'm changing my seam-gen files to use that fix but am not including them here because
I don't think that's necessarily the best fix.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira