You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by octoberdan <da...@october5th.net> on 2006/07/28 16:46:04 UTC

s:inputTextAjax not working

When I click the ok button, the loading image starts spinning, but nothing
updates and it never stops spinning. Any help would be appreciate. Thank
you!

Code:

[...]
<script type="text/javascript">
    function startPulse(el){

        new Effect.Pulsate(el);
    }
</script>
	<h:form>
	<s:inputTextAjax value="#{projectWiki.name}" id="text2" showOkButton="true"
showCancelButton="true" validator="#{projectWiki.validateProjectName}">
		<f:valueChangeListener
type="org.apache.myfaces.custom.inputAjax.SampleValueChangeListener" />
	</s:inputTextAjax>
	<t:message forceSpan="true" for="text2" style="color:red;
font-weight:bold;" />
</h:form>
[...]
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5540999
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
I tried messing with it so the client id was the same, but with no luck
(problem persisted)... However, I did learn that an AJAX response is coming
back... that response is the rendered html for the entire page! Keep in
mind, the accessor/mutator methods are never called.
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5622705
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Alright! I think I'm on to somthing! I dug out FireBug and took a look at the
posts...

(same code)

Healthy in example enviroment:
affectedAjaxComponent=text2&elname=text2&elvalue=foo&text2=foo&&_=

Unhealthy  in my eviroment.
affectedAjaxComponent=_id2:text2&elname=_id2:text2&elvalue=foo&_id2:text2=foo&&_= 
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5622044
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Some one out there is bound to know what's going on... or atleast have a
suggustion. Please.. In desperation I've started writing my own AJAX
component that work similarly, this is obviously not ideal... No other AJAX
input box already on the market is as capabable or as cool as s:inputAjax.
Anyone? Please?
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5618524
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
I did an output to the console, setter method is called when the page first
loads but not one the submit button is clicked... Any ideas?
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5578567
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Logs! Here's the log when I first load the page with the component:

31 Jul 2006 11:47:49,588 - DEBUG - LifecycleImpl.restoreView(100) | entering
restoreView in org.apache.myfaces.lifecycle.LifecycleImpl
31 Jul 2006 11:47:49,619 - DEBUG - JspStateManagerImpl.restoreView(281) |
Entering restoreView
31 Jul 2006 11:47:49,619 - DEBUG -
JspStateManagerImpl.restoreTreeStructure(233) | Entering
restoreTreeStructure
31 Jul 2006 11:47:49,634 - DEBUG -
JspStateManagerImpl.restoreTreeStructure(244) | Exiting restoreTreeStructure
- No tree structure state found in client request
31 Jul 2006 11:47:49,634 - DEBUG - JspStateManagerImpl.restoreView(296) |
Exiting restoreView
31 Jul 2006 11:47:49,650 - DEBUG - JspViewHandlerImpl.createView(144) |
Created view /public/inputAjax.xhtml
31 Jul 2006 11:47:49,666 - DEBUG - LifecycleImpl.shouldRenderResponse(422) |
exiting from lifecycle.execute in restoreView because getRenderResponse is
true from one of the after listeners
31 Jul 2006 11:47:49,666 - DEBUG - LifecycleImpl.render(368) | entering
renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
Jul 31, 2006 11:47:50 AM com.sun.facelets.compiler.TagLibraryConfig
loadImplicit
INFO: Added Library from:
jar:file:/C:/tomcat5/webapps/lspm/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-ui.taglib.xml
Jul 31, 2006 11:47:50 AM com.sun.facelets.compiler.TagLibraryConfig
loadImplicit
INFO: Added Library from:
jar:file:/C:/tomcat5/webapps/lspm/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-core.taglib.xml
Jul 31, 2006 11:47:50 AM com.sun.facelets.compiler.TagLibraryConfig
loadImplicit
INFO: Added Library from:
jar:file:/C:/tomcat5/webapps/lspm/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-core.taglib.xml
Jul 31, 2006 11:47:50 AM com.sun.facelets.compiler.TagLibraryConfig
loadImplicit
INFO: Added Library from:
jar:file:/C:/tomcat5/webapps/lspm/WEB-INF/lib/jsf-facelets.jar!/META-INF/jsf-html.taglib.xml
Jul 31, 2006 11:47:50 AM com.sun.facelets.compiler.TagLibraryConfig
loadImplicit
INFO: Added Library from:
jar:file:/C:/tomcat5/webapps/lspm/WEB-INF/lib/jsf-facelets.jar!/META-INF/jstl-fn.taglib.xml
31 Jul 2006 11:47:51,166 - DEBUG - HtmlInputTextAjaxRenderer.encodeEnd(74) |
encodeEnd in HtmlInputTextAjaxRenderer
31 Jul 2006 11:47:51,197 - INFO - MyfacesConfig.getBooleanInitParameter(133)
| No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using
default value true
31 Jul 2006 11:47:51,197 - INFO - MyfacesConfig.getBooleanInitParameter(133)
| No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found,
using default value true
31 Jul 2006 11:47:51,197 - INFO - MyfacesConfig.getBooleanInitParameter(133)
| No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found,
using default value false
31 Jul 2006 11:47:51,197 - INFO - MyfacesConfig.getBooleanInitParameter(133)
| No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using
default value false
31 Jul 2006 11:47:51,197 - INFO - MyfacesConfig.getStringInitParameter(158)
| No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found,
using default value
org.apache.myfaces.renderkit.html.util.DefaultAddResource
31 Jul 2006 11:47:51,197 - INFO - MyfacesConfig.getBooleanInitParameter(133)
| No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER'
found, using default value true
31 Jul 2006 11:47:51,228 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,244 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,244 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,244 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,244 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,244 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,244 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,259 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,259 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,259 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,259 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,259 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,275 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilter(316) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,291 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readFilterMapping(352) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,306 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(243) | Ignored
element 'display-name' as child of 'servlet'.
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServlet(248) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServletMapping(280) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServletMapping(280) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServletMapping(280) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServletMapping(280) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServletMapping(280) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readServletMapping(280) |
Ignored node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,322 - DEBUG - WebXmlParser.readWebApp(214) | Ignored
node '#text' of type 3
31 Jul 2006 11:47:51,338 - DEBUG -
WebXml.getFacesExtensionsFilterMappings(178) | adding mapping for filter +
extensionsFilter urlpattern = *.jsf
31 Jul 2006 11:47:51,338 - DEBUG -
WebXml.getFacesExtensionsFilterMappings(178) | adding mapping for filter +
extensionsFilter urlpattern = /faces/*
31 Jul 2006 11:47:51,338 - DEBUG -
WebXml.getFacesExtensionsFilterMappings(178) | adding mapping for filter +
extensionsFilter urlpattern = *.jsf
31 Jul 2006 11:47:51,338 - DEBUG -
WebXml.getFacesExtensionsFilterMappings(178) | adding mapping for filter +
extensionsFilter urlpattern = /faces/*
31 Jul 2006 11:47:51,400 - DEBUG - WebXml.getFacesServletMappings(134) |
adding mapping for servlet + Faces Servlet urlpattern = *.jsf
31 Jul 2006 11:47:51,400 - DEBUG - WebXml.getFacesServletMappings(134) |
adding mapping for servlet + ResourceServlet urlpattern = /LSResourceServlet
31 Jul 2006 11:47:51,478 - WARN - HtmlResponseWriterImpl.endElement(225) |
HTML nesting warning on closing button: element input rendered by component
: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/public/inputAjax.xhtml][Class:
org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax,Id: text2]} not
explicitly closed
31 Jul 2006 11:47:51,509 - DEBUG - DebugUtils.traceView(142) | View after
rendering
========================================
<UIViewRoot id="NULL" family="javax.faces.ViewRoot" locale="us"
renderKitId="HTML_BASIC" rendered="true" rendererType="NULL"
rendersChildren="false" transient="false" viewId="/public/inputAjax.xhtml">
  <org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax id="text2"
com.sun.facelets.MARK_ID="c9cb188"
com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@1013985"
accesskey="NULL" alt="NULL" autocomplete="NULL" cancelText="NULL"
converter="NULL" dir="NULL" disabled="false" disabledOnClientSide="false"
displayValueOnly="false" displayValueOnlyStyle="NULL"
displayValueOnlyStyleClass="NULL" enabledOnUserRole="NULL" errorStyle="NULL"
errorStyleClass="NULL" family="javax.faces.Input" immediate="false"
lang="NULL" localValue="NULL" localValueSet="false" maxlength="-2147483648"
okText="NULL" onFailure="NULL" onStart="NULL" onSuccess="NULL" onblur="NULL"
onchange="NULL" onclick="NULL" ondblclick="NULL" onfocus="NULL"
onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL"
onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL"
onselect="NULL" readonly="false" rendered="true"
rendererType="org.apache.myfaces.InputTextAjax" rendersChildren="false"
required="false" setDisplayValueOnly="false" showCancelButton="true"
showOkButton="true" size="-2147483648" style="NULL"
styleClass="myFacesInputSuggestAjax" submittedValue="NULL" tabindex="NULL"
title="NULL" transient="false" valid="true"
validator="#{inputAjaxBean.validateText2}" value="#{inputAjaxBean.text2}"
valueChangeListener="NULL" visibleOnUserRole="NULL">
    <org.apache.myfaces.custom.inputAjax.SampleValueChangeListener/>
  </org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax>
  <html.ext.HtmlMessage id="_id2" com.sun.facelets.MARK_ID="c9cb192"
com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@1013985"
detailFormat="NULL" enabledOnUserRole="NULL" errorClass="NULL"
errorStyle="NULL" family="javax.faces.Message" fatalClass="NULL"
fatalStyle="NULL" for="text2" forceSpan="true" infoClass="NULL"
infoStyle="NULL" rendered="true" rendererType="org.apache.myfaces.Message"
rendersChildren="false" replaceIdWithLabel="false" showDetail="true"
showSummary="false" style="color:red; font-weight:bold;" styleClass="NULL"
summaryFormat="NULL" title="NULL" tooltip="false" transient="false"
visibleOnUserRole="NULL" warnClass="NULL" warnStyle="NULL"/>
</UIViewRoot>
========================================

31 Jul 2006 11:47:51,509 - DEBUG - LifecycleImpl.render(400) | exiting
renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
31 Jul 2006 11:47:51,525 - DEBUG - ReducedHTMLParser.parse(430) | DOCTYPE
found at line 1
31 Jul 2006 11:47:51,588 - ERROR - MyFacesResourceLoader.getLastModified(78)
| Unparsable lastModified : @lastModified@
31 Jul 2006 11:48:09,291 - DEBUG - ManagerBase.processExpires(676) | Start
expire sessions StandardManager at 1154360889291 sessioncount 1
31 Jul 2006 11:48:09,291 - DEBUG - ManagerBase.processExpires(685) | End
expire sessions StandardManager processingTime 0 expired sessions: 0


Here's the addition to the log after I click the button:
31 Jul 2006 11:49:33,369 - DEBUG -
ServletExternalContextImpl.lookupCharacterEncoding(167) | Incoming request
has Content-Type header without character encoding:
application/x-www-form-urlencoded
31 Jul 2006 11:49:33,369 - DEBUG - LifecycleImpl.restoreView(100) | entering
restoreView in org.apache.myfaces.lifecycle.LifecycleImpl
31 Jul 2006 11:49:33,369 - DEBUG - JspStateManagerImpl.restoreView(281) |
Entering restoreView
31 Jul 2006 11:49:33,369 - DEBUG -
JspStateManagerImpl.restoreTreeStructure(233) | Entering
restoreTreeStructure
31 Jul 2006 11:49:33,369 - DEBUG -
JspStateManagerImpl.restoreTreeStructure(244) | Exiting restoreTreeStructure
- No tree structure state found in client request
31 Jul 2006 11:49:33,369 - DEBUG - JspStateManagerImpl.restoreView(296) |
Exiting restoreView
31 Jul 2006 11:49:33,384 - DEBUG - JspViewHandlerImpl.createView(144) |
Created view /public/inputAjax.xhtml
31 Jul 2006 11:49:33,384 - DEBUG - LifecycleImpl.shouldRenderResponse(422) |
exiting from lifecycle.execute in restoreView because getRenderResponse is
true from one of the after listeners
31 Jul 2006 11:49:33,384 - DEBUG - LifecycleImpl.render(368) | entering
renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
31 Jul 2006 11:49:33,384 - DEBUG - HtmlInputTextAjaxRenderer.encodeEnd(74) |
encodeEnd in HtmlInputTextAjaxRenderer
31 Jul 2006 11:49:33,384 - WARN - HtmlResponseWriterImpl.endElement(225) |
HTML nesting warning on closing button: element input rendered by component
: {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/public/inputAjax.xhtml][Class:
org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax,Id: text2]} not
explicitly closed
31 Jul 2006 11:49:33,400 - DEBUG - DebugUtils.traceView(142) | View after
rendering
========================================
<UIViewRoot id="NULL" family="javax.faces.ViewRoot" locale="us"
renderKitId="HTML_BASIC" rendered="true" rendererType="NULL"
rendersChildren="false" transient="false" viewId="/public/inputAjax.xhtml">
  <org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax id="text2"
com.sun.facelets.MARK_ID="c9cb188"
com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@cbc2d3"
accesskey="NULL" alt="NULL" autocomplete="NULL" cancelText="NULL"
converter="NULL" dir="NULL" disabled="false" disabledOnClientSide="false"
displayValueOnly="false" displayValueOnlyStyle="NULL"
displayValueOnlyStyleClass="NULL" enabledOnUserRole="NULL" errorStyle="NULL"
errorStyleClass="NULL" family="javax.faces.Input" immediate="false"
lang="NULL" localValue="NULL" localValueSet="false" maxlength="-2147483648"
okText="NULL" onFailure="NULL" onStart="NULL" onSuccess="NULL" onblur="NULL"
onchange="NULL" onclick="NULL" ondblclick="NULL" onfocus="NULL"
onkeydown="NULL" onkeypress="NULL" onkeyup="NULL" onmousedown="NULL"
onmousemove="NULL" onmouseout="NULL" onmouseover="NULL" onmouseup="NULL"
onselect="NULL" readonly="false" rendered="true"
rendererType="org.apache.myfaces.InputTextAjax" rendersChildren="false"
required="false" setDisplayValueOnly="false" showCancelButton="true"
showOkButton="true" size="-2147483648" style="NULL"
styleClass="myFacesInputSuggestAjax" submittedValue="NULL" tabindex="NULL"
title="NULL" transient="false" valid="true"
validator="#{inputAjaxBean.validateText2}" value="#{inputAjaxBean.text2}"
valueChangeListener="NULL" visibleOnUserRole="NULL">
    <org.apache.myfaces.custom.inputAjax.SampleValueChangeListener/>
  </org.apache.myfaces.custom.inputAjax.HtmlInputTextAjax>
  <html.ext.HtmlMessage id="_id2" com.sun.facelets.MARK_ID="c9cb192"
com.sun.facelets.APPLIED="com.sun.facelets.impl.DefaultFacelet$ApplyToken@cbc2d3"
detailFormat="NULL" enabledOnUserRole="NULL" errorClass="NULL"
errorStyle="NULL" family="javax.faces.Message" fatalClass="NULL"
fatalStyle="NULL" for="text2" forceSpan="true" infoClass="NULL"
infoStyle="NULL" rendered="true" rendererType="org.apache.myfaces.Message"
rendersChildren="false" replaceIdWithLabel="false" showDetail="true"
showSummary="false" style="color:red; font-weight:bold;" styleClass="NULL"
summaryFormat="NULL" title="NULL" tooltip="false" transient="false"
visibleOnUserRole="NULL" warnClass="NULL" warnStyle="NULL"/>
</UIViewRoot>
========================================

31 Jul 2006 11:49:33,400 - DEBUG - LifecycleImpl.render(400) | exiting
renderResponse in org.apache.myfaces.lifecycle.LifecycleImpl
31 Jul 2006 11:49:33,400 - DEBUG - ReducedHTMLParser.parse(430) | DOCTYPE
found at line 1

The little spinny loading things starts, but nothing happens! It just keeps
spinning
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5578448
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
What other information would be valuable to give?
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5578379
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
I checked the rendered html on both the working version (in a seperate war)
and the unworking version in my project and they render the EXACT SAME HTML!
I double checked all the js includes and they all work just fine... Gah!!!
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5577820
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
I tried bringing in the managed bean and jsf page from the example, but it
still doesn't work! Somthing must be wrong in my configurations... can
anyone spot it? Do the ajax components just not work with Facelets?
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5577695
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Unfortunately this is not an option. I'm extending the inputTextAjax
component for it is exactly what I need
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5576698
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by Guy Coleman <gu...@prolog.uk.com>.
I'd use Ajax4jsf:

https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/

On 31/07/2006 14:58, octoberdan wrote:
> I'm getting desprate and am about to just write my own ajax inputbox
> thingy... Someone out there must be able to help me :-(
> 
> 
> Please! I'm on my knees.

Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
I'm getting desprate and am about to just write my own ajax inputbox
thingy... Someone out there must be able to help me :-(


Please! I'm on my knees.
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5576224
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Backing Bean:


package com.loomis.project;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

import com.loomis.dao.PersonDAO;
import com.loomis.lookup.autoobject.Category;
import com.loomis.lookup.autoobject.Phase;
import com.loomis.lookup.autoobject.Status;
import com.loomis.person.PersonSummary;


@SuppressWarnings("serial")
public class ProjectSummary implements Serializable{
	private Integer id;
	private String name;
	private String description;
	
	private Timestamp dueDate;
	private Timestamp creationDate;
	private Integer creator;
	private Integer lastModifier;
	private Timestamp lastModified;
	protected PersonSummary leader;
	
	private Category category;
	private Phase phase;
	private Status status;
	
	public Integer getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	

	public Phase getPhase() {
		if (null == phase) phase = new Phase();
		
		return phase;
	}

	public void setPhase(Phase phase) {
		this.phase = phase;
	}

	public Status getStatus() {
		if (null == status) status = new Status();
		
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}
	
	public void setCategory(Category category) {
		this.category = category;
	}
	
	public Category getCategory() {
		if (null == category) category = new Category();
		
		return category;
	}
	
	public Date getDueDate() {
		return dueDate;
	}

	public void setDueDate(Date dueDate) {
		this.dueDate = new Timestamp(dueDate.getTime());
	}

	public Timestamp getCreationDate() {
		return creationDate;
	}

	public void setCreationDate(Date creationDate) {
		this.creationDate = new Timestamp(creationDate.getTime());
	}

	public Timestamp getLastModified() {
		return lastModified;
	}

	public void setLastModified(Date lastModified) {
		this.lastModified = new Timestamp(lastModified.getTime());
	}

	public Integer getLastModifier() {
		return lastModifier;
	}


	public void setLastModifier(Integer lastModifier) {
		this.lastModifier = lastModifier;
	}

	public Integer getCreator() {
		return creator;
	}

	public void setCreator(Integer creator) {
		this.creator = creator;
	}

	public PersonSummary getLeader() {
		return leader;
	}

	public void setLeader(Integer leader) {
		if (null != leader) this.leader = (new
PersonDAO()).getPersonSummary(leader);
	}
}

-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5576166
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
I made some updates to web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

	<context-param>
		<param-name>facelets.LIBRARIES</param-name>
		<param-value>/WEB-INF/sandbox.taglib.xml; /WEB-INF/tomahawk.taglib.xml;
/WEB-INF/loomis.taglib.xml</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		<param-value>.xhtml</param-value>
	</context-param>

	<context-param>
		<param-name>facelets.REFRESH_PERIOD</param-name>
		<param-value>2</param-value>
	</context-param>

	<context-param>
		<param-name>facelets.DEVELOPMENT</param-name>
		<param-value>true</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>client</param-value>
	</context-param>

	<filter>
		<filter-name>securityFilter</filter-name>
		<filter-class>com.loomis.security.filter.SecurityFilter</filter-class>

		<init-param>
			<param-name>prefix</param-name>
			<param-value>/lspm</param-value>
		</init-param>

		<init-param>
			<param-name>loginPage</param-name>
			<param-value>/login.jsf</param-value>
		</init-param>

		<init-param>
			<param-name>public</param-name>
			<param-value>/public</param-value>
		</init-param>

	</filter>

	<filter>
		<filter-name>requestParameterProviderFilter</filter-name>
	
<filter-class>org.apache.myfaces.custom.requestParameterProvider.RequestParameterServletFilter</filter-class>
	</filter>
	<filter>
		<filter-name>extensionsFilter</filter-name>
	
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
		<init-param>
			<description>Set the size limit for uploaded files. Format: 10 - 10 bytes
10k - 10 KB 10m - 10 MB 1g - 1 GB</description>
			<param-name>uploadMaxFileSize</param-name>
			<param-value>100m</param-value>
		</init-param>
		<init-param>
			<description>
				Set the threshold size - files below this limit are stored in memory,
files above this limit are stored on disk.

				Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
			</description>
			<param-name>uploadThresholdSize</param-name>
			<param-value>100k</param-value>
		</init-param>
	</filter>
	<filter>
		<filter-name>conversationFilter</filter-name>
	
<filter-class>org.apache.myfaces.custom.conversation.ConversationServletFilter</filter-class>
	</filter>
	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>requestParameterProviderFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>/faces/*</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>conversationFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>


	<filter-mapping>
		<filter-name>securityFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>

	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>/faces/*</url-pattern>
	</filter-mapping>

	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<init-param>
			<param-name>javax.faces.LIFECYCLE_ID</param-name>
			<param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet>
		<description>For Retreiving Resources</description>
		<display-name>For Retreiving Resources</display-name>
		<servlet-name>ResourceServlet</servlet-name>
		<servlet-class>com.loomis.jsf.servlet.ResourceServlet</servlet-class>

		<init-param>
			<param-name>resourcePackage</param-name>
			<param-value>com.loomis.jsf.component.resources</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>ResourceServlet</servlet-name>
		<url-pattern>/LSResourceServlet</url-pattern>
	</servlet-mapping>

	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>
</web-app>

-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5576129
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Anyone know what I could be missing? I've tried the same code they are using
in the example with zero success...
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5541922
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

	<context-param>
		<param-name>facelets.LIBRARIES</param-name>
		<param-value>
			/WEB-INF/sandbox.taglib.xml;
			/WEB-INF/tomahawk.taglib.xml; 
			/WEB-INF/loomis.taglib.xml
		</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
		<param-value>.xhtml</param-value>
	</context-param>

	<context-param>
		<param-name>facelets.REFRESH_PERIOD</param-name>
		<param-value>2</param-value>
	</context-param>

	<context-param>
		<param-name>facelets.DEVELOPMENT</param-name>
		<param-value>true</param-value>
	</context-param>

	<context-param>
		<param-name>javax.faces.STATE_SAVING_METHOD</param-name>
		<param-value>client</param-value>
	</context-param>

	<filter>
		<filter-name>securityFilter</filter-name>
		<filter-class>com.loomis.security.filter.SecurityFilter</filter-class>

		<init-param>
			<param-name>prefix</param-name>
			<param-value>/lspm</param-value>
		</init-param>

		<init-param>
			<param-name>loginPage</param-name>
			<param-value>/login.jsf</param-value>
		</init-param>

		<init-param>
			<param-name>public</param-name>
			<param-value>/public</param-value>
		</init-param>

	</filter>

	<filter>
		<filter-name>extensionsFilter</filter-name>
	
<filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
		<init-param>
			<description>Set the size limit for uploaded files. Format: 10 - 10 bytes
10k - 10 KB 10m - 10 MB 1g - 1 GB</description>
			<param-name>uploadMaxFileSize</param-name>
			<param-value>100m</param-value>
		</init-param>
		<init-param>
			<description>
				Set the threshold size - files below this limit are stored in memory,
files above this limit are stored on disk.

				Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
			</description>
			<param-name>uploadThresholdSize</param-name>
			<param-value>100k</param-value>
		</init-param>
	</filter>

	<filter-mapping>
		<filter-name>securityFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>*.jsf</url-pattern>
	</filter-mapping>
	<filter-mapping>
		<filter-name>extensionsFilter</filter-name>
		<url-pattern>/faces/*</url-pattern>
	</filter-mapping>

	<servlet>
		<servlet-name>Faces Servlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<init-param>
			<param-name>javax.faces.LIFECYCLE_ID</param-name>
			<param-value>com.sun.faces.lifecycle.PARTIAL</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet>
		<description>For Retreiving Resources</description>
		<display-name>For Retreiving Resources</display-name>
		<servlet-name>ResourceServlet</servlet-name>
		<servlet-class>com.loomis.jsf.servlet.ResourceServlet</servlet-class>

		<init-param>
			<param-name>resourcePackage</param-name>
			<param-value>com.loomis.jsf.component.resources</param-value>
		</init-param>
		<load-on-startup>1</load-on-startup>
	</servlet>

	<servlet-mapping>
		<servlet-name>Faces Servlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>

	<servlet-mapping>
		<servlet-name>ResourceServlet</servlet-name>
		<url-pattern>/LSResourceServlet</url-pattern>
	</servlet-mapping>

	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
		<welcome-file>index.html</welcome-file>
	</welcome-file-list>
</web-app>

-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5541579
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Is there somthing special I need to have in my web.xml or faces-config file
in order to make the ajax components work? Oh, and FYI, I'm using facelets.
-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5541446
Sent from the MyFaces - Users forum at Nabble.com.


Re: s:inputTextAjax not working

Posted by octoberdan <da...@october5th.net>.
Alright! I think I'm on to somthing! I dug out FireBug and took a look at the
posts...

(same code)

Healthy in example enviroment:
affectedAjaxComponent=text2&elname=text2&elvalue=foo&text2=foo&&_=

Unhealthy  in my eviroment.
affectedAjaxComponent=_id2:text2&elname=_id2:text2&elvalue=foo&_id2:text2=foo&&_=

-- 
View this message in context: http://www.nabble.com/s%3AinputTextAjax-not-working-tf2015832.html#a5622038
Sent from the MyFaces - Users forum at Nabble.com.