james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manuel Carrasco Moñino <man...@apache.org>
Subject Re: hupa questions
Date Fri, 13 Jul 2012 12:37:24 GMT
I dont see the patch in jira either

https://issues.apache.org/jira/browse/HUPA-93

- Manolo

On Fri, Jul 13, 2012 at 10:49 AM, <gzsombor@gmail.com> wrote:

> Yes, it seems, that happened. I will attach the patch to the JIRA ticket
>
>
> Zsombor
>
>
>
> On Fri Jul 13 10:38:16 GMT+200 2012, Ioan Eugen Stan &
> lt;stan.ieugen@gmail.com&gt;. wrote:
>
> Hi Manolo, Zsombor,
>
> The list may remove the attachments. If it fails maybe isuue on JIRA +
> file attached would be better,
>
> 2012/7/13 Manuel Carrasco Moñino &lt;manolo@apache.org&gt;:
> &gt; Hi, I do not see your patches, did you forget to attach to your email?
> &gt;
> &gt; - Manolo
> &gt;
> &gt; On Thu, Jul 12, 2012 at 11:48 PM, Zsombor &lt;gzsombor@gmail.com&gt;
> wrote:
> &gt;
> &gt;&gt; Hi,
> &gt;&gt;
> &gt;&gt; I've attached two patch:
> &gt;&gt; - the first for adding 'View' link for the attachments in Hupa
> for images
> &gt;&gt; - the secod for modifying the regexp for the email address
> validator,
> &gt;&gt; because the current regexp doesn't allow to subscribe to the
> server-dev
> &gt;&gt; mail list,the mailing list manager sends email where the reply-to
> address
> &gt;&gt; contains '='
> &gt;&gt;
> &gt;&gt; Regards
> &gt;&gt; Zsombor
> &gt;&gt;
> &gt;&gt;
> &gt;&gt; On Thu, Jul 12, 2012 at 11:05 PM, Zsombor &lt;gzsombor@gmail.com&gt;
> wrote:
> &gt;&gt;
> &gt;&gt;&gt; Sorry, my bad. It turned out, that a browser extension had
> removed the
> &gt;&gt;&gt; target attributes from the html, just after it was attached
> to the DOM.
> &gt;&gt;&gt;
> &gt;&gt;&gt; I will create a proper patch file about it.
> &gt;&gt;&gt;
> &gt;&gt;&gt; Regards
> &gt;&gt;&gt; Zsombor
> &gt;&gt;&gt;
> &gt;&gt;&gt;
> &gt;&gt;&gt; On Thu, Jul 12, 2012 at 3:41 PM, &lt;gzsombor@gmail.com&gt;
> wrote:
> &gt;&gt;&gt;
> &gt;&gt;&gt;&gt; Hmm, interesting, because on an other gwt project,
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; Anchor a = new Anchor("click me");
> &gt;&gt;&gt;&gt; a.setTarget("_blank");
> &gt;&gt;&gt;&gt; my_panel.add(a);
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; worked flawlessly.
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; Thanks
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; On Thu Jul 12 15:11:51 GMT+200 2012, Manuel Carrasco
> Moñino &lt;
> &gt;&gt;&gt;&gt; manolo@apache.org&gt;. wrote:
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; Gwt Anchor widget is thought to maintain the user in
the
> same page so as
> &gt;&gt;&gt;&gt; the app is not replaced accidentally. So the correct
code
> is:
> &gt;&gt;&gt;&gt; Anchor a = new Anchor("click me");
> &gt;&gt;&gt;&gt; a.addClickHandler(new ClickHandler() {
> &gt;&gt;&gt;&gt; public void onClick(ClickEvent event) {
> &gt;&gt;&gt;&gt; Window.open("/show_attachments/", "_blank", "");
> &gt;&gt;&gt;&gt; }
> &gt;&gt;&gt;&gt; });
> &gt;&gt;&gt;&gt; your_panel.add(a);
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; If you want to add html code to the view you can use
the
> HTML widget,
> &gt;&gt;&gt;&gt; but
> &gt;&gt;&gt;&gt; you have to be aware about what you do.
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; HTML h = new HTML("&lt;a href='/your_url'
> target='_blank'&gt;click me&lt;/a&gt;");
> &gt;&gt;&gt;&gt; your_panel.add(h);
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; - Manolo
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; On Thu, Jul 12, 2012 at 9:52 AM, &lt;gzsombor@gmail.com&gt;
> wrote:
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt; &gt; Hi,
> &gt;&gt;&gt;&gt; &gt;
> &gt;&gt;&gt;&gt; &gt; I've recently started using hupa, and it's
awesome,
> with a couple of
> &gt;&gt;&gt;&gt; &gt; glitches. For example, it is impossible to
subscribe
> to this mail list
> &gt;&gt;&gt;&gt; &gt; using hupa, because of the email address validation
> regexp ;) But it
> &gt;&gt;&gt;&gt; was
> &gt;&gt;&gt;&gt; &gt; easy to fix. I've tried to implement a 'View
> attachment' functionality
> &gt;&gt;&gt;&gt; for
> &gt;&gt;&gt;&gt; &gt; attachments (the servlet related parts was
simple -
> skip the
> &gt;&gt;&gt;&gt; &gt; 'content-disposition' header), I've stucked
on
> creating a 'View' link
> &gt;&gt;&gt;&gt; with
> &gt;&gt;&gt;&gt; &gt; target="_blank". It seems that, I can create
Anchor
> object with
> &gt;&gt;&gt;&gt; &gt; setTarget("_blank"), and I can add it to the
> container - and in that
> &gt;&gt;&gt;&gt; case I
> &gt;&gt;&gt;&gt; &gt; can still see the generated html is correct,
but in
> the browser, that
> &gt;&gt;&gt;&gt; &gt; attribute is removed. Do you know any functionality
> which could adjust
> &gt;&gt;&gt;&gt; the
> &gt;&gt;&gt;&gt; &gt; html ? It seems a bit overkill to have click
handler
> on it, and call
> &gt;&gt;&gt;&gt; &gt; Window.open(...), instead of using the builtin
html
> functionality.
> &gt;&gt;&gt;&gt; &gt; Other question, I see, there are git mirror
> repositories of apache
> &gt;&gt;&gt;&gt; &gt; softwares at http://git.apache.org , but there
is
> no repo for hupa -
> &gt;&gt;&gt;&gt; can
> &gt;&gt;&gt;&gt; &gt; you create one ? With a github mirror would
be
> awesome ;)
> &gt;&gt;&gt;&gt; &gt;
> &gt;&gt;&gt;&gt; &gt; Thanks
> &gt;&gt;&gt;&gt; &gt; Zsombor
> &gt;&gt;&gt;&gt; &gt;
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;&gt;
> &gt;&gt;&gt;
> &gt;&gt;
> &gt;&gt;
> &gt;&gt;
> ---------------------------------------------------------------------
> &gt;&gt; To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
> &gt;&gt; For additional commands, e-mail: server-dev-help@james.apache.org
> &gt;&gt;
>
>
>
> --
> Ioan Eugen Stan / CTO / http://axemblr.com
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message