Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

Navigation using h:commandLink  RSS feed

 
Ranch Hand
Posts: 397
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to use h:commandLink to navigate to a different page, similar to href in html. Following is the code:

==================
abc.jsp
===================
<h:form>
<h:commandLink action="interface" >
<hutputText value="100"/>
</h:commandLink>

</h:form>


=====================
faces-config.xml
=====================

<navigation-rule>

<navigation-case>
<from-outcome>interface</from-outcome>
<to-view-id>/pages/interfacePage.jsp</to-view-id>
<redirect />
</navigation-case>

</navigation-rule>

I am getting the following error when I click the hyper link:
=======================================================================
The server encountered an internal error () that prevented it from fulfilling this request.

java.lang.NoClassDefFoundError: org/apache/commons/fileupload/FileUpload
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:117)

=======================================================================

Please help me resolve this issue.

Thanks and Regards
Ayub
 
Ayub ali khan
Ranch Hand
Posts: 397
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I changed my faces-config.xml file as follows:

<navigation-rule>
<from-view-id>*</from-view-id>
<navigation-case>
<from-outcome>interface</from-outcome>
<to-view-id>/pages/interfacePage.jsf</to-view-id>
</navigation-case>

</navigation-rule>

This resovled the issue. My mistake

Best Regards
Ayub
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!