我想从我在String中定义的Bean渲染UIComponent。
String component = "<p:dataTable " +
" id=\"data_table_person_tl\" " +
" widgetVar=\"dtpersTLWV\" " +
" filterEvent=\"enter\" " +
" rowKey=\"#{personLI.id}\" " +
" var=\"personLI\" " +
" value=\"#{personsTableForm.lazyModel}\" " +
" selection=\"#{personsTableForm.uiPerson}\" " +
" selectionMode=\"single\" " +
" emptyMessage=\"#{localize.emptyTable}\" " +
" resizableColumns=\"true\" " +
" lazy=\"true\" " +
" sortBy=\"surname\" " +
" sortOrder=\"ASCENDING\" " +
" rowIndexVar=\"rowIndex\" " +
" paginator=\"true\" rows=\"#{mainPageBean.numberOfRecords}\" " +
" paginatorTemplate=\"#{localize.paging_rcords_on_page} {RowsPerPageDropdown} #{localize.paging_page} {JumpToPageDropdown} {PreviousPageLink} {NextPageLink} {CurrentPageReport}\" " +
" rowsPerPageTemplate=\"#{mainPageBean.rowsPerPage}\" " +
" currentPageReportTemplate=\"(#{localize.paging_showed} {startRecord} - {endRecord} #{localize.paging_from} {totalRecords})\"> " +
" " +
" " +
" <p:columns value=\"#{personsTableForm.columns}\" var=\"column\" " +
" columnIndexVar=\"colIndex\" " +
" id=\"colIndex\" " +
" sortBy=\"#{personLI[column.property]}\" " +
" filterBy=\"#{personLI[column.property]}\" " +
" filterOptions=\"||#{column.property}\" " +
" filterMatchMode=\"#{column.matchCase}\"> " +
" <f:facet name=\"header\"> " +
" <h:outputText value=\"#{column.header}\"/> " +
" </f:facet> " +
" #{personLI[column.property]} " +
" </p:columns> " +
" <p:column id=\"organization\" " +
" var=\"organization\" " +
" widgetVar=\"organization\" " +
" sortBy=\"#{personLI.organization}\" " +
" filterBy=\"#{personLI.organization}\" " +
" filterMatchMode=\"contains\" " +
" filterOptions=\"||#{personLI.organization}\" " +
" rendered=\"#{mainPageBean.idmEnviroment != 'UPOL'}\"> " +
" #{personLI.organization} " +
" <f:facet name=\"header\"> " +
" <h:outputText value=\"# {localize.label_organization}\"/> " +
" </f:facet> " +
" </p:column> " +
" " +
" <!-- double click --> " +
" <p:ajax event=\"rowDblselect\" " +
" update=\":dialogPersonForm:displayPerson\" " +
" onstart=\"PF('blockOnLoad').show()\" " +
" listener=\"#{dialogHelper.openDialog}\" > " +
" " +
" </p:ajax> " + " +
" </p:dataTable> ";
是否可能以某种方式呈现此并强制评估所有表达式?
我从数据库中获取此声明,并且手动创建所有这些组件太复杂了