Ajax Request does not complete

UI Components for JSF
Post Reply
ennsw
Posts: 6
Joined: 15 Oct 2014, 08:38

27 Mar 2015, 11:18

Hallo,

I Migrate the Primefaces from 3.5 to 5.1 with the Migration Guide.

I have the Problem that the Ajax request start and it works, but the loading icon does not close.
And during this time i can 't use ajax requests till i refresh the page.

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

29 Mar 2015, 15:45

Use primefaces core forum(not mobile forum).Check for JS errors and post the respective code snippets there.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

ennsw
Posts: 6
Joined: 15 Oct 2014, 08:38

30 Mar 2015, 09:06

Hello,

the issue appears only, if I' m using the Mobile Renderer kit.

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

30 Mar 2015, 09:50

sudheer wrote:...Check for JS errors and post the respective code snippets...

ennsw
Posts: 6
Joined: 15 Oct 2014, 08:38

30 Mar 2015, 11:08

Hello,

I got an "TypeError: document.getElementByID(...) is null" in jquery.js.jsf

User avatar
sudheer
PrimeFaces Core Developer
Posts: 4345
Joined: 16 Oct 2011, 19:19
Location: Singapore

30 Mar 2015, 19:04

ennsw wrote:Hello,

I got an "TypeError: document.getElementByID(...) is null" in jquery.js.jsf
That's fine.But this information is not useful to findout the rootcause.As mentioned earlier please provide the code snippets and steps to replicate the issue on showcase.
Author,Speaker
https://twitter.com/sudheerjonna
Github: https://github.com/sudheerj
Website http://sudheerjonna.com/

___________________
Sudheer Jonna

ennsw
Posts: 6
Joined: 15 Oct 2014, 08:38

07 Apr 2015, 11:56

hear is the code snippets.

Code: Select all

<pm:content>
			<p:panelGrid columns="3" id="pg">
				<p:column>
					<p:selectManyCheckbox converter="OrderStatusConverter"
						value="#{orderListBean.selectedStates}">
						<f:selectItems value="#{orderListBean.states}" var="state"
							itemValue="#{state}" itemLabel="#{state.label}" />
						<p:ajax event="change" listener="#{orderListBean.reloadOrderList}"
							async="true" update="order" />
					</p:selectManyCheckbox>
				</p:column>
				<p:column>
					<p:selectBooleanCheckbox
						disabled="#{orderListBean.orderDate == null}"
						styleClass="ui-corner-like-box"
						itemLabel="#{language['label.filter_by_date']}"
						value="#{orderListBean.filterByDate}">
						<p:ajax update="orderList serviceAdviserChooser"
							listener="#{orderListBean.reloadOrderList}" />
					</p:selectBooleanCheckbox>

					<p:inputText id="date" type="date"
						value="#{orderListBean.orderDate}">
						<f:convertDateTime pattern="yyyy-MM-dd" />
						<p:ajax update="orderList"
							listener="#{orderListBean.changeOrderDateListener}" />
					</p:inputText>
				</p:column>
				<p:column>
					<p:selectOneMenu id="serviceAdviserChooser"
						value="#{orderListBean.serviceAdviserNo}">
						<p:ajax update="orderList"
							listener="#{orderListBean.reloadOrderList}" />
						<f:selectItem
							itemLabel="#{language['label.all']} (#{orderListBean.orderCount} #{language['title.orders']})"
							itemValue="" />
						<f:selectItems value="#{orderListBean.serviceAdvisersForBranch}"
							var="adviser"
							itemLabel="#{adviser.lastName}, #{adviser.firstName} (#{adviser.countOfOrders})"
							itemValue="#{adviser.serviceAdviserNo}" />
					</p:selectOneMenu>
				</p:column>
			</p:panelGrid>

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

09 Apr 2015, 13:00


ennsw
Posts: 6
Joined: 15 Oct 2014, 08:38

15 May 2015, 10:25

I solved the problem.
The issue was, that there was javascript code Hardcoded in the java code.

this javascript throw an Error.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 26 guests