click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haim Schindler <haim.schind...@gmail.com>
Subject How to create simple anchor
Date Tue, 13 Apr 2010 16:05:30 GMT
*I need to dynamically create an html link that points to another page.
Is this the way to do it ?
*
@Bindable
protected ActionLink someLink;
....
.....
someLink.setActionListener(new ActionListener() {
      public boolean onAction(Control source) {
           String path = getContext().getPagePath(SomePage.class);
           setRedirect(path);
           return true;
      }
});

*the problem with this is that it uses "Redirect" so two calls are issues to
the server instead of one if I just generate the html link by myself.*

Mime
View raw message