You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ted Leung (JIRA)" <de...@myfaces.apache.org> on 2011/09/01 14:55:10 UTC
[jira] [Created] (MYFACES-3297) h:inputText ignores style tag
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 (mockbuild@x86-11.phx2.fedoraproject.org) (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
<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
[jira] [Commented] (MYFACES-3297) h:inputText ignores style tag
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096265#comment-13096265 ]
Leonardo Uribe commented on MYFACES-3297:
-----------------------------------------
Probably it is caused by a transitive dependency. In fact, checking the latest code of myfaces html5 project, there is a compile dependency there. I'll fix that soon.
> 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 (mockbuild@x86-11.phx2.fedoraproject.org) (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
[jira] [Commented] (MYFACES-3297) h:inputText ignores style tag
Posted by "Ted Leung (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095779#comment-13095779 ]
Ted Leung commented on MYFACES-3297:
------------------------------------
the suggested code shows I'm using 2.1.2 :
#Generated by Maven
#Mon Aug 22 20:44:02 COT 2011
version=2.1.2
groupId=org.apache.myfaces.core
artifactId=myfaces-api
Now I'm really curious, I'm going to continue looking into this now.
> 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 (mockbuild@x86-11.phx2.fedoraproject.org) (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
[jira] [Commented] (MYFACES-3297) h:inputText ignores style tag
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ 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 (mockbuild@x86-11.phx2.fedoraproject.org) (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
[jira] [Commented] (MYFACES-3297) h:inputText ignores style tag
Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13095453#comment-13095453 ]
Leonardo Uribe commented on MYFACES-3297:
-----------------------------------------
I tried it and everything works as expected, in both jsp and facelets. Are you sure? The only way I can imagine is possible to cause this problem is use 2.1.1 api jar with 2.1.2 impl jar. The change done in MYFACES-3237 requires both api and impl jars to be replaced. Check in your classpath only 2.1.2 api and impl jars are used (or just use the bundle jar). I'll close this issue as invalid. Feel free to reopen it if you found a way to reproduce it.
> 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 (mockbuild@x86-11.phx2.fedoraproject.org) (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
>
> <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
[jira] [Reopened] (MYFACES-3297) h:inputText ignores style tag
Posted by "Ted Leung (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/MYFACES-3297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ted Leung reopened MYFACES-3297:
--------------------------------
yes, I'm sure, I just reproduced it again this morning by changing my pom.xml and doing a rebuild.
here's an ls of my lib folder :
-------------
activation-1.1.jar commons-collections-3.2.1.jar geronimo-jms_1.1_spec-1.1.1.jar mysql-connector-java-5.1.16.jar spring-tx-3.0.5.RELEASE.jar
antlr-2.7.2.jar commons-dbcp-1.4.jar geronimo-jpa_2.0_spec-1.1.jar openjpa-2.1.1.jar sslext-1.2-0.jar
aopalliance-1.0.jar commons-digester-1.8.jar geronimo-jta_1.1_spec-1.1.1.jar oro-2.0.8.jar struts-core-1.3.8.jar
avalon-framework-4.1.3.jar commons-email-1.2.jar html5-comp-lib-core-0.0.3.jar serp-1.13.1.jar struts-taglib-1.3.8.jar
batik-awt-util-1.6-1.jar commons-fileupload-1.2.1.jar jcs-1.3.jar spring-aop-3.0.5.RELEASE.jar struts-tiles-1.3.8.jar
batik-ext-1.6-1.jar commons-io-2.0.1.jar jstl-1.2.jar spring-asm-3.0.5.RELEASE.jar tomahawk20-1.1.11.jar
batik-gui-util-1.6-1.jar commons-lang-2.5.jar log4j-1.2.16.jar spring-beans-3.0.5.RELEASE.jar velocity-1.7.jar
batik-util-1.6-1.jar commons-logging-1.1.jar logkit-1.0.1.jar spring-context-3.0.5.RELEASE.jar velocity-tools-2.0.jar
cglib-nodep-2.2.jar commons-pool-1.5.4.jar mail-1.4.1.jar spring-core-3.0.5.RELEASE.jar xmlParserAPIs-2.0.2.jar
commons-beanutils-1.7.0.jar commons-validator-1.3.1.jar myfaces-api-2.1.2.jar spring-expression-3.0.5.RELEASE.jar
commons-chain-1.1.jar concurrent-1.0.jar myfaces-impl-2.1.2.jar spring-jdbc-3.0.5.RELEASE.jar
commons-codec-1.3.jar dom4j-1.1.jar myfaces-shared-html5-0.0.3.jar spring-orm-3.0.5.RELEASE.jar
-------------
Note both API and IMPL are 2.1.2 and there's no 2.1.1's lying around.
Here's a copy of the exact line in my xhtml file :
<h:inputText style="width:5em" value="#{editPatientNote.newCode}" />
Here's a copy of the view source from the browser for that line :
<input id="j_id433304499_5b169c32:j_id433304499_5b169c64" name="j_id433304499_5b169c32:j_id433304499_5b169c64" value="" type="text">
-------------
It's entirely possible that some other lib is conflicting, I don't know which it would be off hand or anything. I realise I have the html5 libs in the path as well but those are mapped to different name spaces, I used hx: for those, h: is mapped to xmlns:h="http://java.sun.com/jsf/html"
I'm not entirely sure how to effectively debug from here which other library maybe causing the conflict. The only way I can think would be a long tedious start from 0 other libraries and adding the ones I have until I see the conflict or similar. I might try that later if I get time and if there's no other suggestions on how to better determine the problem.
> 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 (mockbuild@x86-11.phx2.fedoraproject.org) (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