• 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 Problem with PDA

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

I have a problem with my JSF - RichFaces app.
I have no problem viewing it in a standard PC explorer, but when I have tried to access it via PDA, I�ve found that some JSF components as commandlinks don�t work... It�s strange, because commandButtons are working..

And rich components as rich:panelmenu, for example, are not working at all..

PDA has IE Mobile navigator (and it should be this one).

It�s better to use IceFaces, or Myfaces... ??

Could anybody help me?

Thanks by advance

David
 
Saloon Keeper
Posts: 27763
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
Probably the browser doesn't support the underlying JavaScript code properly.

Technically, a JSF app is supposed to select an appropriate RenderKit based on the target. The problem is, a lot of people only do a basic desktop HTML renderkit. You might want to search for JSF implementations that are specifically designed to be friendly to mobile devices.

Of course, if you want to complain to the RichFaces design group, I won't stop you!
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ICEfaces has a demo application WebMC http://www.icefaces.org/main/demos/ that will currently work with desktop browsers, Safari Mobile and Opera Mobile. This was achieved by creating stylesheets for the appropriate browser and using the component rendered attributes to render the appropriate components for a mobile device (essentially removing unnecessary components to save space).
 
David Carrascal
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks both, Tim & Brad.

I�ve been trying ICEFaces Demo in my PDA, and... what a mess! It doesn�t work too much...

Well, I must use Internet Explorer Mobile v.6, and, maybe as Tim says, it doesn�t support some js functions.

But, in the other hand, wich implementation would you reccomend me? I�ve tried ADFFaces, and it seems to work a bit better...

Other strange thing is that when I have added ADFFaces, the RichFaces commandlinks... worked!!! I suppose that ADF Filter is doing the job.

It�s amazing...!

Has anybody tried other JSF implementation in PDA?

Thanks in advance,

David
 
Tim Holloway
Saloon Keeper
Posts: 27763
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

Originally posted by David Salaete:

Has anybody tried other JSF implementation in PDA?



I'd love to, if I could find somebody to pay me to.

Of course finding people willing to pay for anything is the problem right now.
 
David Carrascal
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Opps...

But, Tim... Are you suggesting me to pay you ??
I dont know yours, but my country (and me) are now under economic hecatomb... So please score this in my bill..

Well, appart jokes, I�ve tried the application with Opera and it works fine.

But my problem is that I need to show several versions of some components depending of the type of client. I explain, for example, I have to show a dataTable with 15 columns in a standard browser, but due to the limitation of space I want to show only 5 if the browser is a PDA.

Due to the fact that both clients are using HTML, I�m afraid that I have no way to do this with renderKits, because the render will be always the same.
(this is true, isn�t it?)

Then the problem is: How can I distinguish in JSF if I�m browsing with a PDA or a standard browser? Is that possible?

Thanks in advance,

David
 
It's never done THAT before. Explain it to me tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic