Re: code sample added...

2013-07-09 Thread Dan Haywood
On 9 July 2013 18:26, Bhargav Golla  wrote:

> Got it working.
>
good-o.



> So this means that I will have to compile the war every time I change
> something in HTML/JS, isn't it?
>

No... per the README I wrote [1], you can edit and save in your editor,
then reload (ctrl+R in chrome).  Jetty will automatically detect the change.





> Is there any config change to allow all requests to our server so that I
> don't hit a CORS issue?
>
>
Don't quite follow you - but if you were thinking of hosting the scripts on
some other server for dynamic reloading, then you shouldn't need to worry
about that; see above.

Dan


[1] https://github.com/bhargavgolla/isisJavaScript/tree/dan


Re: code sample added...

2013-07-09 Thread Bhargav Golla
Got it working. So this means that I will have to compile the war every
time I change something in HTML/JS, isn't it? Is there any config change to
allow all requests to our server so that I don't hit a CORS issue?

Bhargav Golla
Developer. Freelancer.
B.E (Hons.) Computer Science
BITS-Pilani
Github  |
LinkedIN
 | Website 


On Tue, Jul 9, 2013 at 5:18 AM, Dan Haywood 
wrote:

> Thanks!
>
>
> On 9 July 2013 00:44, Maurizio Taverna  wrote:
>
>> Hello,
>>
>>> *Maurizio*: if you get a moment, could you confirm that this code
>>> sample works ok for you?
>>>
>>
>> Yep, I confirm.
>> 1. I dropped the *index.html* and script files in *
>> viewer-webapp/src/main/webapp*.
>> 2. From * viewer-webapp* directory *mvn install*
>> 3. From  *viewer-webapp/target* directory *java -jar
>> myapp-viewer-webapp-1.0-SNAPSHOT-jetty-console.war*
>> 4. Pointing the browser to http://localhost:8080/*index.html* I got the
>> index page.
>>
>> HTH
>> Maurizio
>>
>>
>> 2013/7/9 Dan Haywood 
>>
>>> Bhargav,
>>> further to our quick chat this eve [2], I've uploaded a code sample to
>>> your repo [1]
>>>
>>> Note that this is in the 'dan' branch.  The README has the salient
>>> details.
>>>
>>> *Maurizio*: if you get a moment, could you confirm that this code
>>> sample works ok for you?
>>>
>>> Thx
>>> Dan
>>>
>>> ~~~
>>> [1] https://github.com/bhargavgolla/isisJavaScript/tree/dan
>>> [2] transcript:
>>>
>>> Bhargav Golla
>>> Hi Dan, I am still unable to access my html page via URL. I placed the
>>> index.html file in webapp\src\main\webapp . But I am unable to access it
>>> with localhost:8080/index.html. My request isn't giving me anything. I am
>>> just getting a blank page. I tried changing permissions of the file also.
>>> Still no luck. Any help here?
>>>
>>> Dan Haywood
>>> Can you grant me commit access to your git hub report so that I can
>>> upload a code sample?
>>>
>>> Bhargav Golla
>>> Will do that
>>> Added
>>>
>>>
>>>
>>
>


[jira] [Resolved] (ISIS-461) Provide the ability to run arbitrary fixtures (implementing the applib's InstallableFixture) in integration tests

2013-07-09 Thread Dan Haywood (JIRA)

 [ 
https://issues.apache.org/jira/browse/ISIS-461?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Haywood resolved ISIS-461.
--

Resolution: Fixed

> Provide the ability to run arbitrary fixtures (implementing the applib's 
> InstallableFixture) in integration tests 
> --
>
> Key: ISIS-461
> URL: https://issues.apache.org/jira/browse/ISIS-461
> Project: Isis
>  Issue Type: New Feature
>  Components: Core
>Affects Versions: core-1.2.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.3.0
>
>
> The InstallableFixture implementations can use an injected IsisJdoSupport to 
> run arbitrary SQL, eg to truncate tables/delete objects.  They can then setup 
> new data.
> This follows on from ISIS-459 and ISIS-460.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (ISIS-461) Provide the ability to run arbitrary fixtures (implementing the applib's InstallableFixture) in integration tests

2013-07-09 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703020#comment-13703020
 ] 

ASF subversion and git services commented on ISIS-461:
--

Commit 91e75da688b30566f825bdeb039553cb17180464 in branch refs/heads/master 
from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=91e75da ]

ISIS-461: provide ability to run arbitrary fixtures in integration tests.


> Provide the ability to run arbitrary fixtures (implementing the applib's 
> InstallableFixture) in integration tests 
> --
>
> Key: ISIS-461
> URL: https://issues.apache.org/jira/browse/ISIS-461
> Project: Isis
>  Issue Type: New Feature
>  Components: Core
>Affects Versions: core-1.2.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: core-1.3.0
>
>
> The InstallableFixture implementations can use an injected IsisJdoSupport to 
> run arbitrary SQL, eg to truncate tables/delete objects.  They can then setup 
> new data.
> This follows on from ISIS-459 and ISIS-460.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (ISIS-460) JDO objectstore should sync adapters on bulk delete.

2013-07-09 Thread Dan Haywood (JIRA)

 [ 
https://issues.apache.org/jira/browse/ISIS-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Haywood resolved ISIS-460.
--

Resolution: Fixed

> JDO objectstore should sync adapters on bulk delete.
> 
>
> Key: ISIS-460
> URL: https://issues.apache.org/jira/browse/ISIS-460
> Project: Isis
>  Issue Type: Improvement
>  Components: Objectstore: JDO
>Affects Versions: objectstore-jdo-1.1.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
> Fix For: objectstore-jdo-1.2.0
>
>
> Following on from ISIS-459, deleting directly through JDO can cause Isis's 
> internal adapters to get out of whack.  Use the listeners and 
> FrameworkSynchronizer to keep things in sync.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (ISIS-459) Enhance IsisJdoSupport service to support integration testing (execute arbitrary SQL, delete all instances of an entity)

2013-07-09 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703023#comment-13703023
 ] 

ASF subversion and git services commented on ISIS-459:
--

Commit 4ab4ac0e120d6b9d1a7dd55eb633f8d14678e6ac in branch refs/heads/master 
from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=4ab4ac0 ]

ISIS-459: IsisJdoSupport enhancements for integration testing.


> Enhance IsisJdoSupport service to support integration testing (execute 
> arbitrary SQL, delete all instances of an entity)
> 
>
> Key: ISIS-459
> URL: https://issues.apache.org/jira/browse/ISIS-459
> Project: Isis
>  Issue Type: New Feature
>  Components: Objectstore: JDO
>Affects Versions: objectstore-jdo-1.1.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: objectstore-jdo-1.2.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (ISIS-459) Enhance IsisJdoSupport service to support integration testing (execute arbitrary SQL, delete all instances of an entity)

2013-07-09 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-459?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703022#comment-13703022
 ] 

ASF subversion and git services commented on ISIS-459:
--

Commit 5bbaa954222303d4674ac0157636680f08079a06 in branch refs/heads/master 
from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=5bbaa95 ]

ISIS-460: synchronize adapters for deleted pojos.

This follows on from ISIS-459.


> Enhance IsisJdoSupport service to support integration testing (execute 
> arbitrary SQL, delete all instances of an entity)
> 
>
> Key: ISIS-459
> URL: https://issues.apache.org/jira/browse/ISIS-459
> Project: Isis
>  Issue Type: New Feature
>  Components: Objectstore: JDO
>Affects Versions: objectstore-jdo-1.1.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: objectstore-jdo-1.2.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Resolved] (ISIS-459) Enhance IsisJdoSupport service to support integration testing (execute arbitrary SQL, delete all instances of an entity)

2013-07-09 Thread Dan Haywood (JIRA)

 [ 
https://issues.apache.org/jira/browse/ISIS-459?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dan Haywood resolved ISIS-459.
--

Resolution: Fixed

> Enhance IsisJdoSupport service to support integration testing (execute 
> arbitrary SQL, delete all instances of an entity)
> 
>
> Key: ISIS-459
> URL: https://issues.apache.org/jira/browse/ISIS-459
> Project: Isis
>  Issue Type: New Feature
>  Components: Objectstore: JDO
>Affects Versions: objectstore-jdo-1.1.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
>Priority: Minor
> Fix For: objectstore-jdo-1.2.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Commented] (ISIS-460) JDO objectstore should sync adapters on bulk delete.

2013-07-09 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/ISIS-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13703021#comment-13703021
 ] 

ASF subversion and git services commented on ISIS-460:
--

Commit 5bbaa954222303d4674ac0157636680f08079a06 in branch refs/heads/master 
from [~danhaywood]
[ https://git-wip-us.apache.org/repos/asf?p=isis.git;h=5bbaa95 ]

ISIS-460: synchronize adapters for deleted pojos.

This follows on from ISIS-459.


> JDO objectstore should sync adapters on bulk delete.
> 
>
> Key: ISIS-460
> URL: https://issues.apache.org/jira/browse/ISIS-460
> Project: Isis
>  Issue Type: Improvement
>  Components: Objectstore: JDO
>Affects Versions: objectstore-jdo-1.1.0
>Reporter: Dan Haywood
>Assignee: Dan Haywood
> Fix For: objectstore-jdo-1.2.0
>
>
> Following on from ISIS-459, deleting directly through JDO can cause Isis's 
> internal adapters to get out of whack.  Use the listeners and 
> FrameworkSynchronizer to keep things in sync.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (ISIS-461) Provide the ability to run arbitrary fixtures (implementing the applib's InstallableFixture) in integration tests

2013-07-09 Thread Dan Haywood (JIRA)
Dan Haywood created ISIS-461:


 Summary: Provide the ability to run arbitrary fixtures 
(implementing the applib's InstallableFixture) in integration tests 
 Key: ISIS-461
 URL: https://issues.apache.org/jira/browse/ISIS-461
 Project: Isis
  Issue Type: New Feature
  Components: Core
Affects Versions: core-1.2.0
Reporter: Dan Haywood
Assignee: Dan Haywood
Priority: Minor
 Fix For: core-1.3.0


The InstallableFixture implementations can use an injected IsisJdoSupport to 
run arbitrary SQL, eg to truncate tables/delete objects.  They can then setup 
new data.

This follows on from ISIS-459 and ISIS-460.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (ISIS-460) JDO objectstore should sync adapters on bulk delete.

2013-07-09 Thread Dan Haywood (JIRA)
Dan Haywood created ISIS-460:


 Summary: JDO objectstore should sync adapters on bulk delete.
 Key: ISIS-460
 URL: https://issues.apache.org/jira/browse/ISIS-460
 Project: Isis
  Issue Type: Improvement
  Components: Objectstore: JDO
Affects Versions: objectstore-jdo-1.1.0
Reporter: Dan Haywood
Assignee: Dan Haywood
 Fix For: objectstore-jdo-1.2.0


Following on from ISIS-459, deleting directly through JDO can cause Isis's 
internal adapters to get out of whack.  Use the listeners and 
FrameworkSynchronizer to keep things in sync.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Created] (ISIS-459) Enhance IsisJdoSupport service to support integration testing (execute arbitrary SQL, delete all instances of an entity)

2013-07-09 Thread Dan Haywood (JIRA)
Dan Haywood created ISIS-459:


 Summary: Enhance IsisJdoSupport service to support integration 
testing (execute arbitrary SQL, delete all instances of an entity)
 Key: ISIS-459
 URL: https://issues.apache.org/jira/browse/ISIS-459
 Project: Isis
  Issue Type: New Feature
  Components: Objectstore: JDO
Affects Versions: objectstore-jdo-1.1.0
Reporter: Dan Haywood
Assignee: Dan Haywood
Priority: Minor
 Fix For: objectstore-jdo-1.2.0




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira