• 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

JSF2, MyFaces2, and Tomahawk

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

I'm struggling for days to have Tomahawk work with MyFaces2.
My versions are :
- MyFaces JSF Core-2.0 API 2.0.1
- tomahawk20-1.1.10
- JDK compliance 1.6

I use templates and my faces pages extension is xhtml.

I test it onto Tomcat6.

My problem is that I can't have t:dataTable (with sort headers) or t:dataScroller work.

When I activate javascript use in web.xml (with org.apache.myfaces.ALLOW_JAVASCRIPT param) :
- when I try to navigate through my table paging, I get a javascript error "myfaces is undefined"

I thought this is a problem with the extension filter of my web.xml, but I can't see what's wrong !

When I de-activate javascript use :
- when clicking on "next page" (paging using dataScroller), a request is done to the server.
- The page is displayed back. The url displays the index of the page to display...
- but the displayed page if always the first one.

Maybe I do something wrong, but I did not found any tutorial about Myfaces2 and Tomahawk, so I did like I used to in JSF 1.2.

Here is my web.xml




Please help !
Does anyone had Myfaces2 and tomcatdatascroller work ?
Is there a step by step tutorial available explaning how to to this ?
 
arnaud fontenoy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
So I made it work.

In fact I think the problem was due to the use of facelets.
I rearranged my page not to use templates and ui:compose, and it worked.

I made it work with servlets too. In fact my eclipse project used "Dynamic Web module 2.5".
I did a test using "dynamic web module 3" and it worked.

So I created a new projet in dynamic web module 3. I imported everything from my old project.
And it works.

Hope that helps !
 
grapes are vegan food pellets. Eat this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic