I've found the problem. I'm using WebSphere 6 that comes with his own
JSF implementation so I had to remove jsf-api.jar and ws-jsf.jar from
the base installation to fix the issue. The funny thing is that
everything worked fine before using tiles.
Is there any way to avoid removing those jars and have the application working?
I've tried setting the classloader policy to PARENT_LAST with no success.
thanks
santiago
On 4/5/06, Santiago Vacas [EMAIL PROTECTED] wrote:
hi,
whenever I have a validation error in a form all the submitted values
are cleared. This behavior appeared when I added tiles to the
application. Without tiles it works OK (shows submitted values after
validation error).
I've made a minimum example showing this problem:
testLayout.jsp
%@ taglib prefix=tiles uri=http://struts.apache.org/tags-tiles; %
%@ taglib uri=http://java.sun.com/jsf/core; prefix=f %
%@ taglib uri=http://java.sun.com/jsf/html; prefix=h %
html
body
f:view
f:subview id=content
tiles:insert attribute=body flush=false /
/f:subview
/f:view
/body
/html
testSubmitError.jsp
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/core; prefix=f%
[EMAIL PROTECTED] uri=http://java.sun.com/jsf/html; prefix=h%
h:form id=form
h:messages layout=table styleClass=errorMessage
globalOnly=true /
h:panelGrid columns=3
h:outputText id=stockNoLabel value=Stock # /
h:inputText id=stockNo value=#{testBean.stockNo}
required=true
f:validateLength minimum=5 maximum=5 /
/h:inputText
h:message for=stockNo /
/h:panelGrid
h:commandButton id=save action=#{testBean.save}
value=Save /
/h:form
tiles definition:
tiles-definitions
definition name=/testSubmitError.tiles
path=/common/layout/testLayout.jsp
put name=body value=/testSubmitError.jsp /
/definition
/tiles-definitions
any ideas?
thanks
santiago