You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Ganesh Jung (JIRA)" <de...@myfaces.apache.org> on 2010/02/09 17:41:28 UTC

[jira] Created: (MYFACES-2543) Facelets Taglib jars are not recognized

Facelets Taglib jars are not recognized
---------------------------------------

                 Key: MYFACES-2543
                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.0-beta
         Environment: Facelets
            Reporter: Ganesh Jung


Facelets taglibs defined according to the spec 10.3.2 are not recognized.

This page uses a test taglib (see attachment):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:test="http://j4fry.org/test">
	<body>
		<test:button />
	</body>
</html>

but test:button is not resolved...

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


[jira] Reopened: (MYFACES-2543) Facelets Taglib jars are not recognized

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

Ganesh Jung reopened MYFACES-2543:
----------------------------------


reasons for reopning this where discussed on the dev list:

+1 on that
Go ahead and re-open it

Sent from my iPod.

On 12.02.2010, at 06:36, Ganesh <ga...@j4fry.org> wrote:

> Leo, can you please read this again? I thought we agreed on this being a MyFaces bug. IMHO te spec is clear and I don't agree on closing the issue.
>
> From the spec (10.1.2):
>
> A decision was made early in this process to strive for backwards compatibility between the latest popular version of Facelets and Facelets in JSF 2.0. The sole determinant to backwards compatibility lies in the answer to the question, "is there any Java code in the application, or in libraries used by the application, that extends from or depends on any class in package com.sun.facelets and/or its sub-packages?"
> ■ If the answer to this question is "yes", Facelets in JSF 2.0 is not backwards compatibile with Facelets and such an application must continue to bundle the Facelets jar file along with the application, continue to set the Facelets configuration parameters, and also set the javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
> <context-param> to true. Please see Section 11.1.3 "Application Configuration Parameters" for details on this
> option. Any code that extends or depends on any class in package com.sun.facelets and/or its sub-packages
> must be modified to depend on the appropriate classes in package javax.faces.webapp.vdl and/or its subpackages.
> ■ If the answer to this question is "no", Facelets in JSF 2.0 is backwards compatible with pre-JSF 2.0 Facelets and such an application must not continue to bundle the Facelets jar file along with the application, and must not continue to set the Facelets configuration parameters.
> Thankfully, most applications that use Facelets fall into the latter category, or, if they fall in the former, their dependence will easily be migrated to the new public classes.
> Can we please reopen the issue and fix it?
>
> Best regards,
> Ganesh  

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Ganesh Jung (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833087#action_12833087 ] 

Ganesh Jung commented on MYFACES-2543:
--------------------------------------

Did you take into account jars with a taglib.xml that are based only on xhtml templates? I bet 95% of all Facelets taglibs do this. An application can be using 
the jar that I uploaded with this issue. Did you check it? It doesn't extend any com.sun.facelets stuff. In fact, it doesn't use any Java classes at all... DojoFaces also *is* this kind of jar. It has an old style taglib.xml and it consists solely of xhtml templates. According to the spec it *must* work with a JSF 2.0 conform implemetation, but with MyFaces 2.0 beta 2 not even the taglib.xml will be accepted...

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832298#action_12832298 ] 

Leonardo Uribe commented on MYFACES-2543:
-----------------------------------------

This issue is invalid. The day we change the package from com.sun.facelets to org.apache.myfaces.view.facelets we make impossible to do that.

I believe the spec is clear (see section 10.1.2). The fact is facelets tag handlers from 1.1.x requires classes on package com.sun.facelets, and myfaces doesn't have them. I ignore if we can run old facelets jars with myfaces 2.0.x. The point is this will not be solved because it has unwanted side effects, and unfortunately we can't solve them.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833105#action_12833105 ] 

Leonardo Uribe commented on MYFACES-2543:
-----------------------------------------

That's another completely different use case. Ganesh, could you describe in more detailed and complete way what's your proposal about what a jsf implementation should do (not your particular use case, instead what jsf should do when it founds a facelets taglib file) and submit it to jsr-314-open list. It is not clear this specific use case from your comments. Probe of that is your last comment make clear your point of view.

Note if that is true, the spec should say something about that. Also, RI behavior should be make clear first, because there are doubts about whether read facelets taglibs 1.1.x is a bug or not (I'm supposing right now it is a bug, but I don't know RI internals).

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


Re: [jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by Matthias Wessendorf <ma...@apache.org>.
On Fri, Feb 12, 2010 at 7:28 AM, Ganesh <ga...@j4fry.org> wrote:
> Actually I've asked on jsr-314-open whether people
> agree on this being a bug and so I want to wait until the weekend before
> opening an issue. I'll do it on
> sunday, if that's fine with you.

sure :-) My "problem" is that otherwise things are easily forgotten, over there.
Bugs is a well-understood language ;-)

I mean, this is obvious, right?
Restricting it to 2.0 would mean MyFaces is _technically_ correct.
But the "prose" section (that what you posted) clearly says your JAR
(MYFACES-2543)
should work.

-M

>
> Best regards,
> Ganesh
>
> Matthias Wessendorf schrieb:
>>
>> What's up with this part of the spec:
>> …
>>>
>>>  <xsd:restriction base="xsd:token">
>>>    <xsd:enumeration value="2.0"/>
>>>  </xsd:restriction>
>>
>> …
>>
>> did you file a bug? Or do you want me to file it??
>>
>> Sent from my iPod.
>>
>> On 12.02.2010, at 07:15, Matthias Wessendorf <mwessendorf@gmail.com
>> <ma...@gmail.com>> wrote:
>>
>>> +1 on that
>>> Go ahead and re-open it
>>>
>>> Sent from my iPod.
>>>
>>> On 12.02.2010, at 06:36, Ganesh <ganesh@j4fry.org
>>> <ma...@j4fry.org>> wrote:
>>>
>>>> Leo, can you please read this again? I thought we agreed on this being a
>>>> MyFaces bug. IMHO te spec is clear and I don't agree on closing the issue.
>>>>
>>>> From the spec (10.1.2):
>>>>
>>>> A decision was made early in this process to strive for backwards
>>>> compatibility between the latest popular version of Facelets and Facelets in
>>>> JSF 2.0. The sole determinant to backwards compatibility lies in the answer
>>>> to the question, “is there any Java code in the application, or in libraries
>>>> used by the application, that extends from or depends on any class in
>>>> package com.sun.facelets and/or its sub-packages?”
>>>> ■ If the answer to this question is “yes”, Facelets in JSF 2.0 is not
>>>> backwards compatibile with Facelets and such an application must continue to
>>>> bundle the Facelets jar file along with the application, continue to set the
>>>> Facelets configuration parameters, and also set the
>>>> javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
>>>> <context-param> to true. Please see Section 11.1.3 “Application
>>>> Configuration Parameters” for details on this
>>>> option. Any code that extends or depends on any class in package
>>>> com.sun.facelets and/or its sub-packages
>>>> must be modified to depend on the appropriate classes in package
>>>> javax.faces.webapp.vdl and/or its subpackages.
>>>> ■ If the answer to this question is “no”, Facelets in JSF 2.0 is
>>>> backwards compatible with pre-JSF 2.0 Facelets and such an application must
>>>> not continue to bundle the Facelets jar file along with the application, and
>>>> must not continue to set the Facelets configuration parameters.
>>>> Thankfully, most applications that use Facelets fall into the latter
>>>> category, or, if they fall in the former, their dependence will easily be
>>>> migrated to the new public classes.
>>>> Can we please reopen the issue and fix it?
>>>>
>>>> Best regards,
>>>> Ganesh
>>>>
>>>> Leonardo Uribe (JIRA) schrieb:
>>>>>
>>>>>   [
>>>>> https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>>>>> ]
>>>>> Leonardo Uribe resolved MYFACES-2543.
>>>>> -------------------------------------
>>>>>     Resolution: Won't Fix
>>>>>  Fix Version/s: 2.0.0-beta-2
>>>>>       Assignee: Leonardo Uribe
>>>>> This issue is closed as won't fix, because no advance can be done from
>>>>> this point. To solve it we have to change the package convention to
>>>>> com.sun.facelets, and that is a bad idea. Note a workaround could be done to
>>>>> allow previous jsf 1.2 libs to work with jsf 2.0 as described on jsf 2.0
>>>>> spec chapter 10
>>>>>>
>>>>>> Facelets Taglib jars are not recognized
>>>>>> ---------------------------------------
>>>>>>
>>>>>>              Key: MYFACES-2543
>>>>>>              URL:
>>>>>> <https://issues.apache.org/jira/browse/MYFACES-2543>https://issues.apache.org/jira/browse/MYFACES-2543
>>>>>>          Project: MyFaces Core
>>>>>>       Issue Type: Bug
>>>>>>       Components: JSR-314
>>>>>>  Affects Versions: 2.0.0-beta
>>>>>>      Environment: Facelets
>>>>>>         Reporter: Ganesh Jung
>>>>>>         Assignee: Leonardo Uribe
>>>>>>          Fix For: 2.0.0-beta-2
>>>>>>
>>>>>>      Attachments: MyFaces_Test.jar
>>>>>>
>>>>>>
>>>>>> Facelets taglibs defined according to the spec 10.3.2 are not
>>>>>> recognized.
>>>>>> This page uses a test taglib (see attachment):
>>>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>>>>>      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>>>> <html xmlns="http://www.w3.org/1999/xhtml"
>>>>>>    xmlns:f="http://java.sun.com/jsf/core"
>>>>>>    xmlns:h="http://java.sun.com/jsf/html"
>>>>>>    xmlns:ui="http://java.sun.com/jsf/facelets"
>>>>>>    xmlns:test="http://j4fry.org/test">
>>>>>>  <body>
>>>>>>      <test:button />
>>>>>>  </body>
>>>>>> </html>
>>>>>> but test:button is not resolved...
>



-- 
Matthias Wessendorf

blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
twitter: http://twitter.com/mwessendorf

Re: [jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by Ganesh <ga...@j4fry.org>.
Actually I've asked on jsr-314-open whether people
agree on this being a bug and so I want to wait until 
the weekend before opening an issue. I'll do it on
sunday, if that's fine with you.

Best regards,
Ganesh

Matthias Wessendorf schrieb:
> What's up with this part of the spec:
> …
>>  <xsd:restriction base="xsd:token">
>>     <xsd:enumeration value="2.0"/>
>>  </xsd:restriction>
> …
> 
> did you file a bug? Or do you want me to file it??
> 
> Sent from my iPod.
> 
> On 12.02.2010, at 07:15, Matthias Wessendorf <mwessendorf@gmail.com 
> <ma...@gmail.com>> wrote:
> 
>> +1 on that
>> Go ahead and re-open it
>>
>> Sent from my iPod.
>>
>> On 12.02.2010, at 06:36, Ganesh <ganesh@j4fry.org 
>> <ma...@j4fry.org>> wrote:
>>
>>> Leo, can you please read this again? I thought we agreed on this 
>>> being a MyFaces bug. IMHO te spec is clear and I don't agree on 
>>> closing the issue.
>>>
>>> From the spec (10.1.2):
>>>
>>> A decision was made early in this process to strive for backwards 
>>> compatibility between the latest popular version of Facelets and 
>>> Facelets in JSF 2.0. The sole determinant to backwards compatibility 
>>> lies in the answer to the question, “is there any Java code in the 
>>> application, or in libraries used by the application, that extends 
>>> from or depends on any class in package com.sun.facelets and/or its 
>>> sub-packages?”
>>> ■ If the answer to this question is “yes”, Facelets in JSF 2.0 is not 
>>> backwards compatibile with Facelets and such an application must 
>>> continue to bundle the Facelets jar file along with the application, 
>>> continue to set the Facelets configuration parameters, and also set 
>>> the javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
>>> <context-param> to true. Please see Section 11.1.3 “Application 
>>> Configuration Parameters” for details on this
>>> option. Any code that extends or depends on any class in package 
>>> com.sun.facelets and/or its sub-packages
>>> must be modified to depend on the appropriate classes in package 
>>> javax.faces.webapp.vdl and/or its subpackages.
>>> ■ If the answer to this question is “no”, Facelets in JSF 2.0 is 
>>> backwards compatible with pre-JSF 2.0 Facelets and such an 
>>> application must not continue to bundle the Facelets jar file along 
>>> with the application, and must not continue to set the Facelets 
>>> configuration parameters.
>>> Thankfully, most applications that use Facelets fall into the latter 
>>> category, or, if they fall in the former, their dependence will 
>>> easily be migrated to the new public classes.
>>> Can we please reopen the issue and fix it?
>>>
>>> Best regards,
>>> Ganesh
>>>
>>> Leonardo Uribe (JIRA) schrieb:
>>>>    [ 
>>>> https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>>>> ]
>>>> Leonardo Uribe resolved MYFACES-2543.
>>>> -------------------------------------
>>>>      Resolution: Won't Fix
>>>>   Fix Version/s: 2.0.0-beta-2
>>>>        Assignee: Leonardo Uribe
>>>> This issue is closed as won't fix, because no advance can be done 
>>>> from this point. To solve it we have to change the package 
>>>> convention to com.sun.facelets, and that is a bad idea. Note a 
>>>> workaround could be done to allow previous jsf 1.2 libs to work with 
>>>> jsf 2.0 as described on jsf 2.0 spec chapter 10
>>>>> Facelets Taglib jars are not recognized
>>>>> ---------------------------------------
>>>>>
>>>>>               Key: MYFACES-2543
>>>>>               URL: 
>>>>> <https://issues.apache.org/jira/browse/MYFACES-2543>https://issues.apache.org/jira/browse/MYFACES-2543
>>>>>           Project: MyFaces Core
>>>>>        Issue Type: Bug
>>>>>        Components: JSR-314
>>>>>  Affects Versions: 2.0.0-beta
>>>>>       Environment: Facelets
>>>>>          Reporter: Ganesh Jung
>>>>>          Assignee: Leonardo Uribe
>>>>>           Fix For: 2.0.0-beta-2
>>>>>
>>>>>       Attachments: MyFaces_Test.jar
>>>>>
>>>>>
>>>>> Facelets taglibs defined according to the spec 10.3.2 are not 
>>>>> recognized.
>>>>> This page uses a test taglib (see attachment):
>>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>>>>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>>> <html xmlns="http://www.w3.org/1999/xhtml"
>>>>>     xmlns:f="http://java.sun.com/jsf/core"
>>>>>     xmlns:h="http://java.sun.com/jsf/html"
>>>>>     xmlns:ui="http://java.sun.com/jsf/facelets"
>>>>>     xmlns:test="http://j4fry.org/test">
>>>>>   <body>
>>>>>       <test:button />
>>>>>   </body>
>>>>> </html>
>>>>> but test:button is not resolved...

Re: [jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by Matthias Wessendorf <mw...@gmail.com>.
What's up with this part of the spec:
…
>  <xsd:restriction base="xsd:token">
>     <xsd:enumeration value="2.0"/>
>  </xsd:restriction>
…

did you file a bug? Or do you want me to file it??

Sent from my iPod.

On 12.02.2010, at 07:15, Matthias Wessendorf <mw...@gmail.com>  
wrote:

> +1 on that
> Go ahead and re-open it
>
> Sent from my iPod.
>
> On 12.02.2010, at 06:36, Ganesh <ga...@j4fry.org> wrote:
>
>> Leo, can you please read this again? I thought we agreed on this  
>> being a MyFaces bug. IMHO te spec is clear and I don't agree on  
>> closing the issue.
>>
>> From the spec (10.1.2):
>>
>> A decision was made early in this process to strive for backwards  
>> compatibility between the latest popular version of Facelets and  
>> Facelets in JSF 2.0. The sole determinant to backwards  
>> compatibility lies in the answer to the question, “is there any Ja 
>> va code in the application, or in libraries used by the applicatio 
>> n, that extends from or depends on any class in package com.sun.fa 
>> celets and/or its sub-packages?”
>> ■ If the answer to this question is “yes”, Facelets in JSF 2.0  
>> is not backwards compatibile with Facelets and such an application 
>>  must continue to bundle the Facelets jar file along with the appl 
>> ication, continue to set the Facelets configuration parameters, an 
>> d also set the javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
>> <context-param> to true. Please see Section 11.1.3 “Application Co 
>> nfiguration Parameters” for details on this
>> option. Any code that extends or depends on any class in package  
>> com.sun.facelets and/or its sub-packages
>> must be modified to depend on the appropriate classes in package  
>> javax.faces.webapp.vdl and/or its subpackages.
>> ■ If the answer to this question is “no”, Facelets in JSF 2.0  
>> is backwards compatible with pre-JSF 2.0 Facelets and such an appl 
>> ication must not continue to bundle the Facelets jar file along wi 
>> th the application, and must not continue to set the Facelets conf 
>> iguration parameters.
>> Thankfully, most applications that use Facelets fall into the  
>> latter category, or, if they fall in the former, their dependence  
>> will easily be migrated to the new public classes.
>> Can we please reopen the issue and fix it?
>>
>> Best regards,
>> Ganesh
>>
>> Leonardo Uribe (JIRA) schrieb:
>>>    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>>>  ]
>>> Leonardo Uribe resolved MYFACES-2543.
>>> -------------------------------------
>>>      Resolution: Won't Fix
>>>   Fix Version/s: 2.0.0-beta-2
>>>        Assignee: Leonardo Uribe
>>> This issue is closed as won't fix, because no advance can be done  
>>> from this point. To solve it we have to change the package  
>>> convention to com.sun.facelets, and that is a bad idea. Note a  
>>> workaround could be done to allow previous jsf 1.2 libs to work  
>>> with jsf 2.0 as described on jsf 2.0 spec chapter 10
>>>> Facelets Taglib jars are not recognized
>>>> ---------------------------------------
>>>>
>>>>               Key: MYFACES-2543
>>>>               URL: https://issues.apache.org/jira/browse/MYFACES-2543
>>>>           Project: MyFaces Core
>>>>        Issue Type: Bug
>>>>        Components: JSR-314
>>>>  Affects Versions: 2.0.0-beta
>>>>       Environment: Facelets
>>>>          Reporter: Ganesh Jung
>>>>          Assignee: Leonardo Uribe
>>>>           Fix For: 2.0.0-beta-2
>>>>
>>>>       Attachments: MyFaces_Test.jar
>>>>
>>>>
>>>> Facelets taglibs defined according to the spec 10.3.2 are not  
>>>> recognized.
>>>> This page uses a test taglib (see attachment):
>>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>>>       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>>> <html xmlns="http://www.w3.org/1999/xhtml"
>>>>     xmlns:f="http://java.sun.com/jsf/core"
>>>>     xmlns:h="http://java.sun.com/jsf/html"
>>>>     xmlns:ui="http://java.sun.com/jsf/facelets"
>>>>     xmlns:test="http://j4fry.org/test">
>>>>   <body>
>>>>       <test:button />
>>>>   </body>
>>>> </html>
>>>> but test:button is not resolved...

Re: [jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by Matthias Wessendorf <mw...@gmail.com>.
+1 on that
Go ahead and re-open it

Sent from my iPod.

On 12.02.2010, at 06:36, Ganesh <ga...@j4fry.org> wrote:

> Leo, can you please read this again? I thought we agreed on this  
> being a MyFaces bug. IMHO te spec is clear and I don't agree on  
> closing the issue.
>
> From the spec (10.1.2):
>
> A decision was made early in this process to strive for backwards  
> compatibility between the latest popular version of Facelets and  
> Facelets in JSF 2.0. The sole determinant to backwards compatibility  
> lies in the answer to the question, “is there any Java code in the a 
> pplication, or in libraries used by the application, that extends fr 
> om or depends on any class in package com.sun.facelets and/or its su 
> b-packages?”
> ■ If the answer to this question is “yes”, Facelets in JSF 2.0  
> is not backwards compatibile with Facelets and such an application m 
> ust continue to bundle the Facelets jar file along with the applicat 
> ion, continue to set the Facelets configuration parameters, and also 
>  set the javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
> <context-param> to true. Please see Section 11.1.3 “Application Conf 
> iguration Parameters” for details on this
> option. Any code that extends or depends on any class in package  
> com.sun.facelets and/or its sub-packages
> must be modified to depend on the appropriate classes in package  
> javax.faces.webapp.vdl and/or its subpackages.
> ■ If the answer to this question is “no”, Facelets in JSF 2.0  
> is backwards compatible with pre-JSF 2.0 Facelets and such an applic 
> ation must not continue to bundle the Facelets jar file along with t 
> he application, and must not continue to set the Facelets configurat 
> ion parameters.
> Thankfully, most applications that use Facelets fall into the latter  
> category, or, if they fall in the former, their dependence will  
> easily be migrated to the new public classes.
> Can we please reopen the issue and fix it?
>
> Best regards,
> Ganesh
>
> Leonardo Uribe (JIRA) schrieb:
>>     [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel 
>>  ]
>> Leonardo Uribe resolved MYFACES-2543.
>> -------------------------------------
>>       Resolution: Won't Fix
>>    Fix Version/s: 2.0.0-beta-2
>>         Assignee: Leonardo Uribe
>> This issue is closed as won't fix, because no advance can be done  
>> from this point. To solve it we have to change the package  
>> convention to com.sun.facelets, and that is a bad idea. Note a  
>> workaround could be done to allow previous jsf 1.2 libs to work  
>> with jsf 2.0 as described on jsf 2.0 spec chapter 10
>>> Facelets Taglib jars are not recognized
>>> ---------------------------------------
>>>
>>>                Key: MYFACES-2543
>>>                URL: https://issues.apache.org/jira/browse/MYFACES-2543
>>>            Project: MyFaces Core
>>>         Issue Type: Bug
>>>         Components: JSR-314
>>>   Affects Versions: 2.0.0-beta
>>>        Environment: Facelets
>>>           Reporter: Ganesh Jung
>>>           Assignee: Leonardo Uribe
>>>            Fix For: 2.0.0-beta-2
>>>
>>>        Attachments: MyFaces_Test.jar
>>>
>>>
>>> Facelets taglibs defined according to the spec 10.3.2 are not  
>>> recognized.
>>> This page uses a test taglib (see attachment):
>>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>>        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>>> <html xmlns="http://www.w3.org/1999/xhtml"
>>>      xmlns:f="http://java.sun.com/jsf/core"
>>>      xmlns:h="http://java.sun.com/jsf/html"
>>>      xmlns:ui="http://java.sun.com/jsf/facelets"
>>>      xmlns:test="http://j4fry.org/test">
>>>    <body>
>>>        <test:button />
>>>    </body>
>>> </html>
>>> but test:button is not resolved...

Re: [jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by Ganesh <ga...@j4fry.org>.
Leo, can you please read this again? I thought we agreed on this 
being a MyFaces bug. IMHO te spec is clear and I don't agree on 
closing the issue.

>From the spec (10.1.2):

A decision was made early in this process to strive for backwards compatibility between the latest popular version of Facelets and Facelets in JSF 2.0. The sole determinant to backwards compatibility lies in the answer to the question, “is there any Java code in the application, or in libraries used by the application, that extends from or depends on any class in package com.sun.facelets and/or its sub-packages?”
■ If the answer to this question is “yes”, Facelets in JSF 2.0 is not backwards compatibile with Facelets and such an application must continue to bundle the Facelets jar file along with the application, continue to set the Facelets configuration parameters, and also set the javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
<context-param> to true. Please see Section 11.1.3 “Application Configuration Parameters” for details on this
option. Any code that extends or depends on any class in package com.sun.facelets and/or its sub-packages
must be modified to depend on the appropriate classes in package javax.faces.webapp.vdl and/or its subpackages.
■ If the answer to this question is “no”, Facelets in JSF 2.0 is backwards compatible with pre-JSF 2.0 Facelets and such an application must not continue to bundle the Facelets jar file along with the application, and must not continue to set the Facelets configuration parameters.
Thankfully, most applications that use Facelets fall into the latter category, or, if they fall in the former, their dependence will easily be migrated to the new public classes. 

Can we please reopen the issue and fix it?

Best regards,
Ganesh

Leonardo Uribe (JIRA) schrieb:
>      [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
> 
> Leonardo Uribe resolved MYFACES-2543.
> -------------------------------------
> 
>        Resolution: Won't Fix
>     Fix Version/s: 2.0.0-beta-2
>          Assignee: Leonardo Uribe
> 
> This issue is closed as won't fix, because no advance can be done from this point. To solve it we have to change the package convention to com.sun.facelets, and that is a bad idea. Note a workaround could be done to allow previous jsf 1.2 libs to work with jsf 2.0 as described on jsf 2.0 spec chapter 10
> 
>> Facelets Taglib jars are not recognized
>> ---------------------------------------
>>
>>                 Key: MYFACES-2543
>>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>>             Project: MyFaces Core
>>          Issue Type: Bug
>>          Components: JSR-314
>>    Affects Versions: 2.0.0-beta
>>         Environment: Facelets
>>            Reporter: Ganesh Jung
>>            Assignee: Leonardo Uribe
>>             Fix For: 2.0.0-beta-2
>>
>>         Attachments: MyFaces_Test.jar
>>
>>
>> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
>> This page uses a test taglib (see attachment):
>> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
>> <html xmlns="http://www.w3.org/1999/xhtml"
>>       xmlns:f="http://java.sun.com/jsf/core"
>>       xmlns:h="http://java.sun.com/jsf/html"
>>       xmlns:ui="http://java.sun.com/jsf/facelets"
>>       xmlns:test="http://j4fry.org/test">
>> 	<body>
>> 		<test:button />
>> 	</body>
>> </html>
>> but test:button is not resolved...
> 

[jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

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

Leonardo Uribe resolved MYFACES-2543.
-------------------------------------

       Resolution: Won't Fix
    Fix Version/s: 2.0.0-beta-2
         Assignee: Leonardo Uribe

This issue is closed as won't fix, because no advance can be done from this point. To solve it we have to change the package convention to com.sun.facelets, and that is a bad idea. Note a workaround could be done to allow previous jsf 1.2 libs to work with jsf 2.0 as described on jsf 2.0 spec chapter 10

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838305#action_12838305 ] 

Jakob Korherr commented on MYFACES-2543:
----------------------------------------

OK that's a good solution, Ganesh. I think we should do this!

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831539#action_12831539 ] 

Jakob Korherr commented on MYFACES-2543:
----------------------------------------

I don't know if this is OK with the spec. Mojarra does that too. On my opinion you have to differentiate between facelets 1.x and facelets 2 in some sort of way an this version attribute does exactly that. Furthermore if you want to use a facelets 1.x taglib you can use the (old) facelets 1.x. implementation. This will work.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833094#action_12833094 ] 

Matthias Weßendorf commented on MYFACES-2543:
---------------------------------------------

Leo/Jakob:

check the JAR before you comment...
There is NO java class at all; just some taglib and XHTML

this has to work..... Why?

Here:
Question: 
"is there any Java code in the application, or in libraries used by the application, that extends from or depends on any class in package com.sun.facelets and/or its sub-packages?"

==> NO (right?)

>From the spec:
If the answer to this question is "no", Facelets in JSF 2.0 is backwards compatible with pre-JSF 2.0 Facelets and such an application must not continue to bundle the Facelets jar file along with the application, and must not continue to set the Facelets configuration parameters.


==> should work. But it does not... why? Myfaces2 wants to see 2.0 gramma settings on taglib (which is wrong)
The XSD restriction on the SPEC appendix is a bug.

I am re-opening this ticket, for the given reasons.



> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831538#action_12831538 ] 

Matthias Weßendorf commented on MYFACES-2543:
---------------------------------------------

which is IMO not nice;
As stated on a different bug, MyFaces2 should be more lenient...

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Ganesh Jung (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835926#action_12835926 ] 

Ganesh Jung commented on MYFACES-2543:
--------------------------------------

Now that the spec issue is solved here's my suggestion to treat this issue: MyFaces shouldn't make any distinction between http://java.sun.com/dtd/facelet-taglib_1_0.dtd taglibs and http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd taglibs.

Trying to craft an algorithm that distinguishes between "good taglibs" and "bad taglibs" will unerringly fail in some cornercases. A jar may contain some com.sun.facelets classes or some java taghandlers, but the defined tags never use them. Or maybe the developer knows how to call the tags so that the legacy code doesn't run.

Nobody will blame MyFaces for ClassNotFoundExceptions when stumbling onto a com.sun.facelets reference, but MyFaces will be blamed if fully functional taglibs don't run because of some heuristic jar scanning that MyFaces does at startup.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833951#action_12833951 ] 

Leonardo Uribe commented on MYFACES-2543:
-----------------------------------------

Thinking about it, maybe we should read facelets 1.1.x taglibs twice, the first one could be used to check if we can load it (no class references or java tag handlers) and the second time if the previous filter pass load it.

In this way, if the user still wants to run it, the user could provide its own corrected taglib xml file to make the library run without make changes  on its jars.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Matthias Weßendorf (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833540#action_12833540 ] 

Matthias Weßendorf commented on MYFACES-2543:
---------------------------------------------

Leo,

the use-case it to be backwards compatible.
I mean it should just work, if there are NO java dependencies
on "old" facelets... Otherwise it would be extra pain for
users.

IMO: JSF did things not 100% correct in the past and people complained about it.
 If it would not support this scenario folks have good reasons to blame jsf again.

Does that make sense?

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832992#action_12832992 ] 

Leonardo Uribe commented on MYFACES-2543:
-----------------------------------------

Ok, I'll do comments for each part:

> A decision was made early in this process to strive for backwards compatibility between the latest popular version of Facelets and Facelets in JSF 2.0. The sole determinant to backwards compatibility lies in the answer to the question, "is there any Java code in the application, or in libraries used by the application, that extends from or depends on any class in package com.sun.facelets and/or its sub-packages?" 

In other words, it says below are the criteria to define whether an application is compatible with facelets for jsf 2.0. Suppose you have an application/jsf component library   working with facelets 1.1.x, so if you want to know if it is compatible or not with facelets for jsf 2.0 you have to ask this question first.

> ■ If the answer to this question is "yes", Facelets in JSF 2.0 is not backwards compatibile with Facelets and such an application must continue to bundle the Facelets jar file along with the application, continue to set the Facelets configuration parameters, and also set the javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER
> <context-param> to true. Please see Section 11.1.3 "Application Configuration Parameters" for details on this
> option. Any code that extends or depends on any class in package com.sun.facelets and/or its sub-packages
> must be modified to depend on the appropriate classes in package javax.faces.webapp.vdl and/or its subpackages. 

In other words it says if you have classes that uses com.sun.facelets package (read use as you have classes depending from), your application/jsf component library IS NOT compatible with facelets for jsf 2.0, but you can use the old facelets jars and register the old facelets view handler to keep using them as is. The other alternative is modify all clasess that uses com.sun.facelets and/or its sub-packages to the appropiate javax.faces.webapp.vdl counterpart. If you do that your application / jsf component library will work for jsf 2.0. The param is used to tell jsf please use the jsp view handler (JspViewHandlerImpl in myfaces case),  because the other one introduced in jsf 2.0 (ViewHandlerImpl) could cause conflicts.

Note that the only reason why an application / jsf component library could have a facelet taglib xml file is to reference classes that extends com.su.facelets package.

> ■ If the answer to this question is "no", Facelets in JSF 2.0 is backwards compatible with pre-JSF 2.0 Facelets and such an application must not continue to bundle the Facelets jar file along with the application, and must not continue to set the Facelets configuration parameters. 

If this is true, your application/ jsf component library already works for facelets in JSF 2.0. You can use it directly without make changes, but again that means there is no facelet taglib xml files.

> Thankfully, most applications that use Facelets fall into the latter category, or, if they fall in the former, their dependence will easily be migrated to the new public classes. 

True

My answer is no, we can't reopen this one, but I'll let it open to hear if someone in jsr-314-open list has something to say about it


> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833000#action_12833000 ] 

Jakob Korherr commented on MYFACES-2543:
----------------------------------------

I agree with Leonardo.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12831532#action_12831532 ] 

Jakob Korherr commented on MYFACES-2543:
----------------------------------------

Your facelets taglib has to have the version attribute set to 2.0 to be recognized!!!

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Resolved: (MYFACES-2543) Facelets Taglib jars are not recognized

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

Jakob Korherr resolved MYFACES-2543.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0-beta-3

Resolved: See the discussion on the dev-mailing list ([Facelets] deploying "old" Facelets templates with MyFaces 2) for details.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Jakob Korherr
>             Fix For: 2.0.0-beta-3
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12838324#action_12838324 ] 

Jakob Korherr commented on MYFACES-2543:
----------------------------------------

I committed a solution for this (I just removed the version check). However the EG is currently working on how to solve this scenario in the right way, so I'll leave the JIRA issue open.

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Jakob Korherr
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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


[jira] Commented: (MYFACES-2543) Facelets Taglib jars are not recognized

Posted by "Ganesh Jung (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12833536#action_12833536 ] 

Ganesh Jung commented on MYFACES-2543:
--------------------------------------

So, here's the spec issue: https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=744

> Facelets Taglib jars are not recognized
> ---------------------------------------
>
>                 Key: MYFACES-2543
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2543
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0-beta
>         Environment: Facelets
>            Reporter: Ganesh Jung
>            Assignee: Leonardo Uribe
>             Fix For: 2.0.0-beta-2
>
>         Attachments: MyFaces_Test.jar
>
>
> Facelets taglibs defined according to the spec 10.3.2 are not recognized.
> This page uses a test taglib (see attachment):
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
>         "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:f="http://java.sun.com/jsf/core"
>       xmlns:h="http://java.sun.com/jsf/html"
>       xmlns:ui="http://java.sun.com/jsf/facelets"
>       xmlns:test="http://j4fry.org/test">
> 	<body>
> 		<test:button />
> 	</body>
> </html>
> but test:button is not resolved...

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