[Beginners Corner] - problems loading TLDs in jar files under ear
by chadws
I am attempting to move a number of war applications to an ear file that can be deployed on any standard J2EE server. I am having difficulty however dealing with tag libraries on JBoss. In order to start the conversion I have placed one of our war files into an ear file and have moved all of the common libraries (those shared by multiple wars) into the ear file. I have modified the /META-INF/MANIFEST.MF files within the war file to contain the classpath entry that includes the required shared jar files. Also, the application.xml contains a web module that points to the included war.
It appears that the war is loaded and the external libraries are being loaded, but when a JSP includes the JSTL taglib the server throws an error that ?The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application.?
I have the ear file organized as follows:
MYAPP.EAR
| |
| |-- META-INF/
| | |-- application.xml
| | `-- MANIFEST.MF
| |
| |-- schoolDays.war
| | |-- META-INF/
| | | `-- MANIFEST.MF
| | `-- WEB-INF
| | `-- web.xml
| |
| |-- spring.jar
| |-- jstl.jar
| `-- standard.jar
Does anyone know how to resolve this issue? I know that I can copy the standard.jar and jstl.jar files to the WEB-INF/lib directory of the war, but this will require that those jars be duplicated in each war and I would like to avoid the duplication of utility/library jar files. Likewise, I would like to be able to avoid placing libraries in the server classpath. Is it possible to have JBoss (4.0.5GA) load tag libraries that are located in jar files contained in the ear itself?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045092#4045092
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045092
19 years, 1 month
[JBoss Seam] - Re: programmatically apply a template to UIDecorate?
by charles.crouch@jboss.com
Ok, so let me just try and repeat back what I understand your sugestion to be:
Instead of using binding:
<h:panelGrid binding="#{dynamicPanelGridTest}" />
I would create my own tag handler, extending MetaTagHandler it looks like, and that in the page would go:
<myTag:renderForm formDefinition="#{myFormSchema}"/>
This tag handler implementation would then get the reference to the myFormSchema which lists what form elements should be included on the form. It would then iterate over this list calling ctx.includeFacelet(parent, faceletURL) appropriately for each form element, e.g. pseudo code...
ctx.includeFacelet(parent, /include/formTextComponent.xhtml);
ctx.includeFacelet(parent, /include/formRadioComponent.xhtml);
ctx.includeFacelet(parent, /include/formTextComponent.xhtml);
So how would I tell it each time I include a facelets page to use a different set of param's? e.g. duplicating this...
| <ui:include src="/include/formTextComponent.xhtml">
| <ui:param name="label" value="#{label1}"/>
| <ui:param name="beanValue" value="#{value1}"/>
| </ui:include>
|
| <ui:include src="/include/formRadioComponent.xhtml">
| <ui:param name="label" value="#{label2}"/>
| <ui:param name="beanValue" value="#{value2}"/>
| <ui:param name="itemValues" value="#{listValues}"/>
| </ui:include>
|
| <ui:include src="/include/formTextComponent.xhtml">
| <ui:param name="label" value="#{label3}"/>
| <ui:param name="beanValue" value="#{value3}"/>
| </ui:include>
|
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045091#4045091
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045091
19 years, 1 month
[JBoss jBPM] - Re: jBPM project, Eclipse, JBPM Library
by estaub
Simon,
Here's my list of externals, FWIW. I haven't tested a lot, so don't be surprised if it's not complete. Also, it depends a lot on what container you're running in. This doesn't include console support.
| <copy todir="target/APP-INF-parent/APP-INF/lib">
| <fileset file="${lib.dom4j.local}"/>
| <fileset file="${lib.hibernate.local}"/>
| <fileset file="${lib.jaxen.local}"/>
| <fileset file="${lib.commons.logging.local}"/>
| <fileset file="${lib.commons.collections.local}"/>
| <fileset file="${lib.bsh.local}"/>
| <fileset file="${lib.hsqldb.local}"/>
| <fileset file="${lib.cglib.local}"/>
| <fileset file="${lib.antlr.local}"/>
| <fileset file="${lib.asm.local}"/>
| <fileset file="${lib.asm.attr.local}"/>
| <fileset file="${lib.log4j.local}"/>
| </copy>
|
-Ed Staub
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045088#4045088
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045088
19 years, 1 month
[JBoss Seam] - Re: Conditional navigation in pages.xml
by gmarcus
"christian.bauer(a)jboss.com" wrote : You can't, "null" outcome means re-render.
|
I was hoping that I could avoid having to put additional outcomes or view logic inside my business layer call to account.validateEmail() (which is a SFSB)
It made sense to me that I should be able to redirect to a view in case of null. Even the Seam Reference Documentation shows an example of this in Section 5.1.1.2:
anonymous wrote :
| If you want to perform navigation when a null outcome occurs, use the following form instead:
|
|
| | <page view-id="/editDocument.xhtml">
| |
| | <navigation from-action="#{documentEditor.update}">
| | <render view-id="/viewDocument.xhtml"/>
| | </navigation>
| |
| | </page>
| |
|
I thought you can define multiple rules with a naviagation element. How do I specify multiple rules in this case to go to one view on outcome of "success" and another view for anything else?
Glenn
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045086#4045086
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045086
19 years, 1 month