Skip to content

Commit

Permalink
Merge pull request #6 from TheCoder4eu/master
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
jepsar authored Mar 7, 2018
2 parents 5edc337 + d896794 commit eb44a25
Show file tree
Hide file tree
Showing 99 changed files with 208 additions and 171 deletions.
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
4 changes: 2 additions & 2 deletions gradleResources/staticResources/css/bsf.css
Original file line number Diff line number Diff line change
Expand Up @@ -405,13 +405,13 @@ label.bf-fatal { color: red; }
}

/* Collapsible panels */
.panel-heading a:after {
.panel-heading a.panel-title-link:after {
font-family:'Glyphicons Halflings';
content:"\e114";
float: right;
color: grey;
}
.panel-heading a.collapsed:after {
.panel-heading a.panel-title-link.collapsed:after {
content:"\e080";
}
a.panel-title-link {
Expand Down
4 changes: 2 additions & 2 deletions gradleResources/staticResources/less/bf/customizations.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

// Panels
/* Collapsible panels */
.panel-heading a:after {
.panel-heading a.panel-title-link:after {
font-family:'Glyphicons Halflings';
content:"\e114";
float: right;
color: grey;
}
.panel-heading a.collapsed:after {
.panel-heading a.panel-title-link.collapsed:after {
content:"\e080";
}
a.panel-title-link {
Expand Down
2 changes: 1 addition & 1 deletion mavenResources/META-INF/resources/bsf/css/bsf.css

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IHasTooltip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import net.bootsfaces.component.tabView.TabView;
import net.bootsfaces.expressions.ExpressionResolver;
import net.bootsfaces.render.CoreRenderer;
import net.bootsfaces.utils.BsfUtils;

public class AJAXRenderer extends CoreRenderer {
private static final Logger LOGGER = Logger.getLogger("net.bootsfaces.component.ajax.AJAXRenderer");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/component/alert/Alert.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IHasTooltip;
import net.bootsfaces.render.IResponsive;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import javax.faces.render.FacesRenderer;

import net.bootsfaces.render.CoreRenderer;
import net.bootsfaces.render.Responsive;
import net.bootsfaces.render.Tooltip;

/** This class generates the HTML code of <b:alert />. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/component/badge/Badge.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.utils.BsfUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
import net.bootsfaces.render.CoreInputRenderer;

import net.bootsfaces.render.CoreRenderer;
import net.bootsfaces.render.CoreInputRenderer;
import net.bootsfaces.render.IResponsive;
import net.bootsfaces.render.Responsive;
import net.bootsfaces.render.Tooltip;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/component/button/Button.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.html.HtmlOutcomeTargetButton;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IHasTooltip;
import net.bootsfaces.render.IResponsive;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@
*/
package net.bootsfaces.component.button;

import javax.faces.FacesException;
import javax.faces.application.ConfigurableNavigationHandler;
import javax.faces.application.NavigationCase;
import javax.faces.application.ProjectStage;
import javax.faces.component.*;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

import javax.faces.FacesException;
import javax.faces.application.ConfigurableNavigationHandler;
import javax.faces.application.NavigationCase;
import javax.faces.application.ProjectStage;
import javax.faces.component.UIComponent;
import javax.faces.component.UIParameter;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IResponsive;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IResponsive;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/component/canvas/Canvas.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIOutput;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.render.IResponsive;
import net.bootsfaces.render.Tooltip;
import net.bootsfaces.utils.BsfUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import net.bootsfaces.component.carouselControl.CarouselControlRenderer;
import net.bootsfaces.component.carouselItem.CarouselItem;
import net.bootsfaces.render.CoreRenderer;
import net.bootsfaces.render.Responsive;
import net.bootsfaces.render.Tooltip;

/** This class generates the HTML code of <b:carousel />. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import javax.faces.component.FacesComponent;
import javax.faces.component.UICommand;
import javax.faces.component.behavior.ClientBehaviorHolder;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.component.ajax.IAJAXComponent;
import net.bootsfaces.render.Tooltip;
import net.bootsfaces.utils.BsfUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import javax.faces.component.FacesComponent;
import javax.faces.component.UICommand;
import javax.faces.component.behavior.ClientBehaviorHolder;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.component.ajax.IAJAXComponent;
import net.bootsfaces.render.Tooltip;
import net.bootsfaces.utils.BsfUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import javax.faces.component.FacesComponent;
import javax.faces.component.UICommand;
import javax.faces.component.behavior.ClientBehaviorHolder;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.component.ajax.IAJAXComponent;
import net.bootsfaces.render.Tooltip;
import net.bootsfaces.utils.BsfUtils;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/net/bootsfaces/component/column/Column.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIOutput;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IHasTooltip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.behavior.ClientBehaviorHolder;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.component.ajax.IAJAXComponent;
import net.bootsfaces.component.ajax.IAJAXComponent2;
import net.bootsfaces.listeners.AddResourcesListener;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIOutput;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.Tooltip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,15 @@
import java.util.Map;

import javax.el.ValueExpression;
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.component.UIViewRoot;
import javax.faces.component.behavior.ClientBehaviorHolder;
import javax.faces.context.FacesContext;
import javax.faces.event.FacesEvent;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.component.ajax.IAJAXComponent;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.utils.BsfUtils;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

package net.bootsfaces.component.dataTableColumn;

import javax.faces.component.*;
import net.bootsfaces.utils.BsfUtils;
import javax.faces.component.UIColumn;

/** This class holds the attributes of <b:dataTableColumn />. */
public abstract class DataTableColumnCore extends UIColumn {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IHasTooltip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponentBase;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.IHasTooltip;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
rw.writeText(value, null);
}
// Encode Caret
if ((!isFlyOutMenu) && (!(dropMenu.getParent() instanceof DropMenu))) {
if ((!isFlyOutMenu) && (!isDropMenuChild(dropMenu))) {
rw.startElement("b", dropMenu);
rw.writeAttribute("class", "caret", "class");
rw.endElement("b");
Expand All @@ -134,6 +134,16 @@ public void encodeBegin(FacesContext context, UIComponent component) throws IOEx
encodeDropMenuStart(dropMenu, rw, "dtL" + clientId);
}

private boolean isDropMenuChild(UIComponent component) {
UIComponent parent = component.getParent();
if (parent != null) {
while (parent.getClass().getSimpleName().equals("UIRepeat")) {
parent = parent.getParent();
}
}
return parent instanceof DropMenu;
}

private String determineHtmlTag(UIComponent component, boolean isFlyOutMenu) {
String htmlTag = "span";
if (isFlyOutMenu) {
Expand Down Expand Up @@ -178,7 +188,7 @@ private String getStyleClass(DropMenu dropMenu, boolean isFlyOutMenu) {
if (isFlyOutMenu) {
userClass += "dropdown-submenu" + " ";
return userClass;
} else if (dropMenu.getParent() instanceof DropMenu) {
} else if (isDropMenuChild(dropMenu)) {
userClass += "dropdown-submenu" + " ";
}
return (userClass + "drop" + direction).trim();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.context.FacesContext;
import javax.faces.render.Renderer;

import net.bootsfaces.C;
import net.bootsfaces.utils.BsfUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIOutput;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.IContentDisabled;
import net.bootsfaces.render.Tooltip;
Expand Down
1 change: 0 additions & 1 deletion src/main/java/net/bootsfaces/component/focus/Focus.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import javax.el.ValueExpression;
import javax.faces.FacesException;
import javax.faces.component.FacesComponent;
import javax.faces.component.UIComponent;
import javax.faces.component.UIComponentBase;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/net/bootsfaces/component/form/FormCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@

package net.bootsfaces.component.form;

import javax.faces.component.*;
import net.bootsfaces.utils.BsfUtils;
import javax.faces.component.UIForm;

/** This class holds the attributes of <b:form />. */
public abstract class FormCore extends UIForm {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package net.bootsfaces.component.formGroup;

import javax.faces.component.FacesComponent;

import net.bootsfaces.C;
import net.bootsfaces.component.row.Row;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@
package net.bootsfaces.component.formGroup;

import java.io.IOException;

import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.context.ResponseWriter;
import javax.faces.render.FacesRenderer;

import net.bootsfaces.C;
import net.bootsfaces.render.CoreRenderer;
import net.bootsfaces.render.IContentDisabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import javax.faces.application.ResourceDependencies;
import javax.faces.application.ResourceDependency;
import javax.faces.component.FacesComponent;
import net.bootsfaces.C;

import net.bootsfaces.C;
import net.bootsfaces.listeners.AddResourcesListener;
import net.bootsfaces.render.Tooltip;
import net.bootsfaces.utils.BsfUtils;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/net/bootsfaces/component/growl/Growl.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import javax.el.ValueExpression;
import javax.faces.component.FacesComponent;

import net.bootsfaces.C;
import net.bootsfaces.component.UIMessagesBase;
import net.bootsfaces.listeners.AddResourcesListener;
Expand Down
Loading

0 comments on commit eb44a25

Please sign in to comment.