Why is primefaces Fileupload not Visible? - firefox

The fileupload Control for is not visible in the browser(rendered though).
When I viewed the source code from the browser, it was rendered like this..
<script type="text/javascript">
jQuery(function() {widget_exeupload1 = new PrimeFaces.widget.Uploader('exeupload1', {uploader:'/jsfscrb/javax.faces.resource/fileupload/uploadify.swf.xhtml?ln=primefaces&v=2.2.1',script:'/jsfscrb/home.xhtml',cancelImg:'/jsfscrb/javax.faces.resource/fileupload/cancel.png.xhtml?ln=primefaces&v=2.2.1',formId:'j_idt225',fileDataName:'exeupload1_file',multi:false,auto:true,inputFileId:'exeupload1_file',jsessionid:'f99f510153df31f57a310fb8de8e',update:'dlist1 resmsg',fileDesc:'Resource Files'});});
</script>
I use the Fedora Core 3, NetBeans 6.8, Mojarra 2.0.4 with glassfish server v3. Above said behavior was observed with Firefox 2.0.0.20 and also with Opera 10.11.
I am wondering where might the problem be and honestly couldn't guess it. Every little help to identify and/or solve the problem is very welcome please!!!
Where could the problem be?
FedoraCore 3 graphic packages
Primefaces
Firefox or Opera

PrimeFaces 2.2.x fileupload uses flash so depending on flash plugin, it might have issues. Try 3.0's new fileupload which uses HTML5 with graceful degradation. No flash is required with 3.0.
http://www.primefaces.org/showcase/ui/file/upload/basic.xhtml

Related

JSF 2.0 with Primefaces 4.0 BPM/IE Ajax rendring issue

I am using JSF2.0 with Primefaces4.0 for now i had Ajax's rendering trouble on each application i developed with using this technology.
The problem is, when Deploy my application on actual server (not localhost), IBM Process Server v8.5. Any of the component is not rendering itself against any event (only in IE) with Google chrome and Mozilla Firefox it works fine.
This problem is still unresolved for now. If any one experienced that, please share
For quick recovery and use Ajax in my application i am thinking to shift on RichFaces. any one experience on RichFaces and Ajax's behavior on IE?

kendo ui web package only supports html

i have recently heard about the kendo ui ..and explore it deeply so that how it is beneficial for me ...what i come know is that they provide some package like
kendo ui for web
kendo ui for mobile
kendo ui dataviz
server side wrapper(for jsp, php, asp)
what's confusing me is that ..i have downloaded the kendo ui web package form the site and now it did'nt whether it will support my code written in jsp or i'll have to rewrite it in html...
please can anyone explain me can i use kendo ui web for developing site in jsp....!!
thanks in advance..
Kendo is a javascript framework. But it has server side wrappers for different server side languages. Here is the one for JSP:
http://www.kendoui.com/server-wrappers/jsp.aspx

Integrating jQuery with Struts2.0.9

How can I integrating jQuery with Struts 2.0.9? Here I can not upgrade my Struts2 version. I want to leverage jQuery ajax functionality with Struts2. Not able to figure out how can I pass a valuestack object to jQuery.
I guess you can use either struts2-jquery-plugin
Struts2 does not care of you call its action by Normal page submit or by ajax calling using Jquery or any other javascript framework
Once you call you action value-stack and other critical parameters of Struts2 will be available at your disposal.
Still your question is not clear what is your requirements, more details can pour more valuable inputs
Though the question has been answered, there are some significant issues when we speak about struts2 jQuery plugin 2.5.0.
It is based on jQuery 1.4 which is outdated, multiple issues have been closed from 1.4 to 1.7
Multiple browser support issues especially with IE (if you want to have browser compatibility).
I found it much more easy to directly use jQuery with Struts2. As mentioned, calling via Ajax or non ajax has doesnt make any difference to Struts2 framework, request is handled in the same way.
If you want to use Struts2 jQuery Plugin you can either work on the source code and upgrade the jQuery to 1.7 and accordingly change newer API.

Safari calls my controller twice when loading the JSP

Doesn't happen in Firefox. I deactivated the extensions. didnt help. Version is 5.0.1.
Any ideas?
Leppie (above) was right...for me at least. I had a <img src=""/> in my JSP that caused Safari to load the page twice...which in turned called saveToken twice in my Struts Action and subsequently caused isTokenValid to return false when it shouldn't have.
The simple solution is to fix the IMG element by referencing an image in the src tag.
Enjoy,
Randy

Twitter #anywhere API problems in firefox only

I've implemented a simple example of the Twitter #anywhere api to display user hovercards. The example works great in Internet Explorer and Chrome. However, whenever I the page loads in Firefox I receive the following message in an alert window:
To set up #anywhere, please provide a
client ID
Surely if the results are correct in Chrome and IE then everything must be setup correctly?
Here is a simple code block which I've tested recreates the problem in Firefox only:
<script src="http://platform.twitter.com/anywhere.js?id=WMg5kRMlIw807lRTsktnNQ&v=1" type="text/javascript" >
</script>
<script type="text/javascript">
twttr.anywhere(onAnywhereLoad);
function onAnywhereLoad(twitter) {
twitter().hovercards();
});
</script>
This problem is showing up in various forums and mailing lists. I'm seeing it on Firefox 3.0.5 (but not 3.6). Looks like Twitter didn't do enough testing before springing this one on the world.
(Later: Try clearing hour cookies. Yeah, that's a very 90's thing to have to do.)

Resources