As it says in the Request doc, "Depending on implementation,
<comp_exists> may try to load the component referred to by the path,
and may throw an error if the component contains a syntax error."
This is the easiest way to support all valid types of component path.
Try putting an eval {} around the comp_exists, and treating errors as
"true".
Jon
On Jul 5, 2007, at 2:19 AM, Gareth Kirwan wrote:
> I have a problem with $m->comp_exists.
> I want to check for the existance of a component without
> encountering syntax
> errors on it.
> This used to be possible, I recall, but now $m->comp_exists throws the
> syntax errors.
>
> Was this by choice?
>
> Gareth Kirwan
> Programming & Development,
> Thermeon Europe Ltd
>
>
> ----------------------------------------------------------------------
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users