SlideShare a Scribd company logo
Input inplace
Group members:
Samia
khlood
Tayyaba
haqsar
Anum
adil
Introduction
 Inplace provides easy inplace editing and
inline content display.
 Inplace consists of two members
1. Display element is the initial clickable
label
2. Inline element is the hidden content
that is displayed when display element is
toggled.
Attributes
Name Default Type Description
id null String Unique identifier of the component
rendered true Boolean
Boolean value to specify the rendering of the
component, when set to false component will not be
rendered.
binding null Object
An el expression that maps to a server side
UIComponent instance in a backing bean
label null String Label to be shown in display mode.
emptyLabel null String
Label to be shown in display mode when value is
empty.
Cont.
effect fade String
Effect to be used
when toggling.
effectSpeed normal String
Speed of the
effect.
disabled false Boolean
Prevents hidden
content to be
shown.
style null String
Inline style of the
main container
element.
styleClass null String
Style class of the
main container
element.
Name Default Type Description
Cont.
Name Default Type Description
editor false Boolean
Specifies the editor
mode.
saveLabel Save String
Tooltip text of save
button in editor
mode.
cancelLabel Cancel String
Tooltip text of
cancel button in
editor mode.
event click String
Name of the client
side event to
display inline
content.
Syntax
 The inline component needs to be a child of inplace.
 <p:inplace>
<h:inputText value="Edit me" />
</p:inplace>
Custom Labels
 By default inplace displays its first childs value as the label, you
can customize it via the label attribute.
 <h:outputText value="Select One:" />
<p:inplace label="Cities">
<h:selectOneMenu>
<f:selectItem itemLabel="Istanbul"
itemValue="Istanbul" />
<f:selectItem itemLabel="Ankara"
itemValue="Ankara" />
</h:selectOneMenu>
</p:inplace>
Facets
 For advanced customization , output and input facets are
provided.
 <p:inplace id="checkboxInplace">
<f:facet name="output"> Yes or No
</f:facet>
<f:facet name="input">
<h:selectBooleanCheckbox /> </f:facet>
</p:inplace>
Effects
 Default effect is fade and other possible effect is slide , also
effect speed can be tuned with
values slow , normal and fast.
 <p:inplace
label="Show Image"
effect="slide"
effectSpeed="fast">
<p:graphicImage
value="/images/nature1.jpg" />
</p:inplace>
Editor
 Inplace editing is enabled via editor option.
public class InplaceBean
{
private String text;
//getter-setter
}
Cont.
 <p:inplace editor="true">
<h:inputText
value="#{inplaceBean.text}" />
</p:inplace>
 save and cancel are two provided ajax behaviors events.
Cont.
 public class InplaceBean
{
private String text;
public void handleSave()
{
//add faces message with update text value
}
//getter-setter
}
Cont.
 <p:inplace editor="true">
<p:ajax event="save"
listener="#{inplaceBean.handleSave}" update="msgs"
/>
<h:inputText value="#{inplaceBean.text}" />
</p:inplace>
<p:growl id="msgs" />
Client Side API
Method Params Return Type Description
show() - void
Shows content and hides
display element.
hide() - void
Shows display element
and hides content.
toggle() - void
Toggles visibility of
between content and
display element.
save() - void
Triggers an ajax request
to process inplace input.
cancel() - void
Triggers an ajax request
to revert inplace input.
No questions please !!
Esd input inplace

More Related Content

PPT
Drupal Form Api
PPTX
Behat - Beyond the Basics (2016 - SunshinePHP)
PPTX
Form Validation in JavaScript
PPT
Oop php 5
PPTX
HTML Forms Tutorial
PPTX
Forms with html5 (1)
PPT
Zend framework 04 - forms
PPTX
2. attributes
Drupal Form Api
Behat - Beyond the Basics (2016 - SunshinePHP)
Form Validation in JavaScript
Oop php 5
HTML Forms Tutorial
Forms with html5 (1)
Zend framework 04 - forms
2. attributes

What's hot (16)

PDF
Abapoleautomation
PDF
Print function in PHP
PPT
05 html-forms
PPTX
PDF
PDF
Modular Angular JS
PPTX
Form Validation
PPTX
Font dialog &amp; link label
PPTX
html forms
KEY
Introduction to HAML
PPTX
PHP Form Validation Technique
DOCX
Php forms and validations by naveen kumar veligeti
PPT
PHP - Introduction to PHP Forms
PPTX
6 global library function provided by open cart
ODP
HTML::FormHandler
PPTX
Actions & Filters In WordPress
Abapoleautomation
Print function in PHP
05 html-forms
Modular Angular JS
Form Validation
Font dialog &amp; link label
html forms
Introduction to HAML
PHP Form Validation Technique
Php forms and validations by naveen kumar veligeti
PHP - Introduction to PHP Forms
6 global library function provided by open cart
HTML::FormHandler
Actions & Filters In WordPress
Ad

Similar to Esd input inplace (20)

PPT
WPF Controls
PPT
displaytag
PDF
Android Homework for-july-19th-2015
PDF
Creating a Simple, Accessible On/Off Switch
PDF
Xm lquickref
PPT
04_0_UI_Elements.ppt elredmfdkfodfodmfdmfkjkd
PPT
Oracle 10g Forms Lesson 10
PPT
DOCX
Java script basics
PPTX
Gui programming a review - mixed content
PDF
Having fun power apps components HandsOn - Power User Days Belgium 2019
DOCX
Graphic Programming
DOC
V2vdata
PDF
Fewd week8 slides
PPTX
GUI programming
PPTX
Web accessibility - WAI-ARIA a small introduction
PPT
Datatable Y Column
DOCX
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
PPTX
3. applets
PDF
How to build testable UIs
WPF Controls
displaytag
Android Homework for-july-19th-2015
Creating a Simple, Accessible On/Off Switch
Xm lquickref
04_0_UI_Elements.ppt elredmfdkfodfodmfdmfkjkd
Oracle 10g Forms Lesson 10
Java script basics
Gui programming a review - mixed content
Having fun power apps components HandsOn - Power User Days Belgium 2019
Graphic Programming
V2vdata
Fewd week8 slides
GUI programming
Web accessibility - WAI-ARIA a small introduction
Datatable Y Column
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
3. applets
How to build testable UIs
Ad

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Computing-Curriculum for Schools in Ghana
PPTX
master seminar digital applications in india
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
01-Introduction-to-Information-Management.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Complications of Minimal Access Surgery at WLH
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
TR - Agricultural Crops Production NC III.pdf
O7-L3 Supply Chain Operations - ICLT Program
Computing-Curriculum for Schools in Ghana
master seminar digital applications in india
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Module 4: Burden of Disease Tutorial Slides S2 2025
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Cell Types and Its function , kingdom of life
01-Introduction-to-Information-Management.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPH.pptx obstetrics and gynecology in nursing
2.FourierTransform-ShortQuestionswithAnswers.pdf
Microbial disease of the cardiovascular and lymphatic systems
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Complications of Minimal Access Surgery at WLH

Esd input inplace

  • 3. Introduction  Inplace provides easy inplace editing and inline content display.  Inplace consists of two members 1. Display element is the initial clickable label 2. Inline element is the hidden content that is displayed when display element is toggled.
  • 4. Attributes Name Default Type Description id null String Unique identifier of the component rendered true Boolean Boolean value to specify the rendering of the component, when set to false component will not be rendered. binding null Object An el expression that maps to a server side UIComponent instance in a backing bean label null String Label to be shown in display mode. emptyLabel null String Label to be shown in display mode when value is empty.
  • 5. Cont. effect fade String Effect to be used when toggling. effectSpeed normal String Speed of the effect. disabled false Boolean Prevents hidden content to be shown. style null String Inline style of the main container element. styleClass null String Style class of the main container element. Name Default Type Description
  • 6. Cont. Name Default Type Description editor false Boolean Specifies the editor mode. saveLabel Save String Tooltip text of save button in editor mode. cancelLabel Cancel String Tooltip text of cancel button in editor mode. event click String Name of the client side event to display inline content.
  • 7. Syntax  The inline component needs to be a child of inplace.  <p:inplace> <h:inputText value="Edit me" /> </p:inplace>
  • 8. Custom Labels  By default inplace displays its first childs value as the label, you can customize it via the label attribute.  <h:outputText value="Select One:" /> <p:inplace label="Cities"> <h:selectOneMenu> <f:selectItem itemLabel="Istanbul" itemValue="Istanbul" /> <f:selectItem itemLabel="Ankara" itemValue="Ankara" /> </h:selectOneMenu> </p:inplace>
  • 9. Facets  For advanced customization , output and input facets are provided.  <p:inplace id="checkboxInplace"> <f:facet name="output"> Yes or No </f:facet> <f:facet name="input"> <h:selectBooleanCheckbox /> </f:facet> </p:inplace>
  • 10. Effects  Default effect is fade and other possible effect is slide , also effect speed can be tuned with values slow , normal and fast.  <p:inplace label="Show Image" effect="slide" effectSpeed="fast"> <p:graphicImage value="/images/nature1.jpg" /> </p:inplace>
  • 11. Editor  Inplace editing is enabled via editor option. public class InplaceBean { private String text; //getter-setter }
  • 12. Cont.  <p:inplace editor="true"> <h:inputText value="#{inplaceBean.text}" /> </p:inplace>  save and cancel are two provided ajax behaviors events.
  • 13. Cont.  public class InplaceBean { private String text; public void handleSave() { //add faces message with update text value } //getter-setter }
  • 14. Cont.  <p:inplace editor="true"> <p:ajax event="save" listener="#{inplaceBean.handleSave}" update="msgs" /> <h:inputText value="#{inplaceBean.text}" /> </p:inplace> <p:growl id="msgs" />
  • 15. Client Side API Method Params Return Type Description show() - void Shows content and hides display element. hide() - void Shows display element and hides content. toggle() - void Toggles visibility of between content and display element. save() - void Triggers an ajax request to process inplace input. cancel() - void Triggers an ajax request to revert inplace input.