[ 
https://issues.apache.org/jira/browse/MYFACES-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095776#comment-13095776
 ] 

Leonardo Uribe commented on MYFACES-3297:
-----------------------------------------

I don't think it could be a problem with other different library. I tried you 
line with a clean helloworld application and it works. There are some tests in 
myfaces that check the renderers against this type of problems, so I'm sure the 
code is ok.

Try add the following fragment in some place in you app:

java.io.BufferedReader in = new java.io.BufferedReader(
        new java.io.InputStreamReader(
                
Thread.currentThread().getContextClassLoader().getResourceAsStream(
                        
"META-INF/maven/org.apache.myfaces.core/myfaces-api/pom.properties")));
try
{
    String line = null;
    while((line = in.readLine()) != null) {
      System.out.println(line);
    }
}
catch (java.io.IOException e)
{
    
}
finally
{
    try
    {
        in.close();
    }
    catch(java.io.IOException e)
    {
    }
}

It just read one file bundle in myfaces-api that has the version number. With 
this you can know if 2.1.2 api is on classpath or not. Also you can call 
getResources() instead getResourceAsStream() to see if there is more than one 
api on the classpath. 

I'll close it as cannot reproduce, because no further advance can be done 
without a reproducible test case.

> h:inputText ignores style tag
> -----------------------------
>
>                 Key: MYFACES-3297
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3297
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.1.2
>         Environment: Linux version 2.6.35.10-74.fc14.x86_64 
> ([email protected]) (gcc version 4.5.1 20100924 (Red 
> Hat 4.5.1-4) (GCC) ) #1 SMP Thu Dec 23 16:04:50 UTC 2010
> java version "1.6.0_26"
> Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
> Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
> apache-tomcat-7.0.14
> org.apache.myfaces.core myfaces-api/myfaces-impl 2.1.2
> javax.servlet.jstl 1.2
> javax.el.javax.el-api 2.2.1
> org.apache.myfaces.tomahawk.tomahawk20 1.1.11
>            Reporter: Ted Leung
>            Assignee: Leonardo Uribe
>
> <h:inputText style="width:5em" value="#{foo.bar}" />
> works as expected in version 2.1.1,
> I upgraded to version 2.1.2 and the style tag no longer shows up in the 
> rendered html tag. Reverting back to version 2.1.1 resolves the problem.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to