Seema, just a minor correction with my statement/ "BB5.0 which is
Webkit based" , /It is BB6.0 which is a Webkit based browser.
- Mamallan
On 9/22/2010 4:39 AM, mamallan.utha...@oracle.com wrote:
Hi Seema,
Please find my answers inline. The problem you are facing will happen
only in BB 4.7 to BB5.0. I hope you won't have this issue with either
BB5.0 which is Webkit based or other BB browsers with version less
than 4.7 as they are considered as basic HTML browsers. You can start
your development targeting these browser while we come up with a patch
for BB 4.7 to BB5.0.
Thanks
Mamallan
On 9/22/2010 3:49 AM, Seema Richard (UST, IND) wrote:
Mamallan,
I have 2 questions here.
1. Will this problem occur only for button clicks or for other
components also?
No, basically, it is not a button related issue, on button click we
simply execute a few JavaScripts to set parameters like source. The
problem here is JS code somehow fails to set the necessary parameters,
so this problem can occurs in any component that can submit a page.
2. Will setting the source parameter as a hidden variable always
serve as a work around?
There are components which requires parameters other than source, and
also even if you set the source as a hidden parameter, how can you set
the value? The value of the source hidden parameter is supposed to be
set dynamically at the client side thru JavaScript, .
Thanks,
Seema
________________________________
From: mamallan.utha...@oracle.com [mailto:mamallan.utha...@oracle.com]
Sent: Wed 9/22/2010 3:57 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] Problem using on Blackberry mobile
Hi Seema,
Finally, I reproduced your issue once I used our Trinidad's official
JSF1.2 release, unfortunately, there is no workaround as BB's JS engine
simply crashes becoz of some JavaScript code in Trinidad. Will create a
JIRA to fix this problem in our next release for JSF1.2. Hopefully, our
next release (don't know when) will be soon enough to resume your work
in BB..
Thanks
Mamallan
On 9/21/2010 10:50 PM, Seema Richard (UST, IND) wrote:
Mamallan,
Yes, we are already using MDS 4.1.4 with our 5.0 emulator. The 'Support
Javascript' checkbox is selected in the browser configuration
options of
the emulator. I configured fiddler and got the source code for the
first.xhtml page. This page is called twice - once when it is first
accessed and after the button is clicked. The html source for the first
access is in first.html and the html source for the second access is in
first_new.html.
Since we use facelets, we have to change some configurations to use jsp
pages instead. I will try that also today and let you know.
Thanks a lot for your help.
-Seema
-----Original Message-----
From: mamallan.utha...@oracle.com [mailto:mamallan.utha...@oracle.com]
Sent: Wednesday, September 22, 2010 12:44 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] Problem using on Blackberry mobile
Hi Seema,
You will find the download link for MDS 4.1.4 at the bottom of this
webpage:
http://na.blackberry.com/eng/developers/browserdev/devtoolsdownloads.jsp
Thanks
Mamallan
On 9/21/2010 11:51 AM, mamallan.utha...@oracle.com wrote:
Hi Seema,
Hmm... seems like doctype may not be the only problem. Have you enable
JavaScript (JS) in your BB browser? I believe Trinidad pages will
prompt you to enable JavaScript if a browser has disabled JS. Also,
please check the compatibly of your MDS and emulator, your* 5.0
emulator needs MDS version 4.1.4.* I could recall an user facing an
similar issue becoz of MDS incompatibility.
If you are still having issues, please check if you could run
jspx/jsp pages without any problem. And also please send me the
source(html) code of your page, you can install a web debugger like
fiddler to view the source code.
Thanks
Mamallan
On 9/21/2010 5:18 AM, Seema Richard (UST, IND) wrote:
Mamallan,
I tried removing the doc type statement from the pages. But the
output
is still the same, the source parameter is missing.
[9/21/10 16:50:33:223 GMT+05:30] 00000029 SystemOut O key is
javax.faces.ViewState val is !j_id1:j_id5
[9/21/10 16:50:33:223 GMT+05:30] 00000029 SystemOut O key is
input1
val is Jithesh
[9/21/10 16:50:33:239 GMT+05:30] 00000029 SystemOut O key is
org.apache.myfaces.trinidad.faces.FORM val is j_id2
[9/21/10 16:50:33:239 GMT+05:30] 00000029 SystemOut O key is
_noJavaScript val is false
[9/21/10 16:50:33:239 GMT+05:30] 00000029 SystemOut O key is
button1
val is press me
Here is the sample code now.
<code>
<tr:document xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<tr:form>
<tr:panelPage>
<tr:inputText label="Your name" id="input1"
value="#{simpleBackingBean.name}" required="true"/>
<tr:commandButton id="button1" text="press me"
action="#{simpleBackingBean.test}" />
</tr:panelPage>
</tr:form>
</tr:document>
</code>
Please let me know if I'm missing anything.
Thanks,
Seema
-----Original Message-----
From: mamallan.utha...@oracle.com
[mailto:mamallan.utha...@oracle.com] Sent: Tuesday, September 21,
2010 1:31 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] Problem using on Blackberry mobile
Hi Seema,
Thanks for sending your sample page, and I successfully reproduced
your issue. The problem lies in the doctype code (refer below) of
your sample
page. Trinidad's document will render the docytype for you, so by
adding
an additional doctype in your code, you are sending two doctypes to
the BB browser which couldn't seem to handle two doctypes. You can
simply fix this issue by removing the doctype code from your sample
page.
/<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
/
Thanks
Mamallan
On 9/18/2010 10:02 PM, Seema Richard (UST, IND) wrote:
Mamallan,
I was able to reproduce the problem using a simple page which just
has
a
Trinidad input text and a Trinidad command button. There is no
javascript used anywhere. I'm printing the request parameters using
a
phase listener.
Here is the output when I submit the form using a normal browser.
key is javax.faces.ViewState val is !1
key is input1 val is seema
key is org.apache.myfaces.trinidad.faces.FORM val is j_id2
key is _noJavaScript val is false
key is button1 val is press me
key is source val is button1
Here is the output when I submit the form using the blackberry
browser.
My backing bean method is not called in this case.
key is javax.faces.ViewState val is !3
key is input1 val is seema
key is org.apache.myfaces.trinidad.faces.FORM val is j_id2
key is _noJavaScript val is false
key is button1 val is press me
You can see that the request parameter named 'source' is missing in
the
case of Blackberry. Here is the code for my xhtml page.
<code>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<tr:document xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad"
xmlns:trh="http://myfaces.apache.org/trinidad/html">
<tr:form>
<tr:panelPage>
<tr:inputText label="Your name" id="input1"
value="#{simpleBackingBean.name}" required="true"/>
<tr:commandButton id="button1" text="press me"
action="#{simpleBackingBean.test}" />
</tr:panelPage>
</tr:form>
</tr:document>
</code>
Thanks,
Seema
-----Original Message-----
From: mamallan.utha...@oracle.com
[mailto:mamallan.utha...@oracle.com]
Sent: Thursday, September 16, 2010 8:13 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] Problem using on Blackberry mobile
Hi Seema,
Are you adding any JavaScript (JS) to your application? If not, can
you
still reproduce this issue with a very simple page containing only a
button? The source parameter you are referring is added by
Trinidad's JS, so if JS added in your app breaks (happens in rare
occasions) the BB's JS engine, you may face this issue.
Thanks
Mamallan
On 9/15/2010 6:50 PM, Seema Richard (UST, IND) wrote:
Hi Mamallan,
Our requirement is to support Blackberry OS 5.0 We used the
following simulator to check the application- Simulator
Storm2 9550-Generic OS 5.0.0.713
http://na.blackberry.com/eng/developers/resources/simulators.jsp
We tried with one or two other simulators as well, but the same
issue
persists.
Thanks,
Seema
-----Original Message-----
From: mamallan.utha...@oracle.com
[mailto:mamallan.utha...@oracle.com]
Sent: Thursday, September 16, 2010 12:00 AM
To: MyFaces Discussion
Subject: Re: [Trinidad] Problem using on Blackberry mobile
Hi Seema,
What Blackberry device are you testing? is it new Blackberry 6.0?
Thanks
Mamallan
On 9/15/2010 8:49 AM, Seema Richard (UST, IND) wrote:
Hi,
We are using MyFaces 1.2 with Facelets and Trinidad for our web
application which needs to be supported in multiple mobile devices
like
iPhone and Blackberry. We have a command button whose action is
bound
to
a backing bean method. When clicking this button, the backing bean
method is not getting called in the case of Blackberry. On
analyzing
the
request parameters, we found that a request parameters called
'source'
with value as the component id was passed in the case of other
browsers.
But this was not getting passed in the case of Blackberry. When we
added
a hidden parameter by the same name and passed this value, the
backing
bean method was correctly called in the case of Blackberry also.
Is
this
a known issue in MyFaces/Trinidad? Is there a work around for this
by
changing any settings or configurations?
Thanks,
Seema