form « IceFaces « JSF Q&A





1. ICEfaces: How to disable send-receive-updates mechanism for some forms    stackoverflow.com

I am quite new to ICEfaces but already have experience with JSF/Facelets and the Java EE in general. Currently, I am not using to much of ICEfaces except some utility tags like ...

2. problem with jsf / icefaces depended form fields and validation    stackoverflow.com

I have a form with 3 fields (simplyfied example). The first one is a checkbox. <ice:selectBooleanCheckBox value="#{backingBean.bean.visible}" ID="checkbox1" partialSubmit="true" > The second one is a <ice:inputText ID="text1"> The third one is also a <ice:inputText ...

3. Why are validators of unchanged components called?    stackoverflow.com

I have a IceFaces-form and several input fields. Let's say I have this:

<ice:selectOneMenu id="accountMenu"
    value="#{accountController.account.aId}"
    validator="#{accountController.validateAccount}">
    <f:selectItems id="accountItems"
      ...

4. JSF2, can I add JSF components dynamically?    stackoverflow.com

Can I add JSF components dynamically? I know this should be possible in JavaScript somehow. Do anybody know how to do this in JSF? I think the major problem is how ...

5. How to Dynamically adding fields in JSF?    stackoverflow.com

HI All, I am desperately looking for the assistance on adding and removing the fields and rows using JSF. I am using ICE Faces for the rich UI look. The following is ...

6. Could form values be preserved without using session scope?    stackoverflow.com

I have two pages having page one got datatable and a few LOV's. When I navigate from page one to page two, could the values in LOV's and datatable pagination be preserved ...

7. The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within     stackoverflow.com

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

8. Retrieving form values from requestmap using icefaces    coderanch.com

hi, i am new to icefaces. My requirement is: Having a icefaces page (Registration.iface) containing one panel group and inside that i am having 15 text fields and one submit button. if submit button is clicked it should load the same registration page with values what i have given for those 15 fields. actually can i use requestmap for fetching these ...





11. Some troubles with icefaces Form and blink pages    icefaces.org

Hi everybody, i'm a new in this forum, i'm from Chile :D and i got some troubles with the use of form component on icefaces. The thing is, i have a few jspx pages with some Backing Beans, and those pages have interactions with the Backing bean through commadLinks and/or commandButtons, for example. But suddenly, the pages is reloaded, but not ...

13. Help with form validation?    icefaces.org

Hi Troy, Try pre-setting your String properties to an empty String. Normally, a partial submit will only fire the validation for the triggering component, because normally, even though a partial submit still submits the entire form, the triggering component's value is the only one that has changed. The exception to this is on a first partial submit after the first page ...

14. Form validation, immidiate attrubute    icefaces.org





18. Determining Dirty Forms    icefaces.org

A general question I'd like to ask other users is how they determine if a form is dirty. I don't want to constantly show Save & Cancel buttons, so I need to determine if an object has changed before I render them. Just wondering how others do that.. I've been playing around with hashcodes, keeping a track of the hash of ...

20. seperate forms for popups    icefaces.org

Is it possible to have seperate forms for the popups ? My scenario is I want to display a small form to the user via a popup.. so they can still see the main form in the background.. But I need all the validation etc when they click a submit button on popup to only apply to the popup. As it ...

22. Datatable with dynamic height, how to get form of components at bottom    icefaces.org

Hi all, I have created the example of the CRUD application in Netbeans as per the tutorial. I have a second form with multiple inputs to populate new rows in my database. How do I get these components to follow the table at the bottom no matter of the height of the table? I tried all the icefaces layout options with ...

23. ice form inside td, td expand why ?    icefaces.org

24. problem section expire two forms    icefaces.org

26. Please help: How to use custom validator class for checking for null values in form    icefaces.org

Hi, I have written a java class which implements Validator interface. But the validate method is only called if there is some value in the text field. But i want to check whether the text field is null or not (i can not use required=true). Is there any way to do so?

27. How to make forms dynamically?    icefaces.org

Hello, I would need to make forms dynamically in my icefaces application. User uploads xml document and based on that i would need to make a form. Is there some way to achieve this? I tried writing facelet to temporary directory and then tried to include that facelet with ui:include but that throwed FileNotFoundException: Not Found in ExternalContext as a Resource. ...

28. form validation problems...    icefaces.org

30. big form solution ?    icefaces.org

I have a form like this

....and same structure reapeting 300 times with different outputext and inputtext value ofcourse
which i solved with and in the second solution table has 300 records. Is there ...

31. Form with dynamic components    icefaces.org

32. Partial Rendering within a form... possible??    icefaces.org

Hello Community... i know for you as experts my question looks some kind of underpriveleged but i am no programer.. just a IT project manager who tries to understand the arguments of his programming team. So the challange is, that we have a business application in development with some views containing a huge form. within the form (which is generated quite ...

33. Sample: ICEfaces web app with standard J2EE form based logon/logoff    icefaces.org

For those interested, here is a little sample web application with standard J2EE form based logon/logoff. Note that this post is not intended to start a discussion about wether to use the standard facilities of the application server container or add another library to handle security. If you reached the decision to use the standard facilities of the application server container, ...

34. When form clean and validators / converters come into play togheter    icefaces.org

Hi fasta, Converters, validators and actions (eg commandLink) come into play in different lifecycle phases, so they should have no problem working together. In your case, setting immediate="true" on the clean button makes perfect sense, but it should work without it too. I'd suggest you check more basic stuff like: is the btnClean method called, is the methods' logic correctly clearing ...

35. Upload and Form - different instance of bean    icefaces.org

public class KcUploadBean extends BaseBean { private KcData kcdata; public KcUploadBean() { this.kcdata = new KcData(); } public void saveDataListener(ActionEvent e) { Logger.getLogger(KcUploadBean.class).info(kcdata.toString()); } public KcData getKcdata() { return kcdata; } public void setKcdata(KcData kcdata) { this.kcdata = kcdata; } public void uploadFile(ActionEvent event) { InputFile inputFile = (InputFile) event.getSource(); FileInfo fileInfo = inputFile.getFileInfo(); if (fileInfo.getStatus() == FileInfo.SAVED) { kcdata.setFile(new InputFileData(fileInfo)); ...

36. Making a form/frame user resizable    icefaces.org

38. Multiple Form and Validation Problem    icefaces.org

Hi all, I posted this topic this morning but after checking for any responses, I saw the post had not been correctly submitted. If this is a duplicate I beg your pardon in advance. I am developing an app with IceFaces and am facing the following problem. If I have a page with several forms, is there any way of selectively ...

39. Large Forms    icefaces.org

40. large form suggestion ?    icefaces.org

41. ice:form error    icefaces.org

42. Icefaces form, session problem    icefaces.org

hi! I have a simple Icefaces login form (name, password filelds + send button) The form has a backing bean which maintains a button press event. I would like to put something is a session (examle a simple uid variable) when somebody logged on correctly. I noticed that icefaces is using jspx extension therfore i cannon put jsp code inside it. ...

43. Multiple forms validation.    icefaces.org

44. h:form vs ice:form    icefaces.org

46. Listening to Form changes as a whole    icefaces.org

Hello, 2 questions that I would like some advice/help with: 1. Is there a way to determine if the components inside the have been modified, as a whole, instead of adding a valueChangeListener to each and every component? Eg. When navigating away from a page, throw a prompt if any of the fields in a form have been modified. or ...

49. ICEfaces form help    icefaces.org

50. Error while running a form    icefaces.org

54. Wiring ice:forms to listen changes    icefaces.org

Hello, Is there an example or documentation that would clarify how to wire two different ice:forms (or ice:xxx) to react on changes? My case is that I've two portlets with two ice:forms (A and B) in those. ice:form A has dataTable with submit button which calls bean #{bean.select}. Bean is Seam enhanced SFSB. Now i'ld like to get a notification to ...

56. Long-process indication after sumbitting the form    icefaces.org

Caused by: javax.faces.el.EvaluationException: /top100.jspx @61,91 action="#{searcher.find}": java.lang.IllegalStateException: No session co ntext active at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73) at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63) ... 35 more Caused by: java.lang.IllegalStateException: No session context active at org.jboss.seam.ScopeType.getContext(ScopeType.java:133) at org.jboss.seam.Component.outjectDataModel(Component.java:1276) at org.jboss.seam.Component.outjectDataModels(Component.java:1264) at org.jboss.seam.Component.outject(Component.java:1215) at org.jboss.seam.interceptors.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:48) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) at org.jboss.seam.interceptors.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:27) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) at org.jboss.seam.interceptors.SynchronizationInterceptor.aroundInvoke(SynchronizationInterceptor.java:31) at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69) at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103) at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:154) at org.jboss.seam.intercept.JavaBeanInterceptor.intercept(JavaBeanInterceptor.java:89) at com.mycomp.PacketsSearcher$$EnhancerByCGLIB$$84679ea3.find() at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ...

57. How to make a form    icefaces.org

58. TabbedPane::must be in a FORM    icefaces.org

I get the above error when I try to embed the form inside panelTabs instead of around panelTabSet. I've 7 panelTabs, each including a different jspx (enclosed in subviews). If I surround the panelTabSet with ice:form, then this will result in ALL input items being sent in one form. Which means, if there is a validation error in one of the ...

59. JSF Form Error    icefaces.org

Hi, I am creating a form using JSF components and defined the Managed Bean class and also the faces-config.xml file well as per knowledge. To my surprise, it is not taking the action. The code for the loginForm.jspx is as follows: Login Form

User Verification

60. inputFile Failing on form enctype    icefaces.org

I am using ICEFaces 1.6DR4 with JBoss Seam and myfaces. I have a single template that I populate with information from a variety of backing beans. I'm trying to create a bio page for my site users that allows them to upload an image for their profile. What I'm seeing is that when I submit the form, which is an isolated ...

61. issue with Forms in ICEFaces v1.6    icefaces.org

Hi I recently update my icefaces's lib to new version 1.6 but I get 2 warning and 1 error of javascript, I see that in Error Console of Firefox 2.0 the warning and error are: Warning: Unknown property 'filter'. Declaration dropped. Source File: http://localhost:8084/vsuite/xmlhttp/css/xp/xp.css Line: 146 .iceSelInpDateIFrameFix { z-index: -1; position: absolute; display: block; filter: mask(); ----> line 146 } Warning: ...

62. 1.5.3 to 1.6: All Components must be enclosed in a JSF form component    icefaces.org

The release notes for 1.6 says that all ICEfaces Component Suite components must be enclosed in a JSF form component. My current application uses 1.5.3 and uses components like ice:dataTable, ice:panelGroup, ice:panelBorder which are outside the form and they are working fine. So if I upgrade than it seems my application won't work. I don't intend to do any submit's with ...

64. Dynamic Form content?    icefaces.org

Is it possible to create a shell form in jsp and then programmatically (using Java, not jsp tags) add components (TextBox's, ComboBoxs, etc) and allow for a form post so I can grab the values programmatically as well? This would include doing some sort of grid in code (not jsp code) that would position the labels and widgets appropriately? We currently ...

65. Forms and Carriage Returns...    icefaces.org

67. Upload form    icefaces.org

I am new to JSF and IceFaces and working on a small web application for managing some files. On a page i have a form for uploading a file to the server and save some additional informations about it. Now when i press Upload i want to save the file and the additional inputfields. Saving the file works fine but if ...

68. ICEfaces best practices for form validation    icefaces.org

zzzz8 Joined: 07/12/2005 00:00:00 Messages: 246 Offline I've been trying out ICEfaces with form validation and I've found it works very well. Unfortunately, I'm wondering if I'm doing it the best way - as I've experienced while evaluating the product, I find myself doing things in alternative ways. I've tried looking at some of your demos, especially the address demo, but ...

69. Clearing form elements    icefaces.org

private void clearSubmittedValues(Object obj) { if (obj == null || obj instanceof UIComponent == false) return; List chld = ((UIComponent)obj).getChildren(); if (chld.size() != 0) { for (int i = 0; i < chld.size(); i++) { clearSubmittedValues(chld.get(i)); } } if (obj instanceof HtmlInputText) { ((HtmlInputText)obj).setSubmittedValue(""); }else if (obj instanceof UIInput) { ((UIInput)obj).setSubmittedValue(null); ((UIInput)obj).setValue(null); ((UIInput)obj).setLocalValueSet(false); } }

70. Embedded forms/screens    icefaces.org

71. A form with two backing bean    icefaces.org

72. Nested form error    icefaces.org

73. Nested Form problem!    icefaces.org

77. Icefaces Facelets forms not working    icefaces.org

I just integrated icefaces in my application, changing from tiles to facelets. I have to use both the Sun and IceFaces(D2D) FaceletsViewHandlers in order to submit my forms. If I use Icefaces alone, then I have trouble getting the welcome file to work. I am cautious about using only IceFacelets because this is a 2-year old app with 94 jsp pages ...

78. enabledOnUserRole on ice:form ?    icefaces.org

We would like to enable/disable the ice:form, rather than setting enabledOnUserRole for each component of an ice:form. Looking at the source of com.icesoft.faces.component.ext.HtmlForm, there are two members, enabledOnUserRole and renderedOnUserRole. Yet, only the later on the javadoc, and enabledOnUserRole does not have any effect. Any particular reasons ? Is this deliberate ( we are using 1.7.1 ) ?

79. Dynamic Form with Facelets    icefaces.org

81. Form    icefaces.org

I am moving a php application over to Ice faces. In this application there is quite a bit of JavaScript that enabled/disabled form fields based on different things. Here is an example: function disableRankingDropDown(listselection) { if(listselection.value == "all" ){ document.emailPlayersForm.ranking.disabled = true; } else{ document.emailPlayersForm.ranking.disabled = ""; } } This isn't working in the ICE Faces application. So I viewed the ...

82. Automatically filling a form    icefaces.org

Hi I Have a form on my jsf page, first input is for persons idetyfication number. It has a value change listener atached to it. When user provides a number of person that is already in the database I want the rest of form fields fill automatically, I assign values to those fields inside my value change listener but I want ...

84. Nested form problem    icefaces.org

89. How to reset the form?    icefaces.org