icefaces

The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>

↘锁芯ラ 提交于 2019-11-27 15:07:36
I am getting the following error on my Facelet page, which simply consists of an IceFaces form with two fields and two buttons: The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> Here is the form: <ice:form id="form1" partialSubmit="false"> <ice:panelLayout id="panelLayout3"> <ice:graphicImage id="graphicImage1" url="/resources/images/LoginImage.jpg" width="560" /> <ice:outputLabel for="j_username" id="outputLabel1" value="Username:"/> <ice:outputLabel for="j_password" id="outputLabel2" value="Password:"/> <ice:inputText

ICEfaces libary in classpath prevents Save As dialog from popping up on file download

▼魔方 西西 提交于 2019-11-27 09:50:00
As soon as I add the librarys icefaces.jar icepush.jar icefaces_ace.jar to my classpath in order to use ACE components, my SaveAs dialog won't popup? I'm not sure if this is a bug but without the librarys in classpath it works. Here's my save as method : public void downloadFile(String propertyPath) throws IOException { ProxyFile fileToDownload = repBean.downloadFile(propertyPath); FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext.getExternalContext(); HttpServletResponse response = (HttpServletResponse) externalContext.getResponse();

javascript in jsf/icefaces

穿精又带淫゛_ 提交于 2019-11-27 07:13:47
问题 I have file with jspx extension i write javascript like function isNumber(inputId){ var value = document.getElementById('mainForm:'+ inputId).value; var s = value.length; while(s >= 0){ var c = value.charAt(s); if(c > "9"){ alert("Value must be digit"); document.getElementById('mainForm:'+ inputId).value = ""; document.getElementById('mainForm:'+ inputId).focus(); return false; } s --; } return true; } that work perfect but when i check if condition like if(c > "9" || c < "0") it will gives

ui:repeat doesn't work with Map

这一生的挚爱 提交于 2019-11-26 20:38:03
问题 I have a Map of key / values, which I initialize in @PostConstruct as follows: Map<String, String> myMap; @PostConstruct public void init() { myMap=new LinkedHashMap<String, String>(); myMap.put("myKey","myValue"); } public Map<String, String> getMyMap() { return myMap; } public void setMyMap(Map<String, String> myMap) { this.myMap = myMap; } When I try to iterate over this Map with <ui:repeat> like shown bellow, and I set a break point on the getter for the Map, I notice that it is not

The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>

给你一囗甜甜゛ 提交于 2019-11-26 17:00:22
问题 I am getting the following error on my Facelet page, which simply consists of an IceFaces form with two fields and two buttons: The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form> Here is the form: <ice:form id="form1" partialSubmit="false"> <ice:panelLayout id="panelLayout3"> <ice:graphicImage id="graphicImage1" url="/resources/images/LoginImage.jpg" width="560" /> <ice:outputLabel for="j_username" id="outputLabel1" value=

ICEfaces libary in classpath prevents Save As dialog from popping up on file download

随声附和 提交于 2019-11-26 14:53:10
问题 As soon as I add the librarys icefaces.jar icepush.jar icefaces_ace.jar to my classpath in order to use ACE components, my SaveAs dialog won't popup? I'm not sure if this is a bug but without the librarys in classpath it works. Here's my save as method : public void downloadFile(String propertyPath) throws IOException { ProxyFile fileToDownload = repBean.downloadFile(propertyPath); FacesContext facesContext = FacesContext.getCurrentInstance(); ExternalContext externalContext = facesContext