i am using a dojo datepicker in my jsp page (struts2 tags).I am using tomcat 7.0.23.when i run the code i am able to see the datepicker in both firefox and internet explorer but when i deployed the same code on linux server(apache-tomcat-6.0.14) datepicker is visible in firefox but in i.e only label(Start Date/endDate) of datepickers are shown no textfield and calendar icon is shown.I have tried with apache-tomcat-7.0.25 on the server but get the same result.please find below a part of jsp file.
s:form name="summaryForm" action="SummaryTrans">
<sx:datetimepicker name="startDate" label="Start Date" endDate="yesterdayDate" displayFormat="dd-MMM-yy" value="yesterdayDate"/>
<sx:datetimepicker name="endDate" label="End Date" endDate="yesterdayDate" displayFormat="dd-MMM-yy" value="yesterdayDate"/>
Please help...
Make sure you have <sx:head> in your head segment of jsp. That is mandatory.
Related
I installed phpMyadmin-4.5 & mariadb-10.3.13 on iis.
Everything seems fine but when I log into phpMyadmin and click on SQL tab on right upper pane sql-query box is disappeared.
And sql box related css seems not working correctly.
The pane's width is too large.
I googled about the situation like this but couldn't find any clue.
Here's html code of that sql-box element
<textarea tabindex="100" name="sql_query" id="sqlquery" cols="40" rows="30" style="display: none;"></textarea>
Display property is none.
Thats why I think css is malfunctioning.
Any advice would be appreciated.
Thanks.
Environment:
I'm writing a SPA with JSF2.2, Bootsfaces 0.9.1, Primefaces 6.0, JEE7 and Hibernate 5.2 in combination with MySQL 5.7 DB.
What I have:
My SPA has a navbar on the upper part and a specific menu based on the selection of the navbar on the left. On the right side and under the navbar I've my main "content page". Similar to this picture but with the difference that my menu is dynamic:
For updating the content page I'm using AJAX.
Everything around the navigation is working as I expected as long as my content page does not contain a b:carousel!
What I tried to do:
As I mentioned above my SPA and all navigation is working correctly unless I add a b:carousel to a content page.
Please consider following example:
I got 2 content pages. Page 1 contains a single label with some text. Page 2 contains a b:carousel with some images. Page 1 is the welcome page.
As soon as I navigate from page 1 to page 2 nothing happens. I need to completely refresh the whole page to see page 2 and even this is not working everytime.
My main question:
Is there any trick to update the content page with ajax if there's a b:carousel on it?
What am I doing wrong?
EDIT:
I created a sample project on github so you're able to see what I mean. I used Java 1.8, Tomcat 8.0.36 and Netbeans IDE, however the project is a Maven project an should work in eclipse, too.
Project: https://github.com/mweber96/stackoverflow39128418
SPA Approach I partly used: http://www.beyondjava.net/blog/single-page-applications-with-bootsfaces/
This question is related to my previous question: Use ui:repeat with b:carousel?
It's a combination of two bugs:
Your example at GitHub uses PrimeFaces, but it doesn't seem to use a PrimeFaces component. The effect is that PrimeFaces adds some fancy JavaScript to load the missing CSS files dynamically (which is great!), but it doesn't add the PrimeFaces core library, so Mojarra runs into an exception it silently hides. You can fix this by adding a (possibly hidden) PrimeFaces component to your page, by including the PrimeFaces core.js file directly (although I wouldn't recommend that) or - of course - by removing the PrimeFaces dependency if you really don't need it.
BootsFaces relies on the HTML attributes to initialize the carousel. To my surprise, this even works, at least partially. However, to start the sliding automatically, you still need to initialize the JavaScript widget manually. In your case, that's
$("#myCarousel").carousel();
BTW, I suggest you open a bug on our bug tracker to fix the latter point (https://github.com/TheCoder4eu/BootsFaces-OSP/issues). Thanks in advance!
I have successfully loaded WFFM on my local Instance of Sitecore. I have successfully created a Form, I have tested it and everything works perfectly.
I have also successfully been able to render the form using an .ascx web control and placing it in my "main" placeholder. Very happy so far, with one exception.
when I enter the URL of the page where the form is being rendered, my top Navigaton, Left Navigation, Right Navigation, and footer is all a different font then the rest of
my site. I have been able to play with the font sizes of the form, but that does not have any impact on the other placeholders.
I don't know what to do to correct this issue. Any help would be appreciated.
Also the navbar-collapse didn't close in ipad in all page that has form.
Regards,
It might be that the Webform stylesheet is overriding some of your styles. You can view the webform stylesheet under: \sitecore modules\Shell\Web Forms for Marketers\Themes\
By default the default.css stylesheet is used. To start out you can try to remove any font stylings in that stylesheet, to see if that will give better results.
To fix it you might want to add identifiers to the default.css ensuring that it only points to styles inside your allowed placeholder.
I am using JSF1.2 and trying to integrate with PrimeFaces1.1. I added the primefaces-1.1.jar file to my META-INF\lib folder. I also added the namespace to the page with "xmlns:p="http://primefaces.prime.com.tr/ui". The page is working but primefaces components arent rendered. Also eclipse doesnt show me components when I write < p: (ctrl+space). How can I solve this problem ?
Thanks in advance,
Maybe it's a typo, but the jar should be put in WEB-INF/lib instead of META-INF/lib.
I have implemented export to excel feature in struts 2 using apache POI.
It works in IE7 and Firefox on Windows XP.
But does not work in IE6. The pop up dialog to open or save excel does not show up on IE6.
I get no errors or exceptions.
This is the result type.
<action name="exportToExcelRIQueue" class="queuesAction" method="exportToExcelRIQueue">
<result name="export.to.excel" type="stream">
<param name="contentType">application/vnd.ms-excel</param>
<param name="inputName">inputStream</param>
<param name="contentDisposition">attachment; filename="RequiringInstructions.xls"</param>
<param name="bufferSize">1024</param>
</result>
</action>
I found this thread on the Sun Forums discussing issues with downloading attachments in IE. Unfortunately none of them point to a specific cause. You may want to change your contentType from application/vnd.ms-excel to a more generic application/octet-stream and see if that works.
This problem is solved now. Issue with the Custom link tag.
I was using a custom link tag(designed by company as part of UI standard) to invoke the action. Unfortunately this custom tag had issues in IE6.
I have replaced it with html anchor tag <a></a> . And used javascript to submit the struts 2 form.
It works perfectly in IE6. Opens up a pop up dialog to open or save Excel returned from Struts 2 result. :)