Hello Ivy Team I have some questions concerning the access of Components data, methods and updating in ivy-jsf. In my example there is a main dialog which implements 2 components:
There are two targets I want to reach:
One restriction is, that all that should be build up like described with components. Saving events will be handled first in the component, then in the main-page. Another might be to preferably stay away from self made javascripts.
That's allready something, but I didn't find any way to access the List-Component.
Two possible solutions I see:
An Update could exceptionally be fired by the update-Attribute :j_id_s:itemsListeForm in the brother-component (I don't know if it would work) Thank you for your support! Greetings asked 19.02.2014 at 10:21 Alexis |
Hello Alexis, In the interface of your component you can set the input and output arguments. In the output arguments you set the attributs you need on the parent component (value1, value2). In the input arguments you set the attributs you need on the child component (value3). Now you can bind the attribut to the data class of the parent component like this:
Every time the logic of the child component hits a endpoint you can update the form and you have the new values. To update something from the parentComponent in the ChildComponent you can use this code snippet
When I need a form in the childcomponent and update it with some commands on the parentComponent I always declare the form before I include the component
hint: if you want to avoid ids made by primfaces regards Raphael answered 19.02.2014 at 15:40 Raphael Bürgin Hello Raphael Thanks a lot for your answer! It brought me some steps toward the target. There is P(parent), A and B. B surrounded with form4Component. Data of B doesn't get updated, although data is updated in P and the gui has been updated. Same result after manualy invoking an event in B.
(19.02.2014 at 17:11)
Alexis
Maybe a f:event will help
Every time you render/update the Component or View this event will be fired
(20.02.2014 at 14:42)
Raphael Bürgin
1
Thank you a lot Raphael!
(25.02.2014 at 14:46)
Alexis
|
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 19.02.2014 at 10:21
Seen: 7,159 times
Last updated: 25.02.2014 at 14:46