Get method in the Attribute class. in JNDI
I had connected to the AD
// Create the initial directory context
DirContext ctx = new InitialDirContext(env);
Attributes attrs = ctx.getAttribute("DC=DomainDnsZones,DC=testing,DC=local");
but I had no idea wat to get from the attrs.get method.
as in, I don't know what kind of attributes ID are available inside my attrs
is there any coding to get all the attribute ID so tat I can use the get method to retrieve them?
We can get the available Attributes for a particular user.....
using Attributes class for a Search and Context....
You can try out the free LDAP viewer available in internet (Its a Applet)... u can find the possible Attribute Names in that... and use the below statement..
Attributes attrs1 = ctx.getAttributes("CN=" + "user,CN=Users,DC=domain,DC=dmn,DC=com");
String office = (String)attrs1.get("physicaldeliveryofficename").get();
Similar Messages
-
MVC Problem with getter method of table attribute in model class
Hi,
I am on 620 SP34. I am writing a bsp application with mvc. One of the model classes has an attribute of type table. I use this attribute in a htmlb-tableview and '//MODEL/ZMY_TAB' for data binding. If I try to activate a getter method for this attribute, the application dumps with exception <i>BSP exception: Structure component with name "ZMY_TAB" does not exist</i>. I find the SAP source, that raising this exception (see below). The source code looks like: <i>"I don't support getter methods for tables in attribute path"</i>! The setter method works fine, so I am at a loss. Has anyone of you wrote a getter method for an table attribute in bsp-mvc? Have I to consider anything special?
Thanks,
Carsten
Main Program CL_BSP_MODEL==================CP
Source code of CL_BSP_MODEL==================CM00Z
METHOD IF_BSP_MODEL_BINDING~GET_ATTRIBUTE_DATA_REF
* check if attribute exists for binding!
if exists_attribute( l_name ) is initial.
return.
endif.
* setter or getter defined? Not supported for DATA REF requests
if get_getter( attribute_name = l_name ) is not initial.
raise exception type cx_bsp_inv_component
exporting name = l_name.
endif.You have two options:
1. Make your attributes public. It should work fine.
2. If you need to process the attribute values before it is used, you can make the attribute private but will need three methods
GET_T_ZMY_TAB that returns the table
SET_T_ZMY_TAB that sets the values
GET_M_T_ZMY_TAB that returns DDIC information about the attribute. The same holds good for structures(Change to GET_S_ and GET_M_S_ ) and simple attributes(Change to GET_ and GET_M_).
The set and get methods are kind of documented at http://help.sap.com/saphelp_nw04/helpdata/en/fb/fbb84c20df274aa52a0b0833769057/content.htm but there is no mention of the GET_M_ methods. I could not find one single document on the Model part MVC.
Once I added the GET_M_XYZ methods to my attributes, my BSPs started to work fine.
Cheers
Sreekanth -
Getting Bad Type Error when calling a method in the proxy class
Hi,
I have generated the proxy classes from wsdl.
When I am calling the methods in the proxy class from one of external class, I am getting following error.
Can anyone please help me in resolving this issue.
javax.xml.ws.soap.SOAPFaultException: org.xml.sax.SAXException: Bad types (interface javax.xml.soap.SOAPElement -> class com.intraware.snetmgr.webservice.data.SubscribeNetObjectReference) Message being parsed:
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:197)
at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:125)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:95)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:136)
at $Proxy176.find(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
at $Proxy173.find(Unknown Source)
at com.xxx.fs.FNServices.findAccountWs(FNServices.java:132)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:92)
at weblogic.wsee.jaxws.WLSInstanceResolver$WLSInvoker.invoke(WLSInstanceResolver.java:74)
at com.sun.xml.ws.server.InvokerTube$2.invoke(InvokerTube.java:151)
at com.sun.xml.ws.server.sei.EndpointMethodHandlerImpl.invoke(EndpointMethodHandlerImpl.java:268)
at com.sun.xml.ws.server.sei.SEIInvokerTube.processRequest(SEIInvokerTube.java:100)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:866)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:815)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:778)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:680)
at com.sun.xml.ws.server.WSEndpointImpl$2.process(WSEndpointImpl.java:403)
at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:532)
at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:253)
at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:140)
at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:171)
at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:708)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.wsee.util.ServerSecurityHelper.authenticatedInvoke(ServerSecurityHelper.java:103)
at weblogic.wsee.jaxws.HttpServletAdapter$3.run(HttpServletAdapter.java:311)
at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:336)
at weblogic.wsee.jaxws.JAXWSServlet.doRequest(JAXWSServlet.java:95)
at weblogic.servlet.http.AbstractAsyncServlet.service(AbstractAsyncServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
Thanks
AnoopHi Vlad,
The service has not been changed since i have generated the proxy.
I tried calling the service from soapUI and I am getting the following error now.
Request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:uri="uri:webservice.subscribenet.intraware.com" xmlns:uri1="uri:subscribenet.intraware.com">
<soapenv:Header>
<uri:SessionHeader>
<uri:SessionID>hjkashd9sd90809dskjkds090dsj</uri:SessionID>
</uri:SessionHeader>
</soapenv:Header>
<soapenv:Body>
<uri:Find>
<uri:SubscribeNetObjectReference>
<uri1:ID></uri1:ID>
<uri1:IntrawareID></uri1:IntrawareID>
<uri1:SharePartnerID></uri1:SharePartnerID>
</uri:SubscribeNetObjectReference>
</uri:Find>
</soapenv:Body>
</soapenv:Envelope>
Response:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Server.generalException</faultcode>
<faultstring>org.xml.sax.SAXException: WSWS3279E: Error: Unable to create JavaBean of type com.intraware.snetmgr.webservice.data.SubscribeNetObjectReference. Missing default constructor? Error was: java.lang.InstantiationException: com.intraware.snetmgr.webservice.data.SubscribeNetObjectReference. Message being parsed:</faultstring>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Thanks
Anoop -
Accessing a private variable from a public method of the same class
can anyone please tell me how to access a private variable, declared in a private method from a public method of the same class?
here is the code, i'm trying to get the variable int[][][] grids.
public static int[][] generateS(boolean[][] constraints)
private static int[][][] sudokuGrids()
int[][][] grids; // array of arrays!
grids = new int[][][]
{Are you sure that you want to have everything static here? You're possibly throwing away all the object-oriented goodness that java has to offer.
Anyway, it seems to me that you can't get to that variable because it is buried within a method -- think scoping rules. I think that if you want to get at that variable your program design may be under the weather and may benefit from a significant refactoring in an OOP-manner.
If you need more specific help, then ask away, but give us more information please about what you are trying to accomplish here and how you want to do this. Good luck.
Pete
Edited by: petes1234 on Nov 16, 2007 7:51 PM -
Passing values between methods in the same class
Hi,
How to pass internal tables or values between methods in the same class.
How to check if the internal method in another method is initial or not.
How to see if the method has already been executed.
Thanks.Just declare the internal table as an attribute in the class - that way every method in this class has access to it.
Since any method has access to all class attributes you can easily check if the internal table is initial or not.
I am not aware of any standard functionality if a method has already been executed or not, one way would be to declare a class attribute for each method and set it once the method has been executed. That way every method in that class would know which method has already been executed or not.
Hope that helps,
Michael -
Revision: 20986
Revision: 20986
Author: [email protected]
Date: 2011-03-29 05:17:12 -0700 (Tue, 29 Mar 2011)
Log Message:
Classes that are neither explicitly allowed nor disallowed get added to the disallow class cache. So we should clear the disallow classes cache also on changing allow rules. Exposing a clearClassCache() method to allow subclasses also to clear the class cache.
Modified Paths:
blazeds/trunk/modules/core/src/flex/messaging/validators/ClassDeserializationValidator.ja vasorry i forgot that... i use php5 so i guessed at the module name... upon looking closer at the conf its mod_php4.c
<pre>
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
</IfModule>
</pre> -
What does the trim() method of the String class do in special cases?
Looking here ( String (Java Platform SE 7 ) ), I understand that the trim() method of the String class "returns a copy of the string, with leading and trailing whitespace omitted", but I don't understand what the last special case involving Unicode characters is exactly.
Looking here ( List of Unicode characters - Wikipedia, the free encyclopedia ), I see that U+0020 is a space character, and I also see the characters that follow the space character (such as the exclamation mark character).
So, I decided to write a small code sample to try and replicate the behaviour that I quoted (from the API documentation of the trim method) in the multi-line comment of this same code sample. Here is the code sample.:
public class TrimTester {
public static void main(String[] args) {
* "Otherwise, let k be the index of the first character in the string whose code
* is greater than '\u0020', and let m be the index of the last character in the
* string whose code is greater than '\u0020'. A new String object is created,
* representing the substring of this string that begins with the character at
* index k and ends with the character at index m-that is, the result of
* this.substring(k, m+1)."
String str = "aa!Hello$bb";
System.out.println(str.trim());
However, what is printed is "aa!Hello$bb" (without the quotes) instead of "!Hello$" (without the quotes).
Any input to help me better understand what is going on would be greatly appreciated!That's not what I was thinking; I was thinking about the special case where the are characters in the String whose Unicode codes are greater than \u0020.
In other words, I was trying to trigger what the following quote talks about.:
Otherwise, let k be the index of the first character in the string whose code is greater than '\u0020', and let m be the index of the last character in the string whose code is greater than '\u0020'. A new String object is created, representing the substring of this string that begins with the character at index k and ends with the character at index m-that is, the result of this.substring(k, m+1).
Basically, shouldn't the String returned be the String that is returned by the String class' substring(3,9+1) method (because the '!' and '$' characters have a Unicode code greater than \u0020)?
It seems to not be the case, but why? -
Are methods in the Graphics class Thread Safe
Can methods from the Graphics class (.e.g. drawImage(), drawString(), ect..) be called from any thread? In other words, can two threads that refer to the same Graphics object step on each other methods calls?
TIA,
DB
Edited by: Darth_Bane on Apr 27, 2009 1:44 PMNo,
They are GUI activities so you should call them from the Swing Thread ( Event Disptach Thread)
Now for the JComponent the following are thread safe:
repaint(), revalidate, invalidate which can be called from any thread.
Also the listener list can be modified from any thread addListenerXX or removeListenerXX where XX is ListenerType
Regards,
Alan Mehio
London, UK -
Implementation of the hasProperties() method of the Node class
The following snippet of code prints:
false
true
which seems to be a bug.
TextField nameField = new TextField();
System.out.println(nameField.hasProperties());
ObservableMap<Object, Object> props = nameField.getProperties();
System.out.println(nameField.hasProperties());The implementation of the hasProperties() method in the Node class returns true, if the ObservableMap object for storing properties has been created. That is not what is expected from this method. I think, this method should also check if the ObservableMap has any properties.
Can someone confirm that it is a bug?
Thanks
KishoriYou can log it at http://javafx-jira.kenai.com and then, if the developers want to keep it the way it is (which they may for API compatibility purposes), they can at least document it so that a user would know what to expect without writing a test or making a potentially invalid assumption.
-
OK, fair enough.
Look at the ServletConfig class.
c
Purvashada wrote:
>
We had that option. We decided against the
property files as we can get this dynamically.
There has been problems when this property
was set incorrectly at the time of installation.
Are there any api's to get the servername and
port number other than through request object..
--- "Craig V. Conover" <craig.conover@s...> wrote:
So I guess my question is, why do you need a user
request to get this
information?
You should be able to get this info when the
application is started up,
from a props file.
Does this info change from day to day? If not, why
not create a props
file on the machine that the app is running that has
this info?
Then in the servlet's init method, read this prop
file.
Does that work for you? Not sure how a user request
is needed to
determine this? If it is, please explain.
I have used this same technique for database
properties (servername,
instance name, uid, pwd, etc).
On the QA machine was the properties that pointed to
the QA database,
and on the Production machine, the property file
with the same name had
props that pointed to the Production database.
craig
Purvashada wrote:
It is a static data that is same for all theusers.
It is application level data but generateddynamically
to get the server name and the port number the appis
running on..
Thanks
--- "Craig V. Conover" <craig.conover@s...>wrote:
OK, so how does doing this only once help you.
Wouldn't you need to do
this for each individual end user?
I'm not suggesting that this is request scoped,but
maybe session scoped.
If so, then do this in the module servlet's
onNewSession event.
If this is per user, then storing it staticallyis
problematic because
all users will be using the same data which Idon't
think you want.
Let me know if my assumptions are correct.
craig
Purvashada wrote:
Basically, I need to pass the host url/request
url
to
another server which then posts the results
back to this server.
I need to get the host url dynamically.
This is what I am doing in my code to
get the host url..
URL =req.getScheme() + "://" +
req.getServerName()
+
":" + req.getServerPort();
Thanks
--- "Craig V. Conover" <craig.conover@s...>wrote:
Correct, that is a per request event.
Sounds like we need to figure out a newapproach.
Please elaborate on your requirements for
doing
whatever it is you require.
Maybe we can suggest an alternative, orperhaps
reveal that it may not
be necessary after all.
craig
Purvashada wrote:
I had added this code in the
initializeRequestContext(..)
Hoping it would be called once.
It looks like it is called for every
request.
HttpServletRequest req =requestContext.getRequest();
setActionURL(req);
If I add the code in the init() method
how can I get the HttpServletRequest
getRequest()
Thanks
--- "Craig V. Conover"
<craig.conover@s...>
wrote:
cool.
Be careful about how you update this URL
when
you
use setURL method.
The servlets in JATO are the only shared
(Application scope rather than
Request scope like ViewBeans and
Models),
and
that
you could potentially
have sync/multithread issues. You said
you
were
only
updating once at
the start of the App, so you should be
fine.
I
assume you are doing this
from an init method or init event in theservlet
class? If so, no worries.
Also, just to be sure everyone follows,
I am
not
suggesting that you
write syncronize code in the servlets asthis
will
be a potential bottle
neck in your app's scalibility. This is
not
a
JATO
shortcoming as there
are alternatives to do this sort of
coding.
craig
Purvashada wrote:
I made the method static and is
accessible..
--- "Craig V. Conover"<craig.conover@s...>
wrote:
I would assume it is a static
method, so
just
do:
MainAppServletBase.getURL()
right?
If not static, it probably should
be. If
you
feel it
should not be
static, let us know why/what your
requirements
are.
>
=== message truncated ===
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.htmlOK, fair enough.
Look at the ServletConfig class.
c
Purvashada wrote:
>
We had that option. We decided against the
property files as we can get this dynamically.
There has been problems when this property
was set incorrectly at the time of installation.
Are there any api's to get the servername and
port number other than through request object..
--- "Craig V. Conover" <craig.conover@s...> wrote:
So I guess my question is, why do you need a user
request to get this
information?
You should be able to get this info when the
application is started up,
from a props file.
Does this info change from day to day? If not, why
not create a props
file on the machine that the app is running that has
this info?
Then in the servlet's init method, read this prop
file.
Does that work for you? Not sure how a user request
is needed to
determine this? If it is, please explain.
I have used this same technique for database
properties (servername,
instance name, uid, pwd, etc).
On the QA machine was the properties that pointed to
the QA database,
and on the Production machine, the property file
with the same name had
props that pointed to the Production database.
craig
Purvashada wrote:
It is a static data that is same for all theusers.
It is application level data but generateddynamically
to get the server name and the port number the appis
running on..
Thanks
--- "Craig V. Conover" <craig.conover@s...>wrote:
OK, so how does doing this only once help you.
Wouldn't you need to do
this for each individual end user?
I'm not suggesting that this is request scoped,but
maybe session scoped.
If so, then do this in the module servlet's
onNewSession event.
If this is per user, then storing it staticallyis
problematic because
all users will be using the same data which Idon't
think you want.
Let me know if my assumptions are correct.
craig
Purvashada wrote:
Basically, I need to pass the host url/request
url
to
another server which then posts the results
back to this server.
I need to get the host url dynamically.
This is what I am doing in my code to
get the host url..
URL =req.getScheme() + "://" +
req.getServerName()
+
":" + req.getServerPort();
Thanks
--- "Craig V. Conover" <craig.conover@s...>wrote:
Correct, that is a per request event.
Sounds like we need to figure out a newapproach.
Please elaborate on your requirements for
doing
whatever it is you require.
Maybe we can suggest an alternative, orperhaps
reveal that it may not
be necessary after all.
craig
Purvashada wrote:
I had added this code in the
initializeRequestContext(..)
Hoping it would be called once.
It looks like it is called for every
request.
HttpServletRequest req =requestContext.getRequest();
setActionURL(req);
If I add the code in the init() method
how can I get the HttpServletRequest
getRequest()
Thanks
--- "Craig V. Conover"
<craig.conover@s...>
wrote:
cool.
Be careful about how you update this URL
when
you
use setURL method.
The servlets in JATO are the only shared
(Application scope rather than
Request scope like ViewBeans and
Models),
and
that
you could potentially
have sync/multithread issues. You said
you
were
only
updating once at
the start of the App, so you should be
fine.
I
assume you are doing this
from an init method or init event in theservlet
class? If so, no worries.
Also, just to be sure everyone follows,
I am
not
suggesting that you
write syncronize code in the servlets asthis
will
be a potential bottle
neck in your app's scalibility. This is
not
a
JATO
shortcoming as there
are alternatives to do this sort of
coding.
craig
Purvashada wrote:
I made the method static and is
accessible..
--- "Craig V. Conover"<craig.conover@s...>
wrote:
I would assume it is a static
method, so
just
do:
MainAppServletBase.getURL()
right?
If not static, it probably should
be. If
you
feel it
should not be
static, let us know why/what your
requirements
are.
>
=== message truncated ===
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.html -
How to access getter/setters from the entity classes
Let me brake my question to two:
1. in My JSP page, I need to get an exception from either the entity or the view class if I insert a duplicate value into the associated table. How can I do that?
2. How can I access the entity's getter/setter functions in the JSP page?
Thank youLet me brake my question to two:
1. in My JSP page, I need to get an exception from either the entity or the view class if I insert a duplicate value into the associated table. How can I do that?You can mark the attribute as unique key attribute and choose to implement the unique-key validation in the Bc4J side. See help on UniqueKey and how to establish such validation
2. How can I access the entity's getter/setter functions in the JSP page?You cannot access entities directly. You have to expose the accessors via ViewObject Rows and use those Rows from the JSP/or any client side.
Thank you -
Get access to the attributes of my dynpro from an Internet Service
Hi,
I have generated a new dynpro with one "Select"-button and several other fields.
Is it possible to get access to all of the attributes of this dynpro from my Internet Service ITSGENMOBILE.
What I mean is, at my dynpro there is an Icon on my button which I can not see when I open the template which is generated with the ITSGENMOBILE service.
Now I want to customize the service so that the Icon is also at my generated template.
You can find the original code at the TA SE80. (sry but I can't paste the code, because I will get an error if try to post the message with this code)
Open the path:
" Internet Service -->Search for "ITSGENMOBILE" --> Thema 99 --> HTML-Templates --> Elements --> Button"
I know with the code fragment
'GEN_NAME'[GEN_LOOP_LINE].name'
I get the name of my button or with
'GEN_NAME'[GEN_LOOP_LINE].label'
I get the text of my button.
But how can I get the name of path of the used ICON?
I google for it but I cant find any doc.
Maybe someone can help me with the syntax.
Thx for your help
Regards
PhilThx for your reply,
I had the following problem:
If i have created a dynpro and generate a template with the ITSGENMOBILE Service. But at this point the informations of the used icons got lost. Now I have customized a copy of the class CL_ITS_GENERATE_MOBILE and copy of the ITSGENMOBILE Service.
Now I can poll the used icons from my dynpro and screen them as a button at my browser. -
Migrate 904 to 1012: How do i get rid of the AppModClient class?
Some problems:
1. Data model: wizard overwrites getter signatures. We changed the return type to avoid casting everywhere the getter is invoked. ie public MyAppModImpl getMyAppMod() is changed back to public ApplicationModuleImpl getMyAppMod().
2. Base classes for our project that all of our BC4J components extend all of a sudden ignore the base classes and now extend BC4J components. ie. public class MyViewRowImpl extends BaseViewRowImpl is now - public class MyViewRowImpl extends ViewRowImpl. The same is for the AppModules.
3. The new ApplicationModuleClient class created does not implement secondary interfaces that were previously defined. ie.
New class:
public class BaseAmClient extends ApplicationModuleImpl implements myproj.BaseAm
What we had in 904:
public interface BaseAm extends BaseCommonAm, ApplicationModule
public abstract class BaseAmImpl extends ApplicationModuleImpl implements BaseAm
The BaseAmClient should also implement the methods in BaseCommonAm but the migration wizard didn't create them.
We also created a method "commit()" on the BaseAm to return an ResultObject. The compiler now complains that i cannot override the ApplicationModuleImpl "commit" with a different return type.
Error(34,43): method commit() in class myproj.BaseAmClient cannot override method commit() in class oracle.jbo.client.remote.ApplicationModuleImpl with different return type, was void
Can anyone please help get past these errors? especially the problem with the Client class.
Thanks. The new ApplicationModuleClient class created does not implement secondary interfaces that were previously defined. ie.
New class:
public class BaseAmClient extends ApplicationModuleImpl implements myproj.BaseAm
What we had in 904:
public interface BaseAm extends BaseCommonAm, ApplicationModule
public abstract class BaseAmImpl extends ApplicationModuleImpl implements BaseAm
The BaseAmClient should also implement the methods in BaseCommonAm but the migration wizard didn't create them.
I migrate 902 to 1012. I have the same problem with ApplicationModuleClient and ViewRowClient.
For the Row :
public interface TechnicalViewRow extends ViewRow
public abstract class TechnicalViewRowImpl extend ViewRowImpl
public interface BusinessViewRow extends TechnicalViewRow
public class BusinessViewRow extends TechnicalViewRowImpl implements BusinessViewRow.
The migration din't create implentation for TechnicalViewRow.
Is it possible not to generate the Client classes, or to generate the methods of all interfaces?
Thanks. -
Implements interface method at the derived class
Hi all.
I have a class (Derived) that extends another class (Base).
In the base class (Base) there is a method f() with its implementation.
In the interface (C) there is also f() method exactlly like in the base class (Base).
The derived class (Derived) is implements the interface (C).
My question is:
Do i have to implement the method f() in the derived class (Derived) ?My guess is that you probably have to, even if it's just to call the parent's method.
This all sounds pretty sketchy. Why don't you just make the BASE class implement your interface? -
Why it cannot find the setter method for the attribute in my custom tag?
Hi, i have a custom tag like this:
<robin:category tModelKey="#{data.tModelKey}" > </robin:category>And in my tld file:
<tag>
<name>category</name>
<tag-class>category.component.HtmlCategoryTag</tag-class>
<attribute>
<name>tModelKey</name>
<required>false</required>
<rtexprvalue>false</rtexprvalue>
<type>java.lang.String</type>
</attribute>
</tag>
........................................and in my HtmlCategoryTag Class
public class HtmlCategoryTag extends HtmlPanelGridTag
private String tModelKey;
public String getTModelKey()
return tModelKey;
public void setTModelKey(String modelKey)
tModelKey = modelKey;
So,you see,generally speaking,to use a custom tag,we only to write a tag class,declare it in the tld file,nothing more.
What fints me is that if i change "tModelKey" to "test" and change the according part in the tag class , tld file and jsp file, the "setter not found" problem no longer exists,everything goes right!!!.
So why this happens? please help:)
Best Regards:)
RobinThen you also need to create a UI element that extends HtmlPanelGrid
that has a tModelKey member and getters/setters. That object will hold
the information so that you can use it in your bean.Whoops... ignore that! Sorry. Attributes are simply stored in the component map component.getAttributes().
Add to your Tag class:
public void setProperties(UIComponent component) {
super.setProperties(component);
Tags.setString(component, "tModelKey", tModelKey);
public void release() {
// see above
}Where Tags.java is:public class Tags {
public static void setString(UIComponent component, String attributeName, String attributeValue) {
if (attributeValue != null) {
if (UIComponentTag.isValueReference(attributeValue)) {
setValueBinding(component, attributeName, attributeValue);
} else {
component.getAttributes().put(attributeName, attributeValue);
public static void setValueBinding(UIComponent component, String attributeName, String attributeValue) {
FacesContext context = FacesContext.getCurrentInstance();
Application app = context.getApplication();
ValueBinding vb = app.createValueBinding(attributeValue);
component.setValueBinding(attributeName, vb);
}
Maybe you are looking for
-
s there a separate download for iMac. I bought and downloaded what I thought was the right download but not working and feel it might be a windows version. How doe I get it right
-
How to delete the same address in bookmarks
i have a few bookmarks and have noticed that the same web address shows up in some of them that i had added how can i delete the same web address so that i only have one web address in all of my book marks e.g www.facebook.com/home (in bookmark) www.
-
Iweb Photo Album vs MobileMe Gallery or...
... should I look for flickr or something? Hi guys new mac user in every sense...the wife got her Macbook on December and I couldn't resist and got my mine three days ago. Guys...I'm creating a website with iweb and although right now does not have a
-
Hi, I would like to know if i can update the system time/date using java... Thanks, Thiago Nascimento
-
Exception - Cannot Build Schema (Question)
Friends, I have a quick question which is driving me crazy. New to SOA, please help. I defined a variable of type "element" by refering it to an pre-existing xsd. I know the xsd is valid. When I try to use the variable in an assign activiity it does