1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <h:form> <h:panelGrid columns="2"> First name: <util:inputEditable id="firstName" value="#{user.firstName}"/> Last name: <util:inputEditable id="lastName" value="#{user.lastName}"/> <h:commandButton value="Update first name"> <f:ajax execute="firstName" render="firstName"> </h:commandButton> </h:panelGrid> </h:form> |
1 2 3 4 5 | <div id="#{cc.clientId}"> ... </div> |
1 2 3 4 5 6 7 8 9 10 11 12 13 | mydiv.editButton.startEditing = function() { mydiv.text.fade( { duration: 0.25 } ); mydiv.editButton.fade( { duration: 0.25 } ); window.setTimeout( function() { mydiv.editableText.appear( { duration: 0.25 } ); mydiv.doneButton.appear( { duration: 0.25 } ); window.setTimeout( function() { mydiv.editableText.focus(); }, 300); }, 300); }; |
1 2 3 4 5 6 7 | <h:commandButton id="doneButton" value="#{cc.resourceBundleMap.doneButtonText}" style="display: none"> <f:ajax render="text textMessage" execute="editableText" onevent="ajaxExecuting"/> </h:commandButton> |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |