[Design of JBoss Portal] - Re: Problem using javascript files in Portal
by berniemiller
For some reason the coplete message did not appear in my original posting.
I am trying to create a portlet that contains alot of javascript files. In my index.js page I use the script tag with the src attribute set to the js path and filename and it does not work. JBoss seems to be converting the js files to HTML and replacing the content. If I put the js directly in the index.jsp page then it works fine. However, I have obout 50 js files so i don't want to do this. I have used the script tag in a regular jboss web app and it worked. it just seems to have a problem in a portlet.
<script type="text/javascript" src="../js/test.js"></script>
I looked at using portal themes but this seems too cumbersome for alot of js files. Plus the js contains business logic and not just presentation logic.
Thanks in advance!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4010059#4010059
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4010059
18 years, 11 months
[Design the new POJO MicroContainer] - Du(Three)plicated proxy creation code
by alesj
We have totally the same proxy creation code in three places:
- WrapperAdvice (managed)
- AbstractDeploymentContext (deployers)
- ProxyUtils (aop-int)
| <T> T createProxy(T target, Class<T> interfaceClass)
| {
| if (target == null)
| return null;
|
| GeneratedAOPProxyFactory proxyFactory = new GeneratedAOPProxyFactory();
| AOPProxyFactoryParameters params = new AOPProxyFactoryParameters();
| params.setInterfaces(new Class[] { interfaceClass });
| params.setObjectAsSuperClass(true);
| params.setTarget(target);
| Object proxy = proxyFactory.createAdvisedProxy(params);
| if( log.isTraceEnabled() )
| log.trace("Created proxy: "+proxy.getClass()+"@"+System.identityHashCode(proxy)+" target: "+target.getClass());
| return interfaceClass.cast(proxy);
| }
Kabir, can we push this somehow in AOP (-jdk5)?
Or should we do a mc-common module / project?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4009975#4009975
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4009975
18 years, 11 months