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

CommandButton inside a Datatable not working #489

Closed
mannan4net opened this issue Aug 17, 2016 · 9 comments
Closed

CommandButton inside a Datatable not working #489

mannan4net opened this issue Aug 17, 2016 · 9 comments
Assignees
Labels
Milestone

Comments

@mannan4net
Copy link

mannan4net commented Aug 17, 2016

Hi Team I am trying to add a row dynamically into the datatable it is perfectly working fine, but if I want to remove a particular row having a button for in each row the actionListenor not called and unable to remove a row. However the same example with jsf working fine, but I need the datatable from bootsfaces framework.

<b:row>
<b:column col-md="12">
<b:commandButton look="success" icon="glyphicon-plus" value="" process="@this" ajax="true" immediate="true" 
update="addedItem" actionListener="#{CGHSRegistrationBean.addSocietyMaintenanceCharges}" />                                    
</b:column> 
</b:row>
<b:row>
<b:column>
<b:dataTable searching="false" paginated="false" id="addedItem" ajax="true" save-state="true" value="#{CGHSRegistrationBean.rd.societyMaintenanceChargeses}" var="item" >
<b:dataTableColumn id="a" label="Remove Row">
<b:commandButton value="k" icon="=glyphicon-minus" process="@this" ajax="true" immediate="true" update=":CGHSReg addedItem" 
actionListener="#{CGHSRegistrationBean.removeSocietyMaintenanceCharges(item)}"/>
</b:dataTableColumn>
<b:dataTableColumn id="b" label="Maitenance Head"><b:inputText value="#{item.maintenanceHead}" /></b:dataTableColumn>
<b:dataTableColumn id="c" label="Maitenance Charges"><b:inputText value="#{item.maintenanceCharges}" /></b:dataTableColumn>
</b:dataTable>
</b:column>
</b:row>

The first table is from jsf and the second is from bootsfaces.
bootsfaces datatable issue vs jsf datatable

@stephanrauh
Copy link
Collaborator

You're lucky - I've fixed this bug last weekend. Please try the latest Snapshot of BootsFaces-1.0.0 and report back whether it fixes your problem or not.

See #369 on how to get the snapshot.

@mannan4net
Copy link
Author

Thanks master, I will diffidently check and update to you.

@mannan4net
Copy link
Author

Hi Master I am unable to use the mentioned snapshot, hence not able to check the fix., Or please let me know the development/beta version of 1.0.0 of bootsfaces url to download.

@stephanrauh
Copy link
Collaborator

The fault is on my side. For some reason, I've confused the version numbers. The correct version number is 0.9.2-SNAPSHOT (located at https://oss.sonatype.org/content/repositories/snapshots/net/bootsfaces/bootsfaces/0.9.2-SNAPSHOT/).

@Koster2013
Copy link

I tested it with version 0.9.2. It doesn't work. The commandbutton work only outside the datatable...

@Koster2013
Copy link

Koster2013 commented Sep 21, 2016

That works for me :)

               <h:column>
                    <f:facet name="header">Download</f:facet>
                    <b:commandButton value="button" 
                        action="#{homeView.download}">
                    </b:commandButton>
                </h:column>
            </b:dataTable>

@stephanrauh
Copy link
Collaborator

I'm a bit confused. What does work and what does not? Reading your posts, I understand using b:dataTableColumn doesn't work, while using the some command button with h:column does work. Did I get you right?

@LuisToro
Copy link

Work for me too.!! Thx stephanrauh. I have a question, when release the next stable version?

@stephanrauh
Copy link
Collaborator

Soon. Maybe even end of this month, although we've still got a lot of open bugs and little time to close them. But still, it's time to publish a new release.

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

4 participants