myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Myfaces Wiki] Update of "Tomahawk HTML Editor" by Bruno Marti
Date Wed, 12 Aug 2009 14:17:15 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.

The following page has been changed by Bruno Marti:
http://wiki.apache.org/myfaces/Tomahawk_HTML_Editor

------------------------------------------------------------------------------
  = Tomahawk HTML editor - t:inputHtml =
  How to get married with Tomahawks t:inputHtml tag.
+ [[BR]]
+ [tomahawk_inputHtml.JPG]
+ [[BR]]
+ This sample bases on:
+  * trinidad 1.0.10
+  * myfaces 1.1.5
+  * tomahawk 1.1.6
+ [[BR]]
+ [[BR]]
+ == your.jsp ==
+ {{{
+     <tr:panelGroupLayout>
+         <t:inputHtml id="compInputHtml" style="height:200px;" rendered="true" addKupuLogo="true"
+             allowExternalLinks="true" allowEditSource="true" showAllToolBoxes="true"
+             value="#{user.notice}" validator="#{user.validateNotice}" />
+         <t:message for="compInputHtml" styleClass="error" />
+     </tr:panelGroupLayout>
+     <%-- MUST use tomahawk submit otherwise value gets lost --%>
+     <t:commandButton value="Save"/>
+ }}}
+ == web.xml ==
+ {{{
+     <!-- Myfaces Tomahawk Extensions Filter -->
+     <filter>
+         <filter-name>MyFacesExtensionsFilter</filter-name>
+         <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
+         <init-param>
+             <param-name>uploadMaxFileSize</param-name>
+             <param-value>10m</param-value>
+             <description>
+                 Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB
10m - 10 MB
+                 1g - 1 GB
+             </description>
+         </init-param>
+         <init-param>
+             <param-name>uploadThresholdSize</param-name>
+             <param-value>100k</param-value>
+             <description>
+                 Set the threshold size - files below this limit are stored in memory, files
above this
+                 limit are stored on disk.
+                 Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB
+             </description>
+         </init-param>
+         <!-- <init-param>
+             <description>Set the path where the intermediary files will be stored.
+             </description>
+             <param-name>uploadRepositoryPath</param-name>
+             <param-value>/temp</param-value>
+             </init-param>-->
+     </filter>
+     <!-- filter mapping for session Myfaces extension filter -->
+     <filter-mapping>
+         <filter-name>MyFacesExtensionsFilter</filter-name>
+         <url-pattern>*.jsf</url-pattern>
+     </filter-mapping>
+     <!-- extension mapping for serving page-independent resources (javascript, stylesheets,
images, etc.)  -->
+     <filter-mapping>
+         <filter-name>MyFacesExtensionsFilter</filter-name>
+         <url-pattern>/faces/*</url-pattern>
+     </filter-mapping>
+ }}}
+ == pom.xml ==
+ {{{
+         <dependency>
+             <groupId>org.apache.myfaces.core</groupId>
+             <artifactId>myfaces-api</artifactId>
+             <version>1.1.5</version>
+             <scope>compile</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.myfaces.core</groupId>
+             <artifactId>myfaces-impl</artifactId>
+             <version>1.1.5</version>
+             <scope>compile</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.myfaces.tomahawk</groupId>
+             <artifactId>tomahawk</artifactId>
+             <version>1.1.6</version>
+             <scope>compile</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.myfaces.trinidad</groupId>
+             <artifactId>trinidad-api</artifactId>
+             <version>1.0.10</version>
+             <scope>compile</scope>
+         </dependency>
+         <dependency>
+             <groupId>org.apache.myfaces.trinidad</groupId>
+             <artifactId>trinidad-impl</artifactId>
+             <version>1.0.10</version>
+             <scope>compile</scope>
+         </dependency>
+ }}}
  
- 

Mime
View raw message