Ajax request not working with Dojo widget in Firefox
up vote
0
down vote
favorite
I'm using dojo widgets in a JSF 2.2 application with the lazy code injection described here (approach 3):
https://www.ibm.com/developerworks/library/wa-aj-jsfdojo/index.html
It looks like this:
<h:panelGroup id="content">
<table>
<tr>
<td jsf2dojo='true'>
<h:selectOneMenu id="projectOption" value="#{bean.location}">
<f:selectItem id="select1" itemValue="Shanghai" itemLabel="Shanghai"/>
<f:selectItem id="select2" itemValue="London" itemLabel="London"/>
<f:selectItem id="select3" itemValue="New York" itemLabel="New York"/>
<f:ajax render="content" />
</h:selectOneMenu>
</td>
</tr>
...
</table>
</h:panelGroup>
For a select the dojo widget dijit.form.FilteringSelect is used.
My problem: The ajax onchange event of the dojo widget works in Google Chrome fine, in Firefox not. Without the dojo widget, the ajax request of the select works fine.
- What's the problem with Firefox?
- Is there another possibility using dojo widgets with JSF elements except from this IBM approach?
- After the ajax request was executed in Chrome, the "content" part doesn't contain a dojo widget anymore. How can I solve this? With
dojo.addOnLoad(init);
all dojo widget disappears (style="display: none"
).
Thank you!
ajax jsf dojo
add a comment |
up vote
0
down vote
favorite
I'm using dojo widgets in a JSF 2.2 application with the lazy code injection described here (approach 3):
https://www.ibm.com/developerworks/library/wa-aj-jsfdojo/index.html
It looks like this:
<h:panelGroup id="content">
<table>
<tr>
<td jsf2dojo='true'>
<h:selectOneMenu id="projectOption" value="#{bean.location}">
<f:selectItem id="select1" itemValue="Shanghai" itemLabel="Shanghai"/>
<f:selectItem id="select2" itemValue="London" itemLabel="London"/>
<f:selectItem id="select3" itemValue="New York" itemLabel="New York"/>
<f:ajax render="content" />
</h:selectOneMenu>
</td>
</tr>
...
</table>
</h:panelGroup>
For a select the dojo widget dijit.form.FilteringSelect is used.
My problem: The ajax onchange event of the dojo widget works in Google Chrome fine, in Firefox not. Without the dojo widget, the ajax request of the select works fine.
- What's the problem with Firefox?
- Is there another possibility using dojo widgets with JSF elements except from this IBM approach?
- After the ajax request was executed in Chrome, the "content" part doesn't contain a dojo widget anymore. How can I solve this? With
dojo.addOnLoad(init);
all dojo widget disappears (style="display: none"
).
Thank you!
ajax jsf dojo
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm using dojo widgets in a JSF 2.2 application with the lazy code injection described here (approach 3):
https://www.ibm.com/developerworks/library/wa-aj-jsfdojo/index.html
It looks like this:
<h:panelGroup id="content">
<table>
<tr>
<td jsf2dojo='true'>
<h:selectOneMenu id="projectOption" value="#{bean.location}">
<f:selectItem id="select1" itemValue="Shanghai" itemLabel="Shanghai"/>
<f:selectItem id="select2" itemValue="London" itemLabel="London"/>
<f:selectItem id="select3" itemValue="New York" itemLabel="New York"/>
<f:ajax render="content" />
</h:selectOneMenu>
</td>
</tr>
...
</table>
</h:panelGroup>
For a select the dojo widget dijit.form.FilteringSelect is used.
My problem: The ajax onchange event of the dojo widget works in Google Chrome fine, in Firefox not. Without the dojo widget, the ajax request of the select works fine.
- What's the problem with Firefox?
- Is there another possibility using dojo widgets with JSF elements except from this IBM approach?
- After the ajax request was executed in Chrome, the "content" part doesn't contain a dojo widget anymore. How can I solve this? With
dojo.addOnLoad(init);
all dojo widget disappears (style="display: none"
).
Thank you!
ajax jsf dojo
I'm using dojo widgets in a JSF 2.2 application with the lazy code injection described here (approach 3):
https://www.ibm.com/developerworks/library/wa-aj-jsfdojo/index.html
It looks like this:
<h:panelGroup id="content">
<table>
<tr>
<td jsf2dojo='true'>
<h:selectOneMenu id="projectOption" value="#{bean.location}">
<f:selectItem id="select1" itemValue="Shanghai" itemLabel="Shanghai"/>
<f:selectItem id="select2" itemValue="London" itemLabel="London"/>
<f:selectItem id="select3" itemValue="New York" itemLabel="New York"/>
<f:ajax render="content" />
</h:selectOneMenu>
</td>
</tr>
...
</table>
</h:panelGroup>
For a select the dojo widget dijit.form.FilteringSelect is used.
My problem: The ajax onchange event of the dojo widget works in Google Chrome fine, in Firefox not. Without the dojo widget, the ajax request of the select works fine.
- What's the problem with Firefox?
- Is there another possibility using dojo widgets with JSF elements except from this IBM approach?
- After the ajax request was executed in Chrome, the "content" part doesn't contain a dojo widget anymore. How can I solve this? With
dojo.addOnLoad(init);
all dojo widget disappears (style="display: none"
).
Thank you!
ajax jsf dojo
ajax jsf dojo
edited Nov 21 at 21:02
asked Nov 21 at 19:51
Chr.14
11
11
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53419561%2fajax-request-not-working-with-dojo-widget-in-firefox%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown