myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Oglesby (JIRA)" <myfaces-...@incubator.apache.org>
Subject [jira] Updated: (MYFACES-310) HtmlLinkRendererBase does not work with custom components that do not extend HtmlCommandLink
Date Thu, 07 Jul 2005 15:37:13 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-310?page=all ]

Steven Oglesby updated MYFACES-310:
-----------------------------------

    Attachment: log.txt

Stack trace

> HtmlLinkRendererBase does not work with custom components that do not extend HtmlCommandLink
> --------------------------------------------------------------------------------------------
>
>          Key: MYFACES-310
>          URL: http://issues.apache.org/jira/browse/MYFACES-310
>      Project: MyFaces
>         Type: Bug
>     Versions: 1.0.9 beta
>     Reporter: Steven Oglesby
>     Priority: Blocker
>  Attachments: log.txt
>
> HtmlLinkRendererBase does not work with custom components that do not extend HtmlCommandLink
since it casts to this class at line 323 in method renderJavaScriptAnchorStart.
> i.e.
>  String target = ((HtmlCommandLink)component).getTarget();
> Other similar casting operations are done as follows:
>  String target = null;
>  if (component instanceof HtmlCommandLink) {
>    target = ((HtmlCommandLink)component).getTarget();}
>  else {
>    target = (String)component.getAttributes().get(HTML.TARGET_ATTR);}
> Which looks as if it would solve this problem.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message