I have used primefaces signature component which can be used readily by tablet or touch screen , but I need a device for my desktop computer which must support primefaces signature component
Related
The scenario is a mobile page developed with JSF and Primeface Mobile. I want to navigate in the same xhtml page between multiple pages (have a look at: JSF Primefaces Mobile navigation). After upgrading PrimeFaces from version 6.1 to 7.0 org.primefaces.mobile.application.MobileNavigationHandler does NOT exist anymore. What do i need to use instead? The migration guide "6.2 to 7.0" (https://github.com/primefaces/primefaces/wiki/Migration-Guide) doesnt help me: "[...] Mobile has been removed in favor of responsive features. [...]"
There is NO migration path for you other than rewriting your code.
PrimeFaces Mobile was completely removed in 7.0
See this blog post from Primefaces: https://www.primefaces.org/primefaces-6-2-roadmap/
PF Mobile is a renderkit for the existing components however we’ve
just realized that we have to maintain two different sets at the same
time so decided to deprecate PF Mobile and focus on the responsiveness
of the standard renderkit. So in 6.2, mobile will be deprecated and
removed in 7.0.
Have a look at my migrated fork: https://github.com/djmj/primefaces-mobile.
I extracted the mobile components from PrimeFaces 6.1 and adapted them to PrimeFaces 7.0 as a separate library. I did testing with mobile showcase and will test it in our own application and production the next days.
I made enterprise application in Java ( NetBeans 8.2 ) that has 2 EJB modules and one web application which is based on JSF 2.2. The application is working in my NetBeans version, but when I transfer this application on another pc and deploy it there, it shows some errors.
The place where problem is looks like this:
<h:selectManyListbox class = "selectManyListBox" id="parkiralista" value="#{pregled.odabranaParkiralista}" >
<f:ajax event="valueChange" execute="#this" render="" />
<f:selectItems value="#{pregled.popisParkiralista}"
var="p"
itemLabel="#{p.adresa.concat('; ').concat(p.naziv).concat('; ').concat(p.id.toString())}"
itemValue="#{p}"/>
</h:selectManyListbox>
So this itemValue="#{p}"/> is object of type Parkiralista and I don't have any custom converter to convert it back into object. And this works on my pc even though I do not have a custom converter. But when I tranfer app on another pc and deploy it there it doesn't work and NetBeans shows this error: java.lang.String cannot be cast to org.foi.nwtis.ivicelig.ejb.eb.Parkiralista. So my question is why this works on my first pc and not on my second pc . Does new version of JSF supports itemLabel with object and without converter?
Thanks.
Does new version of JSF supports itemLabel with object and without converter?
That's correct. Since JSF 2.3, an explicit converter is not required for <h:selectManyXxx> components bound to a List<T>. This was implemented as part of spec issue 1422.
Apparently, you was actually running Java EE 8 / JSF 2.3 in one environment and Java EE 7 / JSF 2.2 in another environment. This is not a good way of developing applications. You should develop against the intended minimum supported version, in all development environments.
Primefaces supports both web and mobile version. There is some minor difference in coding the two version.
Is there anyway to use primefaces for both WEB and MOBILE version? I mean single code base which supports both MOBILE and WEB version using primefaces? (something similar to the applications built by bootstrap)
Primefaces mobile is built on jquery mobile which works on phone, tablet, or desktop. So if you stick with primefaces mobile it should work on all devices.
To make it clear, Primefaces created some PrimeFaces Premium Themes and Layouts like (Sentinel, Spark, Ronin and all other on http://www.primefaces.org/themes). In my opinion that's great (good looking / pixel perfect), those are responsive layouts but not all components are responsive. You can check responsive components on responsive.xhtml
I have an android 4.2.2 phone and bluetooth gamepad. I want to be able to interface with the gamepad using my custom app. That app is not for distribution, its only for my personal use. I could have used this app (called sixaxis controller) to interface with gamepad, but it requires, that Bluetooth must be turned off to operate, while I need an RFCOMM Bluetooth connection with another device in my app.
How can I have both requirements? I had tried Sixaxis Compatibility Checker and it works, so its possible somehow.
I tried to google for it, but did not found anything specific. There was a piece of advice to use NDK to interface with Bluez, that is base for Android BT API. On other side I found, that in Android Jelly Bean, Bluez was switched for Bluedroid, and its possible to build full custom android rom image with Bluez instead of Bluedroid.
I had an idea, that I could somehow compile Bluez for Android as library with NDK. Then I may put it in my app and use it. Is it right? If so, how can I do it?
We are developing a J2ME application and sometimes we face constraints while working with the default lcdui library. Whenever we want some extra in the UI, the only option is to work with canvas which is not so easy. Now we are thinking to use LWUIT as UI library instead of ludui but having some question before starting -
Is LWUIT mature enough to be used in a enterprise J2ME application?
Can we mix LWUIT and LCDUI in same application ?
In my point of view. lwuit is mature enough to be used in enterprise applications. It's still in permanent development and it's progressing fast.
Yes you can mix both of them. If you use an lwuit form you can only add lwuit components and vice versa. It should be possible to implement and draw you own container objects (canvas style).
LWUIT is mature enough to be used as enterprise application and though J2ME has some limited classes when we talk about JDK but still its mature enough to build many applications