Project name
Hi, Have there been any suggestions or thoughts of changing the project name from isis to something else ? I only ask, because searching for apache isis usually brings up some unwanted / unsavoury results, and I would expect that might just increase over time. It also might trigger email spam filtering, company firewall rules, etc to kick in for some. I could imagine other contexts in which the mere occurrence of the word isis might create some unwanted distraction or issue. I can appreciate how much upheaval that such a name change could cause, but nonetheless thought it worth asking about. Thanks
Re: Returning content as file...?
umm, ok... no clues there unfortunately. Any Javascript errors in Chrome's console? Also, which version are you running against? I'm guessing 1.10.0 ? On 22 November 2015 at 19:22, Kevin Meyer wrote: > Let me turn off one component factory that I create, but don't use.. > > In the mean time, heres the full stack trace: > > 20:10:40,374 [RequestCycleExtraqtp576936864-17 WARN ] Handling the > following exception > org.apache.wicket.WicketRuntimeException: No Page found for component > [ActionPanel [Component id = content]] > at org.apache.wicket.Component.getPage(Component.java:1722) > at > > org.apache.isis.viewer.wicket.ui.actionresponse.ActionResultResponseHandlingStrategy$3.handleResults(ActionResultResponseHandlingStrategy.java:65) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionOnTargetAndProcessResults(ActionPanel.java:254) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionAndProcessResults(ActionPanel.java:195) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.buildGui(ActionPanel.java:106) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.(ActionPanel.java:84) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanelFactory.createComponent(ActionPanelFactory.java:49) > at > > org.apache.isis.viewer.wicket.viewer.registries.components.ComponentFactoryRegistryDefault.createComponent(ComponentFactoryRegistryDefault.java:128) > at > > org.apache.isis.viewer.wicket.ui.components.widgets.linkandlabel.ActionLinkFactoryAbstract$1.onClick(ActionLinkFactoryAbstract.java:73) > at > org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:86) > at > > org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:146) > at > > org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:641) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at > > org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) > at > > org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) > at > > org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250) > at > > org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236) > at > > org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890) > at > > org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) > at > org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) > at > > org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) > at > > org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) > at > > org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) > at > > org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) > at > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > > org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > > org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) > at > > org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) > at > > org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) > at > > org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) > at > > org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) > at > > org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) > at > > org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) > at > > org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) > at > org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) > at > > org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
Re: Returning content as file...?
Let me turn off one component factory that I create, but don't use.. In the mean time, heres the full stack trace: 20:10:40,374 [RequestCycleExtraqtp576936864-17 WARN ] Handling the following exception org.apache.wicket.WicketRuntimeException: No Page found for component [ActionPanel [Component id = content]] at org.apache.wicket.Component.getPage(Component.java:1722) at org.apache.isis.viewer.wicket.ui.actionresponse.ActionResultResponseHandlingStrategy$3.handleResults(ActionResultResponseHandlingStrategy.java:65) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionOnTargetAndProcessResults(ActionPanel.java:254) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionAndProcessResults(ActionPanel.java:195) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.buildGui(ActionPanel.java:106) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.(ActionPanel.java:84) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanelFactory.createComponent(ActionPanelFactory.java:49) at org.apache.isis.viewer.wicket.viewer.registries.components.ComponentFactoryRegistryDefault.createComponent(ComponentFactoryRegistryDefault.java:128) at org.apache.isis.viewer.wicket.ui.components.widgets.linkandlabel.ActionLinkFactoryAbstract$1.onClick(ActionLinkFactoryAbstract.java:73) at org.apache.wicket.ajax.markup.html.AjaxLink$1.onEvent(AjaxLink.java:86) at org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.java:146) at org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractDefaultAjaxBehavior.java:641) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.apache.wicket.RequestListenerInterface.internalInvoke(RequestListenerInterface.java:258) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:241) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.invokeListener(ListenerInterfaceRequestHandler.java:250) at org.apache.wicket.core.request.handler.ListenerInterfaceRequestHandler.respond(ListenerInterfaceRequestHandler.java:236) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:890) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:261) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:218) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:289) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:259) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:201) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:282) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.apache.isis.core.webapp.diagnostics.IsisLogOnExceptionFilter.doFilter(IsisLogOnExceptionFilter.java:52) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449) at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365) at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383) at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362) at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.j
Re: Performing an action with multiple items on an entity?
Hi Dan, Let me get this basic prototype sorted, then I'd be happy to take on implementing some solutions, be it the update to handle collections as parameters or pasing a parameter to bulk actions.. Right now I've created a ReportSession to hold "the one" report that the current user is working on, with some actions to flush/create and delete ReportSessions... the invokeOn uses scratchpad to find and keep the current report. Cheers, Kevin On Sun, November 22, 2015 17:41, Dan Haywood wrote: > I don't think there is, really. Either we need to support collections as > parameters, or to allow bulk actions to take parameters. > > I know there are tickets for both, but neither have got high enough up > the todo list to warrant being addressed yet. > > If you want to tackle this work, I'll provide some support/guidance > > > Dan > > > > > On 22 November 2015 at 15:33, Kevin Meyer wrote: > > >> Hi all, >> >> >> I'm making reasonable progress with the core of my report-generating >> proof-of-concept, but I am looking for a better solution.. >> >> What I want to do is add multiple "Project"s to a "Report" object (the >> projects are found, for example, by querying the list of projects for a >> customer, or greater than a certain value). >> >> Since Isis does not support "addProjects(Collection projects)" >> on the Report class, I'm using an "invokeOn" annotation on the Project >> class, and a special property on the Report class to indicate a report >> is "open". >> >> However, for this to work, the project instance needs to find a report >> to add itself to, and I'm hacking the system by doing a search to find >> the "open" report, and adding the project to that report. >> >> >> Is there a more sensible solution? >> >> >> Thanks, >> Kevin >> -- Kevin Meyer Ljubljana, Slovenia
Re: Returning content as file...?
Probably need to see some more of the stack trace. You could also run in debug and set a breakpoint as to when the first exception is thrown, to provide a bit more context.. D On 22 November 2015 at 19:13, Kevin Meyer wrote: > Hi Dan, > > Thanks - nice elegant looking solution. > > But I'm getting an exception, I must be missing something in the setup? : > > 20:10:40,374 [RequestCycleExtraqtp576936864-17 WARN ] Handling the > following exception > org.apache.wicket.WicketRuntimeException: No Page found for component > [ActionPanel [Component id = content]] > at org.apache.wicket.Component.getPage(Component.java:1722) > at > > org.apache.isis.viewer.wicket.ui.actionresponse.ActionResultResponseHandlingStrategy$3.handleResults(ActionResultResponseHandlingStrategy.java:65) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionOnTargetAndProcessResults(ActionPanel.java:254) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionAndProcessResults(ActionPanel.java:195) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.buildGui(ActionPanel.java:106) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.(ActionPanel.java:84) > at > > org.apache.isis.viewer.wicket.ui.components.actions.ActionPanelFactory.createComponent(ActionPanelFactory.java:49) > > > > On Sun, November 22, 2015 17:37, Dan Haywood wrote: > > If you return an org.apache.isis.applib.value.Clob, where you can specify > > the filename and media type. > > > > If you wanted to return a zip file or other binary content, use > > org.apache.isis.applib.value.Blob. > > > > For example, see [1] > > > > > > Cheers > > Dan > > > > > > > > [1] > > > https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/a > > pache/isis/applib/services/dto/Dto_downloadXml.java#L56 > > > > > > On 22 November 2015 at 15:51, Kevin Meyer wrote: > > > > > >> Hi, > >> > >> > >> I'm sure this has been described before, but could someone point me to > >> some instructions on how to have the output from a service sent back to > >> the user as a file? (markmail is good, but I'm struggling with what to > >> search for!) > >> > >> For example, I want the results of "printToLatex(Report report)" to be > >> sent back the the user as a LaTeX file with a name derived from > >> report.getName(). My method signature right now is "String > >> printToLatex(Report report)". > >> > >> How does this differ from the service action "printToHtml(Report > >> report)" which should return only the resulting HTML to the browser? Is > >> that possible? > >> > >> Thanks in advance, > >> Kevin > >> > >> > >> -- > >> Kevin Meyer > >> Ljubljana, Slovenia > >> > >> > >> > >> > > > > > -- > Kevin Meyer > Ljubljana, Slovenia > > >
Re: Returning content as file...?
Hi Dan, Thanks - nice elegant looking solution. But I'm getting an exception, I must be missing something in the setup? : 20:10:40,374 [RequestCycleExtraqtp576936864-17 WARN ] Handling the following exception org.apache.wicket.WicketRuntimeException: No Page found for component [ActionPanel [Component id = content]] at org.apache.wicket.Component.getPage(Component.java:1722) at org.apache.isis.viewer.wicket.ui.actionresponse.ActionResultResponseHandlingStrategy$3.handleResults(ActionResultResponseHandlingStrategy.java:65) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionOnTargetAndProcessResults(ActionPanel.java:254) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.executeActionAndProcessResults(ActionPanel.java:195) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.buildGui(ActionPanel.java:106) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanel.(ActionPanel.java:84) at org.apache.isis.viewer.wicket.ui.components.actions.ActionPanelFactory.createComponent(ActionPanelFactory.java:49) On Sun, November 22, 2015 17:37, Dan Haywood wrote: > If you return an org.apache.isis.applib.value.Clob, where you can specify > the filename and media type. > > If you wanted to return a zip file or other binary content, use > org.apache.isis.applib.value.Blob. > > For example, see [1] > > > Cheers > Dan > > > > [1] > https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/a > pache/isis/applib/services/dto/Dto_downloadXml.java#L56 > > > On 22 November 2015 at 15:51, Kevin Meyer wrote: > > >> Hi, >> >> >> I'm sure this has been described before, but could someone point me to >> some instructions on how to have the output from a service sent back to >> the user as a file? (markmail is good, but I'm struggling with what to >> search for!) >> >> For example, I want the results of "printToLatex(Report report)" to be >> sent back the the user as a LaTeX file with a name derived from >> report.getName(). My method signature right now is "String >> printToLatex(Report report)". >> >> How does this differ from the service action "printToHtml(Report >> report)" which should return only the resulting HTML to the browser? Is >> that possible? >> >> Thanks in advance, >> Kevin >> >> >> -- >> Kevin Meyer >> Ljubljana, Slovenia >> >> >> >> > -- Kevin Meyer Ljubljana, Slovenia
Re: Performing an action with multiple items on an entity?
I don't think there is, really. Either we need to support collections as parameters, or to allow bulk actions to take parameters. I know there are tickets for both, but neither have got high enough up the todo list to warrant being addressed yet. If you want to tackle this work, I'll provide some support/guidance Dan On 22 November 2015 at 15:33, Kevin Meyer wrote: > Hi all, > > I'm making reasonable progress with the core of my report-generating > proof-of-concept, but I am looking for a better solution.. > > What I want to do is add multiple "Project"s to a "Report" object (the > projects are found, for example, by querying the list of projects for a > customer, or greater than a certain value). > > Since Isis does not support "addProjects(Collection projects)" on > the Report class, I'm using an "invokeOn" annotation on the Project class, > and a special property on the Report class to indicate a report is "open". > > However, for this to work, the project instance needs to find a report to > add itself to, and I'm hacking the system by doing a search to find the > "open" report, and adding the project to that report. > > Is there a more sensible solution? > > Thanks, > Kevin > > -- > Kevin Meyer > Ljubljana, Slovenia > > >
Re: Returning content as file...?
If you return an org.apache.isis.applib.value.Clob, where you can specify the filename and media type. If you wanted to return a zip file or other binary content, use org.apache.isis.applib.value.Blob. For example, see [1] Cheers Dan [1] https://github.com/apache/isis/blob/master/core/applib/src/main/java/org/apache/isis/applib/services/dto/Dto_downloadXml.java#L56 On 22 November 2015 at 15:51, Kevin Meyer wrote: > Hi, > > I'm sure this has been described before, but could someone point me to > some instructions on how to have the output from a service sent back to > the user as a file? (markmail is good, but I'm struggling with what to > search for!) > > For example, I want the results of "printToLatex(Report report)" to be > sent back the the user as a LaTeX file with a name derived from > report.getName(). > My method signature right now is "String printToLatex(Report report)". > > How does this differ from the service action "printToHtml(Report report)" > which should return only the resulting HTML to the browser? Is that > possible? > > Thanks in advance, > Kevin > > -- > Kevin Meyer > Ljubljana, Slovenia > > >
Returning content as file...?
Hi, I'm sure this has been described before, but could someone point me to some instructions on how to have the output from a service sent back to the user as a file? (markmail is good, but I'm struggling with what to search for!) For example, I want the results of "printToLatex(Report report)" to be sent back the the user as a LaTeX file with a name derived from report.getName(). My method signature right now is "String printToLatex(Report report)". How does this differ from the service action "printToHtml(Report report)" which should return only the resulting HTML to the browser? Is that possible? Thanks in advance, Kevin -- Kevin Meyer Ljubljana, Slovenia
Performing an action with multiple items on an entity?
Hi all, I'm making reasonable progress with the core of my report-generating proof-of-concept, but I am looking for a better solution.. What I want to do is add multiple "Project"s to a "Report" object (the projects are found, for example, by querying the list of projects for a customer, or greater than a certain value). Since Isis does not support "addProjects(Collection projects)" on the Report class, I'm using an "invokeOn" annotation on the Project class, and a special property on the Report class to indicate a report is "open". However, for this to work, the project instance needs to find a report to add itself to, and I'm hacking the system by doing a search to find the "open" report, and adding the project to that report. Is there a more sensible solution? Thanks, Kevin -- Kevin Meyer Ljubljana, Slovenia
Re: collection of similar types
On 21 November 2015 at 22:01, Stephen Cameron wrote: > Actually, it already does have the behaviour that I wanted. > > OK, that's good to hear. > > I'll try individual icons for the subtypes and see if it uses them instead > of the one for the base-type. > > It should do. In the todoapp we use the similar cssClass() to return a CSS class name per instance, and then use application.css to style the different values. This is how individual rows within a table show some todo items "crossed-off", ie with a line through the centre. The icons also vary on a case by case basis. Cheers Dan