combine <h:commandLink> and <p:fileupload>:

UI Components for JSF
Post Reply
Anass_box
Posts: 4
Joined: 25 Jun 2010, 02:24

30 Jun 2010, 13:44

hello
I want to combine <h:commandLink> and <p:fileupload>:
I want with <h:commandLink> onclick action that displays the file browser to upload the file selected, and the progress bar displayed at the bottom of the page.
Can someone help me; thanks in advance


JSF1.2; PrimeFaces1.0.0; Tomcat6

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

01 Jul 2010, 18:58

You can use customUI feature for the commandLink integration, here is an example from showcase;

http://www.primefaces.org:8080/prime-sh ... inning.jsf

Also user's guide has more information.

User avatar
mouadh
Posts: 85
Joined: 27 Apr 2010, 12:47
Location: Tunisia

01 Jul 2010, 19:15

when CustomUI set to true the only parts that can be customized are the two command links, but what i think that Anass_box meant to say is wether or not the browse button can be replaced by a command button.
Ben Khalifa Mouadh
engineering student at National School of Computer Sciences - Tunisia
JSF 2.0, GlassFish v3, PF 2.0.1,Majorra 2.0.2, netBeans 6.8

Anass_box
Posts: 4
Joined: 25 Jun 2010, 02:24

01 Jul 2010, 23:33

thank you optimus.prime and mouadh for reply,
I just want to know if there is possibility to display the browser (File chooser) through <h:commandLink/> click event, without using <p:fileUpLoade/> borwse button. subsequently display the progress bar at the bottom of the page. knowing that, I use <h:commandLink> in a menu placed at the top of my page.

thank you very much.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Seo-Ul-But and 23 guests