You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/11/02 23:02:12 UTC
svn commit: r470539 -
/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp
Author: werpu
Date: Thu Nov 2 14:02:11 2006
New Revision: 470539
URL: http://svn.apache.org/viewvc?view=rev&rev=470539
Log:
fixup for the dreaded form problem...
should work now and please use it as described
Modified:
myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp
Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp?view=diff&rev=470539&r1=470538&r2=470539
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/dojo/dojoDialog.jsp Thu Nov 2 14:02:11 2006
@@ -3,14 +3,15 @@
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://myfaces.apache.org/sandbox" prefix="s"%>
-
-<head>
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
- <link type="text/css" rel="stylesheet" href="/css/basic.css" />
-</head>
-<body>
-<f:view>
- <style type="text/css">
+<html>
+ <head>
+ <meta http-equiv="Content-Type"
+ content="text/html; charset=iso-8859-1" />
+ <link type="text/css" rel="stylesheet" href="/css/basic.css" />
+ </head>
+ <body>
+ <f:view>
+ <style type="text/css">
.dojoDialog {
background : #eee;
border : 1px solid #999;
@@ -18,86 +19,102 @@
padding : 4px;
}
</style>
- <h:panelGrid columns="2" style="width:700px;">
- <h:outputLabel value="Email" for="email1" styleClass="label" />
- <h:panelGrid columns="4" width="180">
- <t:inputText id="email1" value="Test" forceId="true" size="30" />
- <f:verbatim> </f:verbatim>
- <t:message for="email1" />
- <h:outputLink value="#" onclick="dojoDialog.show();document.getElementById('filter1').focus();">
- <h:outputText value="search"/>
- </h:outputLink>
- </h:panelGrid>
- </h:panelGrid>
- <h:panelGrid columns="2" style="width:700px;">
- <h:outputLabel value="Email" for="email2" styleClass="label" />
- <h:panelGrid columns="4" width="180">
- <t:inputText id="email2" value="Test" forceId="true" size="30" />
- <f:verbatim> </f:verbatim>
- <t:message for="email2" />
- <h:outputLink value="#" onclick="dojoDialog.show();document.getElementById('filter2').focus();">
- <h:outputText value="search"/>
- </h:outputLink>
- </h:panelGrid>
- </h:panelGrid>
- <h:panelGrid columns="2" style="width:700px;">
- <h:outputLabel value="Email" for="email3" styleClass="label" />
- <h:panelGrid columns="4" width="180">
- <t:inputText id="email3" value="Test" forceId="true" size="30" />
- <f:verbatim> </f:verbatim>
- <t:message for="email3" />
- <h:outputLink value="#" onclick="dojoDialog.show();document.getElementById('filter3').focus();">
- <h:outputText value="search"/>
- </h:outputLink>
- <h:outputLink value="#" onclick="dojoDialogOuterform.show();">
- <h:outputText value="searchOuterForm"/>
- </h:outputLink>
-
- </h:panelGrid>
- </h:panelGrid>
-
- <s:modalDialog dialogId="DialogContent" dialogVar="dojoDialog"
- dialogAttr="bgColor='white' bgOpacity='0.5' toggle='fade' toggleDuration='250'"
- hiderIds="cancel1,cancel2,cancel3" styleClass="dojoDialog">
- <h:panelGrid columns="1">
- <h:panelGrid columns="2">
- <t:inputText id="filter1" forceId="true" value="Test" size="25"/>
- <t:commandButton id="cancel1" forceId="true" value="Cancel" onclick="dojo.widget.byId('DialogContent').hide();" />
- </h:panelGrid>
- <h:panelGrid columns="2">
- <t:inputText id="filter2" forceId="true" value="Test" size="25"/>
- <t:commandButton id="cancel2" forceId="true" value="Cancel" onclick="dojo.widget.byId('DialogContent').hide();" />
- </h:panelGrid>
- <h:panelGrid columns="2">
- <t:inputText id="filter3" forceId="true" value="Test" size="25"/>
- <t:commandButton id="cancel3" forceId="true" value="Cancel" onclick="dojo.widget.byId('DialogContent').hide();" />
- </h:panelGrid>
- </h:panelGrid>
- </s:modalDialog>
-
- <h:form id="outerform">
- <s:modalDialog dialogId="FormDialog" dialogVar="dojoDialogOuterform"
- dialogAttr="bgColor='white' bgOpacity='0.5' toggle='fade' toggleDuration='250'"
- hiderIds="cancel1x,cancel2x,cancel3x" styleClass="dojoDialog">
- <h:panelGrid columns="1">
- <h:panelGrid columns="2">
- <t:inputText id="filter1Outerform" forceId="true" value="Test" size="25"/>
- <t:commandButton id="cancel1Outerform" forceId="true" value="Cancel" onclick="dojo.widget.byId('FormDialog').hide();" />
- </h:panelGrid>
- <h:panelGrid columns="2">
- <t:inputText id="filter2Outerform" forceId="true" value="Test" size="25"/>
- <t:commandButton id="cancel2Outerform" forceId="true" value="Cancel" onclick="dojo.widget.byId('FormDialog').hide();" />
- </h:panelGrid>
- <h:panelGrid columns="2">
- <t:inputText id="filter3Outerform" forceId="true" value="Test" size="25"/>
- <t:commandButton id="cancel3Outerform" forceId="true" value="Cancel" onclick="dojo.widget.byId('FormDialog').hide();" />
- </h:panelGrid>
- <h:commandLink id="outerformsubmit"><h:outputFormat value="Submit"/></h:commandLink>
- </h:panelGrid>
- </s:modalDialog>
- </h:form>
+ <h:panelGrid columns="2" style="width:700px;">
+ <h:outputLabel value="Email" for="email1" styleClass="label" />
+ <h:panelGrid columns="4" width="180">
+ <t:inputText id="email1" value="Test" forceId="true" size="30" />
+ <f:verbatim> </f:verbatim>
+ <t:message for="email1" />
+ <h:outputLink value="#"
+ onclick="dojoDialog.show();document.getElementById('filter1').focus();">
+ <h:outputText value="search" />
+ </h:outputLink>
+ </h:panelGrid>
+ </h:panelGrid>
+ <h:panelGrid columns="2" style="width:700px;">
+ <h:outputLabel value="Email" for="email2" styleClass="label" />
+ <h:panelGrid columns="4" width="180">
+ <t:inputText id="email2" value="Test" forceId="true" size="30" />
+ <f:verbatim> </f:verbatim>
+ <t:message for="email2" />
+ <h:outputLink value="#"
+ onclick="dojoDialog.show();document.getElementById('filter2').focus();">
+ <h:outputText value="search" />
+ </h:outputLink>
+ </h:panelGrid>
+ </h:panelGrid>
+ <h:panelGrid columns="2" style="width:700px;">
+ <h:outputLabel value="Email" for="email3" styleClass="label" />
+ <h:panelGrid columns="4" width="180">
+ <t:inputText id="email3" value="Test" forceId="true" size="30" />
+ <f:verbatim> </f:verbatim>
+ <t:message for="email3" />
+ <h:outputLink value="#"
+ onclick="dojoDialog.show();document.getElementById('filter3').focus();">
+ <h:outputText value="search" />
+ </h:outputLink>
+ <h:outputLink value="#" onclick="dojoDialogOuterform.show();">
+ <h:outputText value="searchOuterForm" />
+ </h:outputLink>
+
+ </h:panelGrid>
+ </h:panelGrid>
+
+ <s:modalDialog dialogId="DialogContent" dialogVar="dojoDialog"
+ dialogAttr="bgColor='white' bgOpacity='0.5' toggle='fade' toggleDuration='250'"
+ hiderIds="cancel1,cancel2,cancel3" styleClass="dojoDialog">
+ <h:panelGrid columns="1">
+ <h:panelGrid columns="2">
+ <t:inputText id="filter1" forceId="true" value="Test" size="25" />
+ <t:commandButton id="cancel1" forceId="true" value="Cancel"
+ onclick="dojo.widget.byId('DialogContent').hide();" />
+ </h:panelGrid>
+ <h:panelGrid columns="2">
+ <t:inputText id="filter2" forceId="true" value="Test" size="25" />
+ <t:commandButton id="cancel2" forceId="true" value="Cancel"
+ onclick="dojo.widget.byId('DialogContent').hide();" />
+ </h:panelGrid>
+ <h:panelGrid columns="2">
+ <t:inputText id="filter3" forceId="true" value="Test" size="25" />
+ <t:commandButton id="cancel3" forceId="true" value="Cancel"
+ onclick="dojo.widget.byId('DialogContent').hide();" />
+ </h:panelGrid>
+ </h:panelGrid>
+ </s:modalDialog>
+
+ <s:modalDialog dialogId="FormDialog" dialogVar="dojoDialogOuterform"
+ dialogAttr="bgColor='white' bgOpacity='0.5' toggle='fade' toggleDuration='250'"
+ hiderIds="cancel1x,cancel2x,cancel3x" styleClass="dojoDialog">
+ <h:form id="dialogform">
+
+ <h:panelGrid columns="1">
+ <h:panelGrid columns="2">
+ <t:inputText id="filter1Outerform" forceId="true" value="Test"
+ size="25" />
+ <t:commandButton id="cancel1Outerform" forceId="true"
+ value="Cancel" onclick="dojo.widget.byId('FormDialog').hide();" />
+ </h:panelGrid>
+ <h:panelGrid columns="2">
+ <t:inputText id="filter2Outerform" forceId="true" value="Test"
+ size="25" />
+ <t:commandButton id="cancel2Outerform" forceId="true"
+ value="Cancel" onclick="dojo.widget.byId('FormDialog').hide();" />
+ </h:panelGrid>
+ <h:panelGrid columns="2">
+ <t:inputText id="filter3Outerform" forceId="true" value="Test"
+ size="25" />
+ <t:commandButton id="cancel3Outerform" forceId="true"
+ value="Cancel" onclick="dojo.widget.byId('FormDialog').hide();" />
+ </h:panelGrid>
+ <h:commandLink id="outerformsubmit">
+ <h:outputFormat value="Submit" />
+ </h:commandLink>
+ </h:panelGrid>
+ </h:form>
+
+ </s:modalDialog>
-</f:view>
-</body>
+ </f:view>
+ </body>
</html>