• Post Reply Bookmark Topic Watch Topic
  • New Topic

Unordered lists in JSF or ADF

 
Daniel Conner
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a menu for a webpage that was originally built using html and javascript. I need to convert it to be used with JSF and ADF. In the html, the menu items used an unordered list inside of a div tag.
It looks something like this:

<div id="shademenu" class="shadetabs">
<ul>
<li><a href="#" rel="dropmenu0">Item1</a></li>
<li><a href="#" rel="dropmenu1" rev="testfield">Item2</a></li>
<li><a href="#" rel="dropmenu2">Item3</a></li>
<li><a href="#" rel="dropmenu3">Item4</a></li>
<li><a href="#" rel="dropmenu4">Item5</a></li>
<li><a href="#" rel="dropmenu5">Item 6</a></li>

</ul>
</div>

AND

the submenu(s) have links that look something like:

<div id="dropmenu0" class="dropmenudiv">
<a href="#">Data</a>
<a href="#">Data</a>
<a href="#">Data</a>
</div>

It is unclear to me how to work with my javascript menu to get the same look and feel with JSF or ADF as I did with html. Any insights would be great. Thanks.

Daniel
[ February 15, 2007: Message edited by: Daniel Conner ]
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, technically, a menu is ordered, since otherwise the items would randomly show up just anywhere. But I know what you mean.

You might want to look at the JSCookMenu control at myfaces.apache.org. It's a very flexible and powerful multilevel menu that handles all the JavaScript tricks for you and does it in ways that work within the JSF framework.

There's an implementation of ADF that's part of the MyFaces project. It's the Tobago subproject. Just in case you have been working with the original Oracle stuff and hadn't noticed. I haven't tried it out yet. Last project I needed ADF for, it wasn't ready yet.
 
Daniel Conner
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your input. I looked at jscookMenu and Tobago and it looks like it would be difficult if not impossible to maintain the look and feel needed for my application. There was a prototype written for the application I am working on. This prototype was written in html and javascript. Since the prototype was written, we have chosen the framework we want to use(a combination of ADF and JSF). So, I need to be able to transfer over the same exact look and feel of the html/javascript prototype to j2ee using one of the faces frameworks. I don't mind using the javascript in my app, I just want to be able to explicitly maintain the look and feel while using adf/jsf code for the current html part of the code. Up until this point, I have grown to be a big fan of jsf... but this seems like a pretty simple functionality that I am having the hardest time finding a good solution to. I appreciate any guidence or help you can give me. Thanks.

Daniel
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!