File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF Problem with PDA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF Problem with PDA" Watch "JSF Problem with PDA" New topic
Author

JSF Problem with PDA

David Salaete
Greenhorn

Joined: Aug 27, 2008
Posts: 19
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


There are 10 types of people: Those who understand binary code and those who don�t.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

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!


Customer surveys are for companies who didn't pay proper attention to begin with.
Brad Kroeger
Greenhorn

Joined: Oct 09, 2008
Posts: 3
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

Joined: Aug 27, 2008
Posts: 19
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

Joined: Jun 25, 2001
Posts: 16228
    
  21

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

Joined: Aug 27, 2008
Posts: 19
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF Problem with PDA