struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gvanma...@comcast.net
Subject Re: [shale] Rolodex example
Date Thu, 07 Jul 2005 14:07:44 GMT
Hi Wendy,

> There's a small problem with the Banister's Custom Wrough[t] Iron entry in 
> the Rolodex example.  Clicking on that entry doesn't do anything, which I 
> think has to do with the apostrophe in the name making the single quotes 
> unbalanced:
> 
> onclick="document.forms['_id0']['_id0:_idcl'].value='_id0:contacts:_id72:1:_id74
> ';document.forms['_id0']['selectedName'].value='Banister's 
> Custom Wrough Iron'; document.forms['_id0'].submit(); return false;"
> 

I created a bugzilla ticket yesterday with this patch included: 
http://issues.apache.org/bugzilla/show_bug.cgi?id=35639

As you stated the problem was that the commandLink parameter value contained an apostrophe.
The solution I proposed was to populate the parameter value using a encoded name.  I found
that I also had to decode the name parameter after pulling it from the request in the view
controller callback.  

This bugzilla ticket also features using tapestry like views.  The "rolodex" usecase example
now shows the three forms of composition in Clay:
1)	Runtime - builds the tabs from model data
2)	XML - contacts list, foreign address panel and command buttons
3)	HTML -  local address panel 

Thanks for your feedback!

Gary

> -- 
> Wendy Smoak 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message