[JBoss JIRA] Created: (JBIDE-4494) Seam Component is not removed from model even if we remove @Name
by Alexey Kazakov (JIRA)
Seam Component is not removed from model even if we remove @Name
----------------------------------------------------------------
Key: JBIDE-4494
URL: https://jira.jboss.org/jira/browse/JBIDE-4494
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.1.0.M1
Reporter: Alexey Kazakov
Assignee: Viacheslav Kabanovich
Fix For: 3.1.0.M2
1. Create default EAR Seam project.
2. Create Test.java to ejb src folder:
package org.domain.<projectName>.session;
import javax.ejb.Stateless;
import org.jboss.seam.annotations.Create;
import org.jboss.seam.annotations.Logger;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.log.Log;
@Stateless @Name("statelessComponentWithDestroyMethod")
public class Test {
private String abc;
@Logger private Log log;
//seam-gen method
public String statefulComponent()
{
//implement your business logic here
log.info("statefulComponent.statefulComponent() action called");
return "success";
}
//add additional action methods
@Create
public void createMethod(){
}
public String getAbc() {
return abc;
}
public void setAbc(String abc) {
this.abc = abc;
}
}
3. Open Seam Components view. There is statelessComponentWithDestroyMethod component with java declaration - Test.java
4. Remove @Stateless @Name("statelessComponentWithDestroyMethod") from Test.java. Ctrl+S.
5. See Seam Components view. There is still statelessComponentWithDestroyMethod component with java declaration - Test.java.
We have SeamValidatorsTest.testComponentLifeCycleMethodsValidator() failed because of this.
--
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
16 years, 4 months
[JBoss JIRA] Created: (JBIDE-4179) Use Substituted EL Expression on certain tags/attributes
by Max Rydahl Andersen (JIRA)
Use Substituted EL Expression on certain tags/attributes
--------------------------------------------------------
Key: JBIDE-4179
URL: https://jira.jboss.org/jira/browse/JBIDE-4179
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Visual Page Editor core, Visual Page Editor Templates
Reporter: Max Rydahl Andersen
Assignee: Maxim Areshkau
Fix For: 3.1.0
Would it not be useful to be able to support EL Expression on i.e. the rendered attribute of s:link (and others) ?
This would allow me to "immitate" how the screen would look like when user is logged in or not. which would in seam apps where we today render both Login and Logout button - we would be able to render the right one.
i.e. today we got:
<s:link view="/login.xhtml" value="Login" rendered="#{not identity.loggedIn}"/>
<s:link view="/home.xhtml" action="#{identity.logout}" value="Logout" rendered="#{identity.loggedIn}"/>
by default identity.loggedIn is "not defined" and we will simply just do as we do today, but if I go and define identity.loggedIn as "true" it would only render the "Logout" and not the "Login"
I know this won't be complete but it would at least is cool for some things...
If this is done having a way to toggle "Substitituon on/off" globally/per editor would be interesting I think.
Btw. the code should be resilient to bogus values, i.e. if identity.loggedIn is not true or false but some "bogusvalue" we should render as if it is not defined instead of erroring.
--
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
16 years, 4 months
[JBoss JIRA] Created: (JBIDE-4291) java.lang.NullPointerException is occured when CA is called in Attributes wizard
by Anton Klimkovich (JIRA)
java.lang.NullPointerException is occured when CA is called in Attributes wizard
--------------------------------------------------------------------------------
Key: JBIDE-4291
URL: https://jira.jboss.org/jira/browse/JBIDE-4291
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: jsp/jsf/xml source editing
Affects Versions: 3.1.0.M1
Reporter: Anton Klimkovich
Assignee: Alexey Kazakov
EXECUTE: Select any tag in visual part of VPE
EXECUTE: Select Attributes menu from context memu
ASSERT: Attributes wizard should apear
EXECUTE: Call CA in any Value field
FAILURE: java.lang.NullPointerException
at org.jboss.tools.jst.jsp.contentassist.JSPDialogCellEditorContentAssistProcessor.addAttributeValueProposals(JSPDialogCellEditorContentAssistProcessor.java:77)
at org.jboss.tools.jst.jsp.contentassist.JSPDialogCellEditorContentAssistProcessor.computeCompletionProposals(JSPDialogCellEditorContentAssistProcessor.java:59)
at org.eclipse.jface.text.contentassist.ContentAssistant.computeCompletionProposals(ContentAssistant.java:1809)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.computeProposals(CompletionProposalPopup.java:555)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.access$16(CompletionProposalPopup.java:553)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup$2.run(CompletionProposalPopup.java:488)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.text.contentassist.CompletionProposalPopup.showProposals(CompletionProposalPopup.java:482)
at org.eclipse.jface.text.contentassist.ContentAssistant.showPossibleCompletions(ContentAssistant.java:1660)
at org.eclipse.ui.contentassist.ContentAssistHandler$4.execute(ContentAssistHandler.java:220)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:470)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:824)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:880)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:569)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:510)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:125)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1191)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1002)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
at org.eclipse.swt.widgets.Text.sendKeyEvent(Text.java:1420)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1360)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4051)
at org.eclipse.swt.widgets.Text.WM_CHAR(Text.java:2168)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3944)
at org.eclipse.swt.widgets.Text.windowProc(Text.java:2163)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2403)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
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.wizards.query.AbstractQueryWizard.execute(AbstractQueryWizard.java:105)
at org.jboss.tools.common.model.ui.objecteditor.ExtendedPropertiesWizard.run(ExtendedPropertiesWizard.java:32)
at org.jboss.tools.vpe.editor.menu.MenuCreationHelper.showProperties(MenuCreationHelper.java:399)
at org.jboss.tools.vpe.editor.menu.MenuCreationHelper.access$0(MenuCreationHelper.java:396)
at org.jboss.tools.vpe.editor.menu.MenuCreationHelper$1.run(MenuCreationHelper.java:126)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
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.ui.internal.Workbench.runEventLoop(Workbench.java:2401)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2365)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2217)
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:1287)
at org.eclipse.equinox.launcher.Main.main(Main.java:1263)
--
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
16 years, 4 months