[prev in list] [next in list] [prev in thread] [next in thread]
List: myfaces-user
Subject: Problem with headerLink
From: "Hasnain Badami" <hasnainbadami () gmail ! com>
Date: 2006-02-27 18:25:53
Message-ID: 955e5f3b0602271025m23e00b0bre14fa4be9d3e9496 () mail ! gmail ! com
[Download RAW message or body]
Hi
I am setting up a header link component programatically. The code is
Div div = new Div();
headerLink = new HtmlHeaderLink();
headerLink.setActionListener(application.createMethodBinding("#{
doubleHeadPanelGridController.callFunction}", new Class[] {ActionEvent.class
}));
headerLink.setAction(application.createMethodBinding("#{
doubleHeadPanelGridController.returnAction}", null));
headerLink.setImmediate(true);
HtmlPanelGroup hpg = new HtmlPanelGroup();
HtmlOutputText collapseToggler = new HtmlOutputText();
HtmlOutputText expandToggler = new HtmlOutputText();
HtmlOutputText collapseTogglerText = new HtmlOutputText();
collapseToggler.setValue(">");
expandToggler.setValue("v");
collapseTogglerText.setValue("Interest");
collapseToggler.setValueBinding("rendered",
application.createValueBinding("#{toggle}"));
expandToggler.setValueBinding("rendered",
application.createValueBinding("#{! toggle}"));
hpg.getChildren().add(collapseToggler);
hpg.getChildren().add(expandToggler);
hpg.getChildren().add(collapseTogglerText);
headerLink.getChildren().add(hpg);
div.getChildren().add(headerLink);
The problem I am encountering is that the page is reloaded when I click the
link but neither the action listener nor the action method is called. I even
tried using h:messages but it gives me no error. Any help shall be highly
appreciated.
hassnain
[Attachment #3 (text/html)]
<div>Hi</div>
<div> </div>
<div>I am setting up a header link component programatically. The code is</div>
<div> </div>
<div> Div div = new \
Div();<br> headerLink = new \
HtmlHeaderLink();<br> headerLink.setActionListener(applic \
ation.createMethodBinding("#{doubleHeadPanelGridController.callFunction}", \
new Class[] {ActionEvent.class \
}));<br> headerLink.setAction(application.createMethodBinding("#{doubleHeadPanelGridController.returnAction}", \
null));<br> headerLink.setImmediate(true);</div> \
<div> </div> <div> HtmlPanelGroup hpg \
= new HtmlPanelGroup();<br> HtmlOutputText \
collapseToggler = new \
HtmlOutputText();<br> HtmlOutputText expandToggler = new \
HtmlOutputText();<br> HtmlOutputText collapseTogglerText \
= new HtmlOutputText(); \
<br> collapseToggler.setValue(">");<br>  \
; expandToggler.setValue("v");<br> & \
nbsp; collapseTogglerText.setValue("Interest");<br> collapseToggler.setValueBinding("rendered", \
application.createValueBinding("#{toggle}"));<br> expandToggler.setValueBinding("rendered", \
application.createValueBinding("#{! \
toggle}")); <br> hpg.getChildren().add(collapseToggler);
<br> hpg.getChildren().add(expandToggler);<br> &nbs \
p; hpg.getChildren().add(collapseTogglerText);<br> & \
nbsp; headerLink.getChildren().add(hpg);<br> <br> \
div.getChildren().add(headerLink);</div> <div> </div>
<div>The problem I am encountering is that the page is reloaded when I click the \
link but neither the action listener nor the action method is called. I even \
tried using h:messages but it gives me no error. Any help shall be highly \
appreciated. </div>
<div> </div>
<div>hassnain</div>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic