But how to do with this situation:
there is no @Begin annotated method. Page is displayed and when clicking the
button actionlistener is called.
public String save() {
}
How to do in this situation ?
Thanks Mila
View the original post :
Easy: Don't modify your data. If you do not have a conversation, then the
entity instances have to be loaded by you from the database and it is you who
are modifying these instances. Do your validation before you modify the
instances.
View the original post :
If you want more specific help, as always, post your code.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074285#4074285
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074285
___
There is code
| @Name(requestAction)
| @Stateful
| @Restrict(#{identity.loggedIn})
| public class RequestAction implements RequestActionLocal, Serializable {
|
|
|
|
| @ValidatedMethod(formName = editForm, validators = {
@CustomValidator(validatorClass =
I remove the resfresh, but problem is,when validation failed some attributes
are set and persisted to the entity Requst.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074300#4074300
Reply to the post :
And? All I can see is that you probably do not know how refresh() is used
properly (in 5 years of Hibernate I never needed it).
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074297#4074297
Reply to the post :
Then that's the problem of how @ValidatedMethod works, which I guess is
something you wrote.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074337#4074337
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074337
Throw an exception which causes a roll back, or, IMO a better option is to use
the manual flush mode pattern./
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074168#4074168
Reply to the post :
Where can I read some about manual flushing ?
Only set
@Begin(flushMode)
and
em.flush()
?
Or something special ?
Thanks Mila
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074175#4074175
Reply to the post :
AS you write.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4074184#4074184
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4074184
___
jboss-user mailing list
10 matches
Mail list logo