Re: browser back

2015-04-14 Thread Chris
Hi Martin,

thanks a lot for your answer!

Chris


> Am 14.04.2015 um 22:35 schrieb Martin Grigorov :
> 
> Hi,
> 
> You can use Session#clear() [1] to remove the history at the server side.
> It is not possible to clear the history in the user's browser though. See
> [2] for some discussions. If you clear at the server side anyway then the
> user will either see PageExpiredException or a new/fresh instance of C, B
> and A will be created.
> 
> 
> 1.
> https://github.com/apache/wicket/blob/5886f69e6a1f79ab6a1ff27f71b72da238b850b1/wicket-core/src/main/java/org/apache/wicket/Session.java#L286
> 2.
> http://stackoverflow.com/questions/20044554/how-to-clear-browsing-history-using-javascript
> 
> Martin Grigorov
> Freelancer, available for hire!
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
> 
> On Sun, Apr 12, 2015 at 10:47 PM, Chris  wrote:
> 
>> Hi all,
>> 
>> How can browser back cache be disabled?
>> 
>> When having a page flow A > B > C > D, I would like that if page D is
>> loaded, the session is invalidated and browser back cache disabled, so that
>> browser back does not work anymore.
>> Between all other pages, browser back should work.
>> 
>> Thanks a lot,
>> Chris
>> -
>> 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



Re: browser back

2015-04-14 Thread Martin Grigorov
Hi,

You can use Session#clear() [1] to remove the history at the server side.
It is not possible to clear the history in the user's browser though. See
[2] for some discussions. If you clear at the server side anyway then the
user will either see PageExpiredException or a new/fresh instance of C, B
and A will be created.


1.
https://github.com/apache/wicket/blob/5886f69e6a1f79ab6a1ff27f71b72da238b850b1/wicket-core/src/main/java/org/apache/wicket/Session.java#L286
2.
http://stackoverflow.com/questions/20044554/how-to-clear-browsing-history-using-javascript

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Sun, Apr 12, 2015 at 10:47 PM, Chris  wrote:

> Hi all,
>
> How can browser back cache be disabled?
>
> When having a page flow A > B > C > D, I would like that if page D is
> loaded, the session is invalidated and browser back cache disabled, so that
> browser back does not work anymore.
> Between all other pages, browser back should work.
>
> Thanks a lot,
> Chris
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Changes to model in onSubmit() automatically reverted (Wicket 7)

2015-04-14 Thread Sven Meier

Hi Don,

this is a duplicate of WICKET-5879.

Have fun
Sven

Am 14.04.2015 um 21:58 schrieb Don Ferguson:

I don’t know if this is a known problem in Wicket 7, but it seems like a pretty 
big one to me.

In a form that is submitted (via ajax), the onSubmit() method updates a model 
object for a component displayed in the form.  The updated value is displayed 
for an instant, but then immediately reverts to the old value.  I’ve boiled 
this down to a simple quickstart and filed a jira, but was wondering if anyone 
else had seen this?  It doesn’t happen in 6.18.0.


https://issues.apache.org/jira/browse/WICKET-5880 







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



Changes to model in onSubmit() automatically reverted (Wicket 7)

2015-04-14 Thread Don Ferguson
I don’t know if this is a known problem in Wicket 7, but it seems like a pretty 
big one to me.

In a form that is submitted (via ajax), the onSubmit() method updates a model 
object for a component displayed in the form.  The updated value is displayed 
for an instant, but then immediately reverts to the old value.  I’ve boiled 
this down to a simple quickstart and filed a jira, but was wondering if anyone 
else had seen this?  It doesn’t happen in 6.18.0.


https://issues.apache.org/jira/browse/WICKET-5880 





Re: ListenerInvocationNotAllowedException in wicket 6.19

2015-04-14 Thread Martin Grigorov
Hi,

It could be https://issues.apache.org/jira/browse/WICKET-5676

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Tue, Apr 14, 2015 at 7:23 PM, ssamarin  wrote:

> Hello,
> I've been trying to figure out the following problem with
> AjaxPagingNavigator:
>
>
> org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
> Behavior rejected interface invocation. Component:
> [AjaxPagingNavigationLink
> [Component id = pageLink]] Behavior:
>
> org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationLink$1@107ac94f
> Listener: [RequestListenerInterface name=IBehaviorListener, method=public
> abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
>
> This is getting thrown quite often, sometimes on every 3rd page link of
> navigator.
> Had no success in resolving this so far, would appreciate your help.
>
> Regards, Stepan.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-in-wicket-6-19-tp4670301.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
>
>


ListenerInvocationNotAllowedException in wicket 6.19

2015-04-14 Thread ssamarin
Hello,
I've been trying to figure out the following problem with
AjaxPagingNavigator:

org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:
Behavior rejected interface invocation. Component: [AjaxPagingNavigationLink
[Component id = pageLink]] Behavior:
org.apache.wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigationLink$1@107ac94f
Listener: [RequestListenerInterface name=IBehaviorListener, method=public
abstract void org.apache.wicket.behavior.IBehaviorListener.onRequest()]

This is getting thrown quite often, sometimes on every 3rd page link of
navigator.
Had no success in resolving this so far, would appreciate your help.

Regards, Stepan.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/ListenerInvocationNotAllowedException-in-wicket-6-19-tp4670301.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: AutoComplete suggestion list disappear when I click on scrollbar in IE

2015-04-14 Thread ravala
Hi,

Thanks for your advice, I have created the jira card with the Quick start
example. Below is the link 
https://issues.apache.org/jira/browse/WICKET-5882

Regards,
Ramesh

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/AutoComplete-suggestion-list-disappear-when-I-click-on-scrollbar-in-IE-tp4670222p4670300.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: How to display download link with file name in wicket

2015-04-14 Thread Martin Grigorov
confirming!
On Apr 14, 2015 6:04 AM, "kspat"  wrote:

> Hi,
>
> Thanks for the response. As I have not given separate wickets ids for each
> column will the approach of adding Panel to CellItem and creating one more
> wicket id in Panel with a  link  . Please confirm this.
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/How-to-display-download-link-with-file-name-in-wicket-tp4670270p4670290.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: compiling wicket 6.19.0 from source fails ->

2015-04-14 Thread Martin Grigorov
Hi,

Either disable Clirr plugin with -Dclirr.skip=true or use jdk 1.6/1.7
instead.
On Apr 14, 2015 6:16 AM, "David Kaufman"  wrote:

> Hi,
>
> we have a few custom performance patches on our wicket 1.4 branch which I
> want to port to the current wicket 6.19 branch (f8d3f258d1faa6).
> Unfortunately, I'm unable to build the project from scratch, i.e. `mvn
> install` fails with an error:
>
> [INFO] BUILD FAILURE
> [INFO]
> 
> [INFO] Total time: 2.084 s
> [INFO] Finished at: 2015-04-14T11:09:38+02:00
> [INFO] Final Memory: 33M/395M
> [INFO]
> 
> [ERROR] Failed to execute goal
> org.codehaus.mojo:clirr-maven-plugin:2.6.1:check (clirr-check) on project
> wicket-util: Execution clirr-check of goal
> org.codehaus.mojo:clirr-maven-plugin:2.6.1:check failed: Invalid byte tag
> in constant pool: 18 -> [Help 1]
>
> A similar error was reported in mid August 2014, but no solution was
> posted, see
>
> http://mail-archives.apache.org/mod_mbox/wicket-users/201408.mbox/%3ccamomwmpakkq2wz5db0mhaxl6fdfeysqakn4rtq4uu4zfxxc...@mail.gmail.com%3E
>
> My current setup is as follows:
> mvn --version
> Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
> 2014-12-14T18:29:23+01:00)
> Maven home: /usr/share/maven3
> Java version: 1.8.0_31, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/jdk1.8.0_31/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "3.13.0-49-generic", arch: "amd64", family:
> "unix"
>
> Any help is greatly appreciated.
>
> Thanks,
> David
>


compiling wicket 6.19.0 from source fails ->

2015-04-14 Thread David Kaufman
Hi,

we have a few custom performance patches on our wicket 1.4 branch which I
want to port to the current wicket 6.19 branch (f8d3f258d1faa6).
Unfortunately, I'm unable to build the project from scratch, i.e. `mvn
install` fails with an error:

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.084 s
[INFO] Finished at: 2015-04-14T11:09:38+02:00
[INFO] Final Memory: 33M/395M
[INFO]

[ERROR] Failed to execute goal
org.codehaus.mojo:clirr-maven-plugin:2.6.1:check (clirr-check) on project
wicket-util: Execution clirr-check of goal
org.codehaus.mojo:clirr-maven-plugin:2.6.1:check failed: Invalid byte tag
in constant pool: 18 -> [Help 1]

A similar error was reported in mid August 2014, but no solution was
posted, see
http://mail-archives.apache.org/mod_mbox/wicket-users/201408.mbox/%3ccamomwmpakkq2wz5db0mhaxl6fdfeysqakn4rtq4uu4zfxxc...@mail.gmail.com%3E

My current setup is as follows:
mvn --version
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1;
2014-12-14T18:29:23+01:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /usr/lib/jvm/jdk1.8.0_31/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-49-generic", arch: "amd64", family:
"unix"

Any help is greatly appreciated.

Thanks,
David


Re: Wicket 7: Problem hiding form from AjaxSubmitLink

2015-04-14 Thread andrea del bene

Done! thank you guys.

On 14/04/2015 08:44, Martin Grigorov wrote:

Hi,

I think Sven's solution is more generic.
Also it will be consistent with WICKET-5597
On Apr 13, 2015 5:20 PM, "Sven Meier"  wrote:


Well, then we should change the type attribute as well, i.e. from "submit"
to "button".

Why not just use #setPreventDefault(true)? Because if JavaScript is
disabled, the browser will still submit the form, without triggering the
callback on the AjaxSubmitLink.

Regards
Sven


Am 13.04.2015 um 18:01 schrieb andrea del bene:


The case pointed out by Don is slightly different as the AjaxSubmitLink
is attached to a  tag. Adding
'attributes.setPreventDefault(true);' in updateAttributes actually
solves his problem.

On 13/04/2015 14:32, Sven Meier wrote:


Hi Andrea,

since WICKET-5597 AjaxSubmitLink already changes the button to prevent
default submitting of the form:

 tag.put("type", "button");

Have fun
Sven


Am 13.04.2015 um 14:19 schrieb Andrea Del Bene:


Due to WICKET-5197 I think we should add to
'attributes.setPreventDefault(true);' to  AjaxSubmitLink


Hi,

Please create a quickstart app and attach it to a ticket at JIRA.
Thanks!
On Apr 12, 2015 9:43 PM, "Don Ferguson" 
wrote:

  Dear Wicket Boffins,

I have a Wicket 6 app that I’ve recently migrated to Wicket 7.   In
the
app there is a form whose AjaxSubmitLink hides the form as part of the
submit.  In Wicket7, this causes a ListenerInvocationNotAllowedException
to
be thrown, since the component that submitted the form is no longer
visible.  What is the approved “wicket way” to do what I’m attempting?

Thanks in advance.

-Don

Here’s a stripped down version of the code:

JAVA:

public class TestPage extends WebPage {
  public TestPage() {
  Form form = new Form("form");
  form.add(new AjaxSubmitLink("submit") {
  @Override
  protected void onSubmit(AjaxRequestTarget target, Form
form) {
  super.onSubmit(target, form);
  form.setVisible(false);
  target.add(form);
  }
  });
  add(form.setOutputMarkupPlaceholderTag(true));
  }
}

HTML:
http://www.w3.org/1999/xhtml"; xmlns:wicket="
http://wicket.apache.org";>

Test Form Submit Hides Form


Form Element





EXCEPTION THROWN ON SUBMIT:
org.apache.wicket.core.request.handler.ListenerInvocationNotAllowedException:

Component rejected interface invocationComponent: [Form [Component id
=
form]] Listener: [RequestListenerInterface name=IFormSubmitListener,
method=public abstract void
org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]

  at
org.apache.wicket.RequestListenerInterface.invoke(
RequestListenerInterface.java:212)
  at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandle
r.invokeListener(ListenerInterfaceRequestHandler.java:241)
  at
org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandle
r.respond(ListenerInterfaceRequestHandler.java:234)
…


-
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



-
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



-
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



Re: Concering Borders in Wicket 6

2015-04-14 Thread David Kaufman
Thanks Martin! That was the explanation that I expected.

Thanks a lot,
David

2015-04-14 10:42 GMT+02:00 Martin Grigorov :

> Hi,
>
> Your description is a bit confusing/unclear.
> The markup looks OK to me.
> YourBorder should add container1 and container2 components.
> Any user of YourBorder will add children components to the border body.
> In HTML terms the body is not direct descendant (because  class="layer2"> is in between) but for Wicket it is direct descendant
> because there is no Wicket component that is both a child of the Border and
> a parent of the Border's BodyContainer.
>
> Martin Grigorov
> Freelancer, available for hire!
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Apr 13, 2015 at 12:26 PM, David Kaufman 
> wrote:
>
> > Hi,
> >
> > I'm currently migration our border classes from Wicket 1.4 to Wicket 6.
> I'm
> > not quite sure if I understand the change correctly.
> >
> > We have markup that looks something like this:
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >u
> >
> > 
> > 
> > 
> > 
> > 
> >
> > Is it sufficient to call the constructor of the border, i.e. super("id",
> > model), although the body is not a direct descendant? Since there is no
> > enclosing wicket component around the border, (except the border
> itself), I
> > don't have to be concerned about adding any container to the border. Is
> > this assumption correct?
> >
> > Thanks
> > -David
> >
>


Re: How to display download link with file name in wicket

2015-04-14 Thread kspat
Hi,

Thanks for the response. As I have not given separate wickets ids for each
column will the approach of adding Panel to CellItem and creating one more
wicket id in Panel with a  link  . Please confirm this.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/How-to-display-download-link-with-file-name-in-wicket-tp4670270p4670290.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: Concering Borders in Wicket 6

2015-04-14 Thread Martin Grigorov
Hi,

Your description is a bit confusing/unclear.
The markup looks OK to me.
YourBorder should add container1 and container2 components.
Any user of YourBorder will add children components to the border body.
In HTML terms the body is not direct descendant (because  is in between) but for Wicket it is direct descendant
because there is no Wicket component that is both a child of the Border and
a parent of the Border's BodyContainer.

Martin Grigorov
Freelancer, available for hire!
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Apr 13, 2015 at 12:26 PM, David Kaufman 
wrote:

> Hi,
>
> I'm currently migration our border classes from Wicket 1.4 to Wicket 6. I'm
> not quite sure if I understand the change correctly.
>
> We have markup that looks something like this:
>
> 
> 
> 
> 
> 
> 
>u
>
> 
> 
> 
> 
> 
>
> Is it sufficient to call the constructor of the border, i.e. super("id",
> model), although the body is not a direct descendant? Since there is no
> enclosing wicket component around the border, (except the border itself), I
> don't have to be concerned about adding any container to the border. Is
> this assumption correct?
>
> Thanks
> -David
>