[richfaces-issues] [JBoss JIRA] Commented: (RF-2723) componentControl inside modalPanel. Modal panel doesn't opened.
Nick Belaevski (JIRA)
jira-events at lists.jboss.org
Mon Mar 24 16:43:40 EDT 2008
[ http://jira.jboss.com/jira/browse/RF-2723?page=comments#action_12404298 ]
Nick Belaevski commented on RF-2723:
------------------------------------
This works ok:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich" %>
<html>
<f:view>
<head>
</head>
<body>
<rich:modalPanel id="panel" width="350" height="100">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Modal Panel"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
<rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<h:outputText value="This panel is called using Component Control Component"></h:outputText>
<br/>
<h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
<h:outputLink value="#" id="link2">
Show Modal Panel
<rich:componentControl for="panel2" attachTo="link2" operation="show" event="onclick"/>
</h:outputLink>
</rich:modalPanel>
<rich:modalPanel id="panel2" width="350" height="100">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Modal Panel"></h:outputText>
</h:panelGroup>
</f:facet>
<h:outputText value="This panel is called using Component Control Component"></h:outputText>
<br/>
<h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
<h:outputLink value="#" id="link23">
Show Modal Panel
<rich:componentControl for="panel2" attachTo="link23" operation="show" event="onclick"/>
</h:outputLink>
</rich:modalPanel>
<h:outputLink value="#" id="link">
Show Modal Panel
<rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
</h:outputLink>
</body>
</f:view>
</html>
> componentControl inside modalPanel. Modal panel doesn't opened.
> ---------------------------------------------------------------
>
> Key: RF-2723
> URL: http://jira.jboss.com/jira/browse/RF-2723
> Project: RichFaces
> Issue Type: Bug
> Affects Versions: 3.2.0
> Reporter: Ilya Shaikovsky
> Assigned To: Nick Belaevski
> Fix For: 3.2.0
>
>
> <f:subview xmlns="http://www.w3.org/1999/xhtml"
> xmlns:ui="http://java.sun.com/jsf/facelets"
> xmlns:h="http://java.sun.com/jsf/html"
> xmlns:f="http://java.sun.com/jsf/core"
> xmlns:a4j="http://richfaces.org/a4j"
> xmlns:rich="http://richfaces.org/rich">
> <rich:modalPanel id="panel" width="350" height="100">
> <f:facet name="header">
> <h:panelGroup>
> <h:outputText value="Modal Panel"></h:outputText>
> </h:panelGroup>
> </f:facet>
> <f:facet name="controls">
> <h:panelGroup>
> <h:graphicImage value="/images/modal/close.png" style="cursor:pointer" id="hidelink"/>
> <rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="This panel is called using Component Control Component"></h:outputText>
> <br/>
> <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
> <h:outputLink value="#" id="link2">
> Show Modal Panel
> <rich:componentControl for="panel2" attachTo="link" operation="show" event="onclick"/>
> </h:outputLink>
> </rich:modalPanel>
> <rich:modalPanel id="panel2" width="350" height="100">
> <f:facet name="header">
> <h:panelGroup>
> <h:outputText value="Modal Panel"></h:outputText>
> </h:panelGroup>
> </f:facet>
> <h:outputText value="This panel is called using Component Control Component"></h:outputText>
> <br/>
> <h:outputText value="Closure link (X) works also through Component Control"></h:outputText>
> <h:outputLink value="#" id="link23">
> Show Modal Panel
> <rich:componentControl for="panel2" attachTo="link" operation="show" event="onclick"/>
> </h:outputLink>
> </rich:modalPanel>
>
> <h:outputLink value="#" id="link">
> Show Modal Panel
> <rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/>
> </h:outputLink>
> </f:subview>
> Click at link which opens first panel doesn't works without any errors.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list