Magento jQuery file is not calling in head section on login page on server - magento-1.8

I am working on Magento 1.8 version. In login page, jQuery file is not called in head section.
Any suggestion?

Related

redirect to default (home) page after login in jsf2.2 and primefaces

Using JSf2.2 with primefaces 3.4, could not redirect to home page which is my default url of application.
if I am at the one of the view(page) in my application using JSF mvc .when i stop the server and restart it and enter the existing url (or the url where my app at the moment) then my app redirect to login page ,which is done by spring security .now when i logged in again getting redirected to the view from where i came to the login page.I have checked the javax.faces.STATE_SAVING_METHOD in my web.xml it is mentioned client .what is the problem it should be redirect to defaultUrl page i.e home.xhtml . Do jsf store the previous view if we do not get properly logged out ?or some other issue kindly tell me
This is not related to JSF / Primefaces as already indicated. Its due to spring security configuration.
You can control this behavior by setting either true / false for 'always-use-default-target' attribute of tag.
Example 1:
In this example after successfull login it would always invoke /success action, irrespective of which page you initiated the action
<form-login default-target-url="/success" always-use-default-target="true" />
Example 2:
In this example after successfull login it would show the page where you initiated the action.
<form-login default-target-url="/success" always-use-default-target="false" />

Adding omnifaces project gives incorrect url at redirect

Using omnifaces 1.6 in a jsf project with primefaces 3.5 on glassfish 3.1.2
FacesContext.getCurrentInstance().getExternalContext().redirect("localhost/my-project/views/index.jsf");
Using this code will redirect to a page with url localhost/my-project/
This issue is when omnifaces is added without omnifaces the function works correctly with no problem
I don't know what you expect but when you redirect to localhost/my-project/ then a redirect to a page with url localhost/my-project/ seems like the correct behaviour.
Maybe you missed the port (e.g. redirect to localhost:8080/my-project/) but in general it is not intended to redirect to a URL containing localhost but to a specific page (e.g. redirect to index.jsf or index.xhtml). You don't even need the webapp context (i.e. my-project), you can just redirect to your "main page" like this:
FacesContext.getCurrentInstance().getExternalContext().redirect("home.xhtml");

chrome extension css on localhost

I'm working on a chrome extension. The content has a stylesheet content.css. When I run the extension on an external site, it applies the style sheet. When I open a page on my "hello world" page on localhost, it applies the content.css styles initially but the styles go away if I refresh the page and I cannot get them back unless I refresh the extenstion.
Can't figure out why this is but I need to get this resolved.
Thanks,
Ken

Integerate JSP into Joomla as iframe

I have a Joomla (nginx + mysql) site running as UI and some JSP (tomcat + mysql) handling calculation logic.
I want to integrate JSP pages in to Joomla as iframe. I succeeded doing that, but the question is:
How do I make JSP pages NOT visitable to public but only visitable via Joomla site?
For example,
Joomla site is under mydomain.com/Joomla
JSP pages are under mydomain.com/JSP
When a user visit mydomain.com/JSP in the browser, the user cannot see the JSP page(see error or empty page instead).
But when the user open mydomain.com/Joomla in the browser and go to the page that contains the JSP site within an iframe, the user can see the JSP page there.
I am thinking about changing folder/file owner and permission. Am I on the right track? How should I approach exactly?
Thanks,
Milo
You need to change the way you're currently workin on.
1) Use composent JUMI to create virtual Joomla component based on your scripts.
2) On each page add this code at the very beginning of each of your scripts:
<?php
defined( '_JEXEC' ) or die ('Restricted Access');
?>
It'll prevent users for loading directly your scripts without any active Joomla session.

Incorrect URL in browser using JSF 2.0

I'm creating login form using JSF 2.0. Below is the detailed description.
When I run the form, I get the login.xhtml
Once I get successfully logged in, I get page as temp1.xhtml and when I click the link (that I have created on temp1.xhtml page) I get temp2.xhtml page.
All is working perfectly... but the problem of URL which is described below...
When I successfully logged in, the browser still shows URL as login.xhtml instead if temp1.xhtml
when I click on the link that is on temp1.xhtml, I get temp2.xhtml page but the URL says temp1.xhtml instead of temp2.xhtml
Could any one help me to show the correct URL as I have to filter these pages and as URL is INCORRECT my filter is useless...
Please note that I am not using configuration file for directing the pages...
You have to add:
?faces-redirect=true in the end of the view that you are directing.
e.g:
return "mypage?faces-redirect=true"
you can also directly use it in the .xhtml files for example on page temp1.xhtml page in link use action="temp2?faces-redirect=true"

Resources