0

With RichFaces 3.3.3 I was able to use the below code:

<h:commandLink action="UPLOAD_PAGE">Upload Document</h:commandLink>

The commandLink would take the user to the requested page. However, this code is no longer working in RichFaces 4.2.1, when I click it, it simply stays on the current page. It blinks the screen for a split second as if it was doing something. I see no errors in the logs, or anything, which makes it incredibly hard to debug. Does anybody have any information regarding this?

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
KVISH
  • 12,923
  • 17
  • 86
  • 162
  • What are you using to upload? The `` has changed in RichFaces 4. – BalusC May 09 '12 at 12:44
  • That link is actually to forward to the upload page. But I am using the default in RichFaces 4 (still being written as we speak). – KVISH May 09 '12 at 19:30
  • 1
    Why are you using a command link instead of a normal link? You may find this helpful: http://stackoverflow.com/questions/2118656/hcommandlink-hcommandbutton-is-not-being-invoked/2120183#2120183 I can't give a more specific answer as your question doesn't contain the code in SSCCE flavor. – BalusC May 09 '12 at 19:31
  • What was the cause of the problem then? – BalusC May 10 '12 at 01:55
  • I'm using ` – KVISH May 10 '12 at 02:16

1 Answers1

1

have by any chance forgot that navigation rule in your faces-config.xml ? and any way you can replace the UPLOAD_PAGE with you page name like action="page2"

look at this answer if you want to redirect

How can i redirect in JSF 2.0

And also read this :

Implicit Navigation in JSF 2.0

Community
  • 1
  • 1
Daniel
  • 36,833
  • 10
  • 119
  • 200