Questions asked by Tinh Nguyenhttps://answers.axonivy.com/questions/asked-by/542/tinh-nguyen/?type=rssQuestions asked by <a href="/users/542/tinh-nguyen" >Tinh Nguyen</a>enMon, 10 Oct 2016 05:11:08 -0400How to check mandatory fields in wsdlhttps://answers.axonivy.com/questions/2085/how-to-check-mandatory-fields-in-wsdl<p>Hi guys, Could you help me with this issue. Is there anyway that we can validate the required field in Ivy Webservice? Example add the property required = true, But it's only not generate the comment optional in Webservice request. It still can pass if I leave it empty. @XmlElement(name = "ProcessType", required = true) <img alt="alt text" src="http://i.imgur.com/hEDDa82.png"></p> <p>I also try to add nillable = true but it did not help.</p> <p>If any body have the idea please give me a hand. Thanks</p>Tinh NguyenMon, 10 Oct 2016 05:11:08 -0400https://answers.axonivy.com/questions/2085/how-to-check-mandatory-fields-in-wsdlivywebserviceMapping data of parent JSF dialog get data back from Child Componenthttps://answers.axonivy.com/questions/1326/mapping-data-of-parent-jsf-dialog-get-data-back-from-child-component<p>Hi, I have a scenario like this: I build an Ivy component for user selection(Autocomplete). Then after select a user, parent dialog should receive the selected IUser object.</p> <p>My current solution :</p> <p>Parent dialog : <img alt="alt text" src="http://answers.axonivy.com/upfiles/parent_dialog_1.png"> Dataclass <strong>UserData</strong> <img alt="alt text" src="http://answers.axonivy.com/upfiles/userData.png"> Child Component <img alt="alt text" src="http://answers.axonivy.com/upfiles/child_component_1.png"> Mapping data in startLink <img alt="alt text" src="http://answers.axonivy.com/upfiles/Mapping.png"></p> <p>With this solution, I can get the selected <strong>IUser</strong> via object <strong>userData</strong>. Because I think in this case, 2 variables point to the same memory, so parent dialog can get the updated data when it change on child component.</p> <p>But I have a requirement to make it more flexible, do not use object <strong>userData</strong>. User UserName or IUser for input parameter.Like this Parent dialog : <img alt="alt text" src="http://answers.axonivy.com/upfiles/Parent_dialog_2.png"></p> <p>But when I try to mapping like my current solution. Parent dialog can not get the selected data from child component. I think because <strong>UserName</strong> is a string, and it will create a new object when we change it. For IUser, it's an Interface.</p> <p>So if anybody has experience to solve it. Please help me.</p> <p>Thank you and regards.</p>Tinh NguyenFri, 22 May 2015 10:52:24 -0400https://answers.axonivy.com/questions/1326/mapping-data-of-parent-jsf-dialog-get-data-back-from-child-componentjsfcomponent