binding « IceFaces « JSF Q&A





1. Problem in Icefaces Input binding attribute    coderanch.com

Hi 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

    icefaces.org

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 ...

4. Binding an component to a value in an Object (not a bean)    icefaces.org

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 to these Section objects as they all ...

6. Initialization binding problem    icefaces.org

8. Binding a data table    icefaces.org





10. HtmlInputSecret binding error    icefaces.org

11. Data Table - Column Binding    icefaces.org





17. ice:selectInputDate binding issue    icefaces.org

18. ice:dataTable binding    icefaces.org

19. component binding method is called prematurely ??    icefaces.org

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 ...

23. question regarding component binding    icefaces.org

25. inputText, visible and binding    icefaces.org

26. how to dinamically bind item to selectonemenu    icefaces.org

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 ...

27. Component Binding Vs find component in the tree    icefaces.org

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 ...

29. Required attribute value-binding is not working    icefaces.org

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 ...

30. table binding getRowData() gives previous selected value in selectOneMenu valueChangeListener    icefaces.org

My Code is as follows: In form : public void levelChanged(ValueChangeEvent e){ RequestInfo info= (RequestInfo ) table.getRowData(); System.out.println("New Level selected "+info.getNewLevel() +" newSelectedLevel " +e.getNewValue() ) ; } Now the problem is e.getNewValue() gives the selected Level where as info.getNewLevel() ...

33. SelectInputText options value binding    icefaces.org

35. Component binding and SessionScope    icefaces.org

36. difference between value and binding    icefaces.org

37. value vs Binding    icefaces.org

38. Event.observe with component binding does not work!    icefaces.org

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:

39. SelectInputDate and binding    icefaces.org

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 ...

40. Datatable value binding problem    icefaces.org

42. Is any posible to get changed Tab->panelTabSet-> id(value) without using binding?    icefaces.org

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 or the tabChangeListener attribute of the panelTabSet (eg. tabChangeListener="#{bean.processTabChange}">). Your processTabChange method should have the signature "public void processTabChange(TabChangeEvent arg0) throws AbortProcessingException;". The tabChangeEvent has info on the old and new ...

43. Is binding and jsf listeners memory safe?    icefaces.org

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 ...

44. bindings in a datatable    icefaces.org

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) ...

45. binding exception help    icefaces.org

47. Row Binding Event    icefaces.org

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 ...

49. AJAX Push and JSF binding    icefaces.org

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 ...

51. Binding problem    icefaces.org

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 ...

53. selectOneMenu binding attribute    icefaces.org

55. Binding value in DataTable    icefaces.org

57. Problem with binding    icefaces.org

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 ...

58. Binding problem    icefaces.org

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 ...

59. Problems with DataBinding    icefaces.org

60. ActionListener binding bean method    icefaces.org

61. Question about binding SelectOneMenus to backing beans    icefaces.org

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 ...

62. binding component event to JavaScript function    icefaces.org

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 ...

63. DataTable inputtext binding    icefaces.org

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 ...

64. ui:include and Component-Binding    icefaces.org

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; // ...

66. Advanced Autocomplete with binding    icefaces.org

67. Component binding not updating    icefaces.org

68. Rendering of component binding    icefaces.org

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"); }

70. SelectOneMenu binding not working    icefaces.org

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 globalProfiles = (new CustomerProfileManager()).findByUserid("admin"); for( CustomerProfile mProf : globalProfiles ) { customerProfileSelectItems.add( new SelectItem( mProf, mProf.getName() ) ); } customerProfileSelectItems.add(new SelectItem("ProfilesLabel", ResourceUtil.getString("----------------"))); List userProfiles = (new CustomerProfileManager()).findByUserid(userId); for( CustomerProfile ...

71. Can i bind two different data tables to same property in a managed bean    icefaces.org

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 ...

73. bind setId    icefaces.org

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); ...

75. Duplicate ID IF "ice:dataTable binding="    icefaces.org


...

76. UIComponents + Value Binding in IE6    icefaces.org