Did you try:
Value="ognl:new java.lang.String[] {'foo','bar'}"?
--- Pat
> -----Original Message-----
> From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
> Sent: Thursday, October 20, 2005 10:22 AM
> To: Tapestry users
> Subject: No type converter for type java.lang.String[]
>
> A few months ago I've post this question for 3.0 version. Now on 4.0 I'm
> having same kind of problem :(
> I need to pass an array of Strings to a component as a parameter
> So I have:
>
> <page-specification class="org.apache.tapestry.html.BasePage">
> <component id="secured" type="tupiniquim:AcegiComponentWrapper">
> <binding name="roles" value="ognl:{'ROLE_ADMIN','ROLE_USER'}"></binding>
> </component>
> </page-specification>
>
>
> The AcegiComponentWrapper has this abstract property:
> public abstract String[] getRoles();
>
> That's generating an Binding Exception:
> Error converting value for parameter roles: No type converter for type
> java.lang.String[] is available.
>
> Could someone help me?
>
> Regards
> --
> Vinicius Caldeira Carvalho
> Arquiteto de Sistemas
> [EMAIL PROTECTED]
> www.synos.com.br <http://www.synos.com.br>
>
> "Everything should be made as simple as possible, but not simpler."
> Albert Einstein
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]