-
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
b:inputText labelColMd #735
Comments
|
on my setup it does not work with numbers it is exactly the same. i tried |
My intention was to leave the programmer as much freedom as possible. If |
Which HTML code should Currently it renders this HMTL code: <div id="j_idt174" class="form-group">
<label for="input_j_idt174" class=" col-md-4 control-label">something</label>
<input id="input_j_idt174" name="input_j_idt174" type="text" class="form-control">
</div> It works as designed, but this particular cornercase isn't really supported because we never defined the semantics of |
I tried adding both labelColMd and colMd earlier and it didn't help |
Let's track the bug down step by step. What's the behavior you expected? Or putting it the other way round, what did not happen after adding both More technically speaking: which HTML code is rendered, and which HTML code do you want BootsFaces to rendered? |
@chongma May I "ping" you? :) |
Sorry I never replied your to your previous comment |
Sorry I closed the issue accidentally. I am on a phone. My understanding of the documentation was that defining those two attributes like
would lay out text input like
It doesn't seem to do that so maybe I don't understand it correctly |
If you're using horizontal forms, the HTML code looks almost like you're expecting: <b:form horizontal="true">
<b:inputText value="#{myBean.value}" labelColMd="3" colMd="9" label="My label"/>
</b:form> generates <div id="j_idt20:j_idt21" class="form-group ">
<label for="input_j_idt20:j_idt21" class=" col-md-3 control-label">My label</label>
<div class="col-md-9">
<input id="input_j_idt20:j_idt21" name="input_j_idt20:j_idt21" type="text" class="form-control">
</div>
</div> |
is the problem that i am using |
Responsive attributes only work on horizontal forms (b:form
horizontal="true").
For non horizontal forms, you'll need to at least create a b:row, and
possibly add the columns.
We could do it better here. Could you please post the whole html you would
expect to get? Having a full example we could search for better handling on
this on the next release.
El lun., 1 de mayo de 2017 13:53, Matthew Broadhead <
[email protected]> escribió:
… is the problem that i am using h:form instead of b:form? i tend to stick
to h:form as i don't fully understand the difference
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#735 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACAucNvO8hghqDqCwp4uSQiq3nPmy9JWks5r1ceogaJpZM4NIz7C>
.
|
@chongma @ggam I've just seen that there is a difference between So we might need to update the documentation. |
you can probably close this bug? i haven't tried horizontal b form or form-group as i don't have much time at the moment but i imagine it will work. i read the documentation for labelColMd and colMd on inputText so i didn't see it related to the main horizontal forms documentation. |
I guess we've changed the meaning of horizontal, stacked and inline forms recently, confusing you and (probably) many other programmers. I hope this doesn't cause too many problems. |
i have been using
<b:inputText label="something" value="#{myBean.myValue}" />
for a while because it looks nice and cuts down a lot on coding. i noticed that there were thelabelColXx
attributes and thought these were intended to allow the label to layout next to the control. i triedlabelColMd="one-third"
but it doesn't seem to have any effect other than add a couple of spaces in front of the label. does it need to be used in conjunction withcolMd="two-thirds"
? if so fit does not seem to work on my setupThe text was updated successfully, but these errors were encountered: