在方法里取到能取到ID这条详细信息吗?
如果不能取到,就要在方法中把属于这条ID的信息取出来,然后转交给页面显示。
如果能取到,就是你详细页面取出来时有错误。把页面上取方法代码贴出来

解决方案 »

  1.   

    在页面上可以取道ID的信息并且从数据库中能将这个对象的相关的其他字段的值都取得到 public String Particular()
    {
    try{
    FacesContext context = FacesContext.getCurrentInstance();
        String aid = context.getExternalContext().getRequestParameterMap().get("aid").toString();
        System.out.println("aid=aid======="+aid);
        AssetLogic assetLogic = new AssetLogic();
        Asset asset= new Asset();
    asset = (Asset)assetLogic.findById(Long.valueOf(aid));
    System.out.println(asset.getCode());
    this.currentState.setCurrentObject(assetLogic.findById(Long.valueOf(aid)));
        return  "AssetDisplay";
        
    }catch(Exception ex)
    {
    ex.printStackTrace();
    }
      return  "AssetDisplay";
       }
      

  2.   

    可以了,因为在定义转向的时候,我用了redirect