You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2014/02/20 04:27:23 UTC

[jira] [Created] (ISIS-705) Support actions accepting parameters, and also bulk actions, that return Blobs/Clobs

Dan Haywood created ISIS-705:
--------------------------------

             Summary: Support actions accepting parameters, and also bulk actions, that return Blobs/Clobs
                 Key: ISIS-705
                 URL: https://issues.apache.org/jira/browse/ISIS-705
             Project: Isis
          Issue Type: Improvement
          Components: Viewer: Wicket
    Affects Versions: viewer-wicket-1.3.1
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Minor
             Fix For: viewer-wicket-1.5.0


The issue here is that the returned Blob/Clob must be handled with a scheduled handler (see ActionResultResponseHandlingStrategy class) but it is also necessary to refresh the page by redirecting to a new page.  (In the case of an action accepting parameters, want to remove the dialog.  In the case of a bulk action, want to clear the toggles and refresh the list).

Haven't yet figured out how to do that ... :-(



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Re: [jira] [Created] (ISIS-705) Support actions accepting parameters, and also bulk actions, that return Blobs/Clobs

Posted by Dan Haywood <da...@haywood-associates.co.uk>.
Hi David,
Just looking into this to refresh my memory on it... my recollection was
that I had written converters to store these datatypes as multiple columns
in the DB.

HOWEVER....

it would seem that these aren't being picked up.  Therefore the blob that
you see in the database is the (Java) serialized version of the Blob object
(and ditto for Clob).

Not exactly ideal.

I've raised ISIS-714 [1] to fix this, but will defer until 1.5.0, I think.

In the meantime, under ISIS-695 (tidy up tasks for 1.4.0) I've made some
initial fixes (not that any of these fixed the issue):
- the plugin.xml file that declares the blob/clobs converters was also
specifying the wrong package, so that, at least is fixed.
- I've also moved from the jdo-applib module to jdo-datanucleus (in case
the plugin.xml needs to be in the same module as the converters...).

There's more information about how this works on the DN site [3], so a
patch from anyone getting this working would be most welcome :-)

Dan

[1] https://issues.apache.org/jira/browse/ISIS-714
[2] https://issues.apache.org/jira/browse/ISIS-695
[3] http://www.datanucleus.org/extensions/rdbms_java_types.html



On 20 February 2014 04:48, David Tildesley <da...@yahoo.co.nz> wrote:

> Hi Dan,
>
> Speaking of blobs, we noticed that somehow ISIS is persisting metadata
> with the uploaded blob (e.g. filename and maybe mimetype?). We were just
> wondering how this is done as we have to migrate an existing database table
> with a blob column (jpg photo) to our ISIS based app and we think we may
> have to bulk load through the framework rather than direct to the dom
> entity table. Or any other suggested approach for this once off migration?
>
> Regards,
> David.
>
>
>
>
>
> On Thursday, 20 February 2014 4:27 PM, Dan Haywood (JIRA) <ji...@apache.org>
> wrote:
>
> Dan Haywood created ISIS-705:
> --------------------------------
>
>              Summary: Support actions accepting parameters, and also bulk
> actions, that return Blobs/Clobs
>                  Key: ISIS-705
>                  URL: https://issues.apache.org/jira/browse/ISIS-705
>              Project: Isis
>           Issue Type: Improvement
>           Components: Viewer: Wicket
>     Affects Versions: viewer-wicket-1.3.1
>             Reporter: Dan Haywood
>             Assignee: Dan Haywood
>             Priority: Minor
>              Fix For: viewer-wicket-1.5.0
>
>
> The issue here is that the returned Blob/Clob must be handled with a
> scheduled handler (see ActionResultResponseHandlingStrategy class) but it
> is also necessary to refresh the page by redirecting to a new page.  (In
> the case of an action accepting parameters, want to remove the dialog.  In
> the case of a bulk action, want to clear the toggles and refresh the list).
>
> Haven't yet figured out how to do that ... :-(
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.1.5#6160)
>

Re: [jira] [Created] (ISIS-705) Support actions accepting parameters, and also bulk actions, that return Blobs/Clobs

Posted by Jeroen van der Wal <je...@stromboli.it>.
David,

In our application we created an Api service [1] which is being called by a
simple routine to migrate existing data. Don't know how the resftul viewer
handles blobs but you could experiment with a Rest client [2] and report
issues here.

[1]
https://github.com/estatio/estatio/blob/master/dom/src/main/java/org/estatio/api/Api.java
[2] https://chrome.google.com/webstore/detail/advanced-rest-client/



On Thu, Feb 20, 2014 at 5:48 AM, David Tildesley <da...@yahoo.co.nz>wrote:

> Hi Dan,
>
> Speaking of blobs, we noticed that somehow ISIS is persisting metadata
> with the uploaded blob (e.g. filename and maybe mimetype?). We were just
> wondering how this is done as we have to migrate an existing database table
> with a blob column (jpg photo) to our ISIS based app and we think we may
> have to bulk load through the framework rather than direct to the dom
> entity table. Or any other suggested approach for this once off migration?
>
> Regards,
> David.
>
>
>
>
>
> On Thursday, 20 February 2014 4:27 PM, Dan Haywood (JIRA) <ji...@apache.org>
> wrote:
>
> Dan Haywood created ISIS-705:
> --------------------------------
>
>              Summary: Support actions accepting parameters, and also bulk
> actions, that return Blobs/Clobs
>                  Key: ISIS-705
>                  URL: https://issues.apache.org/jira/browse/ISIS-705
>              Project: Isis
>           Issue Type: Improvement
>           Components: Viewer: Wicket
>     Affects Versions: viewer-wicket-1.3.1
>             Reporter: Dan Haywood
>             Assignee: Dan Haywood
>             Priority: Minor
>              Fix For: viewer-wicket-1.5.0
>
>
> The issue here is that the returned Blob/Clob must be handled with a
> scheduled handler (see ActionResultResponseHandlingStrategy class) but it
> is also necessary to refresh the page by redirecting to a new page.  (In
> the case of an action accepting parameters, want to remove the dialog.  In
> the case of a bulk action, want to clear the toggles and refresh the list).
>
> Haven't yet figured out how to do that ... :-(
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.1.5#6160)
>

Re: [jira] [Created] (ISIS-705) Support actions accepting parameters, and also bulk actions, that return Blobs/Clobs

Posted by David Tildesley <da...@yahoo.co.nz>.
Hi Dan,

Speaking of blobs, we noticed that somehow ISIS is persisting metadata with the uploaded blob (e.g. filename and maybe mimetype?). We were just wondering how this is done as we have to migrate an existing database table with a blob column (jpg photo) to our ISIS based app and we think we may have to bulk load through the framework rather than direct to the dom entity table. Or any other suggested approach for this once off migration?

Regards,
David.





On Thursday, 20 February 2014 4:27 PM, Dan Haywood (JIRA) <ji...@apache.org> wrote:
 
Dan Haywood created ISIS-705:
--------------------------------

             Summary: Support actions accepting parameters, and also bulk actions, that return Blobs/Clobs
                 Key: ISIS-705
                 URL: https://issues.apache.org/jira/browse/ISIS-705
             Project: Isis
          Issue Type: Improvement
          Components: Viewer: Wicket
    Affects Versions: viewer-wicket-1.3.1
            Reporter: Dan Haywood
            Assignee: Dan Haywood
            Priority: Minor
             Fix For: viewer-wicket-1.5.0


The issue here is that the returned Blob/Clob must be handled with a scheduled handler (see ActionResultResponseHandlingStrategy class) but it is also necessary to refresh the page by redirecting to a new page.  (In the case of an action accepting parameters, want to remove the dialog.  In the case of a bulk action, want to clear the toggles and refresh the list).

Haven't yet figured out how to do that ... :-(



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)