You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2008/06/08 00:01:28 UTC
svn commit: r664405 - in /myfaces/tomahawk/trunk/sandbox/examples: pom.xml
src/main/webapp/toggleLink.jsp
Author: lu4242
Date: Sat Jun 7 15:01:28 2008
New Revision: 664405
URL: http://svn.apache.org/viewvc?rev=664405&view=rev
Log:
add profile -Dtomahawk=12 and add javascript on toggleLink.jsp
Modified:
myfaces/tomahawk/trunk/sandbox/examples/pom.xml
myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/toggleLink.jsp
Modified: myfaces/tomahawk/trunk/sandbox/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/pom.xml?rev=664405&r1=664404&r2=664405&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/pom.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/pom.xml Sat Jun 7 15:01:28 2008
@@ -99,13 +99,13 @@
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
- <version>1.2.0-SNAPSHOT</version>
+ <version>1.2.4-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
- <version>1.2.0-SNAPSHOT</version>
+ <version>1.2.4-SNAPSHOT</version>
<!-- Tomahawk examples must only have runtime dependency to myfaces-impl
so that it will be automatically added to war. But there must not be
any compile dependency on impl so that is is always possible to use
@@ -272,15 +272,51 @@
</build>
</profile>
+ <profile>
+ <id>tomahawk-current</id>
+ <activation>
+ <property>
+ <name>!tomahawk</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>tomahawk-sandbox</artifactId>
+ <version>${version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>tomahawk-current12</id>
+ <activation>
+ <property>
+ <name>tomahawk</name>
+ <value>12</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.myfaces.tomahawk</groupId>
+ <artifactId>tomahawk-sandbox12</artifactId>
+ <version>${version}</version>
+ </dependency>
+ <dependency>
+ <groupId>batik</groupId>
+ <artifactId>batik-awt-util</artifactId>
+ <version>1.6-1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.lowagie</groupId>
+ <artifactId>itext</artifactId>
+ <version>1.4.8</version>
+ </dependency>
+ </dependencies>
+ </profile>
</profiles>
<dependencies>
<dependency>
- <groupId>org.apache.myfaces.tomahawk</groupId>
- <artifactId>tomahawk-sandbox</artifactId>
- <version>${version}</version>
- </dependency>
- <dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0.4</version>
Modified: myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/toggleLink.jsp
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/toggleLink.jsp?rev=664405&r1=664404&r2=664405&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/toggleLink.jsp (original)
+++ myfaces/tomahawk/trunk/sandbox/examples/src/main/webapp/toggleLink.jsp Sat Jun 7 15:01:28 2008
@@ -56,7 +56,7 @@
<s:togglePanel>
<s:toggleGroup>
<h:outputLabel for="fullName" value="Full Name (click to edit) "/>
- <s:toggleLink for="editNames">
+ <s:toggleLink for="editNames" onclick="return confirm('do you really want to edit this stuff?')">
<h:outputText id="fullName" value="#{toggleBean.firstName} #{toggleBean.lastName}"/>
</s:toggleLink>
</s:toggleGroup>