aspose file tools*
The moose likes JSF and the fly likes please anyone can help me to resolving the error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "please anyone can help me to resolving the error " java.lang.illegalargumentexception "" Watch "please anyone can help me to resolving the error " java.lang.illegalargumentexception "" New topic
Author

please anyone can help me to resolving the error " java.lang.illegalargumentexception "

kunal kathrotia
Greenhorn

Joined: Mar 05, 2011
Posts: 7
" java.lang.illegalargumentexception entity must be managed to call remove javaranch try merging the detached and try the remove again "

is occuring when i try to remove my authorMaster object from the authorMaster table based on id...... :(
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15657
    
  15

Welcome to the JavaRanch, Krunal!

Your problem isn't really in JSF. You are obviously working with an ORM, probably JPA, attempting to delete (remove) a row from a database table. However, the object you are attempting to delete is not presently attached to the ORM. So you have to have your JSF UI code call into the persistence code layer and as part of the persistence code, you'll need something like this:


Customer surveys are for companies who didn't pay proper attention to begin with.
kunal kathrotia
Greenhorn

Joined: Mar 05, 2011
Posts: 7
Thanks Tim......

it's my first reply to my first Post...........

n btw i have resolved my problem and thanks for your kind reply hope it will help me in future....

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: please anyone can help me to resolving the error " java.lang.illegalargumentexception "
 
Similar Threads
changing from MSSQL to MySQL
HTML display not as expected
New Entity with an existing primary key.
how to use 'where' clause
Deployment error, Access to Tomcat server has not been authorized.