[seam-issues] [JBoss JIRA] Issue Comment Edited: (SEAMFACES-161) UIInputContainer causes warning when project stage is set to "Development"
José Freitas (JIRA)
jira-events at lists.jboss.org
Fri May 27 10:17:01 EDT 2011
[ https://issues.jboss.org/browse/SEAMFACES-161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604979#comment-12604979 ]
José Freitas edited comment on SEAMFACES-161 at 5/27/11 10:15 AM:
------------------------------------------------------------------
after debugging for a while, I created a real simple example of a compcomp and It seems to be a JSF problem as well.
the problem rises when we use a "componentType" as backingclass for a cc, e.g.
{code}
<cc:interface componentType="org.jboss.seam.faces.SeamContainerTest">
</cc:interface>
<cc:implementation>
</cc:implementation>
{code}
{code}
@FacesComponent(UISeamContainer.COMPONENT_TYPE)
public class UISeamContainer extends UIComponentBase implements NamingContainer {
public static final String COMPONENT_TYPE = "org.jboss.seam.faces.SeamContainerTest";
public UISeamContainer() {
}
@Override
public String getFamily() {
return UINamingContainer.COMPONENT_FAMILY;
}
}
{code}
was (Author: spinner):
after debugging for a while, I created a real simple example of a compcomp and It seems to be a JSF problem as well.
the problem rises when we use a "componentType" as backingclass for a cc, e.g.
<cc:interface componentType="org.jboss.seam.faces.SeamContainerTest">
</cc:interface>
<cc:implementation>
</cc:implementation>
@FacesComponent(UISeamContainer.COMPONENT_TYPE)
public class UISeamContainer extends UIComponentBase implements NamingContainer {
public static final String COMPONENT_TYPE = "org.jboss.seam.faces.SeamContainerTest";
public UISeamContainer() {
}
@Override
public String getFamily() {
return UINamingContainer.COMPONENT_FAMILY;
}
}
> UIInputContainer causes warning when project stage is set to "Development"
> --------------------------------------------------------------------------
>
> Key: SEAMFACES-161
> URL: https://issues.jboss.org/browse/SEAMFACES-161
> Project: Seam Faces
> Issue Type: Bug
> Components: UI Components
> Affects Versions: 3.0.1
> Reporter: Alt Avatar
> Assignee: José Freitas
> Fix For: 3.0.2
>
>
> If "Development" javax.faces.PROJECT_STAGE is configured in web.xml, then using a component based on UIInputContainer results in this error message being displayed: "The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>"
> This occurs, for example, when using the composite component definition from the input.xhtml file in the Seam-Booking example, and the following View template:
> <x:input label="Email">
> <h:inputText value="#{login.email}" required="true" />
> </x:input>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list