Skip to content
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

Netbeans cannot find "value"-attribute on DataTableColumn #510

Closed
rubiktubik opened this issue Sep 19, 2016 · 4 comments
Closed

Netbeans cannot find "value"-attribute on DataTableColumn #510

rubiktubik opened this issue Sep 19, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@rubiktubik
Copy link

Hi i'am using Bootsfaces 0.9.1
I can use every component without problem except
the <b:DataTableColumn/> in a <b:dataTable/> Netbeans shows me the
following message:

The attribute value is not defined in the component dataTableColumn

I included the xmlns:b="http://bootsfaces.net/ui" tag and use this component as follows:

<b:dataTable value="#{customerBean.allCustomers()}" var="customer" lang="de">
        <b:dataTableColumn value="#{customer.firstName}" label="Vorname"></b:dataTableColumn>
        <b:dataTableColumn value="#{customer.secondName}" label="Nachname"></b:dataTableColumn>
        <b:dataTableColumn value="#{customer.phoneNumber}" label="Telefon"></b:dataTableColumn>
        <b:dataTableColumn value="#{customer.email}"></b:dataTableColumn>
        <b:dataTableColumn value="#{customer.address.street} #{customer.address.houseNumber}, #{customer.address.city.zipCode} #{customer.address.city.name}" label="Adresse"></b:dataTableColumn>
</b:dataTable>

The weird thing is that in the browser everything works as expected! Only Netbeans shows the error!

Do i found a bug or i'am doing something wrong?

@stephanrauh
Copy link
Collaborator

stephanrauh commented Sep 19, 2016 via email

@rubiktubik
Copy link
Author

thank you for the quick answer! You mean its a bug in netbeans?

@stephanrauh
Copy link
Collaborator

Actually, it's a feature. Netbeans tries to enforce correct JSF code. However, it's one of those annoying features that tend to stand in your way. JavaScript frameworks like Angular or Polymer add attributes to existing HTML tags all the time. I suspect Netbeans forbids these attributes, too. It would be nice if there was an option to disable this feature. However, I haven't found this feature (but maybe I didn't look thoroughly enough).

@stephanrauh
Copy link
Collaborator

I've added the "value" attribute to the taglib and uploaded a developer preview BootsFaces-0.9.2-SNAPSHOT to Maven Central. See #369 on how to get it.

@stephanrauh stephanrauh self-assigned this Sep 19, 2016
@stephanrauh stephanrauh added this to the v1.0.0 milestone Sep 19, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants