This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!

raghu namala

Greenhorn
+ Follow
since Apr 12, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by raghu namala



Hi All,

i am developing a web application using JSF2. i have a welcome page with header, footer, left menu and content pane. click on a left menu displays a config page in the content pane asynchronously. This config page has properties and submit button. I have returned null from the submit binding method to stay on the previous page. the navigation goes to config page(as it is the previous page for application). i wanted the same welcome page with updated config page in the content pane. Any help appreciated.

Thanks in Advance.
5 years ago
JSF

login page:
<div id="header"></div>
<div id="footer"></div>
<div id="leftNav>
<ul>
<li>menu1</li>
<li>menu2<li>


</div>

<div id="centerPane">
</div>


when click on menu1 fetch myPage1.xhtml and place it in centerPane div...


now my centerPane div has

<div id="centerPane">
<div id="status" ></div>
<h:commandButton value="start" action="#{mybean.myMethod1}"actionListener="#{mybean.myMethod2}"/>


</div>

public String myMethod1(){
log.info("this line is printing from the navigateMe method: ");
return null;
}

how click on start commandButton displaying new page(i.e.myPage.xhtml)....[BUT THE VIEW SHOULD BE SAME WITH THE HEADER, FOOTER, LEFT AND CONTENT PANES...)
6 years ago
JSF
hey thanks for the reply Brendan,

i tried that it dint work...

i m using jsf 2.0 facelets...i have tree menu on the left pane... when a click on the tree menu item will display the contents of center pane using ajax(using jquery for it..)..now the contentPane has commandButtons.. when i click this button it should invoke a method on jsf bean..and it should stay on the same page...and also is it possible to get the output of the string to change the color of commandButton???

6 years ago
JSF
Hi,

i created a page with h:commandButton..i dont want my page to be navigated to new page when this button is clicked.. i saw some posts on java ranch. i tried to using history.back()..

any help appreciated..

thanks in advance
6 years ago
JSF