Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSF Problem with PDA

 
David Salaete
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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!
 
Brad Kroeger
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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 Salaete
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 18094
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • 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 Salaete
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic