0

href mailto: causes session timeout

asked 2014-10-16 17:22:53 +0800

cyiannoulis gravatar image cyiannoulis
1191 10

Hi to all,

I have the following anchor in my page:

<a href="@load('mailto:'.concat(vm.email))">
   <label value="@load(vm.email)" sclass="form-control" />
</a>

Clicking the link opens the mail client as expected but as soon as you try to do anything else on the page, zk redirects automatically to the session timeout page.

I have tested the same thing on ZKFiddle and it has the same behavior. I cannot create a new zkfiddle example, so here is the code if you want to test it yourself:

<zk>
  <window border="normal" title="hello" 
  apply="org.zkoss.bind.BindComposer"   
  viewModel="@id('vm') @init('pkg$.TestComposer')">

    <vlayout>

    <a href="mailto:foo@gmail.com"><label value="foo@gmail.com"/></a>

    <button label="Check state" onClick="@command('checkState')" />
    <label value="@load(vm.name)" />

    </vlayout>

  </window>
</zk>


import org.zkoss.zk.ui.*;
import org.zkoss.zk.ui.event.*;
import org.zkoss.zk.ui.util.*;
import org.zkoss.zk.ui.ext.*;
import org.zkoss.zk.au.*;
import org.zkoss.zk.au.out.*;
import org.zkoss.zul.*;
import org.zkoss.bind.annotation.NotifyChange;
import org.zkoss.bind.annotation.Command;

public class TestComposer {

  private String name;

  @Command
  @NotifyChange("name")
  public void checkState() {
     name = "Hello there!";
  }

  public String getName() {
     return name;
  }

}

And the most weird thing: on iOS works fine!

Any idea?

Many thanks

Costas

delete flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
0

answered 2014-10-17 11:28:20 +0800

eclipse2 gravatar image eclipse2
17 4

Same problem here! any update?

link publish delete flag offensive edit

Comments

We can wait a few days and then i shall report is as a bug..

cyiannoulis ( 2014-10-17 15:04:46 +0800 )edit

Ok, thanks!

eclipse2 ( 2014-10-17 17:00:30 +0800 )edit
0

answered 2014-10-27 02:20:19 +0800

cawink gravatar image cawink
27 1

Zk 6.5.7 FL.

Same problem....

Button href with mailto = Timeout

Thanks

link publish delete flag offensive edit

Comments

Posted as a bug: http://tracker.zkoss.org/browse/ZK-2506

cyiannoulis ( 2014-10-27 08:23:28 +0800 )edit

Tested with ZK 6.5.8 FL Same problem...

cawink ( 2014-10-27 10:55:29 +0800 )edit

I can reproduce the behavior when using Chrome and Outlook as default mail client. We will try to fix it in the upcoming ZK version.

neillee ( 2014-10-31 03:54:56 +0800 )edit
0

answered 2014-11-04 13:33:44 +0800

cyiannoulis gravatar image cyiannoulis
1191 10

Fixed http://tracker.zkoss.org/browse/ZK-2506 as of zk 7.0.4

well done guys!

Costas

link publish delete flag offensive edit

Comments

And zk 6.5.8 FL ?

cawink ( 2014-11-11 10:14:55 +0800 )edit

It doesn't mention anything. Please post a comment to http://tracker.zkoss.org/browse/ZK-2506

cyiannoulis ( 2014-11-11 11:10:57 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2014-10-16 17:22:53 +0800

Seen: 41 times

Last updated: Nov 04 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More