cc-ing the Jersey list...
On 12/11/09 2:04 AM, Cemo Koc wrote:
>
> Hi all,
>
> I am planning to use with an impl of JSR-303 with my Jersey service. Last
> month Jersey started to support formbean perfectly. (you can check
> 1.1.5-ea-SNAPSHOT)
>
> Now after injections occured, I would like to obtain injected parameters
> with my filter. And a result of this I can easily validate with JSR-303.
>
> Shortly,
>
> public class AccountBean {
>
> @FormParam("acc.type")
> @NotNull
> private Integer type;
> }
>
>
> @POST
> @Path("live")
> @Consumes({MediaType.APPLICATION_FORM_URLENCODED})
> @Produces({MediaType.TEXT_HTML})
> public Template postLive(@Inject AccountBean account) {
>
> //............
> }
>
>
> I just want to validate my injected bean with a resource filter. In case a
> validation error, a 4xx error could be returned... How can I do that? Paul?
> :)
>
> Thanks
>
>
>