PhotoAlbum Application Download Support Developer Guide
Skins:
Resources/Beans Handling
Ajax Miscellaneous
Usage
Tag Information

InplaceInput is a simple input component which displays the current value as outputText and switches to inputText based representation after a defined event to allow editing this value.

You could use two simplest examples below. For the first demo, just click on a label to edit the value and click somewhere outside the component to store this value(Or just press ENTER button).

The simplest InplaceInput

Person Info
Name: click to enter your name
Email: click to enter your email


View Source

The second example has controls for components enabled with showControls attribute. These controls should be used in order to apply a value or cancel editing.

InplaceInput with controls

Person Info
Name: click to enter your name
Email: click to enter your email


View Source

Controls used by inplace could be redefined using controls named facet:

InplaceInput with customized controls

Click here to edit

View Source

Inplace Input could be rendered with span or div elements to display its value. To change default span output, use layout attribute with block value.

The next example shows you Inplace Input component usage in dataTable. Custom event is fired on saving a value used in this example to perform Ajax validation for the value entered.

Note: Inplaces in this example also customized with editEvent attribute.

Perform double click at any price in order to change it.

InplaceInput as table cell editor

Row
Make
Model
Price
1ChevroletCorvette
34939
2ChevroletCorvette
45282
3ChevroletCorvette
19273
4ChevroletCorvette
26775
5ChevroletCorvette
23056
6ChevroletMalibu
28194
7ChevroletMalibu
29787
8ChevroletMalibu
17125
9ChevroletMalibu
48435
10ChevroletMalibu
24270
11ChevroletMalibu
42220
12ChevroletMalibu
49323
13ChevroletMalibu
32324
14ChevroletS-10
26118
15ChevroletS-10
17253
Data Validation Results:
All Prices Currently Valid


View Source
RichFaces Wiki RichFaces Project Site