<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Populating a text field with dimensions of a Picture document based on the Picture document selected from another field in AJAX fashion  in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/populating-a-text-field-with-dimensions-of-a-picture-document/m-p/313262#M263</link>
    <description>&lt;P&gt;Hello,
I am not sure how to accomplish this :&lt;/P&gt;
&lt;P&gt;I have a "Single Document Suggestion" widget which shows a list of "Picture" documents. As soon as the user selects a picture document from the drop down the "path" gets set against the field. So far so good.&lt;/P&gt;
&lt;P&gt;Now what I want is once the user selects the "Picture" document I want to retrieve its dimensions (ex:- 1024x654) and set it in another text field. The link "https://doc.nuxeo.com/display/NXDOC/How+to+Impact+Another+JSF+Component+from+a+Command+or+Select" which provides some help in accomplishing this. But I have the following questions if I want to follow this approach.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;How do I populate the select box with "Picture" documents in the first place (the example gets the values for the drop down from "#{themeConfigurationActions.getAvailableFlavors(themeActions.defaultTheme)}"). But in my case I want the list of Pictures from a folder. So where to write this Java code ?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Do I have to create a widget of type template and create sub widgets for the text box inside that widget in order to accomplish this? Why is this constraint ?&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Is there any other way to accomplish this ?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,
Mohamed&lt;/P&gt;</description>
    <pubDate>Tue, 29 Dec 2015 00:46:46 GMT</pubDate>
    <dc:creator>mohamedap_</dc:creator>
    <dc:date>2015-12-29T00:46:46Z</dc:date>
    <item>
      <title>Populating a text field with dimensions of a Picture document based on the Picture document selected from another field in AJAX fashion</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/populating-a-text-field-with-dimensions-of-a-picture-document/m-p/313262#M263</link>
      <description>&lt;P&gt;Hello,
I am not sure how to accomplish this :&lt;/P&gt;
&lt;P&gt;I have a "Single Document Suggestion" widget which shows a list of "Picture" documents. As soon as the user selects a picture document from the drop down the "path" gets set against the field. So far so good.&lt;/P&gt;
&lt;P&gt;Now what I want is once the user selects the "Picture" document I want to retrieve its dimensions (ex:- 1024x654) and set it in another text field. The link "https://doc.nuxeo.com/display/NXDOC/How+to+Impact+Another+JSF+Component+from+a+Command+or+Select" which provides some help in accomplishing this. But I have the following questions if I want to follow this approach.&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;How do I populate the select box with "Picture" documents in the first place (the example gets the values for the drop down from "#{themeConfigurationActions.getAvailableFlavors(themeActions.defaultTheme)}"). But in my case I want the list of Pictures from a folder. So where to write this Java code ?&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Do I have to create a widget of type template and create sub widgets for the text box inside that widget in order to accomplish this? Why is this constraint ?&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Is there any other way to accomplish this ?&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,
Mohamed&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 00:46:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/populating-a-text-field-with-dimensions-of-a-picture-document/m-p/313262#M263</guid>
      <dc:creator>mohamedap_</dc:creator>
      <dc:date>2015-12-29T00:46:46Z</dc:date>
    </item>
  </channel>
</rss>

