IceFaces + Tiles Integration
Hi,
I had tried to integrate tiles (struts libraries) with icefaces libraries in Jdeveloper 10.3.1.0 but in runtime I obtain the error : "SEVERE: Digester.getParser:". I had readed about incompatibility libraries struts a xerce in this jdeveloper version, does it's true?
Too, I had tried with Jdeveloper 11g, but in this cases the error is : "Falta la clase: org.apache.struts.util.PropertyMessageResourcesFactory", which is in struts.jar that is in the claspath.
Does anybody obtained this integration in Jdev with success?
Thanks.
Anjeludo,
Here's a link about using tiles with JSF: http://www.jsftutorials.net/tiles/jsf-tiles.html
And another one about IceFaces in JDeveloper: http://technology.amis.nl/blog/?p=1508
Hope this helps.
John
Similar Messages
-
Tiles integration with Jdeveloper11g
Hi
I am working on jdev11g and planning to integarte Tiles with it.
I follow the steps given in Help document but unable to get success.
To add a Tiles definitions file to a web application project:
For a JSF application, Add Tiles Servlet definition to web.xml.
when I add it it is unable to get TilesServlet class.
Can u giude me or give some usefull liks from where i can get Step to Step info @ Tiles integration with jde11g
Thanks for all Help.Jaydeep,
Did you create a library (Tools -> Manage Libraries) containing the Tiles jar files and add that library to your project?
John -
JSF 1.2 and Tiles integration
I have a web application using JSF 1.1 and Tiles that I am trying to upgrade to run using JSF 1.2.
It is working as far as working out that it should use the tile, but then it all seems to fall over when trying to render.
Does anyone know if it is possible to use Tiles with JSF 1.2?
StevenHi,
I took the Shales TileViewHandler and replaced the renderView method with the one below. This is a copy of the method from the Sun RI except that it passes the tile (ComponentDefinition) along to the subsequent methods.
Then when it gets down to executePageToBuildView the requestURI is obtained from the tile (tile.getPath()) rather than from the UIViewRoot (viewToExecute.getViewId()).
public void renderView(FacesContext facesContext, UIViewRoot viewToRender)
throws IOException, FacesException {
String viewId = viewToRender.getViewId();
String tileName = getTileName(viewId);
ComponentDefinition tile = getTile(tileName);
if (log.isDebugEnabled()) {
String message = null;
try {
message = bundle.getString("tiles.renderingView");
} catch (MissingResourceException e) {
message = "Rendering view {0}, looking for tile {1}";
synchronized(format) {
format.applyPattern(message);
message = format.format(new Object[] { viewId, tileName });
log.debug(message);
if (tile != null) {
if (log.isDebugEnabled()) {
String message = null;
try {
message = bundle.getString("tiles.dispatchingToTile");
} catch (MissingResourceException e) {
message = "Dispatching to tile {0}";
synchronized(format) {
format.applyPattern(message);
message = format.format(new Object[] { tileName });
log.debug(message);
dispatchToTile(facesContext, viewToRender, tile);
else {
if (log.isDebugEnabled()) {
String message = null;
try {
message = bundle.getString("tiles.dispatchingToViewHandler");
} catch (MissingResourceException e) {
message = "Dispatching {0} to the default view handler";
synchronized(format) {
format.applyPattern(message);
message = format.format(new Object[] { viewId });
log.debug(message);
defaultViewHandler.renderView(facesContext, viewToRender);
private void dispatchToTile(FacesContext facesContext, UIViewRoot viewToRender, ComponentDefinition tile) throws java.io.IOException
ExternalContext externalContext = facesContext.getExternalContext();
Object request = externalContext.getRequest();
Object context = externalContext.getContext();
TilesContext tilesContext = TilesContextFactory.getInstance(context, request);
ComponentContext tileContext = ComponentContext.getContext(tilesContext);
if (tileContext == null) {
tileContext = new ComponentContext(tile.getAttributes());
ComponentContext.setContext(tileContext, tilesContext);
else
tileContext.addMissing(tile.getAttributes());
renderTile(facesContext, viewToRender, tile);
// dispatch to the tile's layout
//externalContext.dispatch(tile.getPath());
private void renderTile(FacesContext context, UIViewRoot viewToRender, ComponentDefinition tile) throws IOException, FacesException
// suppress rendering if "rendered" property on the component is
// false
if (!viewToRender.isRendered()) {
return;
ExternalContext extContext = context.getExternalContext();
ServletRequest request = (ServletRequest) extContext.getRequest();
ServletResponse response = (ServletResponse) extContext.getResponse();
try {
if (executePageToBuildView(context, viewToRender, tile)) {
response.flushBuffer();
//ApplicationAssociate.getInstance(extContext).responseRendered();
return;
} catch (IOException e) {
throw new FacesException(e);
// set up the ResponseWriter
RenderKitFactory renderFactory = (RenderKitFactory)
FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
RenderKit renderKit =
renderFactory.getRenderKit(context, viewToRender.getRenderKitId());
ResponseWriter oldWriter = context.getResponseWriter();
initBuffSize(context);
WriteBehindStringWriter strWriter =
new WriteBehindStringWriter(context, bufSize);
ResponseWriter newWriter;
if (null != oldWriter) {
newWriter = oldWriter.cloneWithWriter(strWriter);
} else {
newWriter = renderKit.createResponseWriter(strWriter, null,
request.getCharacterEncoding());
context.setResponseWriter(newWriter);
newWriter.startDocument();
doRenderView(context, viewToRender);
newWriter.endDocument();
// replace markers in the body content and write it to response.
ResponseWriter responseWriter;
if (null != oldWriter) {
responseWriter = oldWriter.cloneWithWriter(response.getWriter());
} else {
responseWriter = newWriter.cloneWithWriter(response.getWriter());
context.setResponseWriter(responseWriter);
strWriter.flushToWriter(responseWriter);
if (null != oldWriter) {
context.setResponseWriter(oldWriter);
// write any AFTER_VIEW_CONTENT to the response
writeAfterViewContent(extContext, response);
private boolean executePageToBuildView(FacesContext context, UIViewRoot viewToExecute, ComponentDefinition tile)
throws IOException {
if (null == context) {
String message = MessageUtils.getExceptionMessageString
(MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "context");
throw new NullPointerException(message);
if (null == viewToExecute) {
String message = MessageUtils.getExceptionMessageString
(MessageUtils.NULL_PARAMETERS_ERROR_MESSAGE_ID, "viewToExecute");
throw new NullPointerException(message);
String mapping = Util.getFacesMapping(context);
String requestURI =
updateRequestURI(viewToExecute.getViewId(), mapping);
String requestURI =
updateRequestURI(tile.getPath(), mapping);
if (mapping.equals(requestURI)) {
// The request was to the FacesServlet only - no path info
// on some containers this causes a recursion in the
// RequestDispatcher and the request appears to hang.
// If this is detected, return status 404
HttpServletResponse response = (HttpServletResponse)
context.getExternalContext().getResponse();
response.sendError(HttpServletResponse.SC_NOT_FOUND);
return true;
ExternalContext extContext = context.getExternalContext();
// update the JSTL locale attribute in request scope so that JSTL
// picks up the locale from viewRoot. This attribute must be updated
// before the JSTL setBundle tag is called because that is when the
// new LocalizationContext object is created based on the locale.
// PENDING: this only works for servlet based requests
if (extContext.getRequest()
instanceof ServletRequest) {
Config.set((ServletRequest)
extContext.getRequest(),
Config.FMT_LOCALE, context.getViewRoot().getLocale());
// save the original response
Object originalResponse = extContext.getResponse();
// replace the response with our wrapper
ViewHandlerResponseWrapper wrapped =
new ViewHandlerResponseWrapper(
(HttpServletResponse)extContext.getResponse());
extContext.setResponse(wrapped);
// build the view by executing the page
extContext.dispatch(requestURI);
// replace the original response
extContext.setResponse(originalResponse);
// Follow the JSTL 1.2 spec, section 7.4,
// on handling status codes on a forward
if (wrapped.getStatus() < 200 || wrapped.getStatus() > 299) {
// flush the contents of the wrapper to the response
// this is necessary as the user may be using a custom
// error page - this content should be propagated
wrapped.flushContentToWrappedResponse();
return true;
// Put the AFTER_VIEW_CONTENT into request scope
// temporarily
if (wrapped.isBytes()) {
extContext.getRequestMap().put(AFTER_VIEW_CONTENT,
wrapped.getBytes());
} else if (wrapped.isChars()) {
extContext.getRequestMap().put(AFTER_VIEW_CONTENT,
wrapped.getChars());
return false;
}You will also find you need to copy a few other methods from the Sun RI.
There were a couple of calls to ApplicationAssociate.responseRendered() which I just commented out as well (because they are not visible). They stop people changing the StateManager or ViewHandler after responses have been rendered. Probably not a problem since I will have replaced the ViewHandler anyway.
Steven -
Need JSF & tiles integration using any implementation
Hi Freinds,
I m new to JSF and I m looking for some tutorial or war file which uses the JSF implementation with tiles.
Myfaces will be best.
Need urgently.
Thanking in advance.
regards,
NovinHi Freinds,
I m new to JSF and I m looking for some tutorial or war file which uses the JSF implementation with tiles.
Myfaces will be best.
Need urgently.
Thanking in advance.
regards,
Novin -
Hi Freinds,
I m new to JSF and I m looking for some tutorial/article/guide or war file which uses the JSF implementation with tiles.
Need urgently.
Thanking in advance.
regards,
NovinHello,
i'm trying to use MyFaces+Tiles.
I done this steps:
1) put struts.jar in WEB-INF/lib
2) add follow lines in web.xml
<context-param>
<param-name>tiles-definitions</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</context-param>
<context-param>
<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
<param-value>.tiles</param-value>
</context-param>
<!-- Faces Servlet Mapping -->
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>3) add follow in application tag of faces-config.xml
<view-handler>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</view-handler>4) make file tiles-defs.xml and put it in WEB-INF dir, some its lines are
<!DOCTYPE tiles-definitions PUBLIC
"-//Apache Software Foundation//DTD Tiles Configuration//EN"
"http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd">
<tiles-definitions>
<definition name="layout.base" path="/index.jsp" >
<put name="header" value="/header.jsp" />
<put name="body" value="" />
<put name="footer" value="/footer.jsp" />
</definition>
<definition name="/index.tiles" extends="layout.base" >
<put name="body" value="/body_index.jsp" />
</definition>
...5) index.jsp is this (partial)
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<f:view>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title><f:verbatim>index</f:verbatim></title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body >
<div id="topPanel">
<f:subview id="header">
<tiles:insert attribute="header" flush="false"/>
</f:subview>
</div>
<div id="bodyPanel">
<f:subview id="body">
<tiles:insert attribute="body" flush="false"/>
</f:subview>
</div>
<div id="footerPanel">
<f:subview id="footer">
<tiles:insert attribute="footer" flush="false"/>
</f:subview>
</div>6) header.jsp follow
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<h:form>
<ul>
<li><h:commandLink action="login">Contattaci</h:commandLink></li>
<li><h:commandLink action="login">Chi siamo</h:commandLink></li>
<li class="active"><h:commandLink action="index">Home</h:commandLink></li>
</ul>
...other pages are similar
7) i used a html page for redirect it follow
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=faces/index.tiles" />
<title>Index</title>
</head>
<body>
</body>
</html>The problem is: the page displayed (after invoke index.html) is empty, no errors on server.
Why?
How i can solve?
Regards. -
Problem with jsf-tiles integration
Hi , I'm trying to integrate jsf and tiles but I have some problems..
I add
<context-param>
<param-name>tiles-definitions</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
to web.xml and
<view-handler>
org.apache.myfaces.application.jsp.JspTilesViewHandlerImpl
</view-handler>
in jsf-config.xml
template file looks like:
<f:view>
<body>
<table width="100%" border="1">
<tr>
<td colspan="2">
<f:facet name="header">
<f:subview id="header">
<tiles:insert attribute="header" flush="false" />
</f:subview>
</f:facet>
</td>
</tr>
when I display the page I get all jsf code at beginning and the body without any jsf output bottom...
I don't understand how I mistake
Thanks for any help
LucaTry to use <h:panelGrid> instead of the <table> tag.
-
Current status of Tiles and JSF integration
Hi. I am new to JSF, and I have been researching Tiles integration with JSF. I've read a lot of posts about difficulties encountered when integrating them, and other posts seem to suggest that it is definitely do-able (some posts say using Shale Tiles is the way to go instead of using Struts tiles.)
I have not found any definitive or straight forward tutorial on integrating Tiles and JSF. Is it a matter of the JSF technology not being fully developed? Will tiles be easily integrated (as it is in Struts) in the future, without jumping through hoops?
Any opinions or advice would be greatly appreciated. I would rather not use JSF w/ JSP includes as an alternative. It seems as though Struts would be a better choice for what I have to do, unless I can integrate JSF and tiles functionality with relative ease.
Thanks.Cold-Gin wrote:
I have not found any definitive or straight forward tutorial on integrating Tiles and JSF. Is it a matter of the JSF technology not being fully developed? Will tiles be easily integrated (as it is in Struts) in the future, without jumping through hoops?I certainly wouldn't say that JSF technology is not fully developed by any stretch. It's certainly possible that there's some sort of impedance mismatch between the two, but Tiles support is hardly the measure of a framework's maturity. :P
Having said that, I really can't say much more than that with regard to Tiles. What I can suggest, though, is JSFTemplating or Facelets. Both are mature products, engineered specifically for use with JSF. Facelets is probably the more popular of the two and is slated for inclusion in JSF 2.0 in some form, while JSFTemplating, which supports the Facelets syntax, is another strong alternative (which, incidentally, is what powers the GlassFish admin GUI).
Hope that helps... -
Hi, I've to do a new web application and I think about jsf+shale+tiles.
Someone could point me to an example about shale-tiles integration, I do some pages but I get a DispatchError...
Thanks
lussolucafirst make sure you are using Tiles stand-alone (in Struts Sandbox)
add the follwoing servlet to your web.xml
<servlet>
<servlet-name>Tiles Servlet</servlet-name>
<servlet-class>org.apache.tiles.servlet.TilesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
add the following context-param to your web.xml
<context-param>
<param-name>tiles-definitions</param-name>
<param-value>/WEB-INF/tiles.xml</param-value>
</context-param>
add the following to your faces-config.xml
<view-handler>org.apache.shale.tiles.TilesViewHandler</view-handler>
add the following dependency to your pom.xml
<dependency>
<groupId>org.apache.shale</groupId>
<artifactId>shale-tiles</artifactId>
<version>1.0.3</version>
</dependency>
that should be it.
Khaled -
Problem with struts-faces.jar
hi,
My requirement is to migrate a struts application to jsf.
I am using the struts-faces.jar and doing all the configurations as mentioned.I am getting the following error while calling the application itself..
java.lang.ClassNotFoundException: org.apache.struts.faces.taglib.LifecycleListener
I am using the following version:
1)Tried both struts-faces-0.4 and 0.3(downloaded from http://archive.apache.org/dist/struts/struts-faces/)
2)Tomcat 5.0
3)jsf-(SUN)
4)struts 1.1
Please let me know if i am doing something wrong. and any ways to fix this.
Regards,
MythiliGiven the new release of the JSF ri and api .jar
files,
will this .jar provided at the apache site work?
http://archive.apache.org/dist/jakarta/struts/old/relea
e/struts-faces/
No, those JARs only work with the EA versions of JavaServer Faces.
A nightly build of the struts-faces integration library, that works with the beta release, is available at:
http://cvs.apache.org/builds/jakarta-struts/nightly/struts-faces/
and the corresponding source code is part of the Struts nightly build bundles in:
http://cvs.apache.org/builds/jakarta-struts/nightly/src/
in directory "contrib/struts-faces".
This package is not yet ready to be released, but seems to work for me in all the cases where the old library worked before. (If you're migrating, note particularly some tweaks you need to add in the struts-config.xml file for the new version, documented in README.txt.) Work continues on the Tiles integration which feedback has indicated is really important to people.
Developers who are building new components and renderers will be quite interested in the techniques used to make all the attributes of your own components value-binding-enalbled (like all the ones on the standard tags are). The source code for the <s:form> tag, plus the corresponding component and renderer, will be helpful in illustrating this.
Craig McClanahan -
JDeveloper 10g and Struts Page Flow
Hello,
First of all, I'd like to congratulate JDev Team for providing us with this amazing new tool.
I am evaluating JDeveloper 10g and its Struts/Tiles integration, since we are now selecting the IDE to be used by our company in its projects.
I noted the following: In Struts Page Flow, the component pallete does not have a component do represent a Tiles definition.
I'd like to know if there are plans to include such a component, considering that this is crucial to our projects.
If not, could you please provide us with directions to do so ?
I am looking forward to your reply.
Thanks a lot !
Juarez Junior
SCPJ2/SCWCD/SCBCD
Unisys Global OutsourcingJuarez,
You are quite correct that the visual Struts modeling does not support tiles yet. Rest assured that it's on the list of features we're working on.
What that means is that you're not going to visualise the links / submits from the tiles themselves.
However, the tiles taglib is available in the visual JSP editor so you should have no problem creating tiles content.
Likewise you can create the relevant plug-in entries for tiles by right clicking on the Struts Config node in the Structure Pane (when the struts-config or the diagram is selected) and from the new menu you'll see plug-in.
The final option is of course to edit the XML directy should you want to. -
Tiles 2 and JSF integration in tomcat 5.5.25
hi all,
"Tiles 2" is a new project extracted from Struts and is now integrated with various frameworks...
I'm wondering if anyone here succeed to run Tiles 2 with JSF on tomcat 5.5.25.
I'd downloaded a test from maven: (The test application is not working in my environment... i'll be happy to hear about any success from one of you...
http://repo1.maven.org/maven2/org/apache/tiles/tiles-test/2.0.5/
File name: tiles-test-2.0.5.war
This test application should work on java 5.0.
I will be glad to here some advice,
thanks
Edited by: buz_word on Nov 19, 2007 6:50 PMAre you sure that a new session is being created in step 6? Tomcat can be configured to persist sessions between restarts. Maybe check getCreationTime() on the session?
--Jon -
Integrating Struts, Tiles, and JavaServer Faces
I have tried some sample applications in jsf. They are working properly. Basically, our application is based on struts. We fee that that it will be difficult to convert struts based application into jsf. So we plan to integrate jsf components into struts application. I found a site http://www.ibm.com/developerworks/library/j-integrate/ where jsf-struts integration material has been given. For this integaration, struts-faces.jar is required. when i try to start the server after struts-faces-1.3.8.jar placed in Tomcat 5.5\common\lib folder, server is not started properly. I have found struts-faces-1.3.8.jar in struts-1.3.8-lib. Should I user struts-faces.jar? if it is so, Where to find struts-faces.jar Please provide a solution for this problem.
Wow, Srikanth. What a great contribution! I'm right at the begining of the design phase of a project that will hopefully go live in March and while I had already settled on a Tiles/Struts approach, I was really wanting to bring in JSF as well. I'm glad to see that someone is actively working on the integration components. I hope that the code modifications you propose make it into the Struts-Faces libraries soon.
One question. While I've been deveolping J2EE webapps for a couple of years now,
I'm still a little new to the Struts/Tiles arena. After reading your article at IBM developerWorks I wasn't able to ascertain whether or not what you proposed worked with the idea of individual controllers for each tile, which is a pattern that my project will need to adopt (I read about it in the short article here - http://www.theserverside.com/resources/article.jsp?l=Tiles101).
Can you shed some light on the subject? Will the modifications you proposed allow Tiles to continue to work in that fashion?
-Matt Welch
Hi,
Currently JSF, Struts and Tiles cannot work together
out of the box.
Craig McClanahan has come up with Struts-Faces which
lets you integrate Struts and JSF. This is ideal for
projects who want to protect their code investment in
Struts and also want to take advantage of JSF once it
is final.
Unfortunately if you are also using Tiles, this is not
possible because of some showstoppers on your way. I
started on this venture a while back and ran into the
same problems and decided to write some code - on top
of Struts-Faces and was pretty successful.
I am sharing this knowledge with the rest of you with
this article of mine on IBM developerWorks
http://www-106.ibm.com/developerworks/library/j-integra
e/
As already pointed out in this forum earlier, this
article covers the steps to integrate the three and
provides complete source code and also a working
example.
Hope you will find the article and the code useful.
Thanks,
Srikanth -
JSF/Tiles/Spring Integration Problem
Hi,
I have a JSF based web application, which uses Struts Tiles framework through the view-handler "org.apache.myfaces.tomahawk.application.jsp.JspTi lesViewHandlerImpl". Now I am trying to integrate this with the Spring framework by making use of the variable-resolver "org.springframework.web.jsf.DelegatingVariableRes olver". With this, when I try to access a page, (whose backing bean gets injected with Spring beans) I get the following exception:
javax.faces.el.EvaluationException: Expression Error: Named Object: 'userSession' not found.
at com.sun.faces.config.ManagedBeanFactory.getScopeFo rSingleExpression(ManagedBeanFactory.java:998)
at com.sun.faces.config.ManagedBeanFactory.hasValidLi fespan(ManagedBeanFactory.java:931)
at com.sun.faces.config.ManagedBeanFactory.evaluateVa lueBindingGet(ManagedBeanFactory.java:892)
at com.sun.faces.config.ManagedBeanFactory.setPropert iesIntoBean(ManagedBeanFactory.java:553)
at com.sun.faces.config.ManagedBeanFactory.newInstanc e(ManagedBeanFactory.java:234)
at com.sun.faces.application.ApplicationAssociate.cre ateAndMaybeStoreManagedBeans(ApplicationAssociate. java:253)
at com.sun.faces.el.VariableResolverImpl.resolveVaria ble(VariableResolverImpl.java:79)
at org.springframework.web.jsf.DelegatingVariableReso lver.resolveVariable(DelegatingVariableResolver.ja va:108)
at com.sun.faces.el.impl.NamedValue.evaluate(NamedVal ue.java:125)
at com.sun.faces.el.impl.ComplexValue.evaluate(Comple xValue.java:146)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.eval uate(ExpressionEvaluatorImpl.java:244)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBi ndingImpl.java:173)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBi ndingImpl.java:154)
at javax.faces.component.UIOutput.getValue(UIOutput.j ava:147)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputR enderer.getValue(HtmlBasicInputRenderer.java:82)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.getCurrentValue(HtmlBasicRenderer.java:191)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeEnd(HtmlBasicRenderer.java:169)
at javax.faces.component.UIComponentBase.encodeEnd(UI ComponentBase.java:712)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:443)
at com.sun.faces.renderkit.html_basic.GridRenderer.en codeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:693)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.GridRenderer.en codeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:693)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:440)
at com.sun.faces.renderkit.html_basic.GridRenderer.en codeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:693)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.GridRenderer.en codeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:693)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.GridRenderer.en codeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:693)
at com.sun.faces.renderkit.html_basic.HtmlBasicRender er.encodeRecursive(HtmlBasicRenderer.java:435)
at com.sun.faces.renderkit.html_basic.GridRenderer.en codeChildren(GridRenderer.java:233)
at javax.faces.component.UIComponentBase.encodeChildr en(UIComponentBase.java:693)
at javax.faces.webapp.UIComponentTag.encodeChildren(U IComponentTag.java:600)
at javax.faces.webapp.UIComponentTag.doEndTag(UICompo nentTag.java:537)
at com.sun.faces.taglib.html_basic.PanelGridTag.doEnd Tag(PanelGridTag.java:460)
at org.apache.jsp.WEB_002dINF.layout.jsf_002dlayout_j sp._jspx_meth_h_panelGrid_0(jsf_002dlayout_jsp.jav a:269)
at org.apache.jsp.WEB_002dINF.layout.jsf_002dlayout_j sp._jspx_meth_h_form_0(jsf_002dlayout_jsp.java:222 )
at org.apache.jsp.WEB_002dINF.layout.jsf_002dlayout_j sp._jspx_meth_f_view_0(jsf_002dlayout_jsp.java:188 )
at org.apache.jsp.WEB_002dINF.layout.jsf_002dlayout_j sp._jspService(jsf_002dlayout_jsp.java:99)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:332)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
I could get the application work with JSF and Spring, without Tiles.
Appreciate any help in this regard.
ThanksI'm assuming that since you are using JSF and Tiles, you are not using Spring's web framework. In that case, the integration of Spring with JSF is relatively trivial and you can neglect it for now. You might want to try the link below, if you are feeling lucky:
http://www.google.com/search?q=myfaces+tiles -
Error get when tomahawk integrated with tiles
We are getting following error when we integrated tiles with tomahawk:
java.lang.NullPointerException
at org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl.renderView(JspTilesViewHandlerImpl.java:165)
at org.ajax4jsf.framework.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
at org.ajax4jsf.framework.ajax.AjaxViewHandler.renderView(AjaxViewHandler.java:221)
at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:140)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:693)
at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:660)
at org.apache.jsp.index_jsp._jspService(org.apache.jsp.index_jsp:60)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)Says "The back up was not performed because an error occurred while copying files to the backup disk.
"The problem may be temoporary. Try again later to back up. If the problem persists, use Disk Utility to repair back up disk." -
Hi
I want integrate struts2 with icefaces.
I was able to integrate struts2 with myfaces, but i could not with icefaces.
My server application is tomcat.
Anyone can help me with the content of web.xml, faces-config.xml, struts.xml, jars, ..etc?
Someone achieving integration of both technologies?Also last time I checked, I believe IceFaces and ADF Faces/Trinidad aren't compatible on the same web page, though you can use them separately on different web pages. It would be nice if you could reconfirm this once as Frank suggests you get IceFaces working by itself.
CM.
Maybe you are looking for
-
Safari 5.1.7 hangs/crashes upon launch
Reset safari, and also disabled all add-ons. Still Safari is hanging on launch and sometimes gets over the hump and works fine, or it will just feese and crash. error report below: Date/Time: 2012-06-07 16:32:59 -0400 OS Version: 10.7.4 (Build 11E
-
I have a program not responding in paralellels 7, how to I get it to stop.
I have a program not responding in paralellels 7, how to I get it to stop. I am running OS 10.7.4.
-
One article in my folio should show a pdf-file, there is the link to this file in Web content frame. In iOS everything works fine, but Android devices don't show the file! Can native Android apps show pdf-files in Web Content???? And is it possible t
-
Sleep mode crashes MacBook running OS X 10.5.8
Click the Apple>Sleep, message box opens and says in several languages that Mac OS X must shut down. Does not seem related to programs I have open at the time. Has been happening for 2 days now, big inconvenience.
-
IMac. Had trial version of Elements Bought full version Can't register says Code invalid
Bought a full version of Elements 13. Tried to register the trial version with serial number. Says serial number invalid. I have iMac with Yosemite