• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSF file uploads and rich text

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am new to JSF and I am trying to implement an application using JSF with facelets.
This application has to support file uploads and input of rich text, but I can't figure out how to do this.
From searches on the web, I have seen that facelets or myfaces support this functionalities.
Can anyone help me with either iplementing these functionalities in my application, or converting it to a richfaces one that supports them?

Thank you in advance
 
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your question is so big that it can not be replied in whole. And I am pretty sure that no one will just make your application for you either.

But I can give you some pointers.

First of all do you understand the basics? Like that JSF is a standard and as such does not provide the implementation. And MyFaces or Sun JSF-RI etc. are implementations of that standard? And that you can add other libraries (like RichFaces) on top of the implementations? So you basically just choose one implementation and build on top of that. Read the manual of the implementation of your choosing or just follow some general JSF tutorial like:
http://www.coreservlets.com/JSF-Tutorial/jsf2/

File upload functionality is present in many libraries (for example I use Tomahawk that is a library developed alongside MyFaces) but what do you mean by "input of rich text"? It can mean anything. At its basic you may just want to add html to your site or something similar or you might mean something like this
http://www.primefaces.org/showcase/ui/editor.jsf
or something completely different...
 
Nick Cynic
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you for the quick reply.

I really did not express what I wanted to say properly...
What I meant by JSF is that I have used the Sun JSF-RI implementation, but I can't find a component or something else in order to upload a file.
As far as the rich text input is concerned, I mean that I want to have a textBox that supports emoticons, bold fonts etc.
My problem is that when I tried to use richfaces, my application wasn't working properly.
Are the components of the 2 implementations so different that my application won't work if I switch from one to another?

Thank you again for the tutorials and the reply.
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you talk about two implementations what implementations do you refer? Sun JSF-RI and RichFaces? I thought that RichFaces was not an actual implementation but only a library. But I could be wrong.

In any case you will naturally have to check first if the library you want to use suits to your implementation. And version numbers have meaning too. I presume you have read this? http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html_single/#TechnicalRequirements

You gave no information whatsoever what did not work when you tried to use RichFaces or even what versions did you use (or even are you sing JSF 2 or JSF 1) so there is no way anyone can help you there.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could tell, but you're such a cynic.

http://www.javaranch.com/name.jsp
 
reply
    Bookmark Topic Watch Topic
  • New Topic