1. Problem in Icefaces Input binding attribute coderanch.comHi all, I have developed a application using jsf and icefaces. The probelm is i have a page where i want to show the logged username and stored that in a database. i have created a iface page to show the users like this public HtmlPanelGrid getJsfView() { HtmlPanelGrid pane = new HtmlPanelGrid(); pane.setId("_id_questionnaire_pane"); pane.setColumns(1); pane.setWidth("100%"); HtmlOutputText title = new HtmlOutputText(); title.setId("_id_questionnaire_title"); title.setValue(this.title); title.setStyleClass("questionnairetitle"); pane.getChildren().add(title); HtmlOutputText subTitle = new HtmlOutputText(); subTitle.setId("_id_questionnaire_subtitle"); subTitle.setValue(this.subTitle); subTitle.setStyleClass("questionnairesubtitle"); pane.getChildren().add(subTitle); HtmlDataTable table = new HtmlDataTable(); ListDataModel model = new ListDataModel(groups); table.setId("_id_questionnaire"); table.setVar("group"); table.setValue(model); UIColumn column = new UIColumn(); column.setId("_id_column"); ValueExpression ve = FacesContext.getCurrentInstance().getApplication() .getExpressionFactory().createValueExpression( FacesContext.getCurrentInstance().getELContext(), "#{group.jsfView}", PanelCollapsible.class); PanelCollapsible subPane = new ... Hey guys, This might be more of a JSF or JSP question but here goes. I have a collection of 'Section' objects in my Session bean. In each one I have a number of properties common to different sections of my webapp. I ran into a situation where I need to bind an jfdutcher Joined: 26/06/2009 00:00:00 Messages: 37 Offline Here's the backing bean for a page with (14) text components. Most all have partialSubmit and a method call to edit their content. I cannot unravel why one particular component ("rate") at position (11) of the (14) components of the page .......bound to the the "rateChk" method below .....triggers when the very first component ... hi all, i want to bind items to selectonemenu dinamically , my requirement is when i have searched employee then i have to bind his entitled leave types for selectonemenu ,(when i enter employeeno in search textbox and press search button my drop down should show leave types entitled for that employee) i tryed with several times but it is not ... Hi All, what is better approach, component Binding or finding component in the component tree. I am bit confused. Some where it is mentioned that component binding is more effecient as because, we dont need to find any component in the tree. But I got some information from some JSF expert they dont recomend to have compoent binding as because the ... Hi When I am using value binding for required attribute in input boxes inside panel series I am getting unexpected results. I am using icefaces 1.8.2. If i donot enter any value for text box 1 having required attribute as 'true' i get error message ''Input is required' for other text boxes also whose required attribute are 'false' Below is the ... My Code is as follows: Hi all, I am having a problem with javascript where I setup an observer on a component that I have bound to the backing bean with both FireFox and Safari. It works in IE. I am currently using - iceFaces 1.8.2, Eclipse Galileo, JSF 1.2, FireFox 3.6.18, Safari 5.1, IE 9, and Tomcat 6.0.29. Here is the code: Hi all, I'm working with the ice:SelectInputDate calendar component and I would like to extends it for some few changes like 1) blocking the year dropdown selection only for specific years. ex the user can see and select just 2010/2011. 2) to display(highlight) for a specific date of the year with a different color for the different meanings I need. I'm ... Hi, Yes, if you mean you want to find out the id of a changed tab, you don't need to use the binding. You can also use either If I bind standard jsf event listeners to my jsf components, but my event listeners are request scoped, will they be garbage collected? Is the whole jsf component tree disposed of with each render? Also, similar question if using the icefaces binding attribute. If I bind a UIComponent to my backing bean, then add the backing bean to the UIComponent as ... javax.servlet.jsp.JspException: Null bean, property: inputValue at com.icesoft.faces.component.ext.taglib.InputTextTag.doStartTag(InputTextTag.java:922) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:162) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) at com.icesoft.faces.webapp.parser.Parser.executeJspLifecycle(Parser.java:186) ... When using the ice:dataTable is there a way I can catch the row binding event, and modify the style of columns based on the type of rows being rendered. Basically, I want some rows in a data table to be displayed differently than others. The difference can be determined by the content of some columns in the row. What I am ... Hi, throughout our project we have been experiencing the AJAX Push technology. We have observed that when the state of a Renderable bean changes and the requestRender() method is invoked, the UI is actually updated for only those components whose value is related to the changed property. However, we have a component whose binding attribute is related to specific property in ... All binded components are disappearing during jumping from page to page. I'm using icefaces 1.6.1 and tomcat 5.5. In my web-inf/lib directory I have: backport-util-concurrent.jar commons-beanutils.jar commons-collections.jar commons-digester.jar commons-discovery.jar commons-el.jar commons-fileupload.jar commons-logging.jar el-api.jar icefaces.jar icefaces-comps.jar jsf-api.jar jsf-impl.jar jstl.jar krysalis-jCharts-1.0.0-alpha-1.jar xercesImpl.jar xml-apis.jar How to generate this bug: lunch my application and type url: http://localhost:80/atrem/ewidok/web/main/jspx/main.iface then click on "odok" button, and then click ... Hi, I am having problem with binding attibute of text box. My requirement is i am having one drop down like datasource type which contains sql and text as options, If i select sql it should display Text area to enter the SQL statement and it should hide Text component which is related to Text option and vice versa. if i ... javax.faces.FacesException: Problem in renderResponse: could not find UIData referenced by attribute dataScroller@for = 'table_id' at com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:298) at com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:161) at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106) at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251) at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144) at com.icesoft.faces.webapp.http.core.JsfLifecycleExecutor.apply(JsfLifecycleExecutor.java:18) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.renderCycle(ReceiveSendUpdates.java:54) at com.icesoft.faces.webapp.http.core.ReceiveSendUpdates.service(ReceiveSendUpdates.java:42) at com.icesoft.faces.webapp.http.core.IDVerifier.service(IDVerifier.java:25) at com.icesoft.faces.webapp.http.core.ViewBoundServer.service(ViewBoundServer.java:63) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer$Matcher.serviceOnMatch(PathDispatcherServer.java:50) at com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:19) at com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19) at com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:29) at com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:105) at com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:37) at com.icesoft.faces.webapp.http.servlet.PathDispatcher$Matcher.serviceOnMatch(PathDispatcher.java:52) at com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:29) at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654) at ... I'm hoping someone can help me figure out how to bind a pair of SelectOneMenu's to some corresponding properties in a backing bean. My page's controls are bound to a session-scoped managed bean that contains country and state code properties. I implemented a ValueChangeListener to the country code's SelectOneMenu so that whenever the country is changed, the appropriate state / province ... Hi; I have an inputText that should contain an RGB color value (as a String); I would like to popup a JavaScript color chooser when the user clicks the inputText, and populate the inputText with the RGB string returned by the JavaScript color chooser. As an ICEfaces newbie, I am at a loss as to how to go about this... How ... Hi zemanel. Could you please help me with this question?? I can't be able to fill the columns using a loop, here is a piece of code. The valueBinding wich use table.myName works ok, but if I put the get like you do I get error in the jspx file: /showTable2.jspx @22,55 binding="#{dynamicTable.htmlTable}": Error reading 'htmlTable' on type davisoski.DynamicTable Here is ... package de.test; import javax.faces.event.ActionEvent; import com.icesoft.faces.component.ext.HtmlOutputText; public class MainBean { private HtmlOutputText outputText; private String mainInclude; public MainBean() { mainInclude = "./include/page1.xhtml"; } public void switchPage(ActionEvent e) { mainInclude = (mainInclude.contains("page1") ? "include/page2.xhtml" : "include/page1.xhtml"); } public HtmlOutputText getOutputText() { // check outputText's parent if (outputText != null) System.out.println(outputText.getParent()); return outputText; } public void setOutputText(HtmlOutputText outputText) { this.outputText = outputText; // ... private ArrayList liste; public Pz(){ HtmlOutputText t1 = new HtmlOutputText(); t1.setValue("alfa"); t1.setId("t"+UUID.randomUUID().toString()); liste = new ArrayList(); liste.add(t1); } public ArrayList getListe() { return liste; } public void setListe(ArrayList liste) { this.liste = liste; } public void changed(PanelPositionedEvent evt) { System.out.println("Liste: "+liste.toString()); System.out.println("DragType = " + evt.getType()+ " Index:" + evt.getOldIndex()+ " new Index: " +evt.getIndex()+"\n"); } public CustomerProfile customerProfileSelected; private SelectItemList customerProfileSelectItems; private HtmlSelectOneMenu profileSelectMenu; public void valueChangeListener(ValueChangeEvent event) { if(event.getNewValue() instanceof CustomerProfile){ customerProfileSelected = (CustomerProfile) event.getNewValue(); } } public SelectItemList getCustomerProfileSelectItems() { customerProfileSelectItems = new SelectItemList(); List Hi, I have two jsps. each jsp has a data table and i have to bind the datatables to a backing property. Also the managed bean is same for both jsps. the problem is, when i go to the second page, the data table binding is not geting refreshed. it is showing the columns of 2nd page along with the columns ... Hi My problem is about dataTable. I am trying to create expandable dataTable. Table has 2 columns, first column is image when you click it , it adds rows under the selected row and second column is text . HtmlDataTable table = new HtmlDataTable(); table.setValueExpression("value",createValueExpression("#{Page1.dynamicList}", List.class)); table.setVar("dynamicItem"); UIColumn column0 = new UIColumn(); column0.setId("column-0"); table.getChildren().add(column0); HtmlOutputText header0 = new HtmlOutputText(); header0.setValue("Header"); column0.setHeader(header0); ... |