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

Reply
New Developer
navan1983
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
Please use plain text.
New Developer
navan1983
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

Please use plain text.
New Developer
navan1983
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

Please use plain text.
Administrator
MSohm
Posts: 14,434
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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.
Found a bug? Report it using Issue Tracker
Please use plain text.