Re: Can @Inject annotation be used instead of @SpringBean to inject Spring beans?

2017-02-04 Thread Pedro Santos
@Inject, it would make it easier to migrate to CDI as well

cheers
Pedro Santos


On Tue, Jan 31, 2017 at 5:26 AM, Martin Grigorov  wrote:
> Hi,
>
> I use @SpringBean in my applications.
> The only reason one to switch to @Inject is if your application may use
> Guice in the future. Using @Inject will make it easier to migrate.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Tue, Jan 31, 2017 at 4:36 AM, James Selvakumar 
> wrote:
>
>> Hi all,
>>
>> I've always used @SpringBean annotation to inject Spring beans in my Wicket
>> components.
>> We found that we could also use the standard @Inject annotation in Wicket
>> components.
>> Is it advisable to use @Inject instead of @SpringBean?
>> Or should we continue to use @SpringBean?
>>
>> --
>> Thanks & regards
>> James
>>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Java Wickets Dynamic DataView

2017-02-04 Thread Pedro Santos
Hi Ashu,

just make sure the the add button inside the modal re-renders the
DataView. If the input data was correctly add to the database, the
DataView's IDataProvider should correctly start to provide them and
they will show up in the response.

cheers
Pedro Santos


On Thu, Feb 2, 2017 at 4:29 PM, ASHU_JAVA  wrote:
> Hello All,
>
> I'm trying to have a dynamic list view which will get updated dynamically on
> a button click.
> I've to implement the functionality like below:-
>
> 
>
> So, the user will pass either a single name or upload a file containing many
> names, an addition in database is performed in the background by clicking
> the button "ADD".
> On success, the DataView should update the list of names as shown in tabular
> form in above image with the newly added one.
>
> I'm using a model window that contain this form and would like to update the
> list (DataView) section on clicking the ADD button.
>
> Kindly suggest your inputs/code sample to achieve this.
>
> Thanks in advance.
>
>
>
> --
> View this message in context: 
> http://apache-wicket.1842946.n4.nabble.com/Java-Wickets-Dynamic-DataView-tp4676976.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org