=Urgent===anonymous ActionListener===

Hi,
I want to realize the function like "search" in Windows Notepad. Persue-code is like the following:
Press "Find" icon
If(string is found)
highlight the string
else
pop up the dialog window
Dialog window is in the following:
else
JOptionPane cannotDialog = new JOptionPane();
cannotDialog.showMessageDialog(this,"Cannot Find
"+typedText,"Othello",JOptionPane.INFORMATION_MESSAGE);
when compling the file, there is a error message:
=====
symbol : method showMessageDialog (<anonymous
java.awt.event.ActionListener>,java.lang.String,java.lang.String,int)
location: class javax.swing.JOptionPane
cannotDialog.showMessageDialog(this,"Cannot Find
"+typedText,"Find",JOptionPane.INFORMATION_MESSAGE);
======
Generally speaking, i've got the ActionListener after clicking the icon/menu item, but i really don't know how to solve this problem, would u please give me some hint?
Any information are appreciated...
Thanks...

Hi,
The prototype of showMessageDialog() method in JOptionPane is:
public static void showMessageDialog(Component parentComponent,
Object message,
String title,
int messageType)
So, the first parametter must be a Component object or a sub-class of Component object. In your case, I think you caught event for "Find" icon in anonymous object and "this" identifier is not understood as a Component.
I can imagine your code like the following:
JButton findButton = ....................
findButton.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent e)
if(String is found)
else
JOptionPane cannotDialog = new JOptionPane();
cannotDialog.showMessageDialog(this,"Cannot Find
"+typedText,"Othello",JOptionPane.INFORMATION_MESSAGE);
To fix this error, you can change "this" to "null" or you implements ActionListener interface in a sub-class of Component class. Example:
public class A extends Component // or a sub-class as JDialog or a any class you want
implements ActionListener
public void actionPerformed(ActionEvent e)
if(e.getSource() == findButton)
//your code is placed here
A a = ................
findButton.addActionListener(a);

Similar Messages

  • Can I use a for loop to add anonymous ActionListener objects?

    I have a setListener() method that has the following inside:
    for(int k = 0; k < buttons.length; k++)
        buttons[k].addActionListener(new ActionListener()
            public void actionPerformed(ActionEvent e)
                g2.setColor(colors[k]);
    }I have a JButton array and a Color array and I was hoping I could add them quickly in one shot rather than manually adding an anonymous ActionListener 9 times (I have 9 components). It tells me I need to make k final for an inner class and when I tested it by removing the for loop and keeping k as a final integer, it works. Is there a medium such that I can achieve what I want more or less while respecting Java's syntax?
    Any input would be greatly appreciated!
    Thanks in advance!

    s3a wrote:
    The local variable exists on the stack for as long as the method is executing. Once the method ends, that variable no longer exists. The newly created object, however, can continue to exist long after the method has ended. So when it's referring to variable X, it cannot refer to the same X as the one in the method, because that variable may no longer exist.Sorry for picking on little details but I am still not fully satisfied.
    Earlier I questioned if the local variable changed, but now let's say that that variable no longer exists at all, why does that even matter if the inner class copied the value and is keeping it for itself? What do you mean? The variable that existed in the method ceased to exist when the method ended. The inner class, however, can continue to live on, and can continue to refer to what we see as the same variable. However, it obviously can't be the same variable, since, in the world of the inner class, it still exists, while in the world of the method, it does not.
    This is completely independent of whether the variable changes or not. Regardless or whether the variable changes we still need two copies--one that goes away when the method's stack frame is popped, and one that lives on as long as the inner object does.
    Then, because there are two copies, the designers decided that the variable has to be final, so that they wouldn't have to mess with the complexity of keeping two variables in sync.
    That explanation leads me to believe that there is no copy and that there is some kind of "permanent umbilical cord" between the inner class and the local variable.Wrong. There has to be a copy. How else could the inner class keep referring to it after the method ends?
    Also, does marking it as final force it to be a permanent constant "variable" even if it's not a field "variable"? Or, similarly, does making a "variable" final make Java pretend that it is a field "variable"?Making a variable final does exactly one thing: It means the value can't change after it's been initialized. This is true of both fields and locals.
    As for the "pointless" byte-counting, I really don't see how it's confusing unless you're an absolute beginner. If I see somebody using a byte, I assume they have a real reason to do so, not pointless byte-hoarding. Then when I see that it's just a loop counter, I wonder WTF they were thinking, and have to spend some time determining if there's a valid reason, or if they're just writing bad code. Using a byte for a loop counter is bad code.
    I could then ask, why are people not using long instead of int and saying that that's using int is too meticulous?Part of it is probably historical. Part of it is because at 4 bytes, and int is exactly on word on the vast majority of hardware that Java has targeted since it came out. 8-byte words are becoming more common (64-bit hardware) but still in the minority.

  • Getting an error when getting string form the clipboard.

    java.awt.datatransfer.Clipboard cannot be applied to (java.awt.datatransfer.StringSelection,(anonymous java.awt.event.ActionListener)I 'm doing the following in the program source code.
        StringSelection stringSelection = new StringSelection( "123456" );
        Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
        clipboard.setContents( stringSelection, this );

    The method you are calling doesnt take the objects you are passing it (their types exactly) as parameters. Namely, I would say, the anonymous ActionListener. Do what youre doing outside the declaration of the ActionListener, inside the scope of the class you want this to refer to.
    Also, putting in a little effort is a great way to get a question answered. Just saying. :-)

  • Server is up/down???

    Dear All,
         I am trying to get authentication from my server, by using the below function...Here is a doubt...Once if my server is in "DOWN" state, i am getting the errors fired in my command prompt...how can i avoid this???.....i mean, i want to avoid the process of authentication, if the server is "DOWN"....how to find out whether a server is running in that url or not????
    public String authenticateMe(String username, String password)
    String setcookie="";
    String cookie="";
    try
    URL theurl = new URL("http://192.168.10.55:8001/names.nsf?login&username=" + username + "&password=" + password);
    HttpURLConnection.setFollowRedirects(false);
    HttpURLConnection hurl = (HttpURLConnection)theurl.openConnection();
    hurl.connect();
    setcookie = hurl.getHeaderField ("set-cookie");
    if(setcookie!=null)
    int index=setcookie.indexOf(";");
    cookie=(setcookie.substring(0,index)).trim();
    hurl.disconnect();
    hurl=null;
    catch(Exception exp)
    {exp.printStackTrace();}
    return cookie;
    bye,
    Sakthivel S.

    I haven't used the Timer class much myself. Would suggest you look at the tutorial at: http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html
    and at the API documentation. Together they should have all the info. you need.
    Then just experiment until you get it to work. If you run into any problems post again to ask someone else.
    To start you off, I was thinking of something along the following lines (untested, just typed straight in):
    private javax.swing.Timer timer;
    private final int MILLISECONDS_DELAY = 15 * 60 * 1000; // 15 minutes
    private void login()
        // code to login here
        // successful login
        if (timer == null) // if first time
             // create timer passing anonymous ActionListener to
             // handle event fired after delay
             timer = new Timer(MILLISECONDS_DELAY, new ActionListener()
                 public void actionPerformed(ActionEvent ev)
                     login();
             timer.setRepeats(true); // keeps repeating itself
             timer.start(); // start it off
    // assumes client has logged in to server already
    private void request()
        // send request to server
        timer.restart(); // reset timer to zero
    }

  • Public void actionPerformed(ActionEvent e)

    public void actionPerformed(ActionEvent e)
            if(e.equals("north"))
                e.getSource().getClass(CLI);
        } hi i have a class called CLI which handles all the methods. i am reating a gui. i have created the buttons and layout and added actionlisteners to them. i am having trouble assigning the method north() whic is of type static void to the button.
    bassically when the button "north" is pressed i want to call the method North. i have been recommened to use the getSource() method from
    import java.util.EventObject;
    any ideas on where im going wrong?

    Forget getSource, assign a separate anonymous ActionListener to each button, that way when actionPerformed is called you already know which button was pressed.
    All you need to do (if you've put a handler method private void north() into your main class) is:
    northButton.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent e)  {
             north();
      });(And, obviously, similarly for other buttons).
    This creates an instance of an anonymous inner class and connects the button to it so that the actionPerformed method is called when the button is pressed. That, in turn, calls north(); Because it's an inner class it can use the methods of the class it's contained in.

  • Beginners Questions about Multiple JPanels in JFrame and event handling

    I am a newbie with SWING, and even a newerbie in Event Handling. So here goes.
    I am writing a maze program. I am placing a maze JPanel (MazePanel) at the center of a JFrame, and a JPanel of buttons (ButtonPanel) on the SOUTH pane. I want the buttons to be able to re-randomize the maze, solve the maze, and also ouput statistics (for percolation theory purposes). I have the backbone all done already, I am just creating the GUI now. I am just figuring out EventHandlers and such through the tutorials, but I have a question. I am adding an ActionListener to the buttons which are on the ButtonPanel which are on JFrame (SOUTH) Panel. But who do I make the ActionListener--Basically the one doing the work when the button is pressed. Do I make the JFrame the ActionListener or the MazePanel the ActionListener. I need something which has access to the maze data (the backbone), and which can call the Maze.randomize() function. I'm trying to make a good design and not just slop too.
    Also I was wondering if I do this
    JButton.addActionListener(MazePanel), and lets say public MazePanel implments ActionListenerdoesn't adding this whole big object to another object (namely the button actionlistener) seem really inefficient? And how does something that is nested in a JPanel on JFrame x get information from something nested in another JPanel on a JFrame x.
    Basically how is the Buttons going to talk to the maze when the maze is so far away?

    I'm not an expert, but here's what I'd do....
    You already have your business logic (the Maze classes), you said. I'm assuming you have some kind of public interface to this business logic. I would create a new class like "MazeGui" that extends JFrame, and then create the GUI using this class. Add buttons and panels as needed to get it to look the way you want. Then for each button that does a specific thing, add an anonymous ActionListener class to it and put whatever code you need inside the ActionListener that accesses the business logic classes and does what it needs to.
    This is the idea, though my code is totally unchecked and won't compile:
    import deadseasquirrels.mazestuff.*;
    public class MazeGui extends JFrame {
      JPanel buttonPanel = new JPanel();
      JPanel mazePanel = new JPanel();
      JButton randomizeB = new JButton();
      JButton solveB = new JButton();
      JButton statsB = new JButton();
      // create instanc(es) of your Maze business logic class(es)
      myMaze = new MazeClass();
      // add the components to the MazeGui content pane
      Component cp = getContentPane();
      cp.add(); // this doesn't do anything, but in your code you'd add
                // all of your components to the MazeGui's contentpane
      randomizeB.addActionListener(new ActionListener {
        void actionPerformed() {
          Maze newMaze = myMaze.getRandomMazeLayout();
          mazePanel.setContents(newMaze); // this is not a real method!
                                          // it's just to give you the idea
                                          // of how to manipulate the JPanel
                                          // representing your Maze diagram,
                                          // you will probably be changing a
                                          // subcomponent of the JPanel
      solveB.addActionListener(new ActionListener {
        void actionPerformed() {
          Solution mySolution = myMaze.getSolution();
          mazePanel.setContents(mySolution); // again, this is not a real
                                             // method but it shows you how
                                             // the ActionListener can
                                             // access your GUI
      // repeat with any other buttons you need
      public static void main(String[] args) {
        MazeGui mg = new MazeGui();
        mg.setVisible(true);
        // etc...
    }

  • Looks like instantiation of interfaces; what is it?

    Some of the code examples I see look like instantiation of interfaces. But this is not possible. I would like to know what is happening here 'under the hood' and would appreciate it if anyone can shed some light on this.
                jchkBold.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    setNewFont();
            });This looks like an attempt to instantiate an anonymous ActionListener.
    In the following example, which works fine, it appears that AudioClip has been instantiated.
    import java.net.URL;
    import java.applet.Applet;
    import java.applet.AudioClip;
    import javax.swing.JLabel;
    import javax.swing.JApplet;
    import javax.swing.ImageIcon;
    public class DisplayImagePlayAudio extends JApplet {
        private AudioClip audioClip;
        URL urlImage = this.getClass().getResource("./images/denmark.gif");
        URL urlAudio = this.getClass().getResource("./audio/denmark.mid");
        public DisplayImagePlayAudio() {      
        @Override
        public void init() {
            this.add(new JLabel(new ImageIcon(urlImage)));
            audioClip = Applet.newAudioClip(urlAudio);
            audioClip.play();
        @Override
        public void start() {
            if (audioClip != null) {
                audioClip.play();
        @Override
        public void stop() {
            if (audioClip != null) {
                audioClip.stop();
    }

    Equitus wrote:
    Thank you jverd. You explanation is clear. I had guessed that some kind of implicit instantiation of another object must be underneath this construction. I speculated that it might be a copy of its outer class, with the new instance implementing the interface. You have called it object X. Is this an instance of Object? Every instance of every class is an instance of Object. But no, it's not just "plain ol' Object." It's a new class that's defined on the fly that is a direct subclass of Object (in the case of implementing an interface) or a direct subclass of whatever parent class you specified with new (in the case of extending a class).
    Thanks also warnerja. I guess from your answer that there is a new copy of Applet class instantiated. The line here:
    private AudioClip audioClip;seems to declare an object AudioClip.It declares a variable of type "reference to AudioClip."
    Presumably the declarations do not determine if the entity is to become a primitive, object or object that extends or implements something else until the next step,It can't be a primitive unless the type you declare is one of the primitives, none of which have subtypes. If you declare it as a reference type (class or interface), as is done here, then all that say is that it's a reference that will either be null or will point to an object that is a concrete instance of the indicated type or a subtype. That is it will be that class or a subclass, or a class that implements that interface.
    in which the declaration becomes an entity of some kind. Now you're just making up terms. It's just a variable, and the variable has a type. This is true for all variables. There's no "entity of some kind" voodoo.
    Am I correct to conclude that you can cast Applet as AudioClip?Er, no. Why would you think that?

  • Code Reduction == Good Idea?

    I just went philosophical again and wondered:
    In the producing industry, there is something like a user-based value analysis of features. Features that aren't used will be removed, as every feature costs money, and more costs are less earnings. Near-hypothetical example:
    A car usually has at least one ashtray. Market research found out that most people don't smoke in their cars, though, or even if so, rather use the window than the ashtray. So the controlling guy sez: hey, we spend $5 to equip every car with an ashtray and cigarette lighter that isn't used by anyone. Let's get rid of that thing by default (and charge anyone who'd like to have it an additional $50), because then we're not forced to rely on the ashtray manufacturer anymore, don't need to coordinate supply shipments, don't need to waste workhours on ashtray installation and don't need to pay for it.
    After all, 100,000 cars *$5 = $500,000.
    How about applying the same principle application code? An application has so many features, but some are just never used. It's code that has to be maintained, and that's usually kept because developers are hesitant to throw old work away. They'd rather add more features than remove old ones - maybe it might be useful later. So there's a chance of ending up with an attic full of old code that nobody really cares about. This code makes it more difficult to maintain the software - understanding a small complext program is easier than understanding a large complex program - and is therefore also a cost factor.
    Is there any consideration given to "lean code"?
    [I don't want to argue my point here, it is basically just a question like: "why isn't it done?" or "why doesn't it make sense to do this"?]

    lol Sure. But you know, there's the difference
    between what developers think must be done and what
    they actually do. Like "we should have coding
    guidelines" or "we should do documentation" or "we
    should use a CM process".This is true for everyone, not just programmers.
    Call me Rene, btw. :)Excellent, Rene. I'll try to remember.
    I agree that redundancy is bad. But I'm not talking
    about duplicate code here. Think about some GUI -
    there are maybe two or three buttons that basically
    aren't needed. These buttons have each a few lines of
    initalizer code, maybe some properties, each maybe an
    anonymous ActionListener (worst case), maybe
    multi-threading code for their functions and the code
    for the functionality they stand for. So you might
    really end up with lots of messy code you could do
    without. Given a reasonably good regression test
    suite, you might begin removing it completely...Right - I see your point. You're saying that it could be 100% non-repeated code and STILL be chock full of features that no one uses or are used rarely.
    Maybe it's the same thought that goes with the
    Test-First approach, write tests for the specs, then
    implement. Do not implement what's not in the specs...
    I should talk to one of my former professors when I
    get the chance.... maybe there's place for a little
    research in this area.I think it speaks to how these features are driven in the first place. Where do they come from? Marketing surveys of actual users? Developers' imaginations? Help desk complaint tallys? "Wish lists" of some kind? How are they prioritized and ranked?
    Unfortunately for me, I've never seen s'ware done in anything other than an ad hoc way. There are rarely design docs or formalize procedures. I've never worked on commercial s'ware, so I can't say how M$ or others do it.

  • More than 127 ActionListeners

    I have an array of JCheckBox (the size of the array is 192). And I added actionListeners to each of them. But it is only working up to the first 127 checkboxes. So it looks like I hit a the limit of adding actionListeners. Can anyone confirm if this is the case? And can anyone suggest a workaround to this problem? thanks.

    If you are using a separate Inner class, like an anonymous ActionListener, for each checkbox, maybe there is a limit on the number of Inner classes you can have in a Class. Anyway, a better way would be to create one ActionListener class that all of the Checkboxes use. You can use the getSource() method of the ActionEvent to see which checkbox triggered the Action, and then process accordingly.
    for (int i = 0; i < myCheckBoxArray.length; i++) {
        myCheckBoxArray.addActionListener(CheckBoxActionListener);
    private class CheckBoxActionListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
    int whichBox = -1;
    for (int i = 0; i < myCheckBoxArray.length; i++) {
    if (e.getSource() == myCheckBoxArray[i]) {
    whichBox = i;
    break;
    // now whichBox has the index of the checkbox that was clicked,
    // or -1 if it wasn't one of those checkboxes that triggered the event.
    // Do your processing!
    Could come up with a cleaner iteration if I were more awake, but that should work!

  • Bug? Unable to add ActionListener using Anonymous class.

    Hi,
    I come accross one strange behaviour while adding ActionListener to RCF component.
    I am trying to add the ActionListener in the managed bean using the Anonymous.
    We can add the actionListener to a button using following methods. I am talking about the the first case. Only this case is not working. Rest other 2 cases are working properly.
    Case 1:
    class MyClass {
         RichCommmandButton btnTest = new RichCommmandButton();
         public MyClass(){
              btnTest.addActionListener(new ActionListener(){
                   public void processAction(ActionEvent event){
    Case 2:
    class MyClass implements ActionListener {
         RichCommmandButton btnTest = new RichCommmandButton();
         public void processAction(ActionEvent event){
    <af:button binding="#{myClassBean.btnTest}" actionListener="#{myClassBean.processAction}"/>
    Case 3:
    class MyClass implements ActionListener {
         RichCommmandButton btnTest = new RichCommmandButton();
         public void addActionLister(){
              //Use EL to add processAction(). Create MethodBinding
              FacesContext facesContext = FacesContext.getCurrentInstance();
    ELContext elContext = facesContext.getELContext();
    ExpressionFactory exprfactory = facesContext.getApplication().getExpressionFactory();
              MethodExpression actionListener =
    exprfactory.createMethodExpression(elContext, "#{myClassBean.processAction}", null, new Class[] { ActionEvent.class });
              btnTest.setActionListener(actionListener);
         public void processAction(ActionEvent event){
    Java has provided good way to use the Anonymous classes while adding the listeners. It should work with the RCF also.
    Some how i found the case 1 usefull, as i can have as many buttons in my screen and i can add the actionListener in one method. Also it is easy to read. I dont have to see the JSPX page to find the associated actionListener method.
    Is it a bug or i am wrong at some point?
    Any sujjestions are welcome.
    - Sujay.

    Hello Sujay,
    As I said in my previous reply, you can try with request scope. In JSF you shouldn't use the binding attribute very often. I agree that anonymous class is nice, but don't forget that you might be dealing with client state saving here so it cannot be perfectly compared with Swing that maintains everything in RAM. What I think happens with you currently is the following:
    1. Bean is created and the button instance as well. The ActionListener is added to the button;
    2. The view is rendered and while it is, the binding attribute is evaluated, resulting in the get method of your bean being called;
    3. Since the method returns something different than null, the button instance created in 1. get used in the component tree;
    4. The tree's state is saved on the client, since your class isn't a StateHolder, nor Serializable, the StateManager doesn't know how to deal with it so it gets discarded from the saved state and maybe from the component itself (would have to debug the render view phase to be sure);
    5. The postback request arrives, the tree is restored. When the handler reaches the button, it call the bean that returns the same instance that was used in the previous tree (since not request scoped), which is BAD because the remaining of the tree is not made of the same object instances, but rather new deserialized ones. The component then gets updated from the client state saved in 4, this might also be where the listener get removed (again debugging would tell you this, but I would tend more with the previous possibility). Note that with a request scoped bean you would have to add the listener during the first get method call (by checking if the component is null) or in the constructor as you're doing right now. It would be a very clean way and you could give the request bean (and thus the listener) access to the conversation scoped bean through injection which is very nice as well.
    6. The invoke application phase occurs and the listener is no longer there.
    Btw, this isn't a rich client issue, more a specification one. I'm curious if it works in a simple JSF RI application, if it does then I guess it would be a bug in Trinidad and/or rich client state handling architecture (using FacesBean).
    Regards,
    ~ Simon

  • Anonymous help me it's urgent

    When ever i am running a report, in the job queue always it is showing owner as anonymous. But report is working fine there is no problem in that.
    But if i will executing the test report which is provided by oracle corporation it is giving me the user as "rwuser."
    I am confused can anyone tell me how to solve this problem. It's urgent.
    Ajit Verma

    Please see the post Ownerid=anonymous
    Regards,
    The Oracle Reports Team.

  • ActionListener as nested class, anonymous class etc.

    I'm programing my own text editor and im trying to decide in what way to implement an ActionListener for JMenuItems.
    I've got 3 possible ideas of how to implement it.
    First way is to implement the ActionListener in the same class as the JMenu and use a switch statement or a fairly long if-else statement.
    Second way is to create nested classes for each ActoinEvent.
    public class OuterClass {
         //Some random code here...
         private class ActionClass implements ActionListener{
              public void actionPerformed(ActionEvent e) {
                   //Random code.
    }And final way is creating anonymous classes adding ActionListeners for each JMenuItem.
    menuItem.addActionListener(new AbstractAction(){
    public void actionPerformed(ActionEvent e) {
    });But i can't decide on wich of these are the moste correct and accepted way.
    Could someone point me to the right direction?
    Edited by: Idono on Jun 3, 2010 7:36 PM

    the only time you would do the first one would be if you wanted several ActionListeners to do the EXACT SAME THING.
    Then you just write the "actionClass" one time, and have each Component use it.
    private class ActionClass implements ActionListener{
              public void actionPerformed(ActionEvent e) {
                   //Random code.
    menuItem.addActionListener(new ActionClass());
    menuItem1.addActionListener(new ActionClass());
    menuItem2.addActionListener(new ActionClass());
    menuItem3.addActionListener(new ActionClass());But (as the other person mentioned) usually you use anonymous classes because each component has different actions.
    menuItem.addActionListener(new AbstractAction(){
    public void actionPerformed(ActionEvent e) { ... }
    menuItem1.addActionListener(new AbstractAction(){
    public void actionPerformed(ActionEvent e) { ... }
    menuItem2.addActionListener(new AbstractAction(){
    public void actionPerformed(ActionEvent e) { ... }
    });

  • EXTREMELY URGENT : KM navigation through Anonymous Portal

    Hi All,
    I have used AdminSingleFolderWoEP Selector as a LayoutSet for my KM documents.The Collection Renderer assigned is ConsumerTableCollectionRenderer.
    Now the problem is that for a folder structure say :
    Documents
       Folder1
          File1
          File2
       Folder2
          File1
    Now on click of a link say documents in my Anonymous Portal I get the view with 2 folders. On clicking back get the previous page.
    But if I select a Folder1 I get to see the display with File1 and File2. Now clicking the back button of InternetExplorer there is a warning:
    "Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
    To resubmit your information and view this Web page, click the Refresh button."
    But if I navigate through BreadCrumb there is no such problem.
    Please help me out.
    Waiting for ur reply,
    Sweta.

    Hi all,
    I searched for this in the Service Market Place - SAP NOTE : 1062341
    This feature has been provided by SAP keeping security in mind.
    Thanks for all ur help.
    Sweta

  • Urgent : Images and stylesheets not being applied in anonymous page.

    Hi
    The anonymoys page of our portal application is not showing the images, and also the styles are not applying.Everytime I open the anonymous page, its poppoing up a dialog box for authentication,and on cancelling it, showing the page without images,but the other text data which we are fetching form the XML files in the same KM document is being shown.
    We have set all the permissions, to the KM document, assigned the anonymous role, end user role and gave full control to all the roles related.
    We assigned 'anonymous' for authentication scheme of all the objects.
    The images are displalyed on clicking 'show image'  on the page.
    We have tried all the means we know.Please help us in fixing the problem.
    Help will be appreciated.
    Thanks & Regards
    Swetha

    1 check ur "Authentication Scheme" has changed to o "anonymous"
    which is in ur iview/page's properties/Advanced.
    2 check ur role has assigned to anonymous group.
    3 check URL  http://<portalserver>:<port>/irl/portal/anonymous
    hope it can help u

  • Urgent !!!   anonymous user deleted

    Hi everyone:
    By accident I deleted the anonymous user, how can I create this user again? Because I'm getting this error when I want to logon in the portal:
    Application error occurs during processing the request.
    Details: java.lang.NullPointerException
    at com.sap.portal.navigation.Gateway.service(Gateway.java:74)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
    at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
    Thanks.
    Eduardo Campos

    Create user account with username Guest. You do not need to assign any roles. Assign the user to Anonymous Users group.
    #Comma-separated list of guest users that are supported. These users must exist with this unique ids in the user repository. This parameter does only take effect if ume.login.anonymous_user.mode=1
    (Type: String, Default: 'Guest')
    ume.login.guest_user.uniqueids=guest
    Karu

Maybe you are looking for

  • How to install windows on a mac

    hi, I was wondering if anyone has an easy guide on how to install windows on a mac. I purchased a external hard drive to make it easier but still absolutely no clue on how to do this. At college some software isn't compatible with mac so i need to in

  • Error when restricting variable in Business explorer.

    Hi, I'm getting below pasted error in my BI 7.0 system...need to know how to proceed further for resolving same? See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. Exception Text *************

  • Help I have done all the things on this site and can't fix face time

    Could any one tell me how can I fix Face time ?? I have reset the settings ..turned it off and back on, all the things on the page and it is not working ..used to work perfect but always after an update it doesn't work anymore...and the phone company

  • Music download not working.

    I bought this song on iTunes on my iPad and it would'nt finish downloading. It kept looping. I even tried downloading it off my P.C. it did the exact same thing. What do I do?

  • Applescript support for future CS

    Hi, I was asked by a customer if Applescript is going to be still supported in the next CS versions (starting from CS5). As Adobe is focusing more and more on Flex/AS3 for extensions, the question has made sense to me. So I ask here. Do you have any