[
https://jira.jboss.org/jira/browse/JBIDE-5043?page=com.atlassian.jira.plu...
]
Viacheslav Kabanovich commented on JBIDE-5043:
----------------------------------------------
Failure occures because project does not has seam tag library.
In this case kb model canot find tag and attribute description and wizard model reports an
attempt to assign value for which no input field was created.
Therefore, when project misses some tag libraries we have to exclude related tags from the
proposal list, as s:decorate in this example.
IllegalArgumentException is thrown after DnD s:decorate
-------------------------------------------------------
Key: JBIDE-5043
URL:
https://jira.jboss.org/jira/browse/JBIDE-5043
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 3.1.0.M4
Reporter: Yura Zhishko
Assignee: Viacheslav Kabanovich
Fix For: 3.1.0.M4
1) Create Web project
2) Open JSP or xhtml page
3) DND any jsp/xhtml/jspx page or image file from Package explorer to source pane
ASSERT: Dialog with "Select tag for inserting" should appear
4) Check s:decorate
ASSERT: Tag should be inserted correctly
ASSERT FAILED:
java.lang.IllegalArgumentException: Attribute 'template' not found
at
org.jboss.tools.common.model.ui.editors.dnd.DefaultDropWizardModel.setAttributeValue(DefaultDropWizardModel.java:64)
at
org.jboss.tools.common.model.ui.editors.dnd.AbsoluteFilePathAttributeValueLoader.fillTagAttributes(AbsoluteFilePathAttributeValueLoader.java:65)
at
org.jboss.tools.common.model.ui.editors.dnd.DefaultDropWizardModel.doLoadDefaultAttributeValues(DefaultDropWizardModel.java:121)
at
org.jboss.tools.common.model.ui.editors.dnd.DefaultDropWizardModel.setTagProposal(DefaultDropWizardModel.java:45)
at
org.jboss.tools.common.model.ui.editors.dnd.composite.TagProposalsComposite$1.checkStateChanged(TagProposalsComposite.java:95)
at org.eclipse.jface.viewers.CheckboxTableViewer$1.run(CheckboxTableViewer.java:212)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.runtime.Platform.run(Platform.java:888)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at
org.eclipse.jface.viewers.CheckboxTableViewer.fireCheckStateChanged(CheckboxTableViewer.java:210)
at
org.eclipse.jface.viewers.CheckboxTableViewer.handleSelect(CheckboxTableViewer.java:300)
at
org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1190)
at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:228)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:222)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:389)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at
org.jboss.tools.common.model.ui.editors.dnd.DefaultDropCommand.execute(DefaultDropCommand.java:90)
at org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor$4.run(JSPTextEditor.java:761)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:134)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3855)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3476)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira