tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Wood <wo...@ucalgary.ca>
Subject Re: Tapestry 4.1.1 Hidden field truncates characters
Date Thu, 01 Mar 2007 18:00:10 GMT
Have you tried setting encode to false on the hidden field?


On 1-Mar-07, at 5:41 AM, Peter Stavrinides wrote:

> Hi all,
> In my page I use a hidden field to store a name bound to  a string  
> property, this works fine most of the time, but I have an unusual  
> situation sometimes when I submit, and the value is a sequence of  
> say three characters ('ccc'), it gets truncated. Surely someone has  
> had a similar situation, have I missed something? might this have  
> something to do with the type casting mechanism in the framework  
> for the 'Hidden' component? As soon as I change the component to a  
> TextField, magically it no longer truncates...  I do use JavaScript  
> to submit, but that shouldn't make any difference, any ideas?
> This is the basic outline:
> <script>
> function SubmitForm(){
>    ....//some processing
>    document.forms[0].pname.value = document.getElementById 
> ('CopiedPortfolio').value;
>    document.forms[0].submit();
> }
> </script>
> <form jwcid="@Form" listener="listener:formSubmit" method="post">
>    <input jwcid="pname@Hidden" value="ognl:portfolioName"/>

Julian Wood <woodj@ucalgary.ca>

Software Engineer
Teaching & Learning Centre
University of Calgary


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message