I have java web project application, using Angular 1.8.0 and JQuery 1.12.2. It's working fine. Despite the fact that Angular 1.8.0 should maintain JQuery 3.6.0, when I update JQuery to 3.6.0 all that's placed after "command-bar" directive is not shown:
...
<div ng-if="home.showGrid" class="container-fluid ms-font-m">
<command-bar/>
<!-- the next part is not shown -->
<div id="homeGrid" ui-grid="home.gridOptions" ui-grid-save-state ui-grid-auto-resize ui-grid-edit ui-grid-selection ui-grid-pinning ui-grid-resize-columns ui-grid-pagination class="grid"></div>
</div>
...
If I place the div with "homeGrid" id before "command-bar" then it's shown.
Also I've tried to create new AngularJs directive with "<div>Hello</div>" only and empty controller, replaced command bar with it and it's not shown also.
If i'm trying to force Angular to use JQlite with ng-jq it's even worse, template is totally crashed and there are third party components that need JQuery in assets folder anyway.
Please advise what could be the solution and what steps I need to do to find the root of the problem?
Finally found the problem. It seems to me that Angular doesn't correctly recognize the short form of tags. After I changed "<command-bar/>" to "<command-bar></command-bar>" everything worked.
Related
I'm writing a website using Springboot (java) and GSP.
I've managed to get GSP working for the most part, dependencies installing fine, layouts/templates working etc
However when I try and use the <g:form> tag, I get an error:
Tag [form] does not exist. No tag library found for namespace: g
The code I'm using:
<g:form name="myForm" action="/users/register" method="post">
<input type="submit" value="Submit" />
</g:form>
To eliminate the possibility that it's a problem with running gsp entirely, I've tried using the <g:each>....</g:each> tag, and that worked perfectly well.
The grails dependency version I have is 2.5.2
The groovy dependency version I have is 2.4.4
Thanks for any help.
GSP Spring Boot does not support the Form tag library and many other GSP features and is not actively maintained. There are many things to be changed and configured to get the same experience as you get when you use GSP with Grails.
That's why we created Rabbtor. Please see the link for the documentation on what we did, why , and how you can use it.
I am trying to integrate Primefaces 5.2 to a JSF application which has version of 2.0.11-02. I am using IBM WebSphere 8.5.5 as application server. I am trying to use p:calendar in my page but it does not show up.
When I checked from Google Chrome Dev Tools, I noticed that the corresponding input field has no "click" event listener attached to it. In Primefaces Showcase the input fields has "click" event listener so when you click, calendar shows up.
I am also having the same trouble with sorting of datatable. The column has no "click" event listener, so it does not send any request when the header of a sortable column is clicked.
Please help me with that problem.
P.S: The application I am working on was a JSF 1.2 application and were using JWL libraries of IBM. Since I am upgrading the application to JSF 2, I am not able to use that library anymore. That's way I am trying to integrate Primefaces. primefaces-5.2.jar is placed under /WEB-INF/lib and I also still have jsf-ibm.jar, odc-jsf.jar in that directory.
try to create a lib folder out of the meta-inf and PrimeFaces put the library, or you could also try creating a page with the component PrimeFaces calendar to see if it works and put in
<html xmlns:p="http://primefaces.org/ui"</html>
Are you sure that you save your XHTML file with proper extension? If you have deafult settings it would be *.jsp as far as I remember
I'm writing a Jenkins plugin. Right now, I need to get a index.jelly file to know its own URL (which includes a query string). I've tried the command
RP.getReferringURL()
but it seems that this doesn't work in Jenkins Jelly. Also, note that I want to do server-side processing of the url, so I need to get the URL from the jelly.
Relevant code:
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler"
xmlns:d="jelly:define" xmlns:l="/lib/layout"
xmlns:t="/lib/hudson" xmlns:test="/lib/hudson/test"
xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<script type="text/javascript">
${it.processURL(RP.getReferringURL())};
</script>
Thanks.
Finally found the answer on my own. Basically, instead of trying to do this using the jelly (which may or may not be possible), anything you want to do with the url on the java side of the plugin should be done using the Stapler class.
In this case, the command I wanted was:
Stapler.getCurrentRequest().getParameter(PARAMETER_NAME)
I am trying to use placeholders from HTML5 but I am getting a warning when including the taglib:
xmlns:pt="http://xmlns.jcp.org/jsf/passthrough"
The warning is saying it cannot locate the tag library
NLS missing message: CANNOT_FIND_FACELET_TAGLIB in:
org.eclipse.jst.jsf.core.validation.internal.facelet.messages
But when using the following tag anyway
<h:inputText class="box" pt:placeholder="Message"/>
This does actually render the placeholder (when not using eclipse inbuilt browser) so the tag library appears to be there.
I am wondering is there either a way to disable this warning or preferably force eclipse to find the library? Having looked about for a solution I've seen that it may be an issue with JSF Mojarra 2.2 but I can't seem to update it to the latest (2.25 I think) in eclipse.
there is one way to make the warning message disappear.
go to the "problems" tab below your workspace you should see the warning message there right-click and delete.
PS: this doesn't actually solve anything but you will get rid of that warning if its annoying you
The error can be removed by typing xmlns:a="http://xmlns.jcp.org/xml/ns/javaee" instead of xmlns:a="http://xmlns.jcp.org/jsf/passthrough"
because the links have changed and the browser is unable to reach the older link.
I have Eclipse, the Juno release. Just recently I am getting a few JSP errors which aren't valid or I don't care to see. Examples of the errors are below.
The function fn:replace is undefined
Attribute (cellpadding) is obsolete. Its use is discouraged in HTML5 documents.
The function error is not valid, as it working perfectly fine when I run the web application. I simple don't care the HTML5 related obsolete messages. I'd like Eclipse to not display these "errors".
I've tried enabling project specific validations, and turning off the HTML, JSP, & Tag validators, but it made no difference.
Maybe you mean that your project is using using older type of (x)html. If you don't like Eclipse falling by default to HTML5, go to project properties, then Web Content Settings, then in Document Type select the one you use.