[Design of JBoss Portal] - Setting content type for the whole portal : ContentTypeInter
by free1000
I have been trying to set the content type for the returned portal page to application/xhtml+xml in order to enable firefox to display inline svg
After a few experiments I've discovered that I can't affect the overall page content type by changing the top level layout jsp.
A look at the Portal source indicated to me that the ContentTypeInterceptor class appears to always set the content type to MediaType.HTML
I'm wondering why this is, and what a good suggested way of customizing this interceptor might be. My first thought is to subclass ContentTypeInterceptor and override invoke to deliver application/xhtml+xml, then just replace this interceptor in my deployment
I'm curious about why this ContentTypeInterceptor does what it does as I can't understand why its a good idea to override the contentType directives in the users content.
The only idea I can come up with is that it helps handle content rendered from third party portlets which may not generate xhtml properly, by dropping all content to a lowest common denominator text/html and UTF-8.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960248#3960248
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960248
19 years, 8 months
[Design of JBoss jBPM] - Re: JPDL Eclipse Graphical Editor - problem building.
by koen.aers@jboss.com
An update on this...
I have reorganised the build for the GPD. There will be some more changes in the near future without doubt, but for now the situation is as follows:
- check out the entire jbpm.3 module and invoke the build target on the build.xml file of the first level build project. This will build all the jbpm artifacts, including the GPD
- check out the first level build project of the jbpm.3 module AND the org.jbpm.gd.jpdl.build project that you find in the jbpm.3/designer/jpdl module. Invoking the all target on the build.xml file of this project will produce the GPD artifacts, but only if the userguide archive (which is a zip file) of the matching jbpm version is in your local repository. This userguide archive is produced by invoking the build on the appropriate project. If you don't check out the org.jbpm.gd.jpdl.docs and org.jbpm.gd.jpdl.site projects in your workspace along with the org.jbpm.gd.jpdl.build project, they will be checked out automatically, otherwise the projects of your workspace will be used.
Some enhancements for the future: The GPD build checks out the feature project and all the plugin projects automatically (because the Eclipse PDE build does so by default). We would like these plugins and feature not to be checked out if they are in the current workspace. This is an area that is still under development.
One final note: if you need to build the GPD, remember that this involves an Eclipse PDE build with all its requirements. The most important requirements of this are the right CVS client and the right Zip/Unzip software on your system path. More info on this is found on the Eclipse website.
Regards,
Koen
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960194#3960194
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960194
19 years, 8 months
[Design of JBoss ESB] - Re: Content-based routing
by daniel.brum@jboss.com
Dave, that is all basically done in the configuration of the end-points. Right now, in the trunk of SVN, you can configure a JMS, FIle or SQL table end-points. Those end-points are configurable by way of the paramter file, a sample of which you can see in the File Test shipped with Alpha1. Those end-points, have an Action class that will be invoked. I think right now, you should start to look at the Action/Processor classes as the starting point for your tests. Please use the Trunk though, what is in the Alpha has been re-factored and changed a lot since then. Here is a sample Parameter config which shows what I am talking about that will be included as part of the new docs for the next Beta release:
| <ListenOnJMS
| parmsReloadSecs="60"
| >
| <CreditRequest
| actionClass="org.jboss.soa.esb.samples.loanbroker.actions.ProcessCreditRequest"
| maxThreads="1"
| listenQueue="queue/A"
| listenMsgSelector="sample_loanbroker_servicecode='creditRequest'"
| >
|
| <NotificationList type="OK">
| <target class="NotifyEmail"
| from="ILoveLucy(a)jbos.com"
| sendTo="bill(a)microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- completed successfully"
| />
| </NotificationList>
|
| <NotificationList type="err">
| <target class="NotifyEmail"
| from="ILoveLucy(a)jboss.com"
| sendTo="bill(a)microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- had ERRORS"
| />
| </NotificationList>
| </CreditRequest>
|
| <CreditResponse
| actionClass="org.jboss.soa.esb.samples.loanbroker.actions.ProcessCreditResponse"
| maxThreads="1"
| listenQueue="queue/A"
| listenMsgSelector="sample_loanbroker_servicecode='creditResponse'"
| >
|
| <NotificationList type="OK">
| <target class="NotifyEmail"
| from="ILoveLucy(a)jbos.com"
| sendTo="bill(a)microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- completed successfully"
| />
| </NotificationList>
|
| <NotificationList type="err">
| <target class="NotifyEmail"
| from="ILoveLucy(a)jboss.com"
| sendTo="bill(a)microsoft.com"
| subject="Message processed: -LoanBroker TrailBlazer-"
| message="Message from JBossESB: Processor -JMS Listener - LoanBroker TrailBlazer- had ERRORS"
| />
| </NotificationList>
| </CreditResponse>
| </ListenOnJMS>
|
Hope this points you in the right direction.
Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960192#3960192
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960192
19 years, 8 months