Java Wickets Dynamic DataView

2017-02-02 Thread ASHU_JAVA
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



Re: Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Ravi
Hi Sven,

thank your for your quick reply. I'll try your LinkListener suggestion.

-Ravi

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971p4676975.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



Re: Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Sven Meier

Hi Ravi,

you should pass a different URL to your payment partner:

Put a Link on your page and use its URL.

Or even better, let your page implement ILinkListener and use that URL:

this.urlFor(ILinkListener.INTERFACE, new PageParameters());

Have fun
Sven


On 02.02.2017 11:32, Ravi wrote:

Hi,

We have a Single-Page-Application (SPA) with five pages. On page three we
redirect to a payment partner. Once the payment is done, it redirects back
to our application with given URL.
Because I want to continue on page three, the URL contains the pageId.
Sounds good so far. But now the payment partner has added a reference token
to the URL and as described in  this Ticket
  , Wicket will create a
new page instance because the PageParameter have changed.

What I want to do is that my application always uses the existing page, no
matter if parameters have changed.
I achieved this by  adding a custom MountedMapper, which basically reverts
this commit


In your opinion, is this the proper way for handling those kinds of
problems, or are there any drawbacks to this approach?

Thanks for your time,

Ravi

Ticket-4441 https://issues.apache.org/jira/browse/WICKET-4441.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971.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



Use Page from Pagestore even if PageParameters have changed

2017-02-02 Thread Ravi
Hi,

We have a Single-Page-Application (SPA) with five pages. On page three we
redirect to a payment partner. Once the payment is done, it redirects back
to our application with given URL.
Because I want to continue on page three, the URL contains the pageId. 
Sounds good so far. But now the payment partner has added a reference token
to the URL and as described in  this Ticket
  , Wicket will create a
new page instance because the PageParameter have changed.

What I want to do is that my application always uses the existing page, no
matter if parameters have changed.
I achieved this by  adding a custom MountedMapper, which basically reverts 
this commit

   

In your opinion, is this the proper way for handling those kinds of
problems, or are there any drawbacks to this approach?

Thanks for your time,

Ravi

Ticket-4441 https://issues.apache.org/jira/browse/WICKET-4441.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Use-Page-from-Pagestore-even-if-PageParameters-have-changed-tp4676971.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