SetActionListener method does not print anything in the html file...

Hi
I want to add the actionlistener from my Javacode, but the setActionListener method does not have any effect on the Html. I can not figure out why. Can someone tell me what I'm doing wrong?
tnx
Andras
public class Links {
private HtmlPanelGrid topLinks;
public HtmlPanelGrid getTopLinks() {
TopLinks links = new TopLinks();
Class args[] = {ActionEvent.class};
if (topLinks == null) {
topLinks = new HtmlPanelGrid();
}else {
topLinks.getChildren().clear();
MethodBinding mb =
FacesContext.getCurrentInstance().
getApplication().
createMethodBinding("#{event.actionevent}", args);
HtmlCommandLink command = new HtmlCommandLink();
command.setValue("Link 1");
command.setActionListener(mb);
topLinks.getChildren().add(command);
return topLinks;
public void setTopLinks(HtmlPanelGrid topLinks) {
this.topLinks = topLinks;
generates this html:
<body>
<form id="_id0" method="post" action="/Test/event.faces" enctype="application/x-www-form-urlencoded">
<table>
<tbody>
<tr>
<td><a href="# onclick="document.forms['_id0'['_id0:_idcl'].value='_id0:_id2'; document.forms['_id0'].submit(); return false;">Link 1</a></td>
</tr>
</tbody>
</table>
<input type="hidden" name="_id0" value="_id0" />
<input type="hidden" name="_id0:_idcl" /></form>
</body>
As you can see there is no sign of the actionListener... :(

You may completely misunderstand something.
Don't worry even if you can't see the actionListener in the html.
There is one in the server side.

Similar Messages

  • Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    Downloaded iTunes 11.0.2.26,the print CD jewel case does not print right,all the songs listed are printed in about a 1/2in. space,how can I get it to print right

    I recently upgraded to itunes 11.0.1.12 and that fixed the CD Jewel Case Insert song titles problem. Thanks itunes. It's working great!!.

  • Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black, when I try to synchronise my ipod to my library it comes up with a message saying "iTunes could not back up the ipod because a session could not be

    Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black constantly. When I try to synchronise my ipod with my iTunes library it comes up with a message saying " iTunes could not back up the ipod because a session could not be started with the ipod. Please help and reply if you know an answer!!!

    Try this previous discusssion:
    https://discussions.apple.com/message/12518406#12518406

  • ItemRenderer in a datagrid column   setStyle() does not do anything to the appearance

    I have a custom ItemRenderer in a datagrid column, however
    the setStyle() does not do anything to the appearance. when it is
    called. Any ideas?
    <mx:DataGridColumn dataField="area" width="50"
    headerText="Area">
    <mx:itemRenderer>
    <mx:Component>
    <mx:Text>
    <mx:Script>
    <![CDATA[
    override public function set data( value:Object ) : void {
    super.data = value;
    setStyle("Color",0xff0000);
    if(data.area == 'G'){
    setStyle("backgroundColor",0xff0000);
    }else{
    setStyle("backgroundColor",0xff0000);
    ]]>
    </mx:Script>
    </mx:Text>
    </mx:Component>
    </mx:itemRenderer>
    </mx:DataGridColumn>

    Your renderer code looks a little strange. This works, and
    may get you started:

  • HT5953 How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    How can I speed up the "start speaking" feature in iBooks? (System Preferences Dictation and speech does not do anything to the speech speed.) The rate is a bit to slow.

    Hi, I had the same problem you described, and I noticed that there are two ways of activating text to speech on iBook for Mac, with different speed results (at least on my MacBook Pro Retina display)
    On your iBook you can select the text and and then click on > More> Start speaking,  and you will get a certain speed, which tends to be too slow.
    But you will get the speed you had selected with "Go to System Preferences>Dictation and Speech>Text to speech. In there is a slider to adjust the speaking rate." if you use the TOP MENU (next to the black apple)  under Edit>Speech>Start Speaking. I also learned that under System Preferences>Dictation and Speech>Text to speech, there is an option for a shortcut which is very helpful. And you can change Key. Hope this was helpful.

  • Just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy

    just updated itunes now menu bar has dissapeared no black and white box at top left and ctr b does not bring anything up. i need file view etc please help driving me crazy

    Is the iTunes window in FullScreen mode?
    If so, press esc key.

  • Printer does not print. Even the test page did not print. I put in a new cartridge.

    Printer doesn't print.

    adnerb wrote:
    My printer does not print the computer screen says scanner failure. I have a HP Officejet 5610v All-in-One printer. The printer is connected with USB.  The operating system is Windows Vista.  Help!!
    See the troubleshooting steps in this page.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • The "Awesome Bar" is not working. It does not recall anything from the Bookmarks

    Just updated to new Firefox. In the past, when I would start to type a site in the address bar firefox would complete it as it was already in my bookmarks. But now it does not do anything. It just sits there waiting for me to complete the address. I could start to type Netf and it automatically finish Netflix.com
    Why is this happening. Also, for the first couple days of the new version I had to go back into Tools, Options and reset things at least 3 or 4 times before they would finally stay the way I wanted them.
    I would tell it Never Remember History and after while I would look and it would say, Remember History. I wanted a Blank Start page, and it kept changing it. It's okay now but the Awesome Bar is not working at all.

    Do your bookmarks show up in the auto-suggest drop-down list?
    ''If not:'' Under Options > Privacy, in the bottom section, does it still show that Firefox should suggest Bookmarks in the Location bar?
    If auto-suggest works but the autofill isn't happening, you could double-check that it has not been disabled here:
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''autof''' and pause while the list is filtered
    (3) If the '''browser.urlbar.autoFill''' preference is bold and "user set" to false, double-click it to switch its value back to the default value of true. That should work in new tabs.
    It's it already true, hmm, I wonder whether this is a private browsing issue? (I didn't test with automatic private browsing.)

  • HP Photosmart 7510 does not print anything black

    Hi.
    I have a HP Photosmart 7510 about 1,5 year old.
    It does not print black any longer even if there is inc in the HP original cartrige.
    No error meessage. Compleetly empty where black should be on testprinting. Cleaning priter head does not help.
    Can it be the same problem that have been solved for other printers like 3070 by some PM provided by Ciara_B?
    Regards.

    The document here may help resolve black not printing on your HP Photosmart 7510.  Be sure to check the vents as shown in solution three.  If the first three solutions do not resolve the issue the post here may help.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I can not print anything on the Internet; e-mail, articles, etc.

    Any thing I want from the Internet will not print, I downloaded the new FireFox. When using internet explorer there is no problem.

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages

  • How do i get an e-mail or coupon that does not print entirely on the page .moved to fit on the page

    How do I get an e-mail or couponthat does not fit entirely on the pqge moved tofit onthe page

    I Finally resolved my problem after much research. On my I pad 4 with retina in the field under settings there is a list to choose from-- ex. Aol,Google, yahoo, etc. I chose other and entered att. Used pw and bingo! Problem resolved. It is somewhat configured a little different; but at least I can get all of my 500 e mails.
    apple takes IMAP but this is under pop And at least my persistence paid off. You would think something so simple would be informative to us in a better way.

  • Does anybody know why my ipod touch 3rd generations screen does not show anything? The screen is all black but my ipod synchronises to my iTunes library. Please help!

    Does anybody know why my ipod touch 3rd generations screen does not work show anything? The screen is all black like it is switched off, but my ipod synchronises to my iTunes library. It is fully charged. Please Help!!!

    Try here:
    iPod touch: Hardware troubleshooting

  • HTTP POST method does not pass parameters to the server

    Hi ,
    I am using SSO using VSJ product and implemented using a filter.
    I have problems as below
    1. Every request to the web server will be intercepted by this vsj filter and if sso does not succeed it will send 403
    2. my system will detect 403 in web.xml and redirect to login page
    3. user key in username and password and log in
    4. after successful login set the HttpSession and redirect to homepage
    Problem is subsquent form submit / ajax call using "POST" method cannot pass any parameters to the servers ( parameters sent using POST will be null in the servers )  ? GET is okay
    If i comment out the vsj filter altogether , everything works as per normal.
    My Question is
    1. Is there anyway to overcome come ?
    2. Is there any method to clear off whatever this sso vsj has set ( clear cookies / start new browser instance / etc ) in order to forget the state
    Any idea?
    Thanks

    Yes.
    here to illustrate
    public MyFilter extends VSJAuthFilter
    *public void doFilter(){*
    *if(session.getAttribute("loginSucces") != true){*
    super.doFilter(); //call VSJ Auth filter to perform SSO in order to get User Principal populated.
    *}else{*
    chain.doFilter(); // normal filter
    My Filter only intercepts *.jsp and *.do
    Basically here is the pattern that i observe
    1. If i hit default url (homepage.do) for the first time it will trigger the super.doFilter() , it will then throw 403 and redirect to login.html , after success and go to homepage , subsequent POST parameter is missing
    2. if i hit the external login page directly just to simulate ( eg : login.html ) it wont trigger this filter , after success and go to homepage , subsequenet POST parameter is okay
    3. GET is always ok
    I am using weblogic server 10.x btw
    Thanks

  • I just purchased Apple USB SuperDrive and connected to my Mac mini 2012 but does not show anything on the screen. Not sure if its working.

    I just purchased Apple USB SuperDrive and connected to my Mac mini late 2012 USB slot but nothing shows up on the screen.
    I have OS X versus 10.10.3

    The system bus and all connected products should appear in the system profile or in the
    hardware part of About this Mac (more info) and if that does not, restart the computer with
    the external Apple USB SuperDrive plugged in. •As a last resort, if nothing else, before a
    return trip to be rid of the SuperDrive, you could try a system management controller reset.
    The SMC reset is not a first choice, so I won't post a link to the support instruction page.
    A new Apple USB SuperDrive should be seen as hardware in system information report.
    Of course, an icon of disc media should appear once the disc is inserted into the drive, too.
    Good luck & happy computing!

  • My printer acts like its printing but its not printing anything on the paper

    I have tried all I can think of. I have unplugged the printer from computer and electricty. I have removed device and reinstalled. I have no idea what happened. It was working the other day and then all of a sudden it is doing this.

    Hey Athanagild,
    What model printer? 
    Does it print from the front panel (test/config page)?
    Thanks,
    dan

Maybe you are looking for

  • How do I use panorama

    Hi I tried to use Panorama on my camera on my 4S today, and not sure I'm doing it right. I hit the options button then panarama, then hit the camera button and moved slowly as specified but it didnt see to work. Has anyone else experienced this?

  • Keynote remote app no longer working with keynote for ipad

    noticed after upgrading that the keynote remote does not pair with keynote for the ipad.  Any suggestion on a resolution or anyone else experiencing this issue?

  • Moved music to new hard drive now itunes can't find songs !

    This is what I did. My old hard drive was getting full so I bought an additional hard drive and installed it. I then selected all the music in the itunes music folder, copied it, then pasted it into a new folder on the new hard drive. I changed the s

  • Adobe Reader App- Nexus 7

    I have a NEXUS 7 with ADOBE READER installed. Previously when I tapped a PDF icon file a dialog box would open a give me a choice of which APP to use. (Adobe or Think Free). I always chose ADOBE. However, now it seems that the THINK FREE has taken ov

  • How can I solve the Error 110 problem when trying to modify the Description of Properties of PDF?

    Hello! I am trying to modify the Description of the PDF fies but I cannot do for some files because of the Error 110.  How can I solve this problem so I can succesfully modify the Description of the Properties of the PDF files? I also have one more q