[prev in list] [next in list] [prev in thread] [next in thread] 

List:       japple-user
Subject:    Re: [japple-user] Referencing an object list dynamically
From:       John Shimer <jshimer () saucontech ! com>
Date:       2002-04-04 18:54:24
[Download RAW message or body]



Michael Schulz wrote:

>
>
>If we take the approach of creating a simple java class which will be used
>as a japple service, which existing japple service class would you 
>recommend
>to use as prototype for ours? 
>
Pick a simple class from under the japple.services.Service hierarchy, 
maybe DataCompareService.

> Also, how do we "include" the object list?
>
Same way I suggested from the jsp, except you'd be in the service so you 
could just call getContext() instead of builder.getContext().

>
>And within what do we include the object list?
>
context.executeService(.......)

>
>
>If we take the approach of using the .jsp to process the object list, what
>requirements are there for the values of DataModel arguments, DataModel
>results, and DataModel data?  
>
In the case of an ObjectList arguments & results would be a new 
DataModel. I would pass in current state (builder.getData()) as data.

>Does the result of processing the object list
>come back to us in DataModel data? 
>
If the ObjectList includes services or jsp's which alter state (data), 
this will be returned. Anything streamed out to the Http output stream 
will be sent directly to the client.

>Or does the result get included in the
>current page content (which is what we want)?
>
>-Michael Schulz
>
>
>-----Original Message-----
>From: japple-user-admin@japple.org
>[mailto:japple-user-admin@japple.org]On Behalf Of John Shimer
>Sent: Thursday, April 04, 2002 12:08 PM
>To: japple-user@japple.org
>Subject: Re: [japple-user] Referencing an object list dynamically
>
>Michael Schulz wrote:
>
>>We are looking into an approach for loading pages which involves a single
>>page which includes  three object lists - a header, a body, and a footer.
>>The header and footer object lists are the same, but the body object list
>>will vary.  So here's the question...is there a way to use a parameter to
>>select the name of the object list to be included in the page?
>>
>This can be done, but would involve creating a simple Java class (a
>japple service), that takes parameters to indicate which object list to
>include, and then include it. This java class could then be wrapped in a
>SERVICE jmo and included within any PAGE definition.
>
>>If that is
>>not possible, is there a way to include an object list from within the jsp
>>(perhaps via some sort of service invocation)?
>>
> From within a jsp you can get to the japple context with the method
>builder.getContext(). This will give you an instance of ContextInterface
>which has a method..
>
>executeService(DataModel arguments,
>    DataModel results,
>    DataModel data,
>    String serviceType,
>    String serviceName)
>
>In you case serviceType would be 'OBJECTLIST' and serviceName would be
>the fully qualified name of the ObjectList.
>
>>
>>-Michael Schulz
>>
>>_______________________________________________
>>japple-user mailing list
>>japple-user@japple.org
>>http://www.japple.org/mailman/listinfo/japple-user
>>
>
>
>
>_______________________________________________
>japple-user mailing list
>japple-user@japple.org
>http://www.japple.org/mailman/listinfo/japple-user
>
>_______________________________________________
>japple-user mailing list
>japple-user@japple.org
>http://www.japple.org/mailman/listinfo/japple-user
>



_______________________________________________
japple-user mailing list
japple-user@japple.org
http://www.japple.org/mailman/listinfo/japple-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic