RE: [SunONE-JATO] handle...Request() - in different TiledView?
I need probably to reorder Parent-Child relationships,
I have now
- ViewBean
---MenuItemsTiledView.class
---OrderCacheTiledView.class
---Button.class (append)
I will try to have
- ViewBean
---MenuItemsTiledView.class
------OrderCacheTiledView.class
---------Button.class (append)
And I will have to change:
<jato:tiledView name="MenuItems"
<jato:tiledView name="OrderCache"
<go method="post" href="<%=response.encodeURL
("../member/MenuItems") %>">
<postfield name="MenuItems.append" value=""/>
<postfield name="MenuItems.menuItemId"
value="<jato:getDisplayFieldValue
name='MenuItemId'/>" />
</go>
I think it is strict rule to have the same parent-child relationships in
JSP like as in classes
May I have more freedom like as with <jato:text name="...">, where name
could be relative (to parent, to container), absolute?
Fuad
-----Original Message-----
From: Fuad Efendi [mailto:<a href="/group/SunONE-JATO/post?protectID=230075113150035198105038066208231165163158211254234113172006048205015246">fuad.efendi@s...</a>]
Sent: Friday, May 17, 2002 12:02 PM
Subject: [SunONE-JATO] handle...Request() - in different TiledView?
Hello,
I use ViewBean, and two child TiledViews (WML sample).
<jato:tiledView name="TiledView1"
type="mobiledb.member.MenuItemsTiledView">
<go method="post" href="<%=
response.encodeURL("../member/MenuItems") %>">
<postfield name="MenuItems.append" value=""/>
<postfield name="MenuItems.menuItemId"
value="<jato:getDisplayFieldValue name='MenuItemId'/>" />
</go>
I think, "handleAppendRequest()" will work within TiledView1 (I didn't
try yet, I have this handler in ViewBean).
But, logically, better place for it is TiledView2 which contains cached
appended records...
I can have handler in ViewBean redirecting into TiledView2 of course,
What is the best way?
Thanks,
Fuad
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
[Non-text portions of this message have been removed]
Sorry for mistake with index,
<postfield name="MyJspPage.MyTiledView[2].Append" value=""/>
-----Original Message-----
From: Fuad Efendi [mailto:<a href="/group/SunONE-JATO/post?protectID=230075113150035198105038066208231165163158211254234113172006048205015246">fuad.efendi@s...</a>]
Sent: Saturday, May 18, 2002 12:42 PM
Subject: RE: [SunONE-JATO] handle...Request() - in different TiledView?
OK, I solved it (for WML),
If I use "virtual buttons" on JSP page (within <jato:tiledView.../>
tag), and this buttons are child of MyTiledView class (which is child of
MyViewBean), I can use
<postfield name="MyJspPage.MyTiledView.Append[2]" value=""/>
for emulation of button.
I don't use MyViewBean.MyTiledView.Append[2]!
Next step: I have to understand what to do with index in
MyTiledView.handleAppendRequest... Code seems harder than putting Button
and Handler in main MyViewBean...
[Non-text portions of this message have been removed]
Similar Messages
-
Re: [SunONE-JATO] Re: How to use a tiled view without a model
I'm not sure what is different for you now. You still parse the string
and put it into a data structure. Before the data structure was a
vector, in JATO its just a model with a "hidden" data structure (a hash
map).
MVC only really comes into play when you talk about where your write
this code, and where the data structure is being stored. So really, JATO
takes care of half of the MVC'ness of it all (where the data is store).
You just decide where to be the code to populate the model.
Make sense?
Is there something different required of you in JATO in this scenario
that I am not grasping?
c
Hoskins, John D. wrote:
Thanks for the feedback.
The problem I was solving involved a single string, which contained
delimited subsets of information.
The string looked like
this:"time|analyst|description|time|analyst|description|..."
In ND, I parsed it apart into it's components (time vector, analyst vector,
description vector), populated the repeated.
With JATO, how would I make a model for something that doesn't have a
database component like this?
I'm pretty new to this MVC thing, so bear with me.
John D. Hoskins
Telephone & Data Systems
Application Development & Support
Voice: 608.664.8263
Fax: 608.664.8288
Email: john.hoskins@t...
-----Original Message-----
From: Craig V. Conover [mailto:<a href="/group/SunONE-JATO/post?protectID=219212113009229091025149066024064239039098031198039130252055210">craig.conover@s...</a>]
Sent: 6/26/2002 3.22 PM
Subject: Re: [SunONE-JATO] Re: How to use a tiled view without a model
I guess the only thing "weird" (for lack of a better term) about what
you are doing is that your are populating the model on the "display
cycle". Typically, the cycle goes like this:
Request -> populate model -> update data store -> retrieve data to
populate model -> display data
some of the above steps are optional but hopefully you get the point I
am making.
So what you are doing is:
Request -> populate model/display data
If it works for you, then it's not necessarilly wrong. But I would
probably have my model populated before I forwarded to the target
(displaying view bean) or at a minimum, in the begin display event of
the view bean or the tiled view, but not during the iteration of the
tiled view.
c
jhoskins wrote:
Craig,
Thanks for the pointers. I ended up doing something else. I set the
models setSize() method to set the max size, and as the tiles fields
iterated, populated the value from some vectors I had the data in
already. Is this solution fraught with peril and will ultimately fail,
or should I try your way?
John
--- Craig V. Conover wrote:
John,
Check out the docs for DefaultModel. There is an appendRow() method.
So get your tiledview's primary model (the tiledview's primary model
should be set to use an instance of DefaultModel), model.appendRow(),
then model.setValue("fieldname", value) for each value.
Rinse, repeat as needed.
c
jhoskins wrote:
I would like to use a tiled view, but populate the fields manually.
Any pointers about where I can set the size of the tiled view? I tried
setMaxDisplayTiles() in the beginDisplay, but it won't get down and
generate the rows.
John Hoskins
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspCraig,
Thanks for the pointers. I ended up doing something else. I set the
models setSize() method to set the max size, and as the tiles fields
iterated, populated the value from some vectors I had the data in
already. Is this solution fraught with peril and will ultimately fail,
or should I try your way?
John
--- "Craig V. Conover" wrote:
John,
Check out the docs for DefaultModel. There is an appendRow() method.
So get your tiledview's primary model (the tiledview's primary model
should be set to use an instance of DefaultModel), model.appendRow(),
then model.setValue("fieldname", value) for each value.
Rinse, repeat as needed.
c
jhoskins wrote:
I would like to use a tiled view, but populate the fields manually.
Any pointers about where I can set the size of the tiled view? I tried
setMaxDisplayTiles() in the beginDisplay, but it won't get down and
generate the rows.
John Hoskins
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Re: [SunONE-JATO] Re: Using an object to store and display data
Personally, I think there is little or no value to creating a "domain"
object that itself relies on a JATO QueryModel internally, but hides that
fact and requires use of BeanAdapterModel.
It would be more appropriate (and much less work, and more scalable) to just
derive a QueryModel subclass and add the domain-specific behavior to the
model. In other words, what's the point of creating an object that hides
JATO inside it when you're running in JATO to begin with? Now if the domain
object were doing plain JDBC, and thus trying to be JATO independent, that
would be different. However, you could still implement the Model interface
on the object (or use BeanAdapterModel) to integrate it seamlessly with the
View tier.
Todd
----- Original Message -----
From: "grschroeder" <grschroeder@y...>
Sent: Wednesday, July 31, 2002 12:00 PM
Subject: [SunONE-JATO] Re: Using an object to store and display data
Craig,
I think it all finally makes sense. First, your assumption is
correct regarding the process flow. The ViewBean will interact with
a custom Javabean which will then in turn interact with a SQL Model
to access the database. So now let me make sure I understand what I
need to do. Basically the custom Javabean will have a method to get
the SQLModel. I would then invoke the setValue method on the
SQLModel and call the appropriate execute method( e.g.,
executeUpdate, etc. ) just like I would do from a ViewBean. Does
this sound correct?
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
Greg,
see below...
grschroeder wrote:
Thanks for the help Craig. I looked at the sample code that makes
use of the BeanAdapterModel. Basically it looks like it allows a
view to interact with a bean the same way it would interact with
any
other model. That part I think I understand.
This is correct.
The part I'm a little
unclear on still is how to interface this BeanAdapterModel( which
is
a very basic model ) that I now have with a query model toactually
interact with the database.
Not sure what you mean by "interface this BeanAdapterModel ... witha
query model". Does this mean that you have a ViewBean the interactswith
a custom JavaBean via the BeanAdpterModel wrapper, and from the
JavaBean you are interacting with the SQL Model?
So it looks like this: ViewBean > BeanAdapterModel(Custom JavaBean)
SQL Model > RDBMS
That's what I am reading anyway. Please explain this to me.
Would I need to make direct JDBC calls
from my custom model instead of letting JATO dynamically create
the
calls for me?
If my assumptions above are correct, then the custom JavaBean cansimply
use the SQL Model in exactly the same manner as the ViewBean,otherwise,
if no SQL Model is involved, then yes, you need to handle JDBCdirectly,
which is fine, if you do it "right" (connection pooling, result set
handling, etc.).
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
I think the best approach would be to treat your Domain Objects
(DO) as
the Database (the enterprise tier) from JATO's perspective. You
could
create custom models that interface with our DO's and then the
JATO
Views could easily bind to the custom DO models just like anyother
model. This should eliminate the need for pushing data/objectsfrom
>
view
to model to database.
There is a JATO class called BeanAdapterModel that might be just
what
you need, however, I am not experienced with using it. Maybe
someone
else on my team or in the community could better explain how to
use
>
this
class.
craig
grschroeder wrote:
Venki,
Thanks for the response. Actually, I'm not sure if I can answer
all
of your questions because those are some of the same questions
that
we're trying to answer ourselves. Basically, what we're trying
to
>do
is incorporate our domain object model into the JATO framework.
My
thinking was that one way we could accomplish this was by
storing
>a
Javabean object in the HTTPSession to represent an object in the
domain model, and that the Viewbean and JATO Model could get and
set
data from there. If you have a better suggestion of how to
accomplish this, I'm definitely open to hearing it.
Thanks,
Greg
--- In SunONE-JATO@y..., Venki <heyvenki@y...> wrote:
OK grschroeder , first let me get this straight:
0. Are you going to pass this object to the model, or are u
going
>
to pass the session object to the model?
1. Is there any specific reason for this approach you are
taking?
2. Will there be a notification from the object u havementioned
>to
have the model persist the data?
3. What about the reverse case, when the model refreshes the
data,
how are you going to refresh you object?
4. The JavaBean Object that u are talking about, is it your own
object or is it implementation of an existing JATO interface?
~Venki
grschroeder wrote:I'm fairly new to JATO, but I think I now
have
>a
basic understanding
of how Viewbeans and Models interact. However, I want to
incorporate
the use of a Javabean object that will be stored in the HTTP
session
and will act as the connection between the Viewbean and Model
instead
of having the Viewbean and Model interact directly with each
other.
Basically I would like to have the Model set data in the object
stored in the session so that the Viewbean can pull it out to
display
it. And vice versa, once the user modifies the data and is
ready
>
to
persist it, I would like to have the Viewbean set data in the
object
stored in the session so that the Model can pull it out to
store
>it
in the database. I'm not sure what the best approach would be
to
accomplish this. Any help you could give would be greatly
appreciated.
Thanks,
Greg
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service.
Venki
IT Solutions
#6, Pycrofts Garden Road, Nugambakkam, Chennai - 600 006
91-44-4925740(Home) 91-44-8212877(Work)
* Luck is what happens when Preparation meets Opportunity.
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspPersonally, I think there is little or no value to creating a "domain"
object that itself relies on a JATO QueryModel internally, but hides that
fact and requires use of BeanAdapterModel.
It would be more appropriate (and much less work, and more scalable) to just
derive a QueryModel subclass and add the domain-specific behavior to the
model. In other words, what's the point of creating an object that hides
JATO inside it when you're running in JATO to begin with? Now if the domain
object were doing plain JDBC, and thus trying to be JATO independent, that
would be different. However, you could still implement the Model interface
on the object (or use BeanAdapterModel) to integrate it seamlessly with the
View tier.
Todd
----- Original Message -----
From: "grschroeder" <grschroeder@y...>
Sent: Wednesday, July 31, 2002 12:00 PM
Subject: [SunONE-JATO] Re: Using an object to store and display data
Craig,
I think it all finally makes sense. First, your assumption is
correct regarding the process flow. The ViewBean will interact with
a custom Javabean which will then in turn interact with a SQL Model
to access the database. So now let me make sure I understand what I
need to do. Basically the custom Javabean will have a method to get
the SQLModel. I would then invoke the setValue method on the
SQLModel and call the appropriate execute method( e.g.,
executeUpdate, etc. ) just like I would do from a ViewBean. Does
this sound correct?
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
Greg,
see below...
grschroeder wrote:
Thanks for the help Craig. I looked at the sample code that makes
use of the BeanAdapterModel. Basically it looks like it allows a
view to interact with a bean the same way it would interact with
any
other model. That part I think I understand.
This is correct.
The part I'm a little
unclear on still is how to interface this BeanAdapterModel( which
is
a very basic model ) that I now have with a query model toactually
interact with the database.
Not sure what you mean by "interface this BeanAdapterModel ... witha
query model". Does this mean that you have a ViewBean the interactswith
a custom JavaBean via the BeanAdpterModel wrapper, and from the
JavaBean you are interacting with the SQL Model?
So it looks like this: ViewBean > BeanAdapterModel(Custom JavaBean)
SQL Model > RDBMS
That's what I am reading anyway. Please explain this to me.
Would I need to make direct JDBC calls
from my custom model instead of letting JATO dynamically create
the
calls for me?
If my assumptions above are correct, then the custom JavaBean cansimply
use the SQL Model in exactly the same manner as the ViewBean,otherwise,
if no SQL Model is involved, then yes, you need to handle JDBCdirectly,
which is fine, if you do it "right" (connection pooling, result set
handling, etc.).
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
I think the best approach would be to treat your Domain Objects
(DO) as
the Database (the enterprise tier) from JATO's perspective. You
could
create custom models that interface with our DO's and then the
JATO
Views could easily bind to the custom DO models just like anyother
model. This should eliminate the need for pushing data/objectsfrom
>
view
to model to database.
There is a JATO class called BeanAdapterModel that might be just
what
you need, however, I am not experienced with using it. Maybe
someone
else on my team or in the community could better explain how to
use
>
this
class.
craig
grschroeder wrote:
Venki,
Thanks for the response. Actually, I'm not sure if I can answer
all
of your questions because those are some of the same questions
that
we're trying to answer ourselves. Basically, what we're trying
to
>do
is incorporate our domain object model into the JATO framework.
My
thinking was that one way we could accomplish this was by
storing
>a
Javabean object in the HTTPSession to represent an object in the
domain model, and that the Viewbean and JATO Model could get and
set
data from there. If you have a better suggestion of how to
accomplish this, I'm definitely open to hearing it.
Thanks,
Greg
--- In SunONE-JATO@y..., Venki <heyvenki@y...> wrote:
OK grschroeder , first let me get this straight:
0. Are you going to pass this object to the model, or are u
going
>
to pass the session object to the model?
1. Is there any specific reason for this approach you are
taking?
2. Will there be a notification from the object u havementioned
>to
have the model persist the data?
3. What about the reverse case, when the model refreshes the
data,
how are you going to refresh you object?
4. The JavaBean Object that u are talking about, is it your own
object or is it implementation of an existing JATO interface?
~Venki
grschroeder wrote:I'm fairly new to JATO, but I think I now
have
>a
basic understanding
of how Viewbeans and Models interact. However, I want to
incorporate
the use of a Javabean object that will be stored in the HTTP
session
and will act as the connection between the Viewbean and Model
instead
of having the Viewbean and Model interact directly with each
other.
Basically I would like to have the Model set data in the object
stored in the session so that the Viewbean can pull it out to
display
it. And vice versa, once the user modifies the data and is
ready
>
to
persist it, I would like to have the Viewbean set data in the
object
stored in the session so that the Model can pull it out to
store
>it
in the database. I'm not sure what the best approach would be
to
accomplish this. Any help you could give would be greatly
appreciated.
Thanks,
Greg
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service.
Venki
IT Solutions
#6, Pycrofts Garden Road, Nugambakkam, Chennai - 600 006
91-44-4925740(Home) 91-44-8212877(Work)
* Luck is what happens when Preparation meets Opportunity.
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Re: [SunONE-JATO] JatoTutorial
Fr?d?ric--
In the case of a GET, all the information required to reconstruct the target
page is available in the address bar, and thus bookmarks work fine. When
the user does a POST, the same information does not appear in the address
bar and bookmarking the page will bookmark the previous page. But this is
nothing new. Any server code that dynamically decides which page to show
while processing a POST will have the same or a similar issue, unless it is
using a type I architecture. Because there are multiple buttons per form,
and for each button the JATO developer has the freedom to dynamically decide
which page to show next, there is no way to determine at page rendering time
the URL that should appear in the form tag.
One workaround is to change the "method" attribute on the form tag to GET.
However, there are drawbacks to this approach. First, you cannot send
nearly as much data with a GET as you can a POST (especially keep this in
mind when using JATO's page session feature). Second, is it always correct
for the user to be able to bookmark a page resulting from a POST? For
example, in the case of the login scenario you mention, or say a credit card
transaction, possibly not.
There have always been all sorts of issues with users bookmarking dynamic
pages (session, data consistency, etc.); this is just one of them.
As for the jsessionid question, I misunderstood your question. You are
seeing this because JATO unilaterally uses the encodeURL() method on all
URLs, including the one in the form tag. This is why you see it on the
first GET or POST, and it is necessary to make sure the user does not
bypass the container's session tracking. If you find that it's a problem,
you can turn off session tracking via URL rewriting, but this of course has
the consequence of only permitting users using cookies to access the
application.
Todd
----- Original Message -----
From: "Fr?d?ric Miserey" <frederic@n...>
Sent: Sunday, September 15, 2002 12:02 AM
Subject: Re: [SunONE-JATO] JatoTutorial
Todd,
It is "just" an issue because if the user bookmarks the page at that
point (emails the address, ...), it will go back to the login page, not
the customer page. If I even encounter such a web-site, I don't come
back. Bring this issue to Jakob (www.useit.com) and see what he has to
say ;)
If .forwardTo has always the same side-effect, this becomes an issue as
the address bar should reflect the user's location on the site. I've
never seen this problem while browsing nor while developing apps with
NAS (99: version2 ?) Of course, a 302 is NOT a solution. Is there a
work-around ?
Regarding jsessionid, I knew what it was ;-) but I was wondering why it
was appearing after "Submit" and going away for good after "Update" (at
least on IE). Is this another "byproduct" of .forwardTo ?
Thanx
Fr?d?ric
On dimanche, sep 15, 2002, at 04:33 Europe/Paris, Todd Fast wrote:
Fr?d?ric--
The behavior you notice is normal for a JATO app, and is a byproduct
of the
fact that JATO requests go back to the same object. Any framework or
architecture that uses this technique will be the same. It is not
something
that should cause any issues if that's what you're worried about.
Note that
if for some reason you really need to show a particular address in the
address bar, you can issue a 302 redirect to the client to have it
load the
URL of your choice. Note also that you wouldn't want to do that on a
regular basis since it multiplies the number of requests to the server
(one
for the original request and one for the redirected request).
The jsessionid is the standard session key for J2EE containers. You
will
normally always see this on the first URL you get back from the server,
since the server doesn't know if the client supports cookie-based
session
tracking yet. Once the server determines that cookies are supported,
it
omits the session key from subsequent URLs. However, if the client
doesn't
support cookies, the session key will be added to the URL, a technique
called "URL rewriting". This was the standard technique for tracking
session in web apps before cookies were invented or in widespread use.
Todd
----- Original Message -----
From: "Fr?d?ric Miserey" <frederic@n...>
Sent: Saturday, September 14, 2002 10:12 AM
Subject: [SunONE-JATO] JatoTutorial
I'm ramping up on Jato. Being a good soldier, I followed the tutorial ;
I noticed a strange thing:
1 I type in the browser "address zone": (appserver
root)/JatoTutorial/module1/Login
2 I enter one of the three valid logins
3 I hit "Submit"
4 The Customer jsp is displayed
BUT the browser "address zone" still shows /Login, not Customer
5 I hit "Update"
6 "address zone" now correctly shows /Customer
Can this (4 BUT) be fixed ?
Also, on some browsers, in step (4), some browsers (OmniWeb/IE 5.2 -
not Mozilla 1.2a) ";jsessionid=xyz..." is appended to /Login. Is this a
feature of Jato, of the appserver I'm using ? (Oracle OC4J 903b)
I'll try to raise the bar of my questions as time passes ;?)
Thanx,
Fr?d?ric
ps: if you wonder, I'm running all this on a MacOSX notebook ! (I have
yet to install SunApp 7.0b2 on one of my Solaris boxes ;)
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
<image.tiff>
>
>
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
[Non-text portions of this message have been removed]
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsptest
-
Hi guys,
While getting the sales order from the JDE database. It is giving
Caught exception while handling request: deserialization error: java.text.ParseException: Unparseable date: "-11-JA-01T12:00:00-05".
can any one of you can guide me about this exception
Expecting a reply from any one ASAP.
Regards,
Chakrithe schema element for this field is having different datatype than what you are receiving the data. Can you check logs and see on which column it is failing? If we know the exact xsd datatype used for the element and and value that is stored in table then we can correct the xsd accordingly. Are you using dynamic sql query or select options to get values from DB.
-
[SunONE-JATO] ModelTypeMapInfo
Rajiv,
(I renamed the subject to make it easier to follow)
The ModelTypeMapImpl is for mapping model interfaces to the model's
implementation so that you can get a reference to the model impl by
using is interface name.
This is from the javadocs for ModelTypeMap (an interface that
ModelTypeMapBase implements which is the super class for ModelTypeMapImpl):
* Allows for the mapping of a <code>Model</code> interface to a class that
* implements that interface. This class is used by the
<code>ModelManager</code>.
* Each JATO application should have a single implementation of this
interface.
Now this class was used predominately in JATO 1.2 and prior. In JATO
2.0, its use is no longer "pushed" but can still serve a purpose for
those who wish to use it. The reason it is not used in JATO 2.0 so much,
is that the IDE tools only generate one Model file (the implementation
which no longr carries the Impl suffix), and therefore, a mapping is not
necessary. It was not actually necessary in pre 2.0 apps either, we were
just encouraging its use for better decoupling of the Views from the Models.
Hope that helps.
I will answer the ListBox question in a separate thread.
craig
rajiv menon wrote:
I am new to JATO
can u pls tell me the usage of this file...
ModelTypeMapImpl.java
and can u tell me which method to call to populate a
listbox with some data recieved from the database.
To download the latest version of S1AF (JATO), please visit one of the
following locations:
Framework + IDE plugin for Sun ONE Studio 4 Update 1, Community Edition:
http://wwws.sun.com/software/download/products/Appl_Frmwk_2.0_CE.html
Framework + IDE pluign for Sun ONE Studio 4 Update 1, Enterprise Edition:
http://wwws.sun.com/software/download/products/Appl_Frmwk_2.0_EE.html
Previous versions of JATO:
http://www.sun.com/software/download/developer/5102.htmlHi Todd,
I'm not sure I fully understand what the scope of a request is.....
But I can tell you that if I allow getDisplayFieldValue() to return a
string the string it prints is the string equivalent of the Node
Object I originally passed in. It is definately saving and
retrieving the correct data it is just converting it to a string
somewhere along the way.
Thanks,
Lucy
--- In SunONE-JATO@y..., Todd Fast <Todd.Fast@S...> wrote:
When are you calling getDisplayFieldValue()? Is it within the same request?
>
Todd
----- Original Message -----
From: "lucymbrophy" <lucy.brophy@s...>
Sent: Friday, May 24, 2002 3:32 AM
Subject: [SunONE-JATO] getDisplayFieldValue()
Hi all,
I am using setDisplayFieldValue() and am passing in a String and
an
Object. The object is of type class=Node
However, when I call getDisplayFieldValue() on the same display field
the Object that is returned to me is of type class=String. This
means that I can't cast it back to a Node.
Anybody have any ideas where I'm going wrong? Is this the expected
behaviour?
Thanks,
Lucy Brophy
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Error handle request; Root exception is: java.lang.NoSuchMethodError
Hello Guys,
I am running EBS 11i, rdbms 10g on OEL4. After applying a bunch of patches to resolve some IE issues I ran into an error:
"FRM-41072: Cannot create group ACTION_REC_GROUP" when trying to cancel a PO.
An SR directed me to apply patch 8286920 which indeed fixed the FRM-41072 error. After this patch "Logon to Oracle Applications Manager" is not possible as the page gives me :
Error handle request; Root exception is: java.lang.NoSuchMethodError: oracle.apps.fnd.security.AolSecurity.userPwdHash(Ljava/lang/String;)Ljava/lang/String;
MOS thinks that patch 8286920 didn't break OAM but I don't think so since this is only happening on my DEV and TEST systems on which I have applied the patch. PROD, wihtout the patch, is accessible through OAM just as usual?
Any thouths?
Thank you
MathiasDid you apply all patches mentioned in the following docs?
FRM-41072 - Unable to Cancel Purchase Order or Purchase Order Line or Release [ID 947402.1]
Change Tax Code in the Purchase Order Gets Error - Could not reserve record (2 tries) Keep trying [ID 956047.1]
Autocreate Process Does Not Default Purchase Order Form As The Active Window After PO Is Created - Does Not Come To The Front [ID 1055623.1]
Did you bounce all the services and see if you ca reproduce the issue?
What about clearing the server cache files? -- How To Clear Caches (Apache/iAS, Cabo, Modplsql, Browser, Jinitiator, Java, Portal, WebADI) for E-Business Suite? [ID 742107.1]
Can you find any errors in the database/apache log files? Any invalid objects?
If you have verified all the above please update the SR with the error you have after applying that patch.
Thanks,
Hussein -
Differnet spool request for different costomers
Hi folks,
I am using f.27 to create a monthly customer statement. But i need differnet spool request for different costomers. so that i can mail the reports for costomers differently. now single spool request is generating.
regards
VijayHi,
thanks for reply. Yup we can do that if there are many costumers. then it will be a hectic job to retrieve for all of them and sending mail. so is ther any possible way to generate spool in a breakup way..
please try...
Regards
Viajy -
Exception in webservices - Endpoint cannot handle requests in state: CREATE
Hi All
urgent help needed in webservices.
we have a webservice deployed. and i have made a web service client (a java application client), it is registered with the deployed web service, but when running this clinet, we are getting the following excption
Please let me know if you have any idea? It is very urgent........ :(
Following is the stack trace of the Exception:
Exception = Endpoint cannot handle requests in state: CREATED
javax.xml.ws.soap.SOAPFaultException: Endpoint cannot handle requests in state: CREATED
at com.sun.xml.ws.encoding.soap.ClientEncoderDecoder.toMessageInfo(ClientEncoderDecoder.java:84)
at com.sun.xml.ws.encoding.soap.client.SOAPXMLDecoder.toMessageInfo(SOAPXMLDecoder.java:209)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:538)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.doSend(SOAPMessageDispatcher.java:258)
at com.sun.xml.ws.protocol.soap.client.SOAPMessageDispatcher.send(SOAPMessageDispatcher.java:137)
at com.sun.xml.ws.encoding.soap.internal.DelegateBase.send(DelegateBase.java:84)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.implementSEIMethod(EndpointIFInvocationHandler.java:172)
at com.sun.xml.ws.client.EndpointIFInvocationHandler.invoke(EndpointIFInvocationHandler.java:106)
at $Proxy15.tellFortune(Unknown Source) Attached is the source of client............
* Main.java
* Created on February 20, 2007, 11:53 AM
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package client_ws;
* @author ic005332
public class Main {
/** Creates a new instance of Main */
public Main() {
* @param args the command line arguments
public static void main(String[] args) {
System.out.println("@@@@@@@@@@@@@@@@@@@@@");
try { // Call Web Service Operation
client_ws.FirstWebService service = new client_ws.FirstWebService();
System.out.println("******************");
client_ws.FirstWebServiceSEI port = service.getFirstWebServiceSEIPort();
System.out.println("^^^^^^^^^^^^^^");
// TODO process result here
java.lang.String result = port.tellFortune(); //Exception is coming at this line
System.out.println("###################@");
System.out.println("Result = "+result);
} catch (Exception ex) {
System.out.println("Exception = "+ex.getMessage());
ex.printStackTrace();
}Thanks in advanvce
Inder Jeet SinghDo you see any exception on the server side ? May be endpoint is throwing some exception. If you use JAX-WS 2.1 the error diagnostics are much better.
-
Cannot handle request because a modal dialog or alert is active?
Trying to edit using InCopy but can't download the file from the designer because I get this message: cannot handle request because a modal dialog or alert is active
That means exactly that: there is another dialog on the screen that asks for an OK, or Cancel etc. Dismiss this dialog first.
-
Credit memo request with different Pricing procedure
Hi all,
I am Creating Credit memo with reference to contract, my requirement is system should not copy Contract pricing procedure for Credit Memo we have different Pricing procedure for credit memo
But the Problem is while i am creating a credit Memo with reference to Contract system will coping contract pricing procedure i need Credit Memo pricing Procedure in credit memo and system should populate all credit memo condition types default y in credit memo
i am using credit memo condition types condition class A - Discount or surcharge and Calculat.type - B - Fixed amount
can any one guide me how config in sap while creating credit memo with reference to sales contract system should copy different Pricing procedure its having own condition types
Thanks
RajeshTo call a separate Pricing Procedure for Credit Memo Request, ensure that Document Pricing Procedure for Contract and Credit Memo Request are different. Based on Different Document Pricing Procedure, it is possible to configure to determine separate pricing procedure.
+In SD, Pricing Procedure is determined (T.Code: OVKK) based on Sales Area (Sales Organization + Distribution Centre + Division) + Customer Pricing Procedure + Document Pricing Procedure. Sales Area is determined in Sales Order Header Level. Customer Pricing Procedure is determined from Customer Master. Document Pricing Procedure is determined from Sales Document Type / Billing Type (if configured).+
Through copy control detting, maintain Pricing Type as 'B' for carrying out new price.
Regards,
Rajesh Banka -
Dear Friends,
My user is getting Handle Request Failed when user is trying to log into SAP ITS.
I got the following errror on browser:
Internet Transaction Server was not able to handle the current request Properly.
The Trace File may contain further information about this error.
What could be the problem?
I am clueless. Pls help
Regards
SimhaHi
The handler in the webservice is not properly defined.
I can tell you the handle we use to provide in Integrated ITS, specify this one in the Handles List of that particular service.
CL_HTTP_EXT_ITS
If not working, then tell me what service you are accessing. -
Do mac's handle graphic's differently?
Ever since I got my macbook a year ago I have been dying to discard my pc's but I have one very large concern. I am a WoW gamer and although it seems to run well on imac's I am concerned that the 512mb graphics card will not be sufficient for the new WoW expansion. Spending 2k on a pc would give me the option of SLI and dual graphic's cards, ( plenty of graphic memory to run the game at max settings and quite a few mod's without a hiccup ), but Mac offers none of this, so I started thinking, maybe the cards are not as good, because Mac's handle graphic's differently than pc's, they don't need all the power? And everyone I have asked, from genius to lover, cannot answer this question for me. Now, let me say that running a G5 and upgrading to a two thousand dollar video card is not an option for me, so, can someone please tell me I can still have my imac, and my WoW too?
yeh, i said in my post i would like to do away with my pc's, meaning i have not as of yet. I am currently looking at the imac. And according to apple, the macpro does not support multiple graphic's cards, nor SLI. and again, going macpro would cost an additional grand just for the box, and two more grand for the 1.5 graphics card, all else is unsupported by apple. So again, I ask, do mac's handle graphic's differently? Nothing else would explain the wimpy graphic's options.
-
Awful Java applet performance -- never mind, being handled in a different thread
Awful Java applet performance -- never mind, being handled in a different thread.
Here's some more info that may be of use ... The Applet is signed and this particular problem only occurs with Safari. It has not been seen as of yet when using Firefox. And it definitey does not occur on Windows platforms with IE or Firefox. It's been observed across multiple versions of the applet and appears to have become an issue around the time of Leopard 10.5.6/Safari 3.2.1. I don't know if it has anything to do with the problem, but the html that starts the applet is dynamically generated from javascript. A user clicks a thumbnail image on a web page, the javascript opens a dojo dialog, and within the div that contains the dialog, another div is inserted containing the html that starts the applet. The applet also does a number of liveconnect calls to call javascript methods. When a "close" button is clicked on the Applet, the inverse occurs. The javascript clears the html that contained the applet. The applet's destroy method is called and there are no apparent memory leaks.
The problem never seems to occur the first time the applet is started. It's always on a subsequent instantiation. Frequently, when it occurs, the applet is only partially painted and I sometimes see paint related calls on the stack trace of the awt thread. -
Error: [env:ClienT:caught exception while handling request]
failure when calling to the service Web
1. I INTRODUCE DIRECTION WSDL URL And SOON PULSE TO SHOW METODOS
2. And IT INDICATES The METODOS To ME AVAILABLE FOR THIS SERVICE WEB
3. LATER IT SHOWS THE PARAMETERS TO ME THAT NEEDS TO MAKE THE CALL TO THE PREVIOUS METODO
4. I INTRODUCE THE VALUE OF THE PARAMETER AND WHEN I TEST THE TEST RESULTS IS THE FOLLOWING ERROR:
[env:Client : caught exception while handling request: unexpected encoding style: expected=, actual=http://xml.apache.org/xml-soap/literalxml]failure when calling to the service Web
1. I INTRODUCE DIRECTION WSDL URL And SOON PULSE TO SHOW METODOS
2. And IT INDICATES The METODOS To ME AVAILABLE FOR THIS SERVICE WEB
3. LATER IT SHOWS THE PARAMETERS TO ME THAT NEEDS TO MAKE THE CALL TO THE PREVIOUS METODO
4. I INTRODUCE THE VALUE OF THE PARAMETER AND WHEN I TEST THE TEST RESULTS IS THE FOLLOWING ERROR:
[env:Client : caught exception while handling request: unexpected encoding style: expected=, actual=http://xml.apache.org/xml-soap/literalxml]
Maybe you are looking for
-
Color Issues with exported JPGs
Hello, This is my 1st post on the forums and hopefully someone can help. I am using a Dell 2407 24 inch LCD for photo processing. I have calibrated my monitor with Heey Pro 1.5. The custom profle loads at windows startup (I see the colors snap to the
-
Difference between payment terms fields in vendor master
What is the difference between 'payment terms' in Payment transaction accounting view and 'Terms of payment' in purchasing data view in vendor master ? Please share your view.
-
How to make the entire project in the project server 2013 reschedule؟
How to make the entire project in the project server 2013 reschedule ? Because item %compelet related to reschedule In this photo it is known there are no items update project
-
How to chage the display name in SC browser for the custome fields?
Hi, I created 2 custom fields for Shopping cart in SRM. How to chage the display name in SC browser for this custome fields? Thanks Kevin
-
Ce fil de discussion a été automatiquement créé pour : http://help.adobe.com/fr_FR/reader/X/using/WS4bebcd66a74275c3-7d28390112a81b3ebff-8000.htm l.