English 中文(简体)
JSF2 h: 选择一列表框, 使 <li > 取代 < option >
原标题:JSF2 h:selectOneListBox to render <li> instead of <option>
  • 时间:2012-05-22 21:03:44
  •  标签:
  • jsf-2

我们正在使用 JSF2.0, 我们的 HTML 尾端需要在列表框中设置 , 而不是 。 我们在jsf 中使用 。 我们正试图使用 Jquery 来更改

是否有其他的赌注解决办法?

最佳回答

不使用< a href=> 标准 JSF HTML 组件设置 的 。 它们都不带任何幻想地设定标准的 HTML 元素 。

您需要查看具有强化皮肤功能支持的 JSF 组件库 。 http:// www. primefaces. org/ ” rel= 'nref='" http:// www. primefaces. org/ sshowcase/ ui/ select OnyListbox.jsf" rel="nofollow" {code\\lt; p: select OneListbox> 生成一个“ code\\ > lt; ul> li> 组件库, 例如, 它在封面下使用 jrref=" http://www. primefaces.org/showcase/ ui/ eite OnyListbox.jsf" > nofolf > > howcase p .

<ul>
    <li class="ui-selectlistbox-item ui-corner-all">Option 1</li>
    <li class="ui-selectlistbox-item ui-corner-all ui-state-active">Option 2</li>
    <li class="ui-selectlistbox-item ui-corner-all">Option 3</li>
</ul>
问题回答

暂无回答




相关问题
JSF redirect doesn t work

I have a problem with redirecting a page in my JSF application. My navigation rule look like this : <navigation-rule> <from-view-id>/index.xhtml</from-view-id> <...

Get JSF managed bean by name in any Servlet related class

I m trying to write a custom servlet (for AJAX/JSON) in which I would like to reference my @ManagedBeans by name. I m hoping to map: http://host/app/myBean/myProperty to: @ManagedBean(name="myBean"...

JSF2 - what scope for f:ajax elements?

I have this form: <h:form> <h:outputText value="Tag:" /> <h:inputText value="#{entryRecorder.tag}"> <f:ajax render="category" /> </h:inputText> ...

Modifying JSF Component Tree in PhaseListener

I m having an issue. I ve implemented a PhaseListener, which is meant to add a style class to any UIInput components in the tree that have messages attached to them, and removes the style class if it ...

JSF 2 - clearing component attributes on page load?

The real question: Is there a way to clear certain attributes for all components on an initial page load? Background info: In my application, I have a JSF 2.0 frontend layer that speaks to a service ...

JSF2 - backed by EJB or ManagedBean?

As I am learning JSF2, I realized I am not sure what the backing components should be. From design point of view, what is the difference between EJBs and @ManagedBeans? In the end I am going to use ...

热门标签