[jbosstools-issues] [JBoss JIRA] Reopened: (JBIDE-5930) Quck fix for creating jsf2 custom page with element name when it not exist

Vlado Pakan (JIRA) jira-events at lists.jboss.org
Thu Jul 15 10:42:59 EDT 2010


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

Vlado Pakan reopened JBIDE-5930:
--------------------------------



It doesn't work on JBDS Version: 4.0.0.M1 Build id: v201007091251N Build date: 201007091354 Linux 32bit Java Sun JDK 1.6

When Quick Fix for unknown jsf2 custom tag is called it offers to create new xhtml file in proper location within workspace but these files are present created empty and are present only in package explorer not in file system. When the content of new xhtml file is saved and file is reopened file is empty. So page which should contain custom page doesn't render properly.

When new xhtml page for custom tag is created there is this error:

org.eclipse.core.internal.resources.ResourceException: Resource '/jsfblank/WebContent/resources/quickfix/xyxxpanel.xhtml' is not local.
	at org.eclipse.core.internal.resources.Resource.checkLocal(Resource.java:338)
	at org.eclipse.core.internal.resources.File.getContents(File.java:292)
	at org.eclipse.core.internal.resources.File.getContents(File.java:282)
	at org.jboss.tools.jsf.web.validation.jsf2.JSF2ComponentsValidator.isValidate(JSF2ComponentsValidator.java:78)
	at org.jboss.tools.jsf.web.validation.jsf2.JSF2ComponentsValidator.validate(JSF2ComponentsValidator.java:55)
	at org.eclipse.wst.validation.Validator$V2.validate(Validator.java:1159)
	at org.eclipse.wst.validation.internal.ValManager.validate(ValManager.java:704)
	at org.eclipse.wst.validation.internal.ValManager$1.visit(ValManager.java:665)
	at org.eclipse.wst.validation.internal.ValManager.accept(ValManager.java:810)
	at org.eclipse.wst.validation.internal.ValManager.validate(ValManager.java:669)
	at org.eclipse.wst.validation.internal.ValidationRunner.execute(ValidationRunner.java:134)
	at org.eclipse.wst.validation.internal.ValidationRunner.run(ValidationRunner.java:148)
	at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1975)
	at org.eclipse.wst.validation.internal.ValidationRunner.validate(ValidationRunner.java:67)
	at org.eclipse.wst.validation.ValidationFramework.validate(ValidationFramework.java:617)
	at org.jboss.tools.jsf.web.validation.jsf2.action.JSF2AbstractProposal$1.run(JSF2AbstractProposal.java:49)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

eclipse.buildId=I20100520-1744
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86

Afterwards there is warning with same stack trace comming from org.eclipse.wst.validation plugin.

When trying to move this file within package explorer there is the same error.

> Quck fix for creating jsf2 custom page with element name when it not exist
> --------------------------------------------------------------------------
>
>                 Key: JBIDE-5930
>                 URL: https://jira.jboss.org/browse/JBIDE-5930
>             Project: Tools (JBoss Tools)
>          Issue Type: Sub-task
>          Components: jsp/jsf/xml source editing
>    Affects Versions: 3.1.0.CR1
>            Reporter: Maxim Areshkau
>            Assignee: Yura Zhishko
>             Fix For: 3.2.0.M1
>
>         Attachments: DemoVideo.swf
>
>
> #1 if we specify on page xmlns:mar="http://java.sun.com/jsf/composite/mar
> #2 then enter mar:table, and table.xthml not exist in resources/mar folder it will be good provide quick fix for creating mar/table.xhtml with jsf2 element structure

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list