Hello mates,
I was wondering if there's a way to localize the "remove" text of the collector and binding another function to update another component ...
Kind Regards ,
Sven
the collector issues
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Can you post your code please Sven? Collector can be attached to any command component whose text you can change anyway.
hello again ,
when i use collector inside:
it works alright yet i want to update the sum of the values when an element is removed from the table
i tried with <p:commandLink> yet it updates the values but doesnt update the table eventhough collector removes the element. Table isnt rendered again...
so i tried using <p:ajax> with in <h:commandLink> like this :
ajax aint working ... i'm kinda stuck
any ideas ?
when i use collector inside:
Code: Select all
<h:commandLink value="Erase">
<p:collector value="#{stock}" removeFrom="#{SelectOneMenuBean.stocks}"/>
</h:commandLink>
i tried with <p:commandLink> yet it updates the values but doesnt update the table eventhough collector removes the element. Table isnt rendered again...
so i tried using <p:ajax> with in <h:commandLink> like this :
Code: Select all
<h:commandLink value="Erase">
<p:collector value="#{stock}" removeFrom="#{SelectOneMenuBean.stocks}"/>
<p:ajax update="total" action="#{SelectOneMenuBean.removeFromPortfolioTable}"/>
</h:commandLink>
any ideas ?
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Can you post the datatable part as well?
Regarding to this post...
Is there any way to identify the removed element from a collector into the managed bean?
I think the collector is a very good component, but i want to delete the removed element from database, so, that's because i want to identify what element was removed from collector.
Thanks
Is there any way to identify the removed element from a collector into the managed bean?
I think the collector is a very good component, but i want to delete the removed element from database, so, that's because i want to identify what element was removed from collector.
Thanks
-
- Information
-
Who is online
Users browsing this forum: No registered users and 32 guests