[jboss-user] [JBoss Seam] - Converter breaks conversation

endremr do-not-reply at jboss.com
Mon Oct 16 09:05:39 EDT 2006


Hello!

I have a conversation to approve some corrections done in the database. Everything is done within the same Seam component annotated with @Conversational. 

The component is initialized with a method "beginApprovement()" annotated with "@Begin(join = true)". This method fetches the needed data to approve, and initializes currect record etc. before displaying the view.

Then the superuser can approve/disapprove records, and for each approvement the next record is displayed. This works really nice. The conversation is held until last record is approved or the user cancels by invoking a method annotated with @End.

The problem appears when using a converter to map a date object directly to the view. The date is converted and displayed correctly in the input field, but if I write an illegal value that can't be converted to a date, everything breaks because it seams that the conversion is broken.

The constructer for the Seam component is invoked, so the next view generation breaks because the initialized values are missing.

Should this happen or am I missing something? Or could it be a bug? I'm using 1.0.1GA in a portlet enviroment.

Thanks for advice :)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3978515#3978515

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3978515



More information about the jboss-user mailing list