Changeset 874 for vanHelsing/trunk/gui/src/de/dass_it/vanhelsing
- Timestamp:
- May 21, 2010, 5:57:59 PM (15 years ago)
- 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 1 1 package de.dass_it.vanhelsing.gui; 2 3 import java.lang.reflect.Method;4 import java.util.ArrayList;5 2 6 3 import javax.faces.context.FacesContext; 7 4 import javax.faces.event.ActionEvent; 8 5 import javax.faces.event.ValueChangeEvent; 9 import javax.faces.model.SelectItem;10 6 import 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 8 import de.dass_it.vanhelsing.gui.items.ConcreteUserObjectItem; 9 import de.dass_it.vanhelsing.gui.items.UserObjectItemType; 10 import de.dass_it.www.vanhelsing.VanHelsingStub.ResourceInfo; 16 11 17 12 /** … … 24 19 private ConcreteUserObjectItem selectedObject; 25 20 private boolean createResource; 26 private String selectedId;21 //private String selectedId; 27 22 28 23 public ConfigurationBean() { … … 76 71 public void renderResource(ActionEvent ae){ 77 72 DefaultMutableTreeNode node; 78 String id = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resId");73 String id = (String) FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("userObject.resId"); 79 74 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"); 81 76 if (numId > 0){ 82 77 node = dataTree.getNodeById(numId); -
vanHelsing/trunk/gui/src/de/dass_it/vanhelsing/gui/JobScheduleBean.java
r871 r874 74 74 ae.getComponent().getAttributes(); 75 75 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"); 78 78 79 79 if (idString == null && name != null && !name.equals("")){ … … 105 105 public void selectNode(ActionEvent ae){ 106 106 //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"); 109 109 BeanUtil.setInfoMessage(null, ("id: "+id+" name: "+name) ); 110 110
Note:
See TracChangeset
for help on using the changeset viewer.