[JBoss JIRA] (JBIDE-14453) CordovaSim: add support of 2.7.0
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/JBIDE-14453?page=com.atlassian.jira.plugi... ]
Ilya Buziuk commented on JBIDE-14453:
-------------------------------------
In cordova 2.6.0 loading of cordova_plugins.json was implemented the following way, and there were no problems for CordovaSim:
{code}
try { // we commented we were going to try, so let us actually try and catch
var xhr = new context.XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState != 4) { // not DONE
return;
}
// If the response is a JSON string which composes an array, call handlePluginsObject.
// If the request fails, or the response is not a JSON array, just call finishPluginLoading.
if (this.status == 200) {
var obj = JSON.parse(this.responseText);
if (obj && obj instanceof Array && obj.length > 0) {
handlePluginsObject(obj);
} else {
finishPluginLoading();
}
} else {
finishPluginLoading();
}
};
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.send();
}
catch(err) {
finishPluginLoading();
}
}(window));
{code}
However in cordova-2.7.0 the code was changed, and CordovaSim stopped working correctly (https://issues.apache.org/jira/browse/CB-3379):
{code}
try { // we commented we were going to try, so let us actually try and catch
var xhr = new context.XMLHttpRequest();
xhr.onload = function() {
// If the response is a JSON string which composes an array, call handlePluginsObject.
// If the request fails, or the response is not a JSON array, just call finishPluginLoading.
var obj = this.responseText && JSON.parse(this.responseText);
if (obj && obj instanceof Array && obj.length > 0) {
handlePluginsObject(obj);
} else {
finishPluginLoading();
}
};
xhr.onerror = function() {
finishPluginLoading();
};
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.send();
}
catch(err){
finishPluginLoading();
}
}(window));
{code}
Fortunately, cordova team has already fixed that issue - https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=26796..., and everything will be fine in the next release of cordova)
> CordovaSim: add support of 2.7.0
> --------------------------------
>
> Key: JBIDE-14453
> URL: https://issues.jboss.org/browse/JBIDE-14453
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: browsersim
> Affects Versions: 4.1.0.Alpha2
> Reporter: Yahor Radtsevich
> Assignee: Ilya Buziuk
>
> The latest supported version of cordova.js is 2.6.
> We need to add support for 2.7, which is came out April 30th 2013.
--
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
13 years, 1 month
[JBoss JIRA] (JBIDE-14453) CordovaSim: add support of 2.7.0
by Ilya Buziuk (JIRA)
[ https://issues.jboss.org/browse/JBIDE-14453?page=com.atlassian.jira.plugi... ]
Ilya Buziuk edited comment on JBIDE-14453 at 5/15/13 10:10 AM:
---------------------------------------------------------------
In cordova 2.6.0 loading of cordova_plugins.json was implemented the following way, and there were no problems for CordovaSim:
{code}
try { // we commented we were going to try, so let us actually try and catch
var xhr = new context.XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState != 4) { // not DONE
return;
}
// If the response is a JSON string which composes an array, call handlePluginsObject.
// If the request fails, or the response is not a JSON array, just call finishPluginLoading.
if (this.status == 200) {
var obj = JSON.parse(this.responseText);
if (obj && obj instanceof Array && obj.length > 0) {
handlePluginsObject(obj);
} else {
finishPluginLoading();
}
} else {
finishPluginLoading();
}
};
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.send();
}
catch(err) {
finishPluginLoading();
}
}(window));
{code}
However in cordova-2.7.0 the code was changed, and CordovaSim stopped working correctly ( https://issues.apache.org/jira/browse/CB-3379 ):
{code}
try { // we commented we were going to try, so let us actually try and catch
var xhr = new context.XMLHttpRequest();
xhr.onload = function() {
// If the response is a JSON string which composes an array, call handlePluginsObject.
// If the request fails, or the response is not a JSON array, just call finishPluginLoading.
var obj = this.responseText && JSON.parse(this.responseText);
if (obj && obj instanceof Array && obj.length > 0) {
handlePluginsObject(obj);
} else {
finishPluginLoading();
}
};
xhr.onerror = function() {
finishPluginLoading();
};
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.send();
}
catch(err){
finishPluginLoading();
}
}(window));
{code}
Fortunately, cordova team has already fixed that issue - https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=26796..., and everything will be fine in the next release of cordova)
was (Author: ibuziuk):
In cordova 2.6.0 loading of cordova_plugins.json was implemented the following way, and there were no problems for CordovaSim:
{code}
try { // we commented we were going to try, so let us actually try and catch
var xhr = new context.XMLHttpRequest();
xhr.onreadystatechange = function() {
if (this.readyState != 4) { // not DONE
return;
}
// If the response is a JSON string which composes an array, call handlePluginsObject.
// If the request fails, or the response is not a JSON array, just call finishPluginLoading.
if (this.status == 200) {
var obj = JSON.parse(this.responseText);
if (obj && obj instanceof Array && obj.length > 0) {
handlePluginsObject(obj);
} else {
finishPluginLoading();
}
} else {
finishPluginLoading();
}
};
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.send();
}
catch(err) {
finishPluginLoading();
}
}(window));
{code}
However in cordova-2.7.0 the code was changed, and CordovaSim stopped working correctly (https://issues.apache.org/jira/browse/CB-3379):
{code}
try { // we commented we were going to try, so let us actually try and catch
var xhr = new context.XMLHttpRequest();
xhr.onload = function() {
// If the response is a JSON string which composes an array, call handlePluginsObject.
// If the request fails, or the response is not a JSON array, just call finishPluginLoading.
var obj = this.responseText && JSON.parse(this.responseText);
if (obj && obj instanceof Array && obj.length > 0) {
handlePluginsObject(obj);
} else {
finishPluginLoading();
}
};
xhr.onerror = function() {
finishPluginLoading();
};
xhr.open('GET', 'cordova_plugins.json', true); // Async
xhr.send();
}
catch(err){
finishPluginLoading();
}
}(window));
{code}
Fortunately, cordova team has already fixed that issue - https://git-wip-us.apache.org/repos/asf?p=cordova-js.git;a=commit;h=26796..., and everything will be fine in the next release of cordova)
> CordovaSim: add support of 2.7.0
> --------------------------------
>
> Key: JBIDE-14453
> URL: https://issues.jboss.org/browse/JBIDE-14453
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: browsersim
> Affects Versions: 4.1.0.Alpha2
> Reporter: Yahor Radtsevich
> Assignee: Ilya Buziuk
>
> The latest supported version of cordova.js is 2.6.
> We need to add support for 2.7, which is came out April 30th 2013.
--
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
13 years, 1 month
[JBoss JIRA] (JBIDE-14421) Conficting Birt for Kepler M7 and JEE bundle
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/JBIDE-14421?page=com.atlassian.jira.plugi... ]
Nick Boldt updated JBIDE-14421:
-------------------------------
Attachment: JBT4.1Beta1-installed-with-o.j.t.birt.feature-into-Eclipse4.3M7.png
1. install Eclipse 4.3.M7 Platform Runtime Binary
2. Install JBT abridged category from http://download.jboss.org/jbosstools/updates/nightly/core/trunk/ (p2 may complain about your selection not being doable, but I just accepted the change and it worked)
3. Install o.j.t.birt feature from same nightly core site
4. This:
!JBT4.1Beta1-installed-with-o.j.t.birt.feature-into-Eclipse4.3M7.png!
(note that it's the T5SU version of o.e.wst.xml_ui feature, not the older T4SU one that WTP actually includes in its feature.xml file)
> Conficting Birt for Kepler M7 and JEE bundle
> --------------------------------------------
>
> Key: JBIDE-14421
> URL: https://issues.jboss.org/browse/JBIDE-14421
> Project: Tools (JBoss Tools)
> Issue Type: Sub-task
> Components: target-platform
> Affects Versions: 4.1.0.Beta1
> Reporter: Mickael Istria
> Assignee: Nick Boldt
> Fix For: 4.1.0.Beta1
>
> Attachments: JBT4.1Beta1-installed-with-o.j.t.birt.feature-into-Eclipse4.3M7.png
>
>
> Dependency resolution in target platform fails because of a conflict between Birt and JST:
> {quote}
> [ERROR] Cannot resolve project dependencies:
> [ERROR] Software being installed: org.eclipse.birt.chart.integration.wtp.feature.group 4.3.0.v20130507-1501-5117w3124161802612
> [ERROR] Software being installed: org.eclipse.jst.jee 1.0.600.v201305070100
> [ERROR] Missing requirement: org.eclipse.wst.ws_ui.feature.feature.group 3.5.0.v201303130455-7I7EFkYEtEo_L098-I7p2E7P2ryR5_y5VhjP9iqL requires 'org.eclipse.wst.xml_ui.feature.feature.group [3.5.0.v201301022000-7H7IFisDxumVt037ridXmTt0LZaO8hpKpRz-T4SU]' but it could not be found
> [ERROR] Only one of the following can be installed at once: [org.eclipse.jst.jee 1.0.600.v201305070100, org.eclipse.jst.jee 1.0.600.v201303142300]
> [ERROR] Cannot satisfy dependency: org.eclipse.birt.chart.integration.wtp.feature.group 4.3.0.v20130507-1501-5117w3124161802612 depends on: org.eclipse.jst.web_ui.feature.feature.group 3.1.0
> [ERROR] Cannot satisfy dependency: org.eclipse.jst.web_core.feature.feature.group 3.5.0.v201303132100-7Q7GGb8FE9LeBTMB1mgtJe1k1xz00tJ533877 depends on: org.eclipse.jst.jee [1.0.600.v201303142300]
> [ERROR] Cannot satisfy dependency: org.eclipse.jst.web_ui.feature.feature.group 3.5.0.v201303132100-7F7GFUGC27SvlcDqtgi_3_iP75rjOs9WPy-5VkAg depends on: org.eclipse.jst.web_core.feature.feature.group [3.5.0.v201303132100-7Q7GGb8FE9LeBTMB1mgtJe1k1xz00tJ533877]
> [ERROR] Cannot satisfy dependency: org.eclipse.jst.web_ui.feature.feature.group 3.5.0.v201303132100-7F7GFUGC27SvlcDqtgjb-_fhALqUqcxTpwxR8dsR depends on: org.eclipse.wst.ws_ui.feature.feature.group [3.5.0.v201303130455-7I7EFkYEtEo_L098-I7p2E7P2ryR5_y5VhjP9iqL]
> {quote}
> To highlight the specificity of this issue:
> {quote}
> [ERROR] Software being installed: org.eclipse.jst.jee 1.0.600.v201305070100
> ...
> [ERROR] Only one of the following can be installed at once: [org.eclipse.jst.jee 1.0.600.v201305070100, org.eclipse.jst.jee 1.0.600.v201303142300]
> ...
> [ERROR] Cannot satisfy dependency: org.eclipse.jst.web_core.feature.feature.group 3.5.0.v201303132100-7Q7GGb8FE9LeBTMB1mgtJe1k1xz00tJ533877 depends on: org.eclipse.jst.jee [1.0.600.v201303142300]
> {quote}
--
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
13 years, 1 month
[JBoss JIRA] (JBIDE-14458) HTML5 Input attributes: autofocus, maxlength, pattern, required, min, max, step
by Burr Sutter (JIRA)
[ https://issues.jboss.org/browse/JBIDE-14458?page=com.atlassian.jira.plugi... ]
Burr Sutter updated JBIDE-14458:
--------------------------------
Attachment: 2013-05-15_0949.png
> HTML5 Input attributes: autofocus, maxlength, pattern, required, min, max, step
> -------------------------------------------------------------------------------
>
> Key: JBIDE-14458
> URL: https://issues.jboss.org/browse/JBIDE-14458
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Reporter: Burr Sutter
> Attachments: 2013-05-15_0949.png
>
>
> I believe the following are missing attributes for text input on the jQuery Mobile Palette
> autofocus
> maxlength
> pattern (we will need validation of the JS regex)
> required
> and I believe these next 3 are only appropriate on type="number"
> min
> max
> step
--
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
13 years, 1 month
[JBoss JIRA] (JBIDE-14458) HTML5 Input attributes: autofocus, maxlength, pattern, required, min, max, step
by Burr Sutter (JIRA)
Burr Sutter created JBIDE-14458:
-----------------------------------
Summary: HTML5 Input attributes: autofocus, maxlength, pattern, required, min, max, step
Key: JBIDE-14458
URL: https://issues.jboss.org/browse/JBIDE-14458
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Reporter: Burr Sutter
I believe the following are missing attributes for text input on the jQuery Mobile Palette
autofocus
maxlength
pattern (we will need validation of the JS regex)
required
and I believe these next 3 are only appropriate on type="number"
min
max
step
--
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
13 years, 1 month