You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Jayson Raymond (JIRA)" <de...@myfaces.apache.org> on 2006/11/27 20:26:21 UTC

[jira] Created: (MYFACES-1502) JavaScript detection failing - causing commandLink to render improperly

JavaScript detection failing - causing commandLink to render improperly
-----------------------------------------------------------------------

                 Key: MYFACES-1502
                 URL: http://issues.apache.org/jira/browse/MYFACES-1502
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 1.1.5-SNAPSHOT
         Environment: Tomahawk 1.1.5-SNAPSHOT
Tomcat 5.5.20 
JBoss 4.0.5.GA - ALL (Clustered) Configuration
Struts Tiles
            Reporter: Jayson Raymond


JavaScript detection is failing for core components such as <h:commandLink/>.

Core commandLink calls JavascriptUtil, which  looks for a session attribute named "org.apache.myfaces.shared_impl.renderkit.html.util.JavascriptUtils.JAVASCRIPT_DETECTED" to determine if JavaScript is supported in the browser.

However, in the above configuration, JavaScript detector has placed flag in attribute named  "org.apache.myfaces.shared_tomahawk.renderkit.html.util.JavascriptUtils.JAVASCRIPT_DETECTED" 
(note 'shared_tomahawk' instead of 'shared_impl').

Rendered CommandLink would not pass on nested <f:param> to actionListener because javascript was not detected, and thus not properly rendered.
 
<h:commandLink immediate="true" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}"
               actionListener="#{control.menuTree.selectNode}" action="accountManager">	          
     <h:outputText value="#{msgs.navTree_accountManager}" styleClass="nodeFolder" />
     <f:param name="docNum" value="#{node.identifier}" />
</t:commandLink>

My workaround (after much debugging): Used Tomahawk <t:commandLink/> instead.

-- 
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