Documente Academic
Documente Profesional
Documente Cultură
0
1. JSF enables you to develop Web applications by separating
Web UI from Java code so that the application developed
using JSF is easy to debug and maintain. The UI part can
be created using a tool. NetBeans supports visual Web
development based on JSF.
2. TocreateaJSFprojectinNetBeans,createaWebproject
withtheVisualWebComponentsselected.
3. TocreateaJSFpage,chooseVisualWebJSFPagefromthe
contextmenuoftheproject.
5. TheJSFfileisautomaticallycreatedtodescribetheUI
componentsandtheirrelationships.Wheneveryouadd,
remove,orchangetheUIcomponentsintheDesignpane,
thecontentsintheJSParealsoupdated.Itispossible
tomodifytheJSPfiledirectly,butitisnot
recommendedforthenewusers.ModifyingtheJSPfile
mistakenlycouldcorrupttheentireproject.Youcan
completelyignoretheJSPfilewhenusingthistool.
6. ClickingtheJavatabinthecontentpane,youwillsee
theJavasourcefile,knownasthepagebeanfile.This
filecontainsseveralmethods.Amongthemarethefour
JSFlifecyclemethodsinit,preprocess,prerender,and
destroy.
8. DroparadiobuttongroupcomponenttotheUIandsetthe
namesoftheradiobuttonsfromtheOptionsCustomizer
dialogbox.
9. DropacheckboxcomponenttotheUIandsetthenamesof
theradiobuttonsfromtheOptionsCustomizerdialogbox.
10. Settherenderedpropertytofalse.ForaFormobject,
youhavesetthevisiblepropertytofalse.
11. getText().
12. getSelected().
13. Yes.
14. GridPanel,LayoutPanel,GroupPanel.
15. Thebestwaytoreorderthemistomovethecomponents
fromtheNavigatorpane.
17. Droppingatablefromthedatabaseconnectioninthe
RuntimepanetotheUIwillcreateadataprovider.
18. DoubleclickingtheRowSetundertheSessionBean1nodein
theRuntimewilldisplaythequeryvisuallyintheDesign
pane.YoucanmodifytheunderlyingqueryfortheRowSet.
19. YoucanmodifytheunderlyingqueryfortheRowSet.
20. JSFsupportssessiontrackingusingJavaBeansatthe
applicationscope,sessionscope,andrequestscope.When
youcreateavisualWebproject,RequestBean1,
SessionBean1,andApplicationBean1areautomatically
created.
21. Youcancodeitmanuallyorvisuallyfromthetool.
22. UsinggetSessionBean1().getProperty()
23. MessageComponent
24. UsetheforpropertyoftheMessageComponenttoseta
messagecomponentwithaninputcomponent.
25. Settherequiredpropertytotrue.
26. Rightthecomponent(e.g.,atextfield)intheDesign,
chooseEditEventHandlervalidatetogeneratethe
methodnamedtfSSN_validateintheJavasourcepage.
Implementthemethodusingregularexpressions.