tomahawk

How to upload file in JSF

守給你的承諾、 提交于 2019-12-11 08:35:17
问题 Actually I'm creating an application for uploading file using JSF. But whenever I upload a file and click send it shows NullPointerException . The code I have used for the application is: code for JSF using Tomahawk: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%> <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%> <%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

MyFaces Tomahawk JSCookMenu - failure to navigate to page defined by action in faces-config

我们两清 提交于 2019-12-11 03:27:45
问题 This is my first attempt at using JSCookMenu and its homepage (http://jscook.yuanheng.org/JSCookMenu/) has been down for more than a week, so forgive me if the answer to my question should appear on there. I have a simple web app, stripped down in order to test JSCookMenu's action forwarding to a new JSF page. I have an admin page with a JSCookMenu (Apache MyFaces Tomahawk tags) with 2 menu items, 'Home Without AL' and 'Home With AL'. I expect that when I click on these menu items that I will

Apache Tomahawk FileUpload Not Working

ぃ、小莉子 提交于 2019-12-11 03:07:54
问题 I am having an issue with Apache Tomahawk - Glassfish 3.0.1 keeps logging: WARNING: JSF1064: Unable to find or serve resource, inputFileUpload.xhtml, from library, org.apache.myfaces.custom. I have the following libraries included in /lib: tomahawk20-1.1.10.jar commons-collections-3.2.1.jar commons-io-1.4.jar commons-fileupload-1.2.1.jar commons-logging-1.1.1.jar Here is my web.xml. <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns

JSF1.2: difference between ui:repeat, a4j:repeat and t:datalist tags

。_饼干妹妹 提交于 2019-12-10 14:21:57
问题 Do you know what is the difference between the tags mentioned in the subject? I thought they should produce pretty much the same result but it turned out that in some cases ui:repeat (a facelets tag) is not working as you would expect, although it's also considered a basic iteration component. t is for tomahawk and a4j is a richfaces prefix. Any comment is welcome. 回答1: Facelets' ui:repeat has indeed bugs in certain situations. As to the difference with the other two, it boils down that it's

JSF 1.2 on Wildfly 8 Final - weld-core-jsf is still referencing JSF 2.2 API

主宰稳场 提交于 2019-12-09 00:18:13
问题 I'm currently migrating a JSF-1.2 app to Wildfly 8 Final and am stuck :( First of all, I've read many post with related issues (e.g. https://community.jboss.org/message/845006 or Migrate JSF 1.2 Seam app to WildFly Beta 1) but the proposed solution (excluding the weld subsystem) doesn't work for me. What I did: I followed the multi-jsf feature tutorial here and installed JSF 1.2 as a module for wildfly (to be exact, 3 modules). The next was that I added exclusions for javax.faces.api and com

Restricting file upload size in JSF

若如初见. 提交于 2019-12-08 02:20:02
问题 I am using the Tomahawk inputFileUpload component to allow users to upload files to a server. I have implemented a "soft" file size limit by checking the size of the file after it has been uploaded and displaying an error if it is too large. However I would also like a larger "hard" limit, where uploading immediately stops once it has passed the limit. For example if the hard limit is 500MB and the user attempts to upload a 2GB file, uploading will immediately stop once 500MB has been

Restricting file upload size in JSF

别来无恙 提交于 2019-12-06 05:00:46
I am using the Tomahawk inputFileUpload component to allow users to upload files to a server. I have implemented a "soft" file size limit by checking the size of the file after it has been uploaded and displaying an error if it is too large. However I would also like a larger "hard" limit, where uploading immediately stops once it has passed the limit. For example if the hard limit is 500MB and the user attempts to upload a 2GB file, uploading will immediately stop once 500MB has been uploaded and an error is displayed. I had hoped that using the MyFaces ExtensionsFilter and setting

t:inputFileUpload not uploading the file

℡╲_俬逩灬. 提交于 2019-12-01 14:46:39
I am using myfaces ExtensionFilter to upload a file, but the file is not getting set to my bean for further processing. Here is the code : <h:form id="uploadFileForm" enctype="multipart/form-data"> <tom:inputFileUpload id="file" value="#{paramUpload.uploadFile}"> <f:valueChangeListener type="com.bosch.de.plcd.plugin.ParamFileUpload" /> </tom:inputFileUpload> <a4j:commandButton value="#{tpMsgs.upload}" styleClass="button" action="#{paramUpload.uploadParamFile}" onclick="javascript:updateParentScreen();"> </a4j:commandButton> </h:form> and web.xml configuration is as below <filter> <filter-name

t:inputFileUpload not uploading the file

北慕城南 提交于 2019-12-01 12:47:09
问题 I am using myfaces ExtensionFilter to upload a file, but the file is not getting set to my bean for further processing. Here is the code : <h:form id="uploadFileForm" enctype="multipart/form-data"> <tom:inputFileUpload id="file" value="#{paramUpload.uploadFile}"> <f:valueChangeListener type="com.bosch.de.plcd.plugin.ParamFileUpload" /> </tom:inputFileUpload> <a4j:commandButton value="#{tpMsgs.upload}" styleClass="button" action="#{paramUpload.uploadParamFile}" onclick="javascript

JSF 1.2 on Wildfly 8 Final - weld-core-jsf is still referencing JSF 2.2 API

眉间皱痕 提交于 2019-11-30 15:46:06
I'm currently migrating a JSF-1.2 app to Wildfly 8 Final and am stuck :( First of all, I've read many post with related issues (e.g. https://community.jboss.org/message/845006 or Migrate JSF 1.2 Seam app to WildFly Beta 1 ) but the proposed solution (excluding the weld subsystem) doesn't work for me. What I did: I followed the multi-jsf feature tutorial here and installed JSF 1.2 as a module for wildfly (to be exact, 3 modules). The next was that I added exclusions for javax.faces.api and com.sun.jsf-impl (main slots) as well as the corresponding dependencies to the 1.2 slots to my jboss