You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Olivier Billard <ob...@rennes.jouve.fr> on 2004/01/07 11:03:51 UTC
Re: [Cocoon forms] interaction between definition validation and
flow validator
Hi Helma,
It seems that in the 2.1.3 version, using woody2.js instead of woody.js, the flow
validator is called only if the definition validation is done. That may help, but only if
the definition validation issue works...
--
Olivier
On 06/01/2004 17:16, H.vanderLinden@MI.unimaas.nl wrote:
>>>My flow validator function begins with :
>>><code>
>>>if (!form.getWidget().isValid()) {
>>> return false;
>>>}
>>></code>
>>>
>>>But even when the form seems to be valid, isValid() returns
>>
>>false, and I can never run
>>
>>>"business validation" code after the test...
>>
>>Usually this is caused by the form template not including a
>>widget which is marked
>>with 'required="true"'. Because the widget is not in the
>>template, it is not returned
>>in the form post, and thus is set to null during
>>readFromRequest() causing the form
>>(at least the visible parts that were included in the
>>template) to look valid while
>>there is actually still an invalid widget.
>
>
>
> !@#$%^&
> I have this too! Most of my forms don't have "required=true" widget, due to
> the nature of the data. How can this be solved?
>
> Bye, Helma
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.01.2004 20:21, Pierre Attar wrote:
> Bythe way, where are the sources of the SGVSerializer ? I did not found
> them in the 2.3 distribution.
http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/batik/java/org/apache/cocoon/serialization/SVGSerializer.java
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within
pipeline at run-time
Posted by Pierre Attar <pa...@tireme.fr>.
Can you please tell us what are your thougts, as soon as you got time to
have a look ?
Bythe way, where are the sources of the SGVSerializer ? I did not found
them in the 2.3 distribution.
Thanks a lot, Pierre
At 13:03 07/01/2004, you wrote:
>For the sake of getting a better grip on the cocoon internals, I'll have a
>look at it this week.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Jorg Heymans <jh...@domek.be>.
For the sake of getting a better grip on the cocoon internals, I'll have
a look at it this week.
Joerg Heinicke wrote:
> On 07.01.2004 12:52, Jorg Heymans wrote:
>
>> Sorry didn't see that last update.
>> With a bit of work this should be very much possible then from the
>> looks of it, cool. Will this get included in the 2.1.x branch anytime
>> soon? (i guess the answer is : as soon as someone writes the patch)
>
>
> I like this answer :) I think the first one needing such a feature will
> patch the serializer and afterwards it can be added to CVS. The patch is
> not that difficult, for the SVGSerializer it is already done:
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25100.
>
> Joerg
>
>> Joerg Heinicke wrote:
>>
>>>> For the moment it is not possible to pass parameters to serializers.
>>>>
>>>> See threads
>>>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
>>>> and
>>>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>>>>
>>>> to give you an idea what you might be able to do.
>>>
>>>
>>>
>>>
>>> But the mail
>>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2
>>> in the second thread states exactly the contrary, isn't it?
>>> Parameterized serializers should be possible now, you only have to
>>> write/patch it yourself.
>>>
>>> Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.01.2004 12:52, Jorg Heymans wrote:
> Sorry didn't see that last update.
> With a bit of work this should be very much possible then from the looks
> of it, cool. Will this get included in the 2.1.x branch anytime soon? (i
> guess the answer is : as soon as someone writes the patch)
I like this answer :) I think the first one needing such a feature will
patch the serializer and afterwards it can be added to CVS. The patch is
not that difficult, for the SVGSerializer it is already done:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25100.
Joerg
> Joerg Heinicke wrote:
>
>>> For the moment it is not possible to pass parameters to serializers.
>>>
>>> See threads
>>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
>>> and
>>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>>>
>>> to give you an idea what you might be able to do.
>>
>>
>>
>> But the mail
>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2
>> in the second thread states exactly the contrary, isn't it?
>> Parameterized serializers should be possible now, you only have to
>> write/patch it yourself.
>>
>> Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Jorg Heymans <jh...@domek.be>.
Sorry didn't see that last update.
With a bit of work this should be very much possible then from the looks
of it, cool. Will this get included in the 2.1.x branch anytime soon? (i
guess the answer is : as soon as someone writes the patch)
Thanks for pointing that out.
Jorg
Joerg Heinicke wrote:
> On 07.01.2004 12:29, Jorg Heymans wrote:
>
>> For the moment it is not possible to pass parameters to serializers.
>>
>> See threads
>> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
>> and
>> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>>
>> to give you an idea what you might be able to do.
>
>
> But the mail
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2 in
> the second thread states exactly the contrary, isn't it? Parameterized
> serializers should be possible now, you only have to write/patch it
> yourself.
>
> Joerg
>
>> Pierre Attar wrote:
>>
>>> Hi,
>>>
>>> I need to decide, straight in a pipeline, which doctype to apply to
>>> an xml serialization: it is impossible for me to know it before.
>>>
>>> Therefore, I would like to use XML serializer parameters BUT within
>>> the pipeline. Something like :
>>>
>>> <map:serialize type="xml">
>>> <map:parameter name="doctype-public"
>>> value="{request-attr:doctype-public}"/>
>>> <map:parameter name="doctype-system"
>>> value="{request-attr:doctype-system}"/>
>>> </map:serialize>
>>>
>>> Does someone knows how to do that ? Do I need to write my own
>>> serializer or is it possible to use something yet existing ?
>>>
>>> Thanks,
>>>
>>> Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Joerg Heinicke <jo...@gmx.de>.
On 07.01.2004 12:29, Jorg Heymans wrote:
> For the moment it is not possible to pass parameters to serializers.
>
> See threads
> http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
> and
> http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
>
> to give you an idea what you might be able to do.
But the mail
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106943896422414&w=2 in
the second thread states exactly the contrary, isn't it? Parameterized
serializers should be possible now, you only have to write/patch it
yourself.
Joerg
> Pierre Attar wrote:
>
>> Hi,
>>
>> I need to decide, straight in a pipeline, which doctype to apply to an
>> xml serialization: it is impossible for me to know it before.
>>
>> Therefore, I would like to use XML serializer parameters BUT within
>> the pipeline. Something like :
>>
>> <map:serialize type="xml">
>> <map:parameter name="doctype-public"
>> value="{request-attr:doctype-public}"/>
>> <map:parameter name="doctype-system"
>> value="{request-attr:doctype-system}"/>
>> </map:serialize>
>>
>> Does someone knows how to do that ? Do I need to write my own
>> serializer or is it possible to use something yet existing ?
>>
>> Thanks,
>>
>> Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Jorg Heymans <jh...@domek.be>.
For the moment it is not possible to pass parameters to serializers.
See threads
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107124795803829&w=2
and
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=106926645925899&w=2
to give you an idea what you might be able to do.
Pierre Attar wrote:
> Hi,
>
> I need to decide, straight in a pipeline, which doctype to apply to an
> xml serialization: it is impossible for me to know it before.
>
> Therefore, I would like to use XML serializer parameters BUT within the
> pipeline. Something like :
>
> <map:serialize type="xml">
> <map:parameter name="doctype-public"
> value="{request-attr:doctype-public}"/>
> <map:parameter name="doctype-system"
> value="{request-attr:doctype-system}"/>
> </map:serialize>
>
> Does someone knows how to do that ? Do I need to write my own serializer
> or is it possible to use something yet existing ?
>
> Thanks,
>
> Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Choosing the doctype of an xml serialization within pipeline at run-time
Posted by Nicolas Toper <nt...@jouve.fr>.
From what I understand Cocoon instances serializers at the sitemap
interpretations.
Le Mercredi 07 Janvier 2004 12:21, Pierre Attar a écrit :
> Hi,
>
> I need to decide, straight in a pipeline, which doctype to apply to an xml
> serialization: it is impossible for me to know it before.
>
> Therefore, I would like to use XML serializer parameters BUT within the
> pipeline. Something like :
>
> <map:serialize type="xml">
> <map:parameter name="doctype-public"
> value="{request-attr:doctype-public}"/>
> <map:parameter name="doctype-system"
> value="{request-attr:doctype-system}"/>
> </map:serialize>
>
> Does someone knows how to do that ? Do I need to write my own serializer or
> is it possible to use something yet existing ?
>
> Thanks,
>
> Pierre
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Choosing the doctype of an xml serialization within pipeline
at run-time
Posted by Pierre Attar <pa...@tireme.fr>.
Hi,
I need to decide, straight in a pipeline, which doctype to apply to an xml
serialization: it is impossible for me to know it before.
Therefore, I would like to use XML serializer parameters BUT within the
pipeline. Something like :
<map:serialize type="xml">
<map:parameter name="doctype-public"
value="{request-attr:doctype-public}"/>
<map:parameter name="doctype-system"
value="{request-attr:doctype-system}"/>
</map:serialize>
Does someone knows how to do that ? Do I need to write my own serializer or
is it possible to use something yet existing ?
Thanks,
Pierre
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org