[JBoss Seam] - Runtime specification of viewId in Redirect ?
by lcoetzee
Hi,
I am making use of the @Redirect tag as below:
@ApplicationException(rollback=true)
| @Redirect(viewId = "/secure/structure/management/adminHome.xhtml")
| public class NAPException extends Exception implements Serializable {
This works well. However, ideally I would like to configure the viewId at runtime to direct to a specfic page (depending on what the user was doing and where the exception got thrown).. eg.
@Name("napException")
| @ApplicationException(rollback=true)
| @Redirect(viewId = "#{napException.viewId}")
| public class NAPException extends Exception implements Serializable {
| @Out(required=false)
| private String viewId;
| public NAPException(String message) {
| super(message);
| }
|
| public NAPException(String viewId, String message) {
| super(message);
| this.viewId=viewId;
| }
|
| public String getViewId() {
| return viewId;
| }
|
|
| public void setViewId(String viewId) {
| this.viewId = viewId;
| }
| }
and invoked through:
throw new NAPException("/secure/structure/management/adminHome.xhtm",e);
Unfortunately the above does not work, Is there a way I can specify the target viewId ?
Thanks
Louis
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977248#3977248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977248
19 years, 7 months
[JBossWS] - Re: Access ejb 3.0 exposed web service using https
by g.tomassoni
It seems that jbossws-1.0.3 fixed this: @PortComponent settings seems to be correctly mapped to <transport-guarantee> and <auth-method> entries in the generated web.xml.
I have another problem anyway: how can I control the <virtual-host> entry in the generated jboss-web.xml?
I didn't find any useful annotation about it. Besides, I would prefer to control this by an xml file since I'm using stuff like this <virtual-host>${it.myorg.mycustomer.host}</virtual-host> in order to get staging simple.
Also, I would prefer to avoid building a web app for this because:
1) I would have to sync the site's web.xml everytime I add/remove an exposed bean;
2) I'm not shure that jbossws is able to "detect" the fact I'm deploing a war for my WSes, so I guess I would get two publications: one under the ${jboss.bind.address} virtual host, and the other under the wanted one (${it.myorg.mycustomer.host}).
Regards,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977247#3977247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977247
19 years, 7 months
[JBoss Eclipse IDE (users)] - Re: JBossIDE causing Eclipse to pause and do alot of disk IO
by mazz@jboss.com
"Worker-17" prio=6 tid=0x3a205b20 nid=0x5d0 runnable [0x3b43f000..0x3b43fa68]
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.(ZipFile.java:203)
at java.util.jar.JarFile.(JarFile.java:132)
at java.util.jar.JarFile.(JarFile.java:97)
at org.jboss.ide.eclipse.as.core.module.factory.ArchiveModuleFactory.supports(ArchiveModuleFactory.java:65)
at org.jboss.ide.eclipse.as.core.module.factory.ArchiveModuleFactory.acceptAddition(ArchiveModuleFactory.java:33)
at org.jboss.ide.eclipse.as.core.module.factory.JBossModuleFactory$1.visit(JBossModuleFactory.java:88)
at org.eclipse.core.internal.resources.Resource$2.visit(Resource.java:105)
at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:57)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:81)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:85)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:126)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:67)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:103)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:87)
at org.jboss.ide.eclipse.as.core.module.factory.JBossModuleFactory.cacheModules(JBossModuleFactory.java:86)
at org.jboss.ide.eclipse.as.core.module.factory.JBossModuleFactory.contains(JBossModuleFactory.java:203)
at org.jboss.ide.eclipse.as.core.module.factory.JBossModuleFactory.resourceEvent(JBossModuleFactory.java:187)
at org.jboss.ide.eclipse.as.core.model.ModuleModel.resourceChanged(ModuleModel.java:313)
at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:280)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:274)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)
at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:256)
at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:958)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:45)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3977246#3977246
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3977246
19 years, 7 months