You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Andrew Robinson (JIRA)" <de...@myfaces.apache.org> on 2007/04/09 18:23:32 UTC

[jira] Created: (TOMAHAWK-959) HtmlDataScrollerRenderer causes "automatic id" warnings in the logs

HtmlDataScrollerRenderer causes "automatic id" warnings in the logs
-------------------------------------------------------------------

                 Key: TOMAHAWK-959
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-959
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Data Scroller
    Affects Versions: 1.1.5-SNAPSHOT
         Environment: MyFaces Core 1.1.5, Facelets 1.1.11
            Reporter: Andrew Robinson


HtmlDataScrollerRenderer creates HtmlOutputText components in the "getLink" function, but never assigns an ID to these components. As a result warnings in the logs appear:

WARNING: Component form:dataTable:_id4334 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!

Problematic code starts at line 506 in my snapshot:
        if (text != null)
        {
            HtmlOutputText uiText = (HtmlOutputText) application
                            .createComponent(HtmlOutputText.COMPONENT_TYPE);
            uiText.setTransient(true);
            uiText.setValue(text);
            children.add(uiText);
        }


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


[jira] Updated: (TOMAHAWK-959) HtmlDataScrollerRenderer causes "automatic id" warnings in the logs

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

Steve Schols updated TOMAHAWK-959:
----------------------------------

    Status: Patch Available  (was: Open)

> HtmlDataScrollerRenderer causes "automatic id" warnings in the logs
> -------------------------------------------------------------------
>
>                 Key: TOMAHAWK-959
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-959
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Data Scroller
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: MyFaces Core 1.1.5, Facelets 1.1.11
>            Reporter: Andrew Robinson
>
> HtmlDataScrollerRenderer creates HtmlOutputText components in the "getLink" function, but never assigns an ID to these components. As a result warnings in the logs appear:
> WARNING: Component form:dataTable:_id4334 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
> Problematic code starts at line 506 in my snapshot:
>         if (text != null)
>         {
>             HtmlOutputText uiText = (HtmlOutputText) application
>                             .createComponent(HtmlOutputText.COMPONENT_TYPE);
>             uiText.setTransient(true);
>             uiText.setValue(text);
>             children.add(uiText);
>         }

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


[jira] Issue Comment Edited: (TOMAHAWK-959) HtmlDataScrollerRenderer causes "automatic id" warnings in the logs

Posted by "Steve Schols (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796194#action_12796194 ] 

Steve Schols edited comment on TOMAHAWK-959 at 1/4/10 3:00 PM:
---------------------------------------------------------------

I have this problem as well using the <t:dataScroller> component.
Is there any solution available / downloadable already?

I'm using the following dependencies (downloaded by Maven2) in a small Proof-of-Concept / Educational project which has to administer Persons and Addresses.
apache-myfaces myfaces-api 1.2.7 jar 
apache-myfaces myfaces-impl 1.2.7 jar 
org.apache.myfaces.extensions.validator myfaces-extval-core 1.2.2 jar 
org.apache.myfaces.extensions.validator.validation-modules myfaces-extval-property-validation 1.2.2 jar 
org.apache.myfaces.tomahawk tomahawk12 1.1.8 jar 

It does not seem to be a big deal, but it's quite annoying in the logs. I don't really know how to trace this back to what component it is about. I'm a new at JSF.

EDIT:
Apparently I did something wrong ... there is NO patch available as to now.
Perhaps I can check out the source code, and see how I can make a patch and how I can have the patch-code checked by Apache.

      was (Author: stevo82):
    I have this problem as well using the <t:dataScroller> component.
Is there any solution available / downloadable already?

I'm using the following dependencies (downloaded by Maven2) in a small Proof-of-Concept / Educational project which has to administer Persons and Addresses.
apache-myfaces myfaces-api 1.2.7 jar 
apache-myfaces myfaces-impl 1.2.7 jar 
org.apache.myfaces.extensions.validator myfaces-extval-core 1.2.2 jar 
org.apache.myfaces.extensions.validator.validation-modules myfaces-extval-property-validation 1.2.2 jar 
org.apache.myfaces.tomahawk tomahawk12 1.1.8 jar 

It does not seem to be a big deal, but it's quite annoying in the logs. I don't really know how to trace this back to what component it is about. I'm a new at JSF.
  
> HtmlDataScrollerRenderer causes "automatic id" warnings in the logs
> -------------------------------------------------------------------
>
>                 Key: TOMAHAWK-959
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-959
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Data Scroller
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: MyFaces Core 1.1.5, Facelets 1.1.11
>            Reporter: Andrew Robinson
>
> HtmlDataScrollerRenderer creates HtmlOutputText components in the "getLink" function, but never assigns an ID to these components. As a result warnings in the logs appear:
> WARNING: Component form:dataTable:_id4334 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
> Problematic code starts at line 506 in my snapshot:
>         if (text != null)
>         {
>             HtmlOutputText uiText = (HtmlOutputText) application
>                             .createComponent(HtmlOutputText.COMPONENT_TYPE);
>             uiText.setTransient(true);
>             uiText.setValue(text);
>             children.add(uiText);
>         }

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


[jira] Commented: (TOMAHAWK-959) HtmlDataScrollerRenderer causes "automatic id" warnings in the logs

Posted by "Steve Schols (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/TOMAHAWK-959?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12796194#action_12796194 ] 

Steve Schols commented on TOMAHAWK-959:
---------------------------------------

I have this problem as well using the <t:dataScroller> component.
Is there any solution available / downloadable already?

I'm using the following dependencies (downloaded by Maven2) in a small Proof-of-Concept / Educational project which has to administer Persons and Addresses.
apache-myfaces myfaces-api 1.2.7 jar 
apache-myfaces myfaces-impl 1.2.7 jar 
org.apache.myfaces.extensions.validator myfaces-extval-core 1.2.2 jar 
org.apache.myfaces.extensions.validator.validation-modules myfaces-extval-property-validation 1.2.2 jar 
org.apache.myfaces.tomahawk tomahawk12 1.1.8 jar 

It does not seem to be a big deal, but it's quite annoying in the logs. I don't really know how to trace this back to what component it is about. I'm a new at JSF.

> HtmlDataScrollerRenderer causes "automatic id" warnings in the logs
> -------------------------------------------------------------------
>
>                 Key: TOMAHAWK-959
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-959
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Data Scroller
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: MyFaces Core 1.1.5, Facelets 1.1.11
>            Reporter: Andrew Robinson
>
> HtmlDataScrollerRenderer creates HtmlOutputText components in the "getLink" function, but never assigns an ID to these components. As a result warnings in the logs appear:
> WARNING: Component form:dataTable:_id4334 just got an automatic id, because there was no id assigned yet. If this component was created dynamically (i.e. not by a JSP tag) you should assign it an explicit static id or assign it the id you get from the createUniqueId from the current UIViewRoot component right after creation!
> Problematic code starts at line 506 in my snapshot:
>         if (text != null)
>         {
>             HtmlOutputText uiText = (HtmlOutputText) application
>                             .createComponent(HtmlOutputText.COMPONENT_TYPE);
>             uiText.setTransient(true);
>             uiText.setValue(text);
>             children.add(uiText);
>         }

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