[jbosstools-issues] [JBoss JIRA] (JBIDE-17920) Tag Libs are not added when externalizing strings

Daniel Azarov (JIRA) issues at jboss.org
Tue Sep 1 19:48:05 EDT 2015


     [ https://issues.jboss.org/browse/JBIDE-17920?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Azarov updated JBIDE-17920:
----------------------------------
    Description: 
*Test case 1*
1. Create JSF 1.2 Kick Start project
2. Open inputUserName.jsp
3. Delete line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
4. Select "User" string within <title> tag
5. Click on Externalize selected string... toolitem
6. Check Create a new properties file check box
7. Click Next> two times
8. Select via <f:loadBundle> tag on current page
9. Click OK

ERROR: Tag lib defintion for 'f' name space is not added to web page

*Test case 2*
ERROR: The same applies for inputname.xhtml page created within JSF 2.0 Kick Start project

*Test case 3*
1. Create JSF 1.2 Kick Start project
2. Open inputUserName.jsp
3. Change taglib prefix in line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> to "d"
4. Select "User" string within <title> tag
5. Click on Externalize selected string... toolitem
6. Check Create a new properties file check box
7. Click Next> two times
8. Select via <f:loadBundle> tag on current page
9. Click OK

ASSERT:

<d:loadBundle tag should be added

*Test case 3*
The same applies for inputname.xhtml page created within JSF 2.0 Kick Start project

  was:
1. Create JSF 1.2 Kick Start project
2. Open inputUserName.jsp
3. Delete line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
4. Select "User" string within <title> tag
5. Click on Externalize selected string... toolitem
6. Check Create a new properties file check box
7. Click Next> two times
8. Select via <f:loadBundle> tag on current page
9. Click OK

ERROR: Tag lib defintion for 'f' name space is not added to web page

ERROR: The same applies for inputname.xhtml page created within JSF 2.0 Kick Start project

1. Create JSF 1.2 Kick Start project
2. Open inputUserName.jsp
3. Change taglib prefix in line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> to "d"
4. Select "User" string within <title> tag
5. Click on Externalize selected string... toolitem
6. Check Create a new properties file check box
7. Click Next> two times
8. Select via <f:loadBundle> tag on current page
9. Click OK





> Tag Libs are not added when externalizing strings
> -------------------------------------------------
>
>                 Key: JBIDE-17920
>                 URL: https://issues.jboss.org/browse/JBIDE-17920
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: jsp/jsf/xml/html-source-editing
>    Affects Versions: 4.2.0.Beta3
>         Environment: JBDS Beta3-v20140712-0200-B178
>            Reporter: Vlado Pakan
>            Assignee: Daniel Azarov
>            Priority: Minor
>             Fix For: 4.3.x
>
>
> *Test case 1*
> 1. Create JSF 1.2 Kick Start project
> 2. Open inputUserName.jsp
> 3. Delete line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
> 4. Select "User" string within <title> tag
> 5. Click on Externalize selected string... toolitem
> 6. Check Create a new properties file check box
> 7. Click Next> two times
> 8. Select via <f:loadBundle> tag on current page
> 9. Click OK
> ERROR: Tag lib defintion for 'f' name space is not added to web page
> *Test case 2*
> ERROR: The same applies for inputname.xhtml page created within JSF 2.0 Kick Start project
> *Test case 3*
> 1. Create JSF 1.2 Kick Start project
> 2. Open inputUserName.jsp
> 3. Change taglib prefix in line <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> to "d"
> 4. Select "User" string within <title> tag
> 5. Click on Externalize selected string... toolitem
> 6. Check Create a new properties file check box
> 7. Click Next> two times
> 8. Select via <f:loadBundle> tag on current page
> 9. Click OK
> ASSERT:
> <d:loadBundle tag should be added
> *Test case 3*
> The same applies for inputname.xhtml page created within JSF 2.0 Kick Start project



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list