I want to get value as an object, but here it is string.
JSF converter can do this, in getAsObject method you get a String value and you can create an object depending on the string value.
Yes I made so that. I used JSF converter. Thank you İbrahim.
As a result, It worked, when I used modal panel in another form and I added domElementAttachment="form" to modal panel. for the conversion erros I used custom converter in JSF.
Just to favor the correct answer, I was facing the same kind of problem and after adding the domElementAttachment="form" it was solved!
Thanks!