Skip to content

Instantly share code, notes, and snippets.

View charri's full-sized avatar

Thomas Charriere charri

View GitHub Profile
@charri
charri / MsTe - MVVM.md
Last active August 29, 2015 14:13
MsTe - MVVM

Largely based on the model–view–controller pattern (MVC), MVVM is a specific implementation targeted at UI development platforms which support event-driven programming, specifically Windows Presentation Foundation (WPF) and Silverlight on the .NET platforms using XAML and .NET languages.

MVVM facilitates a clear separation of the development of the graphical user interface (either as markup language or GUI code) from the development of the business logic or back end logic known as the model (also known as the data model to distinguish it from the view model).

@charri
charri / MsTe - FaultContract.md
Last active August 29, 2015 14:13
MsTe - FaultContract

MsTe - FaultContract

By default, the details of unexpected exceptions are not sent to the client to prevent details of the service implementation from escaping the secure boundary of the service. FaultContract provides a way to describe faults in a contract and mark certain types of exceptions as appropriate for transmission to the client. FaultException provides the run-time mechanism for sending faults to consumers.

@charri
charri / CompB - Abstract Syntax - Visitor.md
Last active August 29, 2015 14:13
CompB - Abstract Syntax - Visitor

CompB - Abstract Syntax - Visitor

@charri
charri / CompB - Parser - Rekursiver Abstieg.md
Created January 7, 2015 13:04
CompB - Parser - Rekursiver Abstieg

Grammatik

A ::= xCB
B ::= z
B ::= Ax
C ::= yBz
C ::= ε

Beispiel

@charri
charri / Inte - Servlet - WebFilter.md
Last active August 29, 2015 14:12
Inte - Servlet - WebFilter

The following example registers a filter for the URL pattern /admin:

@WebFilter("/admin")
public class MyFilter implements Filter {
    // implements Filter's methods here...
} 

Apply a filter for all URLs:

@WebFilter("/*")
@charri
charri / Inte - JSF - Ajax.md
Created January 6, 2015 11:19
Inte - JSF - Ajax
<f:ajax execute="input-component-name" render="output-component-name" />
  • A Collection that identifies a list of components to be executed on the server. If a literal is specified, it must be a space-delimited String of component identifiers and/or one of the keywords. If not specified, the default value is @this.
  • If the action of the commandLink/commandButton specifies a parameter and the method does not require any further infomation then @this for the execute is fine.
  • If the action of the commandLink/commandButton however does not specify a parameter and the requires values from the current form: use @form

Execute and Render Keywords

@charri
charri / Inte - JSF - Immediate.md
Last active August 29, 2015 14:12
Inte - JSF - Immediate

The immediate attribute can be used to achieve the following effects:

  • Allow a commandLink or commandButton to navigate the user to another page without processing any data currently in input fields of the current screen. In particular, this allows navigation to occur even when there are currently validation errors. A "cancel" button typically falls into this category.
  • Allow a commandLink or commandButton to trigger back-end logic while ignoring validation for some of the fields on the screen. This is a more general version of the item above.
  • Make one or more input components "high priority" for validation, so that if any of these are invalid then validation is not performed for any "low-priority" input components in the same page. This can reduce the number of error messages shown.
@charri
charri / Inte - JSF - Rendered
Created January 6, 2015 10:51
Inte - JSF - Rendered
Inte - JSF - Rendered
@charri
charri / InTe - JSF - Validation
Last active August 29, 2015 14:12
InTe - JSF - Validation
InTe - JSF - Validation