-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Component b:breadcrumbs and Fix to selectOneMenu with converter #919
Conversation
i.E. <b:panel col-md="6" collapsible="false"> </b:panel>
Small hack, if there is no dot found in expression. i.E. <ui:param name="calculatedAge" value="#{ !empty ref ? util.getAgeAsString(ref.birthday) : '' }" /> <b:inputText id="ageDisplay" span="2" value="#{ calculatedAge }" readonly="true" disabled="true" renderLabel="true" label="Age" />
This fixes a wrong class assignment, if a dropmenu is added inside a ui:repeat as part of another DropMenu. Now the correct class dropdown-submenu will be assigned <b:navBar ...> <b:navbarLinks > <b:dropMenu ....> <ui:repeat var="subDropMenu" value="#menuHandler.dropmenus}"> <b:dropMenu value="#{ subDropMenu.displaylabel }" > .... </b:dropMenu> </ui:repeat> </b:dropMenu> </ui:repeat> </b:navbarLinks>
Fix wrong display of panel collapse icon, if panel header contains a link <b:panel collapsible="false"> <f:facet name="heading"> <i class="fa fa-battery-three-quarters" style="padding-right:20px" /> <h:outputText value="Battery charge left: 75% " /> <b:link style-class="some-class" onclick="alert('clicked!'); return false;" value="Click this link to show an alert box." /> <b:badge style="margin-left:10px; background-color:#5cb85c" value="good" /> </f:facet> .... </b:panel>
<b:selectOneMenu value="#{ vereinSession.verein }"> <ui:remove>v is entity referencing a record of the table verein</ui:remove> <f:selectItems value="#{ managerVerein.list() }" var="v" itemValue="#{v}" itemLabel="#{ v.name }" /> </b:selectOneMenu>
Enables including subcomponents inside i.E. h:panelGroup or omnifaces Tree elements ....
Added attribute hideNoSelectionOption and noSelectionOption support for SelectOneMenu
New Component b:breadcrumbs
Thanks looks good! This fixes converters on selectOneMenu. I will try to test it shortly |
I pulled @mtvweb fork master and tried it with my converter test project but there were errors. It said |
first error was |
Added my test classes, xhtml and build bootsfaces.jar as a zip file. |
Fixed comments
Added mavenfiles generated by gradlew
yes it works with the packaged jar. the converter also seems to be working which is awesome |
@chongma Can we merge the PR? I'm a bit confused because your comments seem to indicate that the merged version doesn't work, while the binary version Jens sent to you does work. Did I get this right? |
@stephanrauh I struggled with the forked project but the zipped jar worked fine. Is there some way i can clone and test the PR before merge? Otherwise we can just merge and see what happens? |
I‘ve build my file from mtvweb Master with gradlew build Meanwhile i‘ve added the mavenfiles generated by gradle too, but these only affects mainly css files. |
BTW: It seems that the select2 files are disappearing somewhere during the gradle / mvn build |
Sorry, it seems that GitHub is not working properly with iPhone Safari. Some strange things are happen there. (Closing the pull request, without ever pushing the close button, etc..) |
@chongma I had the same difficulties with GitHub. I followed the instructions to merge the PR locally. Git insisted an merging the changes and committing a merge commit to the branch of Jens. In the end, I did just this and checked the files individually. |
I've merged the PR and added the beer demo to the showcase. I just wonder if we should add some Spanish, Italian, and German beer brands :). |
I've also fixed the gradle build. Now it includes the select2 files. Thanks for pointing this out, @mtvweb |
I've added a documentation page for the breadcrumb component. @mtvweb Do you have any suggestion what to add to the page? BTW: I'll add the reference section later. It's generated automatically, but currently I've got the wrong version of the plugin installed, so it can only generate code for BootsFaces 2. |
In fact it's only another kind of a link list, like b:listLinks, b:navLinks, b:tabLinks or b:pillLinks. So I don't see nothing special to document. A standard navLink or navCommandLink should render well in the new component. Separater will result in an empty entry "/ /" |
This pull request contains the following changes:
Example:
(Example taken from : https://memorynotfound.com/using-custom-converter-for-hselectonemenu/)
Enabled Option "hideNoSelectOption" for b:selectOneMenu
Modified Loop in navLink, navCommandLink to find parent boots faces component