generated from cuioss/cui-java-module-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
375 additions
and
370 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
352 changes: 178 additions & 174 deletions
352
...trap/src/main/resources/META-INF/resources/cui-bootstrap-composite/editableDataList.xhtml
Large diffs are not rendered by default.
Oops, something went wrong.
98 changes: 49 additions & 49 deletions
98
...src/main/resources/META-INF/resources/cui-bootstrap-composite/lazyLoadingTextFilter.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,79 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:composite="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap" | ||
xmlns:cui-internal="https://cuioss.de/jsf/internal"> | ||
xmlns:composite="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:boot="https://cuioss.de/jsf/bootstrap" | ||
xmlns:cui-internal="https://cuioss.de/jsf/internal"> | ||
|
||
<!-- INTERFACE --> | ||
<composite:interface | ||
shortDescription="Renders a text input to be used for filtering the result. See taglib for more details."> | ||
<composite:attribute name="styleClass" type="java.lang.String" | ||
required="false" | ||
shortDescription="Additional css-classes to be applied to the list." /> | ||
required="false" | ||
shortDescription="Additional css-classes to be applied to the list."/> | ||
<composite:attribute name="style" type="java.lang.String" | ||
required="false" | ||
shortDescription="Additional style-attribute to be applied to the list." /> | ||
required="false" | ||
shortDescription="Additional style-attribute to be applied to the list."/> | ||
<composite:attribute name="searchAction" required="true" | ||
shortDescription="ActionListener method to be invoked on change of text input." | ||
method-signature="void action()" /> | ||
shortDescription="ActionListener method to be invoked on change of text input." | ||
method-signature="void action()"/> | ||
<composite:attribute name="clearFilterAction" required="false" | ||
shortDescription="ActionListener method to be invoked on click of reset filter." | ||
method-signature="void clearFilter()" /> | ||
shortDescription="ActionListener method to be invoked on click of reset filter." | ||
method-signature="void clearFilter()"/> | ||
<composite:attribute name="value" type="java.lang.String" | ||
required="true" shortDescription="To store the filter text." /> | ||
required="true" shortDescription="To store the filter text."/> | ||
<composite:attribute name="update" type="java.lang.String" | ||
required="true" | ||
shortDescription="The id of the lazy loading content." /> | ||
required="true" | ||
shortDescription="The id of the lazy loading content."/> | ||
<composite:attribute name="labelKey" type="java.lang.String" | ||
required="false" | ||
shortDescription="The key of the filter input label." /> | ||
required="false" | ||
shortDescription="The key of the filter input label."/> | ||
<composite:attribute name="labelValue" type="java.io.Serializable" | ||
required="false" | ||
shortDescription="The value of the filter input label." /> | ||
required="false" | ||
shortDescription="The value of the filter input label."/> | ||
<composite:attribute name="placeholderKey" type="java.lang.String" | ||
required="false" default="cc.textfilter.input.placeholder" | ||
shortDescription="The key of the filter input placeholder." /> | ||
required="false" default="cc.textfilter.input.placeholder" | ||
shortDescription="The key of the filter input placeholder."/> | ||
<composite:attribute name="placeholderValue" | ||
type="java.io.Serializable" required="false" | ||
shortDescription="The value of the filter input placeholder." /> | ||
type="java.io.Serializable" required="false" | ||
shortDescription="The value of the filter input placeholder."/> | ||
<composite:attribute name="layoutMode" type="java.lang.String" | ||
required="false" default="plain" | ||
shortDescription="The default mode for the labeledContainer." /> | ||
required="false" default="plain" | ||
shortDescription="The default mode for the labeledContainer."/> | ||
</composite:interface> | ||
|
||
<!-- IMPLEMENTATION --> | ||
<composite:implementation> | ||
<cui-boot:labeledContainer placeholderKey="#{cc.attrs.placeholderKey}" | ||
placeholderValue="#{cc.attrs.placeholderValue}" | ||
labelKey="#{cc.attrs.labelKey}" | ||
labelValue="#{cc.attrs.labelValue}" | ||
layoutMode="#{cc.attrs.layoutMode}" id="filter" | ||
styleClass="#{cc.attrs.styleClass}" style="#{cc.attrs.style}"> | ||
<boot:labeledContainer placeholderKey="#{cc.attrs.placeholderKey}" | ||
placeholderValue="#{cc.attrs.placeholderValue}" | ||
labelKey="#{cc.attrs.labelKey}" | ||
labelValue="#{cc.attrs.labelValue}" | ||
layoutMode="#{cc.attrs.layoutMode}" id="filter" | ||
styleClass="#{cc.attrs.styleClass}" style="#{cc.attrs.style}"> | ||
<h:inputText id="input" | ||
styleClass="inputBlockSelector form-control" | ||
autocomplete="off" value="#{cc.attrs.value}"> | ||
styleClass="inputBlockSelector form-control" | ||
autocomplete="off" value="#{cc.attrs.value}"> | ||
<cui-internal:typewatch wait="800" captureLength="1" | ||
listener="#{cc.attrs.searchAction}" process="@this" | ||
update="#{cc.attrs.update}" /> | ||
listener="#{cc.attrs.searchAction}" process="@this" | ||
update="#{cc.attrs.update}"/> | ||
</h:inputText> | ||
<f:facet name="append"> | ||
<cui-boot:commandButton id="resetFilter" icon="cui-icon-remove_2" | ||
titleKey="cc.textfilter.input.clear" immediate="true" | ||
rendered="#{not empty cc.attrs.clearFilterAction}" | ||
actionListener="#{cc.attrs.clearFilterAction}"> | ||
<boot:commandButton id="resetFilter" icon="cui-icon-remove_2" | ||
titleKey="cc.textfilter.input.clear" immediate="true" | ||
rendered="#{not empty cc.attrs.clearFilterAction}" | ||
actionListener="#{cc.attrs.clearFilterAction}"> | ||
<p:ajax update="@composite:filter" | ||
oncomplete="jQuery('.hidden-command-button').click();" /> | ||
</cui-boot:commandButton> | ||
oncomplete="jQuery('.hidden-command-button').click();"/> | ||
</boot:commandButton> | ||
</f:facet> | ||
</cui-boot:labeledContainer> | ||
</boot:labeledContainer> | ||
<p:commandLink actionListener="#{cc.attrs.searchAction}" | ||
style="display:none" id="submitButton" | ||
styleClass="hidden-command-button" update="#{cc.attrs.update}" | ||
process="@this @composite:filter" /> | ||
<p:defaultCommand target="submitButton" /> | ||
<p:focus context="@component:filter" for="@composite:filter:input" /> | ||
style="display:none" id="submitButton" | ||
styleClass="hidden-command-button" update="#{cc.attrs.update}" | ||
process="@this @composite:filter"/> | ||
<p:defaultCommand target="submitButton"/> | ||
<p:focus context="@component:filter" for="@composite:filter:input"/> | ||
</composite:implementation> | ||
</html> |
48 changes: 24 additions & 24 deletions
48
...tstrap/src/main/resources/META-INF/resources/cui-bootstrap-composite/listItemWidget.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:composite="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:cui-core="https://cuioss.de/jsf/core" | ||
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap" | ||
xmlns:cui-composite="http://xmlns.jcp.org/jsf/composite/cui-bootstrap-composite"> | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:composite="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:cui-core="https://cuioss.de/jsf/core" | ||
xmlns:boot="https://cuioss.de/jsf/bootstrap" | ||
xmlns:boot-composite="http://xmlns.jcp.org/jsf/composite/cui-bootstrap-composite"> | ||
|
||
<composite:interface | ||
shortDescription="Display a excerpt of list items at the patient overview page"> | ||
<composite:attribute name="model" | ||
type="de.cuioss.jsf.api.components.model.widget.ListItemWidgetModel" | ||
shortDescription="Model to be displayed in this widget" | ||
required="true" /> | ||
type="de.cuioss.jsf.api.components.model.widget.ListItemWidgetModel" | ||
shortDescription="Model to be displayed in this widget" | ||
required="true"/> | ||
</composite:interface> | ||
|
||
<composite:implementation> | ||
<cui-composite:widget model="#{cc.attrs.model}"> | ||
<boot-composite:widget model="#{cc.attrs.model}"> | ||
<ul class="list-group widget-list"> | ||
<ui:repeat id="items" var="item" | ||
value="#{cc.attrs.model.items}"> | ||
value="#{cc.attrs.model.items}"> | ||
<li class="list-group-item"> | ||
<cui-composite:listItemWidgetEntry | ||
<boot-composite:listItemWidgetEntry | ||
model="#{item}"> | ||
<f:facet name="timestamp"> | ||
<h:outputText value="#{item.timestampValue}" | ||
rendered="#{not empty item.timestampValue}" /> | ||
rendered="#{not empty item.timestampValue}"/> | ||
<h:outputText value="#{item.timestamp}" | ||
rendered="#{empty item.timestampValue}"> | ||
<cui-core:convertDateTime type="both" /> | ||
rendered="#{empty item.timestampValue}"> | ||
<cui-core:convertDateTime type="both"/> | ||
</h:outputText> | ||
</f:facet> | ||
</cui-composite:listItemWidgetEntry></li> | ||
</boot-composite:listItemWidgetEntry></li> | ||
</ui:repeat> | ||
</ul> | ||
<h:outputText value="#{cc.attrs.model.noItemsMessage}" | ||
rendered="#{empty cc.attrs.model.items}" /> | ||
<cui-boot:button id="moreAvail" | ||
outcome="#{cc.attrs.model.coreAction}" | ||
rendered="#{cc.attrs.model.renderShowMoreButton}" | ||
state="default" style="width:100%;" | ||
labelKey="message.info.more.entries.available" /> | ||
</cui-composite:widget> | ||
rendered="#{empty cc.attrs.model.items}"/> | ||
<boot:button id="moreAvail" | ||
outcome="#{cc.attrs.model.coreAction}" | ||
rendered="#{cc.attrs.model.renderShowMoreButton}" | ||
state="default" style="width:100%;" | ||
labelKey="message.info.more.entries.available"/> | ||
</boot-composite:widget> | ||
</composite:implementation> | ||
|
||
</html> |
46 changes: 23 additions & 23 deletions
46
...p/src/main/resources/META-INF/resources/cui-bootstrap-composite/listItemWidgetEntry.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 22 additions & 22 deletions
44
.../src/main/resources/META-INF/resources/cui-bootstrap-composite/requestResultContent.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
<!DOCTYPE html> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:composite="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:cui-boot="https://cuioss.de/jsf/bootstrap"> | ||
xmlns:composite="http://xmlns.jcp.org/jsf/composite" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:boot="https://cuioss.de/jsf/bootstrap"> | ||
|
||
<!-- INTERFACE --> | ||
<composite:interface | ||
shortDescription="Renders a content or a notification box if the content could not be retrieved. See taglib for more details."> | ||
<composite:attribute name="notificationBoxStyleClass" | ||
type="java.lang.String" required="false" | ||
shortDescription="Additional css-classes to be applied to the list for the notification box." /> | ||
type="java.lang.String" required="false" | ||
shortDescription="Additional css-classes to be applied to the list for the notification box."/> | ||
<composite:attribute name="notificationBoxStyle" | ||
type="java.lang.String" required="false" | ||
shortDescription="Additional style-attribute to be applied to the list for the notification box." /> | ||
type="java.lang.String" required="false" | ||
shortDescription="Additional style-attribute to be applied to the list for the notification box."/> | ||
<composite:attribute name="renderAsRow" type="boolean" | ||
shortDescription="Render the notification box as a row" /> | ||
shortDescription="Render the notification box as a row"/> | ||
<composite:attribute name="model" | ||
type="de.cuioss.jsf.api.components.model.resultContent.ResultContent" | ||
shortDescription="Model to be displayed" required="true" /> | ||
type="de.cuioss.jsf.api.components.model.resultContent.ResultContent" | ||
shortDescription="Model to be displayed" required="true"/> | ||
|
||
</composite:interface> | ||
|
||
<!-- IMPLEMENTATION --> | ||
<composite:implementation> | ||
<ui:fragment | ||
rendered="#{cc.attrs.renderAsRow and not empty cc.attrs.model.notificationBoxMessages}"> | ||
<cui-boot:row> | ||
<cui-boot:column size="12"> | ||
<boot:row> | ||
<boot:column size="12"> | ||
<ui:repeat | ||
value="#{cc.attrs.model.notificationBoxMessages}" | ||
var="message"> | ||
<cui-boot:notificationBox | ||
<boot:notificationBox | ||
state="#{message.notificationBoxState}" | ||
contentValue="#{message.notificationBoxValue}" | ||
style="#{cc.attrs.notificationBoxStyle}" | ||
styleClass="#{cc.attrs.notificationBoxStyleClass}" /> | ||
styleClass="#{cc.attrs.notificationBoxStyleClass}"/> | ||
</ui:repeat> | ||
</cui-boot:column> | ||
</cui-boot:row> | ||
</boot:column> | ||
</boot:row> | ||
</ui:fragment> | ||
<ui:fragment | ||
rendered="#{!cc.attrs.renderAsRow and not empty cc.attrs.model.notificationBoxMessages}"> | ||
<ui:repeat value="#{cc.attrs.model.notificationBoxMessages}" | ||
var="message"> | ||
<cui-boot:notificationBox state="#{message.notificationBoxState}" | ||
contentValue="#{message.notificationBoxValue}" | ||
style="#{cc.attrs.notificationBoxStyle}" | ||
styleClass="#{cc.attrs.notificationBoxStyleClass}" /> | ||
var="message"> | ||
<boot:notificationBox state="#{message.notificationBoxState}" | ||
contentValue="#{message.notificationBoxValue}" | ||
style="#{cc.attrs.notificationBoxStyle}" | ||
styleClass="#{cc.attrs.notificationBoxStyleClass}"/> | ||
</ui:repeat> | ||
</ui:fragment> | ||
<ui:fragment rendered="#{cc.attrs.model.renderContent}"> | ||
<composite:insertChildren /> | ||
<composite:insertChildren/> | ||
</ui:fragment> | ||
</composite:implementation> | ||
</html> |
Oops, something went wrong.