Icefaces InputFile component - jsf

I've downloaded the ICEFaces 2.0.2 bin-files, but I cannot find the tag "inputFile"; I can only find a tag called "fileEntry"
What am I missing? I want to implement something like:
http://component-showcase.icefaces.org/component-showcase/showcase.iface
I've also added to my xhtml page the namespace:
xmlns:ice=http://www.icesoft.com/icefaces/component
But, netbeans tells that there's no library with that namespace.

Indeed, looking at the component-showcase in sample folder it says the following
Deprecation Notice:
The ice:inputFile component is deprecated in ICEfaces 2.
A next generation file upload component ('fileEntry') is available as
part of the ICEfaces Advanced Components.
For more information on the fileEntry component see the online
documentation.
Thanks anyway !

Related

No tag "notifyMessage" defined in tag library imported with prefix "rich"

I'm busy getting this red-line when trying to use <rich:notifyMessage>. I'm used to primefaces but for this project richfaces is inevitable, hence i'm quite a novice here. I'm using richfaces 3.3.4 final and all required jars are included. What could I be missing? Is there a perfect alternative for a notification message pop-up apart from <rich:message> or <rich:messages>? I'd really appreciate a working example too. Thanks in advance.

What is the equivalent tag for ScriptCollector?

We want to migrate our project from IBM WebSphere 6.1 to Tomcat 6, but in our JSP-JSF UI pages we have extensively used below IBM JSF tags.
ScriptCollector
PanelRowCaregory
PagerWeb
OutPutSelections
InputRowSelect
InputHelperDatePicker
InputHelperAssist
ConvertMask
And to replace above tags, we are trying to find the equivalent tags from Sun JSF or any other open source libraries, but we didn't find any equivalent tags.
I wanted to know whether any body has already worked on this kind of migration project, if yes can you please share the equivalent tags?
or if you solved it differently even that info also will be useful.
Thanks in Advance.
There's no standard JSF equivalent for the <hx:scriptCollector> (although the JSF 2.0 <h:head> comes close). The <hx:scriptCollector> is only required by those IBM-specific <hx:xxx> components. It's designed to collect all JavaScript files required by those <hx:xxx> components and then render the desired <script> tag(s) without potential duplicates when multiple components require the same JS files. It's not required by any standard JSF component.
In other words, just get rid of it without replacement.
As to other tags, just check the available standard components in tag documentation or Java EE tutorial. If none is available, just pick a component library like PrimeFaces or RichFaces. If you still can't figure out, ask an individual question for the particular tag.

Tag Library supports namespace , but no tag was defined for name : ajax

I am using JSF1.2 + Richface 3.3.3 . I was trying to design a column filter which filters all the rows containing that particular string. I tried implementing the example on the following page : http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=dataTable&sample=tableFiltering&skin=blueSky
But I am getting an error "Tag Library supports namespace , but no tag was defined for name : ajax"
How do I go about it.
You are looking at a showcase for RichFaces 4.3, showcase for RichFaces 3.3.x is here.
<a4j:ajax> is not part of RF 3, hence the error. In RF 3 the component is called <a4j:support>.
Generally, the error
Tag Library supports namespace: http://richfaces.org/rich, but no tag
was defined for name: XYZ
is an indicator that your version of richfaces is either earlier than the introduction of this component in the framework, or later than the removal of this component from the framework. Basically, that component doesn't exist in the richfaces version you are using.
Here is how to check your richfaces version: How do I know which version of RichFaces I am running?
You can go to http://richfaces.jboss.org/download/archive , download the jar with the version you are using, unzip it,and search for a class with the same name as your component. In the unzipped jar, open the folder artifacts.
Within artifacts/ui, unzip the jars richfaces-components-api and richfaces-components-ui.
Within artifacts/framework, unzip the jars richfaces-core-api and richfaces-core-imp.
In these 4 locations, there is an /org folder with a richfaces subfolder. I think these are the only places where you can look for the component you want to use.

Can't Use PrimeFaces Component on the html page - They aren't rendered at all

I am using JSF1.2 and trying to integrate with PrimeFaces1.1. I added the primefaces-1.1.jar file to my META-INF\lib folder. I also added the namespace to the page with "xmlns:p="http://primefaces.prime.com.tr/ui". The page is working but primefaces components arent rendered. Also eclipse doesnt show me components when I write < p: (ctrl+space). How can I solve this problem ?
Thanks in advance,
Maybe it's a typo, but the jar should be put in WEB-INF/lib instead of META-INF/lib.

JSF HTML5 tag tutorials / guides?

I'm on the hunt for some more reading on JSF's HTML5 tag H5. I saw IBM's JSF 2 fu articles on it , but haven't really seen much else except presentations and slide shows on 'the promises of html5' and such.
Can anyone suggest some recommended technical reading ?
I'll bet that you're talking about this article. The h5 taglib just points to composite components which wraps some HTML5 specific elements. Composite components are just Facelet files which can be declared and used as a single JSF component in other pages. Even more, the full source code is posted in public in chapter "A JSF 2 HTML5 canvas component" of the article. You just have to copypaste it into your project to get it to run. It's not some component library like RichFaces/PrimeFaces or whatever which you have to download, install and configure first.
JSF doesn't care if the output is XHTML or HTML5. Both are equally valid as long as you adhere the XML syntax (i.e. the document must always be well-formed). You can perfectly inline HTML5 specific tags in JSF pages/components. Your only concern is the browser support.
If your concrete problem is more the lack in understanding of the purpose of composite components and how they work, then I'd suggest to get yourself through the appropriate sections of the Java EE 6 tutorial.
Java EE 6 tutorial - Chapter 5 - Facelets - Composite Components
Java EE 6 tutorial - Chapter 13 - Advanced Composite Components
See also:
JSF 2.0, is it possible to create my own component?
Is it possible to use HTML4/5 with JSF/Facelets?

Resources