You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Jim O'Callaghan <jc...@yahoo.co.uk> on 2010/09/01 14:28:39 UTC

Submitting XML via a T5 form

Can anyone advise on the best approach to submitting XML via a T5 form?  I
have a requirement to allow the user to submit XML via a form field - this
XML is then persisted in the database.  What approach to CDATA etc. can I
use to ensure the form is posted / redisplayed correctly?  Is there any
built-in support in T5 (5.2.0) for this scenario?  Thanks.

 

Regards,

Jim.


RE: Submitting XML via a T5 form

Posted by Jim O'Callaghan <jc...@yahoo.co.uk>.
Alex,

You're quite right Tap is working as required and posting / redisplaying the
xml intact - the problem was another exception buried deep in the app that
being caught in error rather than thrown - thanks.

Regards,
Jim.

-----Original Message-----
From: Alex Kotchnev [mailto:akochnev@gmail.com] 
Sent: 01 September 2010 13:35
To: Tapestry users
Subject: Re: Submitting XML via a T5 form

The "redisplay correctly" part should be handled by the default output
encoding in T5 - thus, if the XML that is submitted in a form field and it's
bound to a String property in your page or model, if you display/redisplay
the form, it should render properly.

I don't think you need anything special w/ CDATA in your case.

Regards,

Alex K

On Wed, Sep 1, 2010 at 8:28 AM, Jim O'Callaghan
<jc...@yahoo.co.uk>wrote:

> Can anyone advise on the best approach to submitting XML via a T5 form?  I
> have a requirement to allow the user to submit XML via a form field - this
> XML is then persisted in the database.  What approach to CDATA etc. can I
> use to ensure the form is posted / redisplayed correctly?  Is there any
> built-in support in T5 (5.2.0) for this scenario?  Thanks.
>
>
>
> Regards,
>
> Jim.
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Submitting XML via a T5 form

Posted by Alex Kotchnev <ak...@gmail.com>.
The "redisplay correctly" part should be handled by the default output
encoding in T5 - thus, if the XML that is submitted in a form field and it's
bound to a String property in your page or model, if you display/redisplay
the form, it should render properly.

I don't think you need anything special w/ CDATA in your case.

Regards,

Alex K

On Wed, Sep 1, 2010 at 8:28 AM, Jim O'Callaghan <jc...@yahoo.co.uk>wrote:

> Can anyone advise on the best approach to submitting XML via a T5 form?  I
> have a requirement to allow the user to submit XML via a form field - this
> XML is then persisted in the database.  What approach to CDATA etc. can I
> use to ensure the form is posted / redisplayed correctly?  Is there any
> built-in support in T5 (5.2.0) for this scenario?  Thanks.
>
>
>
> Regards,
>
> Jim.
>
>