Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7.2
-
Component/s: ICE-Components
-
Labels:None
-
Environment:All
-
ICEsoft Forum Reference:
-
Support Case References:
Description
A customer is facing a similar issue to the one described in forum post http://www.icefaces.org/JForum/posts/list/10113.page . The customer has described his issue as:
"Even though at render time 2 different resource objects are instantiated with different parameters, when I click on the button intended to retrieve the particular resource , one resource is actually retrieved independent of which button I click on..."
I've run the sample war in the forum post and have confirmed the issue. Nothing in their code looks out of the ordinary. Attached is the war file ready to be deployed on Jboss 4.2.2.
http://localhost:8080/OutputResource/table.iface
"Even though at render time 2 different resource objects are instantiated with different parameters, when I click on the button intended to retrieve the particular resource , one resource is actually retrieved independent of which button I click on..."
I've run the sample war in the forum post and have confirmed the issue. Nothing in their code looks out of the ordinary. Attached is the war file ready to be deployed on Jboss 4.2.2.
http://localhost:8080/OutputResource/table.iface
Issue Links
- blocks
-
ICE-3711 ice:outputResource within a dataTable doesn't work
- Closed
Activity
Tyler Johnson
created issue -
Tyler Johnson
made changes -
Field | Original Value | New Value |
---|---|---|
Attachment | OutputResource.war [ 11299 ] |
Tyler Johnson
made changes -
Attachment | OutputResource.java [ 11300 ] |
Tyler Johnson
made changes -
Support Case References | https://www.icesoft.ca:4443/supportilla/show_bug.cgi?id=5298 |
Ken Fyten
made changes -
Fix Version/s | 1.8DR#2 [ 10142 ] | |
Assignee Priority | P2 | |
Assignee | Adnan Durrani [ adnan.durrani ] |
Adnan Durrani
made changes -
Assignee | Adnan Durrani [ adnan.durrani ] | Mircea Toma [ mircea.toma ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #17820 | Fri Oct 24 09:32:31 MDT 2008 | adnan.durrani | Fix for |
Files Changed | ||||
MODIFY
/icefaces/trunk/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
|
Adnan Durrani
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #17830 | Mon Oct 27 10:41:26 MDT 2008 | adnan.durrani | Fix added for |
Files Changed | ||||
MODIFY
/icefaces/branches/icefaces-1.7/icefaces/component/src/com/icesoft/faces/component/outputresource/OutputResource.java
|
Patrick Dobler
made changes -
Ken Fyten
made changes -
Fix Version/s | 1.7.2 SP1 [ 10144 ] |
Ken Fyten
made changes -
Fix Version/s | 1.8 [ 10161 ] | |
Assignee Priority | P2 |
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee | Mircea Toma [ mircea.toma ] |
Customer has just reported the following:
BEGIN: The problem appears to lie in following:
In the datatable the
<ice:column>
<ice:outputResource>
combination appears to show in OutputResourceRenderer
String clientId = uiComponent.getClientId(facesContext);
OutputResource outputResource = (OutputResource) uiComponent;
shows the uiComponent being the same each time the renderer is called, with clientId different on each row. The uiComponent is not safe to use as a singleton since
public Resource getResource() {
ValueBinding vb = getValueBinding("resource");
resource = (Resource) vb.getValue(getFacesContext());
Where resource is a private member which is then used later in the code in the within Resource r = new Resource() {
To work around the issue until you can resolve it, I have introducted some code enclosed which appears to resolve issue. See internalResource variable.. It is probably now the most optimal way to resolve issue but it works..
END