Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.0
-
Fix Version/s: 3.0.1, EE-3.0.0.GA
-
Component/s: ICE-Components
-
Labels:None
-
Environment:jsf2.0, ICEfaces-2.0, compat
Description
ice:commandButton currently does not support any <f:param> so if you do the following in compat showcase:-
<ice:outputLabel for="BLCmdBtn"
value="#{msgs['page.buttonsAndLinks.submitButtonLabel']}"/>
<ice:commandButton id="BLCmdBtn"
value="Submit"
actionListener="#{buttonsAndLinks.submitButtonListener}">
<f:param name="fileId" value="21"/>
</ice:commandButton>
you get the following markup:-
<input class="iceCmdBtn" id="iceform:BLCmdBtn" name="iceform:BLCmdBtn" onblur="setFocus('');" onclick="iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" type="submit" value="Submit">
if you do the same thing with <h:commandButton> you get the following:-
<input id="fileform:fileTable:0:delFileBtn" name="fileform:fileTable:0:delFileBtn" onclick="mojarra.jsfcljs(document.getElementById('fileform'),{'fileform:fileTable:0:delFileBtn':'fileform:fileTable:0:delFileBtn','fileId':'1'},'');return false" type="submit" value="Delete">
Note with <ice:commandButton> there is no encoding of the parameter name or value so it never gets submitted to the server.
<ice:outputLabel for="BLCmdBtn"
value="#{msgs['page.buttonsAndLinks.submitButtonLabel']}"/>
<ice:commandButton id="BLCmdBtn"
value="Submit"
actionListener="#{buttonsAndLinks.submitButtonListener}">
<f:param name="fileId" value="21"/>
</ice:commandButton>
you get the following markup:-
<input class="iceCmdBtn" id="iceform:BLCmdBtn" name="iceform:BLCmdBtn" onblur="setFocus('');" onclick="iceSubmit(form,this,event);return false;" onfocus="setFocus(this.id);" type="submit" value="Submit">
if you do the same thing with <h:commandButton> you get the following:-
<input id="fileform:fileTable:0:delFileBtn" name="fileform:fileTable:0:delFileBtn" onclick="mojarra.jsfcljs(document.getElementById('fileform'),{'fileform:fileTable:0:delFileBtn':'fileform:fileTable:0:delFileBtn','fileId':'1'},'');return false" type="submit" value="Delete">
Note with <ice:commandButton> there is no encoding of the parameter name or value so it never gets submitted to the server.
Activity
- All
- Comments
- History
- Activity
- Remote Attachments
- Subversion
Ken Fyten
made changes -
Status | Resolved [ 5 ] | Closed [ 6 ] |
Assignee Priority | P2 |
Ken Fyten
made changes -
Fix Version/s | EE-3.0.0.GA [ 10262 ] |
yip.ng
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
yip.ng
made changes -
Attachment | screenshot-1.png [ 14140 ] |
Arran Mccullough
made changes -
Salesforce Case | [5007000000KGhN8] |
Ken Fyten
made changes -
Salesforce Case | [] | |
Security | Private [ 10001 ] |
Ken Fyten
made changes -
Field | Original Value | New Value |
---|---|---|
Salesforce Case | [] | |
Fix Version/s | 3.0.1 [ 10282 ] | |
Assignee Priority | P2 | |
Assignee | yip.ng [ yip.ng ] |
Judy Guglielmin
created issue -