Created
January 28, 2015 15:50
-
-
Save zeromancer1972/adf411ca500c1075fdd1 to your computer and use it in GitHub Desktop.
ccDocActions_DE
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
<?xml version="1.0" encoding="UTF-8"?> | |
<xp:view | |
xmlns:xp="http://www.ibm.com/xsp/core"> | |
<xp:div> | |
<xp:button | |
value="Speichern" | |
id="button1" | |
rendered="#{javascript:currentDocument.isEditable()}"> | |
<xp:eventHandler | |
event="onclick" | |
submit="true" | |
refreshMode="complete"> | |
<xp:this.action> | |
<xp:saveDocument | |
var="document1"></xp:saveDocument> | |
</xp:this.action> | |
</xp:eventHandler> | |
</xp:button> | |
<xp:button | |
id="button2" | |
rendered="#{javascript:currentDocument.isEditable()}"> | |
<xp:this.value><![CDATA[Abschließen]]></xp:this.value> | |
<xp:eventHandler | |
event="onclick" | |
submit="true" | |
refreshMode="complete"> | |
<xp:this.action> | |
<xp:actionGroup> | |
<xp:saveDocument | |
var="document1"></xp:saveDocument> | |
<xp:executeScript> | |
<xp:this.script><![CDATA[#{javascript:return "close"}]]></xp:this.script> | |
</xp:executeScript> | |
</xp:actionGroup> | |
</xp:this.action> | |
</xp:eventHandler> | |
</xp:button> | |
<xp:button | |
value="Löschen" | |
id="button5" | |
rendered="#{javascript:currentDocument.isEditable()}"> | |
<xp:eventHandler | |
event="onclick" | |
submit="true" | |
refreshMode="complete"> | |
<xp:this.action> | |
<xp:actionGroup> | |
<xp:deleteDocument | |
name="" | |
message="Dokument wirklich löschen?" | |
var="document1"> | |
</xp:deleteDocument> | |
<xp:executeScript> | |
<xp:this.script><![CDATA[#{javascript:return "close"}]]></xp:this.script> | |
</xp:executeScript> | |
</xp:actionGroup> | |
</xp:this.action> | |
</xp:eventHandler> | |
</xp:button> | |
<xp:button | |
value="Bearbeiten" | |
id="button3" | |
rendered="#{javascript:!currentDocument.isEditable()}"> | |
<xp:eventHandler | |
event="onclick" | |
submit="true" | |
refreshMode="complete"> | |
<xp:this.action> | |
<xp:changeDocumentMode mode="edit"></xp:changeDocumentMode> | |
</xp:this.action> | |
</xp:eventHandler> | |
</xp:button> | |
<xp:button | |
value="Abbrechen" | |
id="button4"> | |
<xp:eventHandler | |
event="onclick" | |
submit="true" | |
refreshMode="complete" | |
immediate="true"> | |
<xp:this.action><![CDATA[#{javascript:return "close"}]]></xp:this.action> | |
</xp:eventHandler> | |
</xp:button> | |
</xp:div> | |
<xp:br></xp:br> | |
</xp:view> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment