找出哪个XHTML页面称为托管bean的方法 [英] Find out which XHTML page called managed bean's method

查看:73
本文介绍了找出哪个XHTML页面称为托管bean的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经管理了bean,并且想根据调用它的页面在其方法之一中划分逻辑,是否存在实现此目的的某种方法?

I have managed bean, and want to divide logic inside one of its methods according to which page called it, does some way exist to achieve this?

推荐答案

但是我必须说这有点儿气味.根据您认为检查调用XHTML页面是正确的解决方案的具体功能要求,可能会有更好的方法来实现具体的功能要求.

I must however say that this is somewhat a smell. Depending on the concrete functional requirement for which you thought that examining the calling XHTML page would be the right solution, there may be better ways to achieve the concrete functional requirement.

这篇关于找出哪个XHTML页面称为托管bean的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆