You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Sy...@swisscom.com on 2003/01/30 09:52:54 UTC

RE: XMLForm problem: PLEASE HELP (att. XMLForm architects and specialists)

Hi Ivelin,

Could you tell me what is the best solution to debug this Java classes at running time?

Thanks for your help
Sylvain

-----Message d'origine-----
De: Ivelin Ivanov [mailto:ivelin@apache.org]
Date: jeudi, 30. janvier 2003 04:53
À: cocoon-users@xml.apache.org
Objet: Re: XMLForm problem: PLEASE HELP (att. XMLForm architects and
specialists)



Sylvain,

did you try to debug the AbstractXMLFormAction and the XMLFormTransformer.
This is probably your best bet for finding the problem.

-=Ivelin=-
----- Original Message -----
From: <Sy...@swisscom.com>
To: <co...@xml.apache.org>; <co...@xml.apache.org>
Sent: Wednesday, January 29, 2003 10:02 AM
Subject: XMLForm problem: PLEASE HELP (att. XMLForm architects and
specialists)


Hello,

Is there someone in the list that could help me to find a XMLForm problem
that I have for few weeks!
I have read all the XMLForm doc and source code but I really don't
understand what is this problem.
I don't have enough experience to find the solution.
My project is totally based on Cocoon and XMLForm and I can't move forward
for days in it.

The problem happens when I try to display a Node or a List with a <repeat>
tag.
The first time I load the view, the page is empty (but the List or Node
contains data).
If now I refresh my browser, the page is full and all is OK!


Here is part of the xmlform.log (cleaned):

DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setup
resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309,
objectModel={httpresponse=org.apache.coyote.tomcat4.CoyoteResponseFacade@5a2
dc4, response=org.apache.cocoon.environment.http.HttpResponse@72c47b,
context=org.apache.cocoon.environment.http.HttpContext@d4f27,
source-resolver=org.apache.cocoon.environment.http.HttpEnvironment@2f4309,
request=org.apache.cocoon.environment.http.HttpRequest@4187c8,
httprequest=org.apache.coyote.tomcat4.CoyoteRequestFacade@395f72,
httpservletcontext=org.apache.catalina.core.ApplicationContextFacade@22c9df}
, src=null,
parameters=org.apache.avalon.framework.parameters.Parameters@73552f
DEBUG   Thread-5/AbstractSAXTransformer: END setup
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN setupTransforming
DEBUG   Thread-5/AbstractSAXTransformer: END setupTransforming
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=form, raw=xf:form,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN startRecording
DEBUG   Thread-5/AbstractSAXTransformer: END startRecording
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption,
attr=org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy@3104d7)
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=caption, raw=xf:caption)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=output, raw=xf:output)
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=repeat, raw=xf:repeat)
DEBUG   Thread-5/AbstractSAXTransformer: BEGIN endRecording
DEBUG   Thread-5/AbstractSAXTransformer: END endRecording fragment=<?xml
version="1.0" encoding="ISO-8859-1"?>
<xf:output xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002" ref="salut">
        <xf:caption>Workstation: </xf:caption>
      </xf:output>

DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group,
attr=org.xml.sax.helpers.AttributesImpl@30d33c)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group)
ERROR   Thread-5/XMLFormTransformer: unknown element [group]
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN startTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group,
attr=org.xml.sax.helpers.AttributesImpl@7c468e)
ERROR   Thread-5/XMLFormTransformer: pass through element [group]
DEBUG   Thread-5/XMLFormTransformer: END startTransformingElement
DEBUG   Thread-5/XMLFormTransformer: BEGIN endTransformingElement
uri=http://xml.apache.org/cocoon/xmlform/2002, name=group, raw=xf:group)
ERROR   Thread-5/XMLFormTransformer: unknown element [group]
DEBUG   Thread-5/XMLFormTransformer: END endTransformingElement
etc...



My view page is:

<?xml version="1.0" ?>

<document xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002">
  <xf:form id="search-workstation" view="searchworkstation_result"
action="searchworkstation.html">
    <xf:caption>Result</xf:caption>

    <xf:repeat nodeset="result">
      <xf:output ref=".">
      </xf:output>
    </xf:repeat>

    <xf:submit id="searchworkstation_next" class="button">
      <xf:caption>Next</xf:caption>
      <xf:hint>Go to next page</xf:hint>
    </xf:submit>

  </xf:form>
</document>



Thank you very much
Sylvain

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <co...@xml.apache.org>
For additional commands, e-mail:   <co...@xml.apache.org>