eclipse-ee4j / eclipse-ee4j/mojarra-jsf-extensions

When using shale-remoting dynamic call with SWDP deploy, the request is answered twice.

Open
#73 6 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: www ERR: Assignee Priority: Major Type: Bug
Dominant language
Java
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I am using the SDK build 12 and have swdp installed and I deployed the
bpcatalog. When using the [http://localhost:8080/bp-jsf-example/faces/compB.jsp](http://localhost:8080/bp-jsf-example/faces/compB.jsp)
example which makes a dynamic call using shale-remoting the request is answered
twice. I tested the same bits without the swdp installed and it works fine.

To reproduce:

* install the SDK build 12 with swdp
* deploy the bpcatalog
* access the [http://localhost:8080/bp-jsf-example/faces/compB.jsp](http://localhost:8080/bp-jsf-example/faces/compB.jsp) example and
mouse over either of the links that says "(With a JSF Managed Bean fulfilling
AJAX Request)". You will see that nothing happens
* If you view the http traffic or enter in the dynamic call directly in your
browser
([http://localhost:8080/bp-jsf-example/faces/bpui_compb_action/CompBBean/processMethod?itemId=test1A](http://localhost:8080/bp-jsf-example/faces/bpui_compb_action/CompBBean/processMethod?itemId=test1A)),
you will get:

XML Parsing Error: junk after document element
Location:
[http://localhost:8080/bp-jsf-example/faces/bpui_compb_action/CompBBean/processMethod?itemId=test1A](http://localhost:8080/bp-jsf-example/faces/bpui_compb_action/CompBBean/processMethod?itemId=test1A)
Line Number 1, Column 347:<![CDATA[test1A
Lookup]]>The itemId that is performing this lookup
is 'test1A'.

This popup is trigger through the onmouseover and
onmouseout event handlers. This popup request is fulfilled using a JSF
managed bean
, that is called by the
CompBPhaselistener]]><![CDATA[test1A
Lookup]]>The itemId that is performing this lookup
is 'test1A'.

This popup is trigger through the onmouseover and
onmouseout event handlers. This popup request is fulfilled using a JSF
managed bean
, that is called by the CompBPhaselistener]]>
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------^

You will notice that the xml doc is in the response twice.
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[current]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.