Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.view.servlet.jsp
Class JSPPage  view JSPPage download JSPPage.java

java.lang.Object
  extended byorg.scopemvc.view.servlet.Page
      extended byorg.scopemvc.view.servlet.jsp.JSPPage
All Implemented Interfaces:
org.scopemvc.core.View

public class JSPPage
extends org.scopemvc.view.servlet.Page

A concrete org.scopemvc.view.servlet.Page. ***** Doesn't do the populateModel stuff yet

Version:
$Revision: 1.6 $ $Date: 2002/01/26 09:46:20 $

Field Summary
private static org.apache.commons.logging.Log LOG
           
private  java.lang.String path
           
(package private) static char PROPERTY_ID_PREFIX
          The prefix on form parameters to identify a property/value pair used to repopulate the View's bound model.
 
Fields inherited from class org.scopemvc.view.servlet.Page
 
Constructor Summary
JSPPage(java.lang.String inViewID, java.lang.String inJSPPath)
           
 
Method Summary
 java.lang.String getPath()
           
protected  void init()
          Do it like this so that we can pick up application-specific ScopeConfig...
protected  void populateBoundModelProperty(java.lang.String inPropertyDescription, java.lang.String inValue)
          Use the property_description, property_value pair passed to set a property in the bound model to a new value.
 java.util.List populateModel(java.util.HashMap ioParameters)
           Interprets any form parameters like <PROPERTY_ID_PREFIX>SelectorDescription as [property_description, property_value] pairs
 
Methods inherited from class org.scopemvc.view.servlet.Page
equalsID, getBoundModel, getController, getID, getParent, issueControl, setBoundModel, setController, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

path

private java.lang.String path

PROPERTY_ID_PREFIX

static char PROPERTY_ID_PREFIX
The prefix on form parameters to identify a property/value pair used to repopulate the View's bound model. A property/value pair looks like: <PROPERTY_ID_PREFIX>ViewID<VIEW_ID_SUFFIX>SelectorDescription

See Also:
populateModel(java.util.HashMap) 55
Constructor Detail

JSPPage

public JSPPage(java.lang.String inViewID,
               java.lang.String inJSPPath)
Method Detail

init

protected void init()
Do it like this so that we can pick up application-specific ScopeConfig... static initializers would happen before user got a chance to setup the custom config properties.


getPath

public final java.lang.String getPath()

populateModel

public java.util.List populateModel(java.util.HashMap ioParameters)

Interprets any form parameters like <PROPERTY_ID_PREFIX>SelectorDescription as [property_description, property_value] pairs

Extracts the property_description from the form parameter key, then populates its model object using the String value. Any parameters treated this way are removed from the HashMap.


populateBoundModelProperty

protected void populateBoundModelProperty(java.lang.String inPropertyDescription,
                                          java.lang.String inValue)
                                   throws java.lang.Exception
Use the property_description, property_value pair passed to set a property in the bound model to a new value. Use StringConvertor if available to convert from String to the property's native datatype.