This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Attempts to create a Match Handler event on the select value text field throws a: java.lang.IllegalArgumentException: Type javax.faces.model.SelectItem[] cannot be found Steps: http://www.netbeans.org/kb/55/vwp-ajaxmapviewer.html Condensed steps: 1. add ajax complib 2. add select value text field to designer 3. right click component and choose > Edit Event Handler > MatchValue from menu. Exception occurs and method is not created.
Created attachment 41878 [details] IllegalArgumentException
attached exception. Note: this is Highly visible but user can workaround this designtime exception by copy/pasting the entire method from the tutorial into the java. Unfortunately, when they deploy it will fail with a runtime exception on the selectValueTag.setProperties (attached).
Created attachment 41879 [details] Runtime Exception
Assigning this to Matt (our Ajax guy) for initial evaluation.
Removing J1_STOPPER keyword since this functionality is not required until FCS. Please note that this error occurs with EE4 and EE5 projects.
Downgrading to P2 (sample component). Marking as regression.
Accepting.
release note added
I will have to try to reproduce the runtime error. I will likely have to pass the designtime error to the insync team.
*** Issue 107499 has been marked as a duplicate of this issue. ***
It appears that the runtime error occurs only if you do the workaround incorrectly. For instance: - Drop a Select Value component. - Add this to the backing bean: public SelectItem[] selectValue1_matchValue(FacesContext context, String value) { return new SelectItem[]{ new SelectItem("cat", "cat"), new SelectItem("monkey", "monkey"), new SelectItem("llama", "llama") }; } - Deploy. The runtime exception occurs. - Now edit the JSP to hook up the itemsMethod property: itemsMethod="#{Page1.selectValue1_matchValue}" - Deploy. Everything works as expected. So I am passing this to the insync team for evaluation of the designtime error.
Deva, this looks like a issue with not handling the array type correctly? The TreeMakerUtils seems to be loading javax.faces.model.SelectItem[] (i.e. with []) as a type.
Caused because of not handling array types in TreeMakerUtils.createType() Checking in TreeMakerUtils.java; /cvs/visualweb/insync/src/org/netbeans/modules/visualweb/insync/java/TreeMakerUtils.java,v <-- TreeMakerUtils.java new revision: 1.5; previous revision: 1.4
Verified using: Product Version: NetBeans 6 IDE Dev (Build 200708150000) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Woodstock 4.1: 200708141616 Ajax BluePrints: 0.1.2