My Custom Liferay Theme looking weird - liferay-6

I am using Liferay 6.1 with IDE as Eclipse Juno version .
I am having a question with developing new Theme in Liferay .
I followed the following below steps to do so
From IDE , Selected New Liferay Project with name as "Test" and enabled Radio Button Theme
Basic Structure for Test-theme got created .
Under _diffs folder , i copied 4 folders namely css , images , js and templates as it is
deployed it using ant "deploy" option
Then finally under Manage -- > Page -->Look and Feel OPtion , selected Test as Theame and saved that
I have represented the above steps in the below screen shot .
What i was expecting is that the Page should be displayed as same as Classic Theme as i did not made any
changes to any of the folders (css , images , js , templates) , but unfortunately the is looking weird .
Please see the screen shot the page displayed using Test Theme .

Its look like it is missing css.just extend the classic theme in build.xml
<project name="Fao-theme" basedir="." default="deploy">
<import file="../build-common-theme.xml" />
<property name="theme.parent" value="classic" />
</project>
check
http://javadispute.com/content/how-add-custom-css-liferay

Related

Eclipse Plugin Development: Custom intro screen doesnt works on deployed version

I have created a custom plugin which replaces the existing welcome page(Intro page) to the page I wanted. I used the below link to make it work on eclipse run configuration:-
https://help.eclipse.org/neon/topic/org.eclipse.platform.doc.isv/guide/ua_intro_minimal.htm?cp=2_0_19_0_1_2
I had to edit the plugin.xml of Eclipse SDK to make it work. Below are the steps:-
<extension
point="org.eclipse.ui.intro">
<introProductBinding
introId="org.eclipse.ui.intro.universal"
productId="org.eclipse.sdk.ide">
</introProductBinding>
</extension>
// Change the introId to "org.eclipse.intro.minimal" so that the extension code looks like this.
<extension
point="org.eclipse.ui.intro">
<introProductBinding
introId="org.eclipse.intro.minimal"
productId="org.eclipse.sdk.ide">
</introProductBinding>
</extension>
The above configuration works well when I am running the plugin as project. However when I try to export the plugin as jar file and import in Eclipse SDK then the default welcome page is shown on load. Theres no way I found where I can specify to pick the Intro screen from the new plugin added.
Does any user faced the similiar issue?

Migration from eclipse 3.6 to eclipse 4.6 for Rcp applicaton : not able render part on workbench

I am trying to soft migrate our Rcp application from E3.x(indigo) application to E4.6(Neon1) ,
trying following approach..
I have added Application.e4xmi file in our perspective plugin,modelled upto trimmed window.(in plugin extention org.eclipse.core.runtime.products->applicationXMI point to Application.e4xmi)).
In my exisiting project exporer plugin , i have added fragment.e4xmi referring the Application.e4xmi's trimmed window id for the project explorer part.
also in plugin.xml->extension i have added fragment.e4xmi under org.eclipse.e4.workbench.model.
Problem is, I am not able to see the part(project explorer) on workbench which is added in fragment.e4xmi

JSP Pages are not updated for any change in eclipse

I m new to JBOSS and eclipse. I installed jboss-as-7.1.0.Final and eclipse Indigo version. When I create a new JSP page and then run it, the page can be seen in the browser when JBoss has started & running. But when I change some thing in JSP page and copy the page and past it into the deployment path (for me: /home/aash/App/jboss/jboss-as-7.1.0.Final/standalone/deployments/TestingJBoss.war), the change can't be seen.Even if I delete the jsp file from that location (and clean the browser), still the browser shows the page. But when the JBoss stops, and when it is restarted again, server gives 404 error as expected. When I again copy the relavant JSP page into above mentioned location, then the page can be seen.
I run & stop the JBoss from the Eclipse IDE. Can any one let me know where the problem exists or any source where I can find a solution.
Is there any good justification of replacing the jsp in deployments folder manually?
Anyway follow these steps and you should be good
Replace the jsp wirh the new one at correct location. (make sure the path is correct).
Is your project structure like , during build , jsps are copied from some projects to war webcontent ? Just be sure that your new jsp is updated everywhere.
After that , in eclipse , right click server and select publish. Then try access the jsp.
By default, when you develop for JBoss 7 using Eclipse, changes to Java class and JSP don’t get automatically published. You have to right click the web module in the Servers view and select Full Publish for the changes to take effect. This can be really painful after a while. I found these steps to fix the problems.
Publish Java Class Changes
In Eclipse, double click JBoss server in the Servers view. Under Publishing select Automatically publish when resource changes. Under Application reload behavior, select Customize application reload behavior. Enter the following regular expression pattern.
\.jar$|\.class$ //this pattern is for trigger of redeployment.
Your session will be lost if application is redeployed. so ignore to put JSP or classs file patterns
Save changes and restart the server. Now, when you save a Java file, system will automatically restart the application so that the changes take effect.
Publish JSP Changes
This one takes a little more work. Essentially, JBoss 7.1.1 has a defect where changes to JSP file are not picked up by the server even in development mode.
First, we need to enable JSP debug mode. Open the server’s standalone.xml. Locate the line:
<subsystem xmlns="urn:jboss:domain:web:1.1" ...>
Below that add these lines:
<configuration>
<jsp-configuration development="true"/>
</configuration>
Save and close the file.
Download the fixed jboss-as-web-7.1.1.Final-RECOMPILE.jar file from Datafilehost.com. Save the file in jboss-as-7.1.1.Final/modules/org/jboss/as/web/main folder.
In the same folder there is a module.xml file. Open it. Comment out the buggy file and use the new file as shown below.
<!--
<resource-root path="jboss-as-web-7.1.1.Final.jar"/>
-->
<resource-root path="jboss-as-web-7.1.1.Final-RECOMPILE.jar"/>
Save and close the file.
Information taken from this Mobiarch blog article.

I can not set an icon in a Button using Vaadin plugin in Eclipse

I m using Vaadin plugin 6.8 in Eclipse Juno under Win 7. I installed Apache 7 (zip version) and configured with Eclipse. I created a Vaadin project and just added these lines:
Button b = new Button("Miboton"); // create button
b.setIcon(new ThemeResource("user.png")); // set image to button
mainWindow.addComponent(b);//add button to main window
But when I run the project the image is not desplayed because (I suposse) apache cant find the relative path to the image. I put the image in every posible directory: WEB-INF, src, under the package, etc. But still no desplayed properly. I also tried making a foo.war file and deploying it in Apache directly but that neither worked. Any guess?!?! Thanks in advance!
And image of eclipse code and the result is here
You'll need to serve up the images from the VAADIN directory. See the Book of Vaadin concerning Themes and Resources

Why cant we see classes folder of a Dynamic Web Application from Eclipse IDE?

I have created a New --> Dynamic Web Project from Eclipse IDE ,
Modified the Java Build Path for default Output folder as
Ramesh/WebContent/WEB-INF/classes
But now , Why cant we see classes folder of a Dynamic Web Application from Eclipse IDE ??
Please see the screen shot of it .
http://tinypic.com/view.php?pic=2yjvx3d&s=7
Because that's how the project explorer's filters are configured by default.
Click on the little triangle at the top right of the project explorer view, then select "Customize View...", and uncheck "Java output folders", and you'll see it.