Skip to content

Commit 6056ddc

Browse files
committed
added outcome=@none to suppress the generation of JavaScript code
1 parent b961b88 commit 6056ddc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/main/java/net/bootsfaces/component/Button.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ private String encodeClick(FacesContext context, Map<String, Object> attrs) {
203203
String fragment = asString(attrs.get(FRAGMENT));
204204
String outcome = getOutcome();
205205

206+
if (outcome==null ||outcome.equals("")||outcome.equals("@none"))
207+
return js;
208+
206209
if (canOutcomeBeRendered(attrs, fragment, outcome)) {
207210
outcome = (outcome == null) ? context.getViewRoot().getViewId() : outcome;
208211

0 commit comments

Comments
 (0)