Ignore:
Timestamp:
May 21, 2010, 5:57:59 PM (14 years ago)
Author:
slederer
Message:

Ant-Buildfile und weitere Libraries hinzugefügt

Location:
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/ConfigurationBean.java

    r871 r874  
    11package de.dass_it.vanhelsing.gui;
    2 
    3 import java.lang.reflect.Method;
    4 import java.util.ArrayList;
    52
    63import javax.faces.context.FacesContext;
    74import javax.faces.event.ActionEvent;
    85import javax.faces.event.ValueChangeEvent;
    9 import javax.faces.model.SelectItem;
    106import javax.swing.tree.DefaultMutableTreeNode;
    11 import javax.swing.tree.DefaultTreeModel;
    12 import de.dass_it.vanhelsing.gui.items.*;
    13 import de.dass_it.www.vanhelsing.*;
    14 import de.dass_it.www.vanhelsing.VanHelsingCallbackHandler.*;
    15 import de.dass_it.www.vanhelsing.VanHelsingStub.*;
     7
     8import de.dass_it.vanhelsing.gui.items.ConcreteUserObjectItem;
     9import de.dass_it.vanhelsing.gui.items.UserObjectItemType;
     10import de.dass_it.www.vanhelsing.VanHelsingStub.ResourceInfo;
    1611
    1712/**
     
    2419        private ConcreteUserObjectItem selectedObject;
    2520        private boolean createResource;
    26         private String selectedId;
     21        //private String selectedId;
    2722
    2823        public ConfigurationBean() {
     
    7671        public void renderResource(ActionEvent ae){
    7772                DefaultMutableTreeNode node;
    78                 String id = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resId");
     73                String id = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resId");
    7974                int numId = new Integer(id);
    80                 String name = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resName");
     75                String name = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resName");
    8176                if (numId > 0){
    8277                        node = dataTree.getNodeById(numId);
  • vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/JobScheduleBean.java

    r871 r874  
    7474                ae.getComponent().getAttributes();
    7575
    76                 String idString = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("UserObject.resId");
    77                 String name = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("UserObject.resName");
     76                String idString = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("UserObject.resId");
     77                String name = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("UserObject.resName");
    7878               
    7979                if (idString == null && name != null && !name.equals("")){
     
    105105        public void selectNode(ActionEvent ae){
    106106                //BeanUtil.setInfoMessage(null, "Die Methode ist noch nicht implementiert");
    107                 String id = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resId");
    108                 String name = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resName");
     107                String id = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resId");
     108                String name = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resName");
    109109                BeanUtil.setInfoMessage(null, ("id: "+id+" name: "+name) );
    110110               
Note: See TracChangeset for help on using the changeset viewer.