Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.7
-
Fix Version/s: 1.7.1
-
Component/s: Tool Integrations
-
Labels:None
-
Environment:Netbeans 6.0.1
-
ICEsoft Forum Reference:
Description
will not compile ( See attached screenshot )
HtmlInputSecret his = new HtmlInputSecret();
HtmlCommandButton hcb = new HtmlCommandButton();
his.addAcctionListener(new ActionListener() {
public void processAction(ActionEvent ae) {
return;
}
});
hcb.requestFocus();
I did not attempt to identify any other methods and classes that fit this pattern.
This bug makes 1.7 unusable with Netbeans, making it pretty much a show stopper for people like me.
-
Hide
- icefaces-comps-1.7.1.jar
- 666 kB
- Frank Ye
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/icefaces_component.tld 807 kB
- META-INF/faces-config.xml 36 kB
- com/icesoft/faces/.../dt/DomWrapper.class 2 kB
- com/icesoft/faces/.../dt/DOMTemplate.class 4 kB
- com/icesoft/.../EffectComparator.class 0.7 kB
- com/icesoft/.../effects/Highlight.class 1 kB
- com/icesoft/.../effects/BlankEffect.class 0.5 kB
- com/icesoft/.../effects/EffectTarget.class 0.3 kB
- com/icesoft/.../effects/SwitchOff.class 0.5 kB
- com/icesoft/faces/.../effects/Puff.class 0.4 kB
- com/icesoft/faces/.../effects/Shrink.class 0.9 kB
- com/icesoft/faces/.../effects/Appear.class 1 kB
- com/icesoft/.../effects/EffectUtil.class 1 kB
- com/icesoft/faces/.../effects/BlindUp.class 0.4 kB
- com/icesoft/faces/.../effects/Shake.class 0.4 kB
- com/icesoft/.../effects/EffectHashCode.class 0.5 kB
- com/icesoft/faces/.../effects/DropOut.class 0.4 kB
- com/icesoft/faces/.../effects/Squish.class 0.4 kB
- com/icesoft/.../effects/EffectQueue.class 1 kB
- com/icesoft/.../LocalEffectEncoder.class 2 kB
- com/icesoft/.../effects/EffectBuilder.class 2 kB
- com/icesoft/faces/.../effects/Focus.class 0.4 kB
- com/icesoft/faces/.../effects/Fade.class 1 kB
- com/icesoft/faces/.../effects/Pulsate.class 1 kB
- com/icesoft/.../effects/BlindDown.class 0.5 kB
- com/icesoft/faces/.../effects/Effect.class 5 kB
- com/icesoft/faces/.../effects/SlideUp.class 0.4 kB
- com/icesoft/faces/.../effects/Move.class 2 kB
- com/icesoft/faces/.../effects/Scale.class 3 kB
-
Hide
- icefaces-comps-1.7.1.jar
- 664 kB
- Frank Ye
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/icefaces_component.tld 807 kB
- META-INF/faces-config.xml 36 kB
- com/icesoft/faces/.../dt/DomWrapper.class 2 kB
- com/icesoft/faces/.../dt/DOMTemplate.class 4 kB
- com/icesoft/.../EffectComparator.class 0.7 kB
- com/icesoft/.../effects/Highlight.class 1 kB
- com/icesoft/.../effects/BlankEffect.class 0.5 kB
- com/icesoft/.../effects/EffectTarget.class 0.3 kB
- com/icesoft/.../effects/SwitchOff.class 0.5 kB
- com/icesoft/faces/.../effects/Puff.class 0.4 kB
- com/icesoft/faces/.../effects/Shrink.class 0.9 kB
- com/icesoft/faces/.../effects/Appear.class 1 kB
- com/icesoft/.../effects/EffectUtil.class 1 kB
- com/icesoft/faces/.../effects/BlindUp.class 0.4 kB
- com/icesoft/faces/.../effects/Shake.class 0.4 kB
- com/icesoft/.../effects/EffectHashCode.class 0.5 kB
- com/icesoft/faces/.../effects/DropOut.class 0.4 kB
- com/icesoft/faces/.../effects/Squish.class 0.4 kB
- com/icesoft/.../effects/EffectQueue.class 1 kB
- com/icesoft/.../LocalEffectEncoder.class 2 kB
- com/icesoft/.../effects/EffectBuilder.class 2 kB
- com/icesoft/faces/.../effects/Focus.class 0.4 kB
- com/icesoft/faces/.../effects/Fade.class 1 kB
- com/icesoft/faces/.../effects/Pulsate.class 1 kB
- com/icesoft/.../effects/BlindDown.class 0.5 kB
- com/icesoft/faces/.../effects/Effect.class 5 kB
- com/icesoft/faces/.../effects/SlideUp.class 0.4 kB
- com/icesoft/faces/.../effects/Move.class 2 kB
- com/icesoft/faces/.../effects/Scale.class 3 kB
-
- compile.errors.txt
- 0.3 kB
- Alexander Proskurowski
-
Hide
- icefaces-comps-1.7.1.jar
- 663 kB
- Frank Ye
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/icefaces_component.tld 807 kB
- META-INF/faces-config.xml 36 kB
- com/icesoft/faces/.../dt/DomWrapper.class 2 kB
- com/icesoft/faces/.../dt/DOMTemplate.class 4 kB
- com/icesoft/.../EffectComparator.class 0.7 kB
- com/icesoft/.../effects/Highlight.class 1 kB
- com/icesoft/.../effects/BlankEffect.class 0.5 kB
- com/icesoft/.../effects/EffectTarget.class 0.3 kB
- com/icesoft/.../effects/SwitchOff.class 0.5 kB
- com/icesoft/faces/.../effects/Puff.class 0.4 kB
- com/icesoft/faces/.../effects/Shrink.class 0.9 kB
- com/icesoft/faces/.../effects/Appear.class 1 kB
- com/icesoft/.../effects/EffectUtil.class 1 kB
- com/icesoft/faces/.../effects/BlindUp.class 0.4 kB
- com/icesoft/faces/.../effects/Shake.class 0.4 kB
- com/icesoft/.../effects/EffectHashCode.class 0.5 kB
- com/icesoft/faces/.../effects/DropOut.class 0.4 kB
- com/icesoft/faces/.../effects/Squish.class 0.4 kB
- com/icesoft/.../effects/EffectQueue.class 1 kB
- com/icesoft/.../LocalEffectEncoder.class 2 kB
- com/icesoft/.../effects/EffectBuilder.class 2 kB
- com/icesoft/faces/.../effects/Focus.class 0.4 kB
- com/icesoft/faces/.../effects/Fade.class 1 kB
- com/icesoft/faces/.../effects/Pulsate.class 1 kB
- com/icesoft/.../effects/BlindDown.class 0.5 kB
- com/icesoft/faces/.../effects/Effect.class 5 kB
- com/icesoft/faces/.../effects/SlideUp.class 0.4 kB
- com/icesoft/faces/.../effects/Move.class 2 kB
- com/icesoft/faces/.../effects/Scale.class 3 kB
-
Hide
- icefaces-comps-1.7.1-sources.jar
- 572 kB
- Frank Ye
-
- META-INF/MANIFEST.MF 0.1 kB
- com/icesoft/faces/.../dt/DomWrapper.java 3 kB
- com/icesoft/faces/.../dt/DOMTemplate.java 5 kB
- com/icesoft/faces/.../effects/Squish.java 2 kB
- com/icesoft/faces/.../effects/Move.java 4 kB
- com/icesoft/faces/.../effects/SwitchOff.java 2 kB
- com/icesoft/faces/.../effects/DragCache.java 4 kB
- com/icesoft/faces/.../effects/Appear.java 3 kB
- com/icesoft/faces/.../effects/Effect.java 11 kB
- com/icesoft/faces/.../effects/Fade.java 3 kB
- com/icesoft/.../effects/EffectQueue.java 3 kB
- com/icesoft/faces/.../effects/BlindUp.java 2 kB
- com/icesoft/faces/.../effects/DragDrop.java 5 kB
- com/icesoft/.../LocalEffectEncoder.java 4 kB
- com/icesoft/.../effects/EffectTarget.java 2 kB
- com/icesoft/.../EffectComparator.java 2 kB
- com/icesoft/faces/.../effects/SlideDown.java 2 kB
- com/icesoft/faces/.../effects/Highlight.java 3 kB
- com/icesoft/.../effects/BlankEffect.java 2 kB
- com/icesoft/.../effects/EffectBuilder.java 3 kB
- com/icesoft/faces/.../effects/Fold.java 2 kB
- com/icesoft/.../effects/CurrentStyle.java 9 kB
- com/icesoft/faces/.../effects/Grow.java 2 kB
- com/icesoft/.../effects/EffectUtil.java 3 kB
- com/icesoft/faces/.../effects/Opacity.java 3 kB
- com/icesoft/faces/.../effects/Shake.java 2 kB
- com/icesoft/faces/.../effects/Focus.java 0.2 kB
- com/icesoft/faces/.../effects/Shrink.java 2 kB
- com/icesoft/.../effects/EffectHashCode.java 2 kB
- com/icesoft/faces/.../effects/DropOut.java 2 kB
-
Hide
- icefaces-comps-1.7.1.jar
- 648 kB
- Frank Ye
-
- META-INF/MANIFEST.MF 0.1 kB
- META-INF/icefaces_component.tld 795 kB
- META-INF/faces-config.xml 36 kB
- com/icesoft/faces/.../dt/DomWrapper.class 2 kB
- com/icesoft/faces/.../dt/DOMTemplate.class 4 kB
- com/icesoft/.../EffectComparator.class 0.7 kB
- com/icesoft/.../effects/Highlight.class 1 kB
- com/icesoft/.../effects/BlankEffect.class 0.5 kB
- com/icesoft/.../effects/EffectTarget.class 0.3 kB
- com/icesoft/.../effects/SwitchOff.class 0.5 kB
- com/icesoft/faces/.../effects/Puff.class 0.4 kB
- com/icesoft/faces/.../effects/Shrink.class 0.9 kB
- com/icesoft/faces/.../effects/Appear.class 1 kB
- com/icesoft/.../effects/EffectUtil.class 1 kB
- com/icesoft/faces/.../effects/BlindUp.class 0.4 kB
- com/icesoft/faces/.../effects/Shake.class 0.4 kB
- com/icesoft/.../effects/EffectHashCode.class 0.5 kB
- com/icesoft/faces/.../effects/DropOut.class 0.4 kB
- com/icesoft/faces/.../effects/Squish.class 0.4 kB
- com/icesoft/.../effects/EffectQueue.class 1 kB
- com/icesoft/.../LocalEffectEncoder.class 2 kB
- com/icesoft/.../effects/EffectBuilder.class 2 kB
- com/icesoft/faces/.../effects/Focus.class 0.4 kB
- com/icesoft/faces/.../effects/Fade.class 1 kB
- com/icesoft/faces/.../effects/Pulsate.class 1 kB
- com/icesoft/.../effects/BlindDown.class 0.5 kB
- com/icesoft/faces/.../effects/Effect.class 5 kB
- com/icesoft/faces/.../effects/SlideUp.class 0.4 kB
- com/icesoft/faces/.../effects/Move.class 2 kB
- com/icesoft/faces/.../effects/Scale.class 3 kB
-
- SelectInputText.error.txt
- 3 kB
- Alexander Proskurowski
-
- SelectInputText.java
- 8 kB
- Alexander Proskurowski
-
- enumerate.java
- 9 kB
- Alexander Proskurowski
-
- screenshot-1.jpg
- 356 kB
Activity
Field | Original Value | New Value |
---|---|---|
Attachment | screenshot-1.jpg [ 10962 ] |
I created simple java code that uses reflection to generate code that will enable you to find all classes and methods in question.
Atachments.
enumerate.java - code to enumerate methods and classes, includes instructions
SelectInputText.java - sample code generated for SelectInputText component
SelectInputText.error.txt - errors if ones tries to compile generated code.
Olek
Attachment | enumerate.java [ 10964 ] |
Attachment | SelectInputText.java [ 10965 ] |
Attachment | SelectInputText.error.txt [ 10966 ] |
Attachment | icefaces-comps-1.7.1.jar [ 10996 ] |
Olek,
what really needed is a diff for classes and methods. The 1.7.1 design time jar is attached. Please provides the detailed diff.
thanks,
Frank
Attachment | icefaces-comps-1.7.1-sources.jar [ 10997 ] |
If I add icefaces-comps-1.7.1.jar to my project and move it before the 1.7.0 in compile time libraries errors seem to go away. I'll do a bit more testing tomorrow.
Assignee | Frank Ye [ frank.ye ] |
I have a similar problem with a popup menu:
public void mniAddClicked(ActionEvent evt) {
if (evt instanceof ContextActionEvent) {
can't find ContextActionEvent, see http://www.icefaces.org/JForum/posts/list/0/8596.page
the jar file include the ContextActionEvent. Could you try this one.
Attachment | icefaces-comps-1.7.1.jar [ 11049 ] |
From menuPopup tld, it does not expose action or actionListener, how you using the following:
public void mniAddClicked(ActionEvent evt) {
if (evt instanceof ContextActionEvent) {
All errors from are gone except the following classes could not be found.
Attachment | compile.errors.txt [ 11050 ] |
trying this one attached. MenuItemCheckbox and MenuItemRadio is not used. why have the reference?
Attachment | icefaces-comps-1.7.1.jar [ 11051 ] |
I just took all the classes that are referenced in the documentation and run them through my test program. Also note that I tested only classes under com.icesoft.faces.components, I did not run classes under com.icesoft.faces through my test program.
Error concerning com.icesoft.faces.component.inputfile.FileUploadServlet is gone, but the other ones are still there.
Do you want me to run classes under com.icesoft.faces through my program ?
including all the classes that mentioned. Let me know if you still have problem.
Attachment | icefaces-comps-1.7.1.jar [ 11052 ] |
All the errors are gone.
Do you want me to run classes under com.icesoft.faces through my program ?
Not sure what it really means. If classes inside icefaces-comp.jar (run time), it should be included in design time jar as well. So if this is the case, please do so. icefaces.jar is always in the compile time, but named as icefaces-dt.jar
Classes under com.icesoft.faces do not generate any errors.
It looks like the problem has been fixed.
Thank you
Frank,
I got another problem
Documentation for HtmlDataTable states that setScrollable method takes Boolean as parameter (and it did in 1.6.2)
However setScrollable in HtmlDataTableBase which HtmlDataTable extends takes boolean.
This should probably be filed as a separate bug, as it has nothing to do with Netbeans integration. Should I do this.
Unlikely anyone is still using a JDK 1.4 server... so it could just setScrollable with Boolean.TRUE.
setScrollable(Boolean.TRUE) gives an error.
Yes.
This is from the file you attached earlier
in HtmlDataTableBase.java
public void setScrollable(boolean _scrollable)
{ this._scrollable = _scrollable; }in HtmlDataTable.java
public class HtmlDataTable
extends HtmlDataTableBase {
from javadoc
void setScrollable(java.lang.Boolean scrollable)
So according to javadoc argument should be Boolean, but since HtmlDataTable extends HtmlDataTableBase argument is boolean.
the implementation does diff, however, you could use Boolean.TRUE to setScrollable with jdk 1.5. So it should be fine. At the same time, jdk 1.5 is part of requirements for jsf 1.2 anyway.
Ok, never mind , "operator error"
Thanks for help
> From menuPopup tld, it does not expose action or actionListener, how you using the following:
> public void mniAddClicked(ActionEvent evt) {
> if (evt instanceof ContextActionEvent) {
It's on the menu item:
<ice:menuPopup binding="#
{Page1.mnuPopup}" id="mnuPopup" imageDir="./xmlhttp/css/xp/css-images/" orientation="Vertical">
<ice:menuItem actionListener="#
" binding="#
{Page1.mniAdd}" id="mniAdd" value="Add"/>
<ice:menuItem actionListener="#
" binding="#
{Page1.mniCut}" id="mniCut" value="Cut"/>
<ice:menuItem actionListener="#
" binding="#
{Page1.mniPaste}" id="mniPaste" value="Paste"/>
</ice:menuPopup>
The handler like this won't compile:
public void mniAddClicked(ActionEvent evt) {
if (evt instanceof ContextActionEvent)
This looks to be the same technique used in the popup menu example in the component showcase.
please try the latest icefaces-comps-1.7.1jar and let me know if it is working for you.
It goes here (682311 bytes) ?
<NB install dir>/vwp_suite/modules/ext/icefaces/icefaces-1.7.0/icefaces-comps.jar
Still gives a compile error. Alt-shift-I in NetBeans shows no imports found.
Could you try the NB6.1 integration? Let me know if it still fails.
I can't even get the beta 6.1 plugin to create a project:
WARNING [org.netbeans.modules.project.ui.OpenProjectList]
java.lang.IllegalArgumentException: URI scheme is not "file"
at java.io.File.<init>(File.java:366)
at org.netbeans.spi.project.libraries.support.LibrariesSupport.convertURIToFilePath(LibrariesSupport.java:130)
at org.netbeans.modules.java.project.BrokenReferencesModel.canResolveEvaluatedUri(BrokenReferencesModel.java:289)
at org.netbeans.modules.java.project.BrokenReferencesModel.getReferences(BrokenReferencesModel.java:274)
at org.netbeans.modules.java.project.BrokenReferencesModel.isBroken(BrokenReferencesModel.java:168)
at org.netbeans.spi.java.project.support.ui.BrokenReferencesSupport.isBroken(BrokenReferencesSupport.java:110)
at org.netbeans.modules.web.project.ui.WebLogicalViewProvider.hasBrokenLinks(WebLogicalViewProvider.java:249)
at org.netbeans.modules.web.project.WebProject$ProjectOpenedHookImpl.projectOpened(WebProject.java:889)
at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
at org.netbeans.spi.project.ui.support.UILookupMergerSupport$OpenHookImpl.projectOpened(UILookupMergerSupport.java:193)
at org.netbeans.spi.project.ui.ProjectOpenedHook$1.projectOpened(ProjectOpenedHook.java:81)
[catch] at org.netbeans.modules.project.ui.OpenProjectList.notifyOpened(OpenProjectList.java:951)
at org.netbeans.modules.project.ui.OpenProjectList.doOpenProject(OpenProjectList.java:999)
at org.netbeans.modules.project.ui.OpenProjectList.doOpen(OpenProjectList.java:598)
at org.netbeans.modules.project.ui.OpenProjectList.access$1100(OpenProjectList.java:123)
at org.netbeans.modules.project.ui.OpenProjectList$3.run(OpenProjectList.java:494)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:561)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:986)
SEVERE [global]
java.lang.IllegalArgumentException: Project icevwp is not open and cannot be set as main.
at org.netbeans.modules.project.ui.OpenProjectList.setMainProject(OpenProjectList.java:764)
at org.netbeans.modules.project.ui.actions.NewProject$2.run(NewProject.java:212)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:104)
[catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
From stack trace, you have incorrect uri or file link to the libraries.
Firstly,go to Tool --> Libraries and make sure that libraries have valid path.
Status | Open [ 1 ] | Closed [ 6 ] |
Fix Version/s | 1.7.1 [ 10122 ] | |
Resolution | Fixed [ 1 ] |
Please provide a list of Jsf Components that missing function calls. Otherwise, the error will always to there.
or at least, that If you could using design time jar to compile your project and attach the failed exception to this jira.