Open GoogleCodeExporter opened 9 years ago
Im not sure if it is a good idea to use the head tag in a portlet, maybe you
should
try to extract the Ressources from Head tag and include this into your global
portal
theme.
Original comment by johgep
on 23 Feb 2010 at 10:07
Original comment by johgep
on 23 Feb 2010 at 10:08
i m getting the "$ is not defined" javascript errors
do i need to include more jars for jquery
And i also want to implement jquery grid in my application then also i face the
same
problem.
Original comment by vishnupr...@gmail.com
on 23 Feb 2010 at 12:08
The basic problem is that you cannot modify the header of the webpage delivered
to the browser from within
your portlet, thus the defined JavaScript includes are not processed (they live
in the head tag). I'll see if we can
get around this as soon as possible
Original comment by rene.gie...@gmail.com
on 23 Feb 2010 at 12:28
I had included the sj:head tag in the head.jsp of my portal.My application uses
the
rogers theme for the appearence of webpage.Even the i am not getting the
calendar
image
Original comment by vishnupr...@gmail.com
on 5 Mar 2010 at 10:23
can you set an icon manuelly via attribute buttonImage?
Original comment by johgep
on 5 Mar 2010 at 10:32
in my jsp i had included sj:head in head tag and datepicker in s:fom tag
and u can find them below
<sj:head useJqGridPlugin="true" jquerytheme="smoothness" jqueryui="true" />
<sj:datepicker name="mydate" label="SELECT A DATE" minDate="+0"
buttonImage="/strutsselfcare/resources/images/btn_calen.gif" ></sj:datepicker>
Original comment by vishnupr...@gmail.com
on 5 Mar 2010 at 10:46
even though i had added the image in buttonImage i am not getting the image
Original comment by vishnupr...@gmail.com
on 5 Mar 2010 at 10:48
hi....please help me with my problem
i m using sturts 2 jquery in struts 2 portlets and it was not working please
help me
Original comment by vishnupr...@gmail.com
on 17 Mar 2010 at 10:21
Issue 111 has been merged into this issue.
Original comment by johgep
on 17 Mar 2010 at 4:07
Issue 109 has been merged into this issue.
Original comment by johgep
on 17 Mar 2010 at 4:07
did this blog post helps you out?
http://s2o-bcn.blogspot.com/2010/03/integrate-struts2-jquery-and-portlets.html
Original comment by johgep
on 17 Mar 2010 at 4:08
can you please try out version 2.1.1?
because with loading required sources on demand
and the new scriptPath Attribute it should better
work in portal environments.
I think it is recommend to include the output of an
sj:head tag into your theme page, and change the scriptPath
and ressources to static ressources.
Sample:
<script type="text/javascript" src="/static/struts/js/base/jquery-
1.4.2.js"></script>
<script type="text/javascript"
src="/static/struts/js/base/jquery.ui.core.js"></script>
<script type="text/javascript"
src="/static/struts/js/plugins/jquery.subscribe.js"></script>
<link rel="stylesheet" href="/static/themes/mytheme/jquery-ui.css"
type="text/css"/>
<script type="text/javascript"
src="/static/struts/js/struts2/jquery.struts2.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$.struts2_jquery.debug = false;
$.scriptPath = "/static/struts/";
$.struts2_jquery.minSuffix = "";
$.struts2_jquery.defaultIndicator="myDefaultIndicator";
$.ajaxSettings.traditional = true;
$.ajaxSetup ({
cache: false
});
});
</script>
Original comment by johgep
on 27 May 2010 at 5:42
Original comment by johgep
on 27 May 2010 at 5:42
Now i am implementing the web application in jboss portal server.I had tried
with
struts2-jquery-plugin 1.8.3. When i am executing a jsp in tomcat its working
fine
and the calendar button is displayed. but when implementing the same jsp in
portal
environment it results to the following errors.
1.$jgrid is undefined
2.$(document).ready is not a function
3.$("<div class=\"jquery-ui-themeswitcher\"><div
id=\"themeGallery\"><ul></ul></div></div>") is null
Source File: http://172.16.176.140:8090/portal-core/js/selfcare/themeswitcher.js
Please help me out with this issue....
Original comment by vishnupr...@gmail.com
on 7 Jun 2010 at 12:03
I am not sure, but it sounds you don't have the sj:head tag in your JSP.
Does you include the jquery files? Have you read Comment 13?
Original comment by johgep
on 8 Jun 2010 at 1:04
The problem may be due to the Struts-Config.xml file. Change your filter to all
"/*" to work on. Else you will not be able to load the JS and CSS. This happens
to my proj.
Original comment by das.arin...@gmail.com
on 6 Apr 2011 at 11:36
I am Using Strut2 jquery plugin 3.2.1 with struts 2.2.3.1 and also spring
plugin of struts 2.2.3.1, but when i use jquery plugin without spring as shown
in showcase project,it works but when i provide dependency to my action using
spring it show the message in browser that resources of jquery cannot find from
server in safari .
Original comment by alam.anw...@gmail.com
on 20 Jan 2012 at 4:32
@alam.anwar1980
I use the s2j plugin also in some projects with the spring plugin without
problems.
Original comment by johgep
on 20 Jan 2012 at 9:10
Thank You Sir, My Problem was that filter was "*.action" in web.xml file when I
changed it to "/*" It now works . Thanks For Your Kind Support.
Original comment by alam.anw...@gmail.com
on 21 Jan 2012 at 7:30
Hi,
I am facing the same issue.
I m using the 2.3.1.1 version of struts & 3.2.0 plugin of struts2-jquery-plugin.
Filter mapping in web.xml is:
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
My jsp is:
<sj:datepicker id = "date_from" name="dateFrom" label="Date From"
displayFormat="mm/dd/yy" value="today" buttonImage="true"></sj:datepicker>
But the label & a textfield is getting displayed. The button image & calendar
is not getting displayed.
Original comment by shikhasd...@gmail.com
on 23 Jan 2012 at 4:09
Please check if
* you have included the rights jars
* you have included the <sj:head /> tag in your JSP
* if you have any javascript errors in your browser javascript console
Original comment by johgep
on 23 Jan 2012 at 9:30
Hi,
Yes, I didnt include <sj:head> in my jsp. Its working fine now. Thanks :)
Thanks,
Shikha
Original comment by shikhasd...@gmail.com
on 23 Jan 2012 at 10:13
Hello johgep,
I have to know that while using grid plugin, is it possible to perform the server side validation on grid form while adding and editing entries in the grid.In the showcase of grid, validation is client side using editRules.Can I perform input data validation on serverside using validation framework of struts2.For Grid's Form.
Original comment by alam.anw...@gmail.com
on 12 Feb 2012 at 5:04
When SomeOne Has Disabled javascript, is it possible to send the request to
server
using the grid form.IF We Cannot send the request than, is it necessary to have
a server side validation.
Original comment by alam.anw...@gmail.com
on 13 Feb 2012 at 4:52
If JavaScript is disabled in the browser, there is nothing jQuery and thus
struts2-jquery can do for you anymore. You'll have to use standard simple forms
with "naked" Struts 2 tags.
Original comment by rene.gie...@gmail.com
on 13 Feb 2012 at 6:50
Hi johgep,
we can upload the file with <sj:submit /> .It work due to AjaxForm Plugin.
which makes request multipart/formdata automatically.
Can we make Grid's Form Editing Into multipart/formdata automatically as Form
plugin encounter <s:file /> ,it convert it into multipart/formdata.
Original comment by alam.anw...@gmail.com
on 15 Feb 2012 at 6:23
The plugin is very good, hope in the next version to join layout functions
Original comment by taof...@sina.com
on 4 Aug 2012 at 5:22
[deleted comment]
Hi i am using sturts2-Jquery-plugin-3.3.1.jar i my jsp page i am using it for
datepicker field,i am using zebo admin template for my UI,when i include those
css and js in my header i am not able to see datepicker icon,suppose if i take
of that template css and js then i am able to see icon and i can select
date,please give me valuable suggestion to slove this issue,below tags are
added in my jsp page header
<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display" %>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<sj:head />
thanks in advance
Original comment by venu.dhu...@gmail.com
on 23 Apr 2013 at 9:43
Original issue reported on code.google.com by
vishnupr...@gmail.com
on 23 Feb 2010 at 9:52Attachments: