Hi Francisco,
The best way to best detect whether JavaScript is being used or not is
to intercepting your HTTP response using web-debugger like fiddler. You
can download it from the link below:
http://www.fiddler2.com/fiddler2/
In your case, I believe it could have happened that though Trinidad
doesn't use JavaScript, some components might still use some redundant
JavaScript calls - could be a minor bug.
Could you please tell me the version of Trinidad jars you are using?
Also, Please find my answers for your questions inline.
Thanks
Mamallan
Francisco Mardones wrote:
Hi,
I'm facing problems to post forms in Basic XHTML browsers (modern
blackberries and desktop browsers work fine).
I noticed form submission invokes a javascript function, even though
according the docs I should NOT get any javascript:
-----------start snippet-----------------
"...it supports mobile browsers that support Basic XHTML or XHTML
Mobile Profile. WAP 2.0 phone browsers are included in this category.
Because of the hardware performance limitation, Trinidad does not
download or use JavaScript library on such devices.
The following list shows the examples of Basic XHTML mobile browsers.
(snip)
* RIM BlackBerry Browser 4.2 ~ 4.5"
-----------end snippet-----------------
I can see the generated code isn't xhtml, and also I see a lot of
javascript (and particularly to submit the form, using "onclick"
event), so I'm suspecting Trinidad is not detecting properly which
browser is accessing. The User Agent for the mobile is
"BlackBerry7100i/4.1.0 Profile/MIDP-2.0 Configuration/CLDC-1.1
VendorID/103"
My questions are:
1) How I can debug which browser is detecting?
Use following EL:
#{requestContext.agent.agentName}
#{requestContext.agent.agentVersion}
#{requestContext.agent.platformName}
2) Is there any way to enforce code generation to basic xhtml?
No, Trinidad has predefine rules which is not configurable.
3) Can I extend and/or add a new 'renderer' profile in Trinidad?
(notice my browser is 4.1, and the doc says at least support 4.2 and
above, so maybe is defaulting wrongly given mine is older...) (as you
can imagine after long tests now I'm facing the "wild guessing" phase :P )
No
Many Thanks
Francisco