Can you use all Apache tomahawk features if you are not using Apache MyFaces?
I found that some Tomahawk features don't work when I'm not using MyFaces. t:inputDate in particular.
The problem was javascript conflict. t:inputDate generated javasript conflicted with the js which was already present in the project
<script>jQuery.noConflict();</script>
this line solved issue
Related
Using PHP Compatibility Checker, got this warning
INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
is there any way to handle this warning?
It all might depend on how your code is using this. PHP.net highly discourages using this feature. If you are using an older library that uses this value. Then you should look at updating the library and see if they've fixed it. If the library or your code that is just accessing this value (e.g. with ini_get('mbstring.func_overload')), then that's not really a problem, though the compatibility parser will still call it out as an issue. This was called out to the Symfony maintainers, and they just dismissed it.
We are currently running bootstrap 2.3 in our application of over 400 html files. We decided the best way to upgrade to twitter bootstrap 3.0 without having to change all of our html files would be to include a .less file that references all the changes from 2.3 to 3.0. For Example: span6 in 3.0 is now col-md-6. Does anyone have a file that embeds all the old properties into a .less file that we could reference?
Actually, changing over isn't that bad. I have done this on a couple sites using find/sed (I'm on a Mac) by simply updating the old classes to the new. It will get the bulk of the upgrade done quickly.
Use this page for reference on which classes you need to update: http://upgrade-bootstrap.bootply.com/
I'm new to rails and I'm actually reading a tutorial on it but unfortunately it's a very old one (2007). They talk about temporary scaffolding which is a one-line addition to a controller for example:
class StoryController < ApplicationController
scaffold :story
end
I tried it in my project but I'be got this error:
Routing Error
No route matches [GET] "/story"
Try running rake routes for more information on available routes.
I thought maybe it's because I'm running a different rails version, maybe the syntax have changed... So my question is how do we perform temporary scaffolding on rails 3.
I previously had to set config.assets.enabled to false because I had a route error.
I'm running under:
Rails 3.2.13
Windows 8 pro 32-bits
I'm very surprised to see this, because I wasn't around when Rails had this scaffold method you show. I've never heard of it before.
I searched the API documentation (and Rails source) and there is nothing like this now. Instead, there is the rails generate scaffold command. You can find more information at http://guides.rubyonrails.org/command_line.html.
As a suggestion: If you want to use a version of Rails from 2007, the tutorial you have now is fine. If you want to use a modern version, find a modern tutorial. The Ruby on Rails Guides site is good.
I followed the steps in BalusC's answer at JSF 2.0 File upload. The only step in which I went differently is the Tomahawk upload link in the answer. The link is broken, so I got tomahawk-1.1.11 from another place. When I try to start Tomcat 7.0.14 from Eclipse I get the following error:
java.lang.NoSuchMethodError:
javax.servlet.ServletContext.getServletRegistrations()Ljava/util/Map;
And Tomcat doesn't start. Any ideas? Also, the answer in the link is from March. Any developments with file upload in JSF 2?
The /WEB-INF/lib of your web project is cluttered with servletcontainer-specific libraries of a container of a different make/version, such as servlet-api.jar, javaee.jar, etc. Get rid of them.
The mentioned method is introduced in Servlet 3.0 and this error indicates that you've libraries of a Servlet 2.5 container or older in your /WEB-INF/lib. If you have included them to circumvent Eclipse's compilation errors on javax.servlet.* imports, then you should have solved it differently. Namely, by integrating the servletcontainer which you're actually going to use (which is Tomcat 7 in your case) as target runtime in Eclipse and associating the project with it.
Please note that this problem is not related to JSF 2.0. You got an exception pointing to a method of the javax.servlet package, not javax.faces package.
See also:
How do I import the javax.servlet API in my Eclipse project?
I'm using jgGrid 3.5 in my ASP.NET application. I would like to upgrade it to the new 3.6.
Is it enough just to replace the jqGrid JS file? Or are there any other changes I need to make in my code?
Now that 3.6 has been officially released the upgrade is easy - just drop the files from the js and css directories into your application. Of course you should then re-test your app to make sure nothing was changed/broken, just in case...
I just replaced, dev files from latest:
http://github.com/tonytomov/jqGrid/commits/jqgrid36
be aware of file: jquery.jqGrid.js which loads modules.
besides, jQgrid uses jQuery 1.3.2 + jQuery UI 1.7.2