Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 3
Registered: ‎08-26-2009
My Device: Not Specified
Accepted Solution

Same model Blackberry's, different handling of CommandButtons

Hi BB Community,

 

I'm developing a mobile version of a piece of software for my company and I've run into a strange problem that I can't seem to find the cause of.

 

The website/application uses JSF and IceFaces (v 1.7.0) extensively and most things work as intended. Through research I've found out that our current version of IceFaces means that I won't be able to use CommandLinks, which is fine. However, the behaviour of CommandButtons are not consistent across devices.

 

For example, I have a command button to perform a log in.

 

 

<ice:commandButton action="#{logonBean.doLogin}" id="login"image="/images/loginbtn.png" styleClass="buttonLogin" />

 

 When using my boss' BB (8900, v4.6.1.101) this button works as intended. However, when using my BB (8900, v4.6.1.206) and two simulators (a 8900, v4.6.1.199, Simulator v 2.11.0.151 and a 9000, v4.6.0.212, Simulator v 2.11.0.123) the action is executed but the browser does not automatically forward to the home page. If I bring up the menu and hit 'Refresh' the page reloads and brings up the home page.

 

I have confirmed that the functionality operates correctly on other browsers (IE, FF, Chrome, etc). 

 

What would be causing this strange behaviour, and what is the best way of fixing it?

 

Many thanks in advance.

 

Regards,

 

Michael 

 

 

 

 

 

New Developer
Posts: 3
Registered: ‎08-26-2009
My Device: Not Specified

Re: Same model Blackberry's, different handling of CommandButtons

Forgot to mention: in all four cases I am using the Blackberry Browser.
New Developer
Posts: 3
Registered: ‎08-26-2009
My Device: Not Specified

Re: Same model Blackberry's, different handling of CommandButtons [SOLVED]

I've managed to solve this problem:

 

It seems that certain BB browsers/OS' don't handle the JSF lifecycle completely correctly. What was happening when my commandButton's were being pressed was that everything was being executed (server sends, receives, etc), but the lifecycle was not being restarted. Due to this, no changes or new pages were being rendered.

 

The solution to my problem was to force the lifecycle to be executed again using the <redirect /> tag in my login and logout navigation rules. Whilst this does have some performance disadvantages, having a page actually load/work far outweighs it.

 

Hope this info helps someone else.

 

Regards,

 

Michael

Highlighted
Guru I
Posts: 19,020
Registered: ‎07-29-2008
My Device: Passport, Playbook, 9320BES
My Carrier: Bouygues _ SFR

Re: Same model Blackberry's, different handling of CommandButtons

thanks a lot for your feedback. it's that kind of contribution that gives the whole value to this community forum. have a nice day.



The search box on top-right of this page is your true friend, and the public Knowledge Base too: