SlideShare a Scribd company logo
1 of 17
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

What's hot

What's hot (16)

Abapoleautomation
AbapoleautomationAbapoleautomation
Abapoleautomation
 
Print function in PHP
Print function in PHPPrint function in PHP
Print function in PHP
 
05 html-forms
05 html-forms05 html-forms
05 html-forms
 
Html forms
Html formsHtml forms
Html forms
 
Forms
FormsForms
Forms
 
Modular Angular JS
Modular Angular JSModular Angular JS
Modular Angular JS
 
Form Validation
Form ValidationForm Validation
Form Validation
 
Font dialog &amp; link label
Font dialog &amp; link labelFont dialog &amp; link label
Font dialog &amp; link label
 
html forms
html formshtml forms
html forms
 
Introduction to HAML
Introduction to HAMLIntroduction to HAML
Introduction to HAML
 
PHP Form Validation Technique
PHP Form Validation TechniquePHP Form Validation Technique
PHP Form Validation Technique
 
Php forms and validations by naveen kumar veligeti
Php forms and validations by naveen kumar veligetiPhp forms and validations by naveen kumar veligeti
Php forms and validations by naveen kumar veligeti
 
PHP - Introduction to PHP Forms
PHP - Introduction to PHP FormsPHP - Introduction to PHP Forms
PHP - Introduction to PHP Forms
 
6 global library function provided by open cart
6 global library function provided by open cart6 global library function provided by open cart
6 global library function provided by open cart
 
HTML::FormHandler
HTML::FormHandlerHTML::FormHandler
HTML::FormHandler
 
Actions & Filters In WordPress
Actions & Filters In WordPressActions & Filters In WordPress
Actions & Filters In WordPress
 

Similar to Esd input inplace

Android Homework for-july-19th-2015
Android Homework for-july-19th-2015Android Homework for-july-19th-2015
Android Homework for-july-19th-2015Rishi Kumar
 
Creating a Simple, Accessible On/Off Switch
Creating a Simple, Accessible On/Off SwitchCreating a Simple, Accessible On/Off Switch
Creating a Simple, Accessible On/Off SwitchRuss Weakley
 
Oracle 10g Forms Lesson 10
Oracle 10g Forms Lesson 10Oracle 10g Forms Lesson 10
Oracle 10g Forms Lesson 10KAMA3
 
Gui programming a review - mixed content
Gui programming   a review - mixed contentGui programming   a review - mixed content
Gui programming a review - mixed contentYogesh Kumar
 
Having fun power apps components HandsOn - Power User Days Belgium 2019
Having fun power apps components HandsOn - Power User Days Belgium 2019Having fun power apps components HandsOn - Power User Days Belgium 2019
Having fun power apps components HandsOn - Power User Days Belgium 2019Rebekka Aalbers-de Jong
 
Web accessibility - WAI-ARIA a small introduction
Web accessibility - WAI-ARIA a small introductionWeb accessibility - WAI-ARIA a small introduction
Web accessibility - WAI-ARIA a small introductionGeoffroy Baylaender
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxssuser562afc1
 
How to build testable UIs
How to build testable UIsHow to build testable UIs
How to build testable UIsShi Ling Tai
 

Similar to Esd input inplace (20)

WPF Controls
WPF ControlsWPF Controls
WPF Controls
 
displaytag
displaytagdisplaytag
displaytag
 
Android Homework for-july-19th-2015
Android Homework for-july-19th-2015Android Homework for-july-19th-2015
Android Homework for-july-19th-2015
 
Creating a Simple, Accessible On/Off Switch
Creating a Simple, Accessible On/Off SwitchCreating a Simple, Accessible On/Off Switch
Creating a Simple, Accessible On/Off Switch
 
Xm lquickref
Xm lquickrefXm lquickref
Xm lquickref
 
Oracle 10g Forms Lesson 10
Oracle 10g Forms Lesson 10Oracle 10g Forms Lesson 10
Oracle 10g Forms Lesson 10
 
Les10
Les10Les10
Les10
 
Java script basics
Java script basicsJava script basics
Java script basics
 
Gui programming a review - mixed content
Gui programming   a review - mixed contentGui programming   a review - mixed content
Gui programming a review - mixed content
 
Having fun power apps components HandsOn - Power User Days Belgium 2019
Having fun power apps components HandsOn - Power User Days Belgium 2019Having fun power apps components HandsOn - Power User Days Belgium 2019
Having fun power apps components HandsOn - Power User Days Belgium 2019
 
Graphic Programming
Graphic ProgrammingGraphic Programming
Graphic Programming
 
V2vdata
V2vdataV2vdata
V2vdata
 
Fewd week8 slides
Fewd week8 slidesFewd week8 slides
Fewd week8 slides
 
GUI programming
GUI programmingGUI programming
GUI programming
 
Web accessibility - WAI-ARIA a small introduction
Web accessibility - WAI-ARIA a small introductionWeb accessibility - WAI-ARIA a small introduction
Web accessibility - WAI-ARIA a small introduction
 
Datatable Y Column
Datatable Y ColumnDatatable Y Column
Datatable Y Column
 
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docxAssignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
Assignment6~$signment6.docxAssignment6Assignment6.docxAs.docx
 
3. applets
3. applets3. applets
3. applets
 
How to build testable UIs
How to build testable UIsHow to build testable UIs
How to build testable UIs
 
CRUD with Dojo
CRUD with DojoCRUD with Dojo
CRUD with Dojo
 

Recently uploaded

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

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.