JSF将一个值转换为另一个值

JSF将一个值转换为另一个值,jsf,Jsf,在我的页面上,有一行显示了数据库表中的这一行,称为timelogging <h:outputText value="#{timeLoggingController.selected.id}" title="#bundle.ViewTimeLoggingTitle_id}"/> 所以我想做的是删除inputText并自动分配 timeLogging.selected.id 到 在我的页面末尾: <h:commandLink action="#{timeLoggingD

在我的页面上,有一行显示了数据库表中的这一行,称为timelogging

<h:outputText value="#{timeLoggingController.selected.id}" title="#bundle.ViewTimeLoggingTitle_id}"/>
所以我想做的是删除inputText并自动分配

timeLogging.selected.id

在我的页面末尾:

    <h:commandLink action="#{timeLoggingDetailController.create}" value="#{bundle.CreateTimeLoggingDetailSaveLink}" /> 
</h:form>


首先发布完整的代码。在您的操作方法timeLoggingDetailController.selected.logId=timeLoggingController.selected.Id中添加了我的代码示例以及我如何提交它您是否为同一视图使用了两个不同的控制器?你能发布他们的代码吗?只需在另一个bean中注入一个bean?你到底面临什么问题?
timeLoggingDetail.selected.id
    <h:commandLink action="#{timeLoggingDetailController.create}" value="#{bundle.CreateTimeLoggingDetailSaveLink}" /> 
</h:form>