Hi,

I wonder why it worked with a WebPage but broke when used in a Form ?
I think it should not work in a Page as well.

>From your earlier posts I've got the impression that you use wicket-cdi.
This integration supports @Inject.
If you need to use @EJB then you need to use
https://github.com/wicketstuff/core/wiki/Java-EE-Inject

On Wed, Mar 29, 2017 at 10:14 PM, Sokab <[email protected]> wrote:

> Hi Sebastian. Thank You For answer.
>
> I solved this problem after I changed inside Form:
> @EJB
> NewSessionBeanLocal beanLocal
>
> to
>
> @Inject
> NewSessionBeanLocal beanLocal       ..and it works.
>
> I didn't configured the dependency injection because I don't know how if
> You
> ask me about some separate file or class (Sorry I start to learn Wicket). I
> just tried to change atributes inside @EJB( ... like: beanName, lookup ...)
> but that did not help.
>
>
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/How-save-entity-after-clicking-on-submit-
> button-inside-Form-Wicket-class-tp4677474p4677512.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to