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: 60
Registered: ‎01-16-2009
My Device: Not Specified

BrowserFieldDemo : Post methods are not working

Environment used : JDE 4.7
MDS: 4.1.4
Simulator: 9530

We are having a JSF application, that is to be run with the Browser Field application. The application handles the request through the POST method.
These post methods are not working. (i.e) the browser remains on the same page.

Has anyone faced this issue?. Please provide some solution for resolving the issue.

Thanks,
Navaneeth
New Developer
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Re: BrowserFieldDemo : Post methods are not working

Scenario:

 

A sample JSF application has 2 pages, Page1.jspx and Page2.jspx.
The 'Page1.jspx' contains a button named 'GO' which has a action pointing/that will navigate to 'Page2.jspx'.

The user requests for Page1.jspx, the contents of the Page1 are rendered to the browser (Url: http://localhost:8989/Sample/faces/Page1.jspx)
When the user clicks on the Page1's 'GO' button, still the URL is Url: http://localhost:8989/Sample/faces/Page1.jspx, but the required navigation information is added in the postData().

Here, for processing, we are passing the URL along with the postData, but some how the http connection is not able to read the PostData contents properly.
Hence the new request results in the Page1 itself.

 

Thanks,

Navaneeth

New Developer
Posts: 60
Registered: ‎01-16-2009
My Device: Not Specified

Re: BrowserFieldDemo : Post methods are not working

I have read some threads having the issue of 'viewState' in ASP.net. I think, JSF also uses the concept of 'ViewState', how this issue can be resolved for other applications that uses the 'ViewState' (other than ASP.NET).

 

Thanks,

Navaneeth

BlackBerry Development Advisor
Posts: 15,885
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: BrowserFieldDemo : Post methods are not working

[ Edited ]
Can you provide links to sample pages or post the code for page 1?  Are you making use of JavaScript?  If so, please verify that it has been enabled within the browser field.
Message Edited by MSohm on 02-25-2009 09:19 AM
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.