
|
If you were logged in you would be able to see more operations.
|
|
JSF cartridge
Created: 07/Dec/07 08:22 PM
Updated: 07/Dec/07 08:22 PM
|
|
| Component/s: |
None
|
| Affects Version/s: |
None
|
| Fix Version/s: |
None
|
|
Arises when there is more that one object coming out of a FrontEndView.
This is the current method.
protected boolean handleIsNeedsFileUpload()
{
if(this.getParameters().size() == 0)
return false;
for (final Iterator iterator = this.getParameters().iterator(); iterator.hasNext();)
{
final Object object = iterator.next();
if (object instanceof JSFParameter){
final JSFParameter parameter = (JSFParameter)object;
if(parameter.isInputFile())
return true;
if(parameter.isComplex()){
for(final Iterator attributes = parameter.getAttributes().iterator(); iterator.hasNext();)
if(((JSFAttribute)attributes.next()).isInputFile())
return true;
}
}
}
return false;
}
In the inner for cycle the conditional variable is iterator.hasNext() and should be attributes.hasNext()
This change solves the issue
|
|
|
There are no comments yet on this issue.
|
| |
|
|