You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tony (JIRA)" <de...@myfaces.apache.org> on 2008/07/24 20:01:31 UTC

[jira] Created: (TOMAHAWK-1307) #000000 is displayed in inputHtml

#000000 is displayed in inputHtml
---------------------------------

                 Key: TOMAHAWK-1307
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1307
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Html Editor
         Environment: Windows OS
            Reporter: Tony


The <t:inputHtml> field is initially blank. First I perform a submit on a page with required data, then the error messages are displayed.
Then I click a <t:commandLink> to perform a lookup and return return to the page with the inputHtml, #000000 text is in the inputHtml field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TOMAHAWK-1307) #000000 is displayed in inputHtml

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated TOMAHAWK-1307:
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.9-SNAPSHOT
         Assignee: Leonardo Uribe
           Status: Resolved  (was: Patch Available)

Thanks to Paul Rivera for provide this patch

> #000000 is displayed in inputHtml
> ---------------------------------
>
>                 Key: TOMAHAWK-1307
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1307
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Editor
>         Environment: Windows OS
>            Reporter: Tony
>            Assignee: Leonardo Uribe
>             Fix For: 1.1.9-SNAPSHOT
>
>         Attachments: tomahawk1307.patch
>
>
> The <t:inputHtml> field is initially blank. First I perform a submit on a page with required data, then the error messages are displayed.
> Then I click a <t:commandLink> to perform a lookup and return return to the page with the inputHtml, #000000 text is in the inputHtml field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-1307) #000000 is displayed in inputHtml

Posted by "Paul Rivera (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631754#action_12631754 ] 

Paul Rivera commented on TOMAHAWK-1307:
---------------------------------------

After tracing through piles of kupu javascript code, I finally found the root cause and a fix.

The content #000000 that you are getting is actually the font color of your input.

In kupucontentfilters.js, it confuses the attribute 'text' with 'textContent'.  The attribute 'text' refers to the font-color of your text while 'textContent' is your actual text input.

I can probably submit this fix to the kupu developers as well.

This patch has been tested with both firefox and internet explorer and works well with both.

> #000000 is displayed in inputHtml
> ---------------------------------
>
>                 Key: TOMAHAWK-1307
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1307
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Editor
>         Environment: Windows OS
>            Reporter: Tony
>         Attachments: tomahawk1307.patch
>
>
> The <t:inputHtml> field is initially blank. First I perform a submit on a page with required data, then the error messages are displayed.
> Then I click a <t:commandLink> to perform a lookup and return return to the page with the inputHtml, #000000 text is in the inputHtml field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (TOMAHAWK-1307) #000000 is displayed in inputHtml

Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/TOMAHAWK-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mike Kienenberger updated TOMAHAWK-1307:
----------------------------------------

    Status: Patch Available  (was: Open)

> #000000 is displayed in inputHtml
> ---------------------------------
>
>                 Key: TOMAHAWK-1307
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1307
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Editor
>         Environment: Windows OS
>            Reporter: Tony
>         Attachments: tomahawk1307.patch
>
>
> The <t:inputHtml> field is initially blank. First I perform a submit on a page with required data, then the error messages are displayed.
> Then I click a <t:commandLink> to perform a lookup and return return to the page with the inputHtml, #000000 text is in the inputHtml field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-1307) #000000 is displayed in inputHtml

Posted by "Paul Rivera (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12631457#action_12631457 ] 

Paul Rivera commented on TOMAHAWK-1307:
---------------------------------------

I was able to replicate your problem and do some initial investigation.  I think the problem is in the kupueditor.js.
Checking the javascript function _serializeOutputToString(), the content generated is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><title></title></head><body>#000000</body></html>

the content "<body>#000000</body>" is generated by:
Sarissa.serialize(transform.getElementsByTagName("body")[0])

This then gets decoded by the InputHtmlRenderer and saved in your backing bean.

I'll look more into this

> #000000 is displayed in inputHtml
> ---------------------------------
>
>                 Key: TOMAHAWK-1307
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1307
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Editor
>         Environment: Windows OS
>            Reporter: Tony
>
> The <t:inputHtml> field is initially blank. First I perform a submit on a page with required data, then the error messages are displayed.
> Then I click a <t:commandLink> to perform a lookup and return return to the page with the inputHtml, #000000 text is in the inputHtml field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (TOMAHAWK-1307) #000000 is displayed in inputHtml

Posted by "Paul Rivera (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-1307?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12635987#action_12635987 ] 

Paul Rivera commented on TOMAHAWK-1307:
---------------------------------------

kupu's issue tracker (http://codespeak.net/issues/kupu/) has been closed due to spamming.

I've already submitted the patch to their dev mailing list (kupu-dev@codespeak.net) last sept 18.  No replies so far.  Their dev mailing list seems to be inactive.

Their last release, kupu-1.3.5, was dated 02/03/06.  It will probably take longer if we wait for them to fix this.

> #000000 is displayed in inputHtml
> ---------------------------------
>
>                 Key: TOMAHAWK-1307
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1307
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Html Editor
>         Environment: Windows OS
>            Reporter: Tony
>         Attachments: tomahawk1307.patch
>
>
> The <t:inputHtml> field is initially blank. First I perform a submit on a page with required data, then the error messages are displayed.
> Then I click a <t:commandLink> to perform a lookup and return return to the page with the inputHtml, #000000 text is in the inputHtml field.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.