Hi,

   Actually Dmitry is right that javascript variables are invalid. They
cannot contain '-' character and error that is shown when they do is exactly
"SyntaxError: missing ; before
statement". I've happend to have similiar issue. This is because tapestry
adds '-' + random number to generated client ids during ajax request. You
propably could still use RoundCornerContainer component you just have to
change your code to remove '-' from client id's for example
               pageRenderSupport.addScript("
var %s = new Ck.Rounded('%s', '%s', '%s',
'%s', '%s');",

 getClientId().replace("-",""), getClientId(), bgcolor, fgcolor, size,
renderPart);

Above should fix the problem.

Kind Regards,
Dariusz

On Sat, Mar 6, 2010 at 7:38 AM, Henry Chen <hc...@peacocknine.com> wrote:

>
> The variables are valid. The problem is both Confirm and
> RoundCornerContainer
> components use prototype to manipulate the html. I ended up replacing those
> component with some simple js functions and problem solved.
> --
> View this message in context:
> http://n2.nabble.com/Render-large-page-tp4677583p4685449.html
> Sent from the Tapestry Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to