<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>2.- Usage ( From Xml file to CRUD Portlet)</title>
  <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_category?p_l_id=&amp;mbCategoryId=11877" />
  <subtitle>Here all about general usage,</subtitle>
  <entry>
    <title>Expando Attributes with XMLPF</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=393345" />
    <author>
      <name>Stoicho Gizdov</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=393345</id>
    <updated>2016-10-22T22:03:19Z</updated>
    <published>2016-10-22T22:03:19Z</published>
    <summary type="html">I am looking for a way to add the expando capability to a selected new custom entities I have developed and be able to manage those entities using the XMLPF generated portlets as well.&lt;br /&gt;I do not believe tht functionality has been itroduced in the current feature set.&lt;br /&gt;Also, the expado API documentation is somewhat thin to say the least and I am in somewhat of a time crunch to get this done.&lt;br /&gt;Looking for some advice on:&lt;br /&gt;In addition to the Portlet java and view/edit JSP templates, where else would I need to make changes in order to be able to do CRUD operations on the new entities with custom attributes?&lt;br /&gt;Also, I need to expose those new entities in the &amp;#034;Custom Fields&amp;#034; portlet in the LR Control Panel. I found an article by Jonas Yuan here ( &lt;a href="http://web.liferay.com/web/jonas.juan/blog/-/blog/adding-custom-attributes-capabilities-on-custom-assets-in-liferay-6-through-plugins"&gt;http://web.liferay.com/web/jonas.juan/blog/-/blog/adding-custom-attributes-capabilities-on-custom-assets-in-liferay-6-through-plugins&lt;/a&gt;) and followed it. Maybe I can incorporate in the code generation templates if I can add a custom tag to the schema to selectively enable those entities.&lt;br /&gt;Another way I had in mind was to generate a table with attribute types and attributes and kind of mimic the Expando API but through the use of XMLPF.&lt;br /&gt;&lt;br /&gt;Any recommendations / suggestions?</summary>
    <dc:creator>Stoicho Gizdov</dc:creator>
    <dc:date>2016-10-22T22:03:19Z</dc:date>
  </entry>
  <entry>
    <title>Validation of fields with existing Liferay entities</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=393305" />
    <author>
      <name>Stoicho Gizdov</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=393305</id>
    <updated>2016-10-22T21:44:27Z</updated>
    <published>2016-10-22T19:04:07Z</published>
    <summary type="html">As part of my project I am using existing Liferay entity objects, like Phone, Country, Region, Address, etc and need to present them as part of one of my custom entities (Contact Manager entity).&lt;br /&gt;The schema for XMLPF fo LR6.2 allows to specify a fully qualified classname for the validation class, but the generated code is incomplete / wrong and does not compile either.&lt;br /&gt;I have been looking for a way to make this part of the templates for generating the code ( I believe it is not that difficult to do), but I could use a bit of guidance which templates will need to be modified to make this &amp;#034;new feature&amp;#034; available.&lt;br /&gt;The main issue is that the current templates only look at the custom developed entities and only import the XXXLocalServiceXXX. But the LR OOB entities only expose the remote service for interacting with those (and rightfuilly so).&lt;br /&gt;If anyone knows of a better way to do this with the released version 3 of XMLPF, please, let me know.</summary>
    <dc:creator>Stoicho Gizdov</dc:creator>
    <dc:date>2016-10-22T19:04:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: Search doesn't work in multi application</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=393296" />
    <author>
      <name>Stoicho Gizdov</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=393296</id>
    <updated>2016-10-22T21:46:38Z</updated>
    <published>2016-10-22T18:27:25Z</published>
    <summary type="html">I know this is quite a bit old thread, but if anyone is interested, iIn addition to what Juan mentioned, there are better ways to do this:&lt;br /&gt;I did it as follows:&lt;br /&gt;Made the search code part of the .vm template, generating the portlet java file. &lt;br /&gt;    I updated the Portlet_XXXXXXPortlet_java.vm with the code, necessary to do the proper filtering. It was actually quite easy. If you are interested in the actual code modification, let me know. &lt;br /&gt;Other ways include modifying the schema and/or using conditional schema elements to enable/disable &amp;lt;filter&amp;gt; processing only if a &amp;lt;mdfilter&amp;gt;true&amp;lt;/mdilter&amp;gt; (as in master-detail filter new tag) is present...&lt;br /&gt;Again, those are just ideas...</summary>
    <dc:creator>Stoicho Gizdov</dc:creator>
    <dc:date>2016-10-22T18:27:25Z</dc:date>
  </entry>
  <entry>
    <title>RE: Insert values into table via API</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=338718" />
    <author>
      <name>Juan G.</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=338718</id>
    <updated>2015-11-16T08:11:41Z</updated>
    <published>2015-11-16T08:11:41Z</published>
    <summary type="html">Hola Ricardo,&lt;br /&gt;&lt;br /&gt;there is a better API for adding entities. Search TranslationsLocalServiceUtil.for addTranslations, there the numeric identifier will be created for you automatically.</summary>
    <dc:creator>Juan G.</dc:creator>
    <dc:date>2015-11-16T08:11:41Z</dc:date>
  </entry>
  <entry>
    <title>Insert values into table via API</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=336827" />
    <author>
      <name>RICARDO GARCIA HERNANZ</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=336827</id>
    <updated>2015-11-05T09:51:43Z</updated>
    <published>2015-11-05T09:50:55Z</published>
    <summary type="html">Hi, I&amp;#039;m Ricardo from Spain.&lt;br /&gt;&lt;br /&gt;I&amp;#039;m trying to use the code generated by xmlportletfactory to insert values into the tables in a migration process.&lt;br /&gt;&lt;br /&gt;Im using this code with the *LocalServiceUtil generated by the xmlportletfactory:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span class="code-lines"&gt;&amp;nbsp;1&lt;/span&gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;2&lt;/span&gt;Translations translations = TranslationsLocalServiceUtil.createTranslations(idTranslation);&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;3&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;4&lt;/span&gt;translations.setCompanyId(Long.parseLong(companyId));&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;5&lt;/span&gt;translations.setGroupId(Long.parseLong(groupId));&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;6&lt;/span&gt;translations.setUserId(Long.parseLong(userId));&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;7&lt;/span&gt;...&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;8&lt;/span&gt;translations.setLogical_delete(logicalDelete);&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;9&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&lt;span class="code-lines"&gt;10&lt;/span&gt;TranslationsLocalServiceUtil.addTranslations(translations);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;My question is regarding the id for the table. &lt;br /&gt;&lt;br /&gt;There is a way to get the next id I have to use using the API?&lt;br /&gt;Is this the right way to insert values via API?&lt;br /&gt;&lt;br /&gt;Thanks in advance and sorry for my bad english.</summary>
    <dc:creator>RICARDO GARCIA HERNANZ</dc:creator>
    <dc:date>2015-11-05T09:50:55Z</dc:date>
  </entry>
  <entry>
    <title>Tags and Categories not saved when form is multipart</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=329099" />
    <author>
      <name>Andrea</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=329099</id>
    <updated>2015-10-05T10:03:49Z</updated>
    <published>2015-09-27T12:42:42Z</published>
    <summary type="html">Hi all, thanks for this useful tool.&lt;br /&gt;I found a possible bug, or maybe some misunderstanding.&lt;br /&gt;When a form includes a file upload, tags and categories are not saved. &lt;br /&gt;In fact, the _assetTagNames and _assetCategoryIds are empty in the serviceContext variable.&lt;br /&gt;This happens in both updateXXX and addXXX. &lt;br /&gt;I tested regenerating the code without &amp;lt;document&amp;gt; and &amp;lt;image&amp;gt; tags, and indeed it get back to work properly.&lt;br /&gt;Apparently, the problem is in extractFields() which rewrites the request variable. However, I checked the serviceContext in the original request: tags and categories are already missing.&lt;br /&gt;&lt;br /&gt;The topic is probably the same as post http://www.xmlportletfactory.org/forum/-/message_boards/message/91311&lt;br /&gt;but ...&lt;br /&gt;1) I do not understand completely their suggestion, which is probably more complex that shown&lt;br /&gt;2) I&amp;#039;d like to listen an &amp;#034;official&amp;#034; opinion.&lt;br /&gt;&lt;br /&gt;I&amp;#039;m using the 6.1 version.&lt;br /&gt;Please note: I&amp;#039;m working with the .vm files in /Resources, so any suggestion to fix the problem by myself is welcome.&lt;br /&gt;&lt;br /&gt;Thanks, Andrea</summary>
    <dc:creator>Andrea</dc:creator>
    <dc:date>2015-09-27T12:42:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: A simple many to many relationship</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=297264" />
    <author>
      <name>Bartolomé Martínez Román</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=297264</id>
    <updated>2015-05-14T16:40:01Z</updated>
    <published>2015-05-14T16:31:16Z</published>
    <summary type="html">Hello again,&lt;br /&gt;&lt;br /&gt;I have been trying different approaches to this problem, and this one that you can find below fits my requirements:&lt;br /&gt;&lt;br /&gt;We have three entities: Brands, Centers and BrandsXCenters.&lt;br /&gt;&lt;br /&gt;We cant&amp;#039; define the many-to-many relationship, but we can:&lt;br /&gt;&lt;br /&gt;- Define a Validation in BrandsXCenters for Brands&lt;br /&gt;- Define a Master / Detail for Centers and BrandsXCenters&lt;br /&gt;&lt;br /&gt;With this two steps you can:&lt;br /&gt;&lt;br /&gt;- Create the Brands.&lt;br /&gt;- Create the Centers &amp;amp; Create the associated BrandsXCenters.&lt;br /&gt;&lt;br /&gt;It&amp;#039;s not a perfect solution, but controlling in the service implementation that is not possible to create a BrandsXCenters that already exists does the job.&lt;br /&gt;&lt;br /&gt;Attached you can find the associated XML.&lt;br /&gt;&lt;br /&gt;Hope it helps,&lt;br /&gt;&lt;br /&gt;Bartolomé</summary>
    <dc:creator>Bartolomé Martínez Román</dc:creator>
    <dc:date>2015-05-14T16:31:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: A simple many to many relationship</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=294446" />
    <author>
      <name>Bartolomé Martínez Román</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=294446</id>
    <updated>2015-05-06T15:33:19Z</updated>
    <published>2015-05-06T15:33:19Z</published>
    <summary type="html">Hello Jack,&lt;br /&gt;&lt;br /&gt;I&amp;#039;m wondering if the new 3.0 version of XMLPortletFactory supports many to many relationships.&lt;br /&gt;&lt;br /&gt;I have been looking the files in the Examples section and the forum, but I haven&amp;#039;t found anything about many to many relationships.&lt;br /&gt;&lt;br /&gt;I know that this thread is old, but I prefer ask you about this here than in a new post.&lt;br /&gt;&lt;br /&gt;Thank in advance and congratulations for the project, I have been making tests with XMLPortletFactory this week and for CRUD portlets makes a lot of work.&lt;br /&gt;&lt;br /&gt;Bartolomé.</summary>
    <dc:creator>Bartolomé Martínez Román</dc:creator>
    <dc:date>2015-05-06T15:33:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: User of Document field and worflow</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=260868" />
    <author>
      <name>besson Thierry</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=260868</id>
    <updated>2015-01-14T08:33:01Z</updated>
    <published>2015-01-14T08:33:01Z</published>
    <summary type="html">Hi Juan&lt;br /&gt;&lt;br /&gt;Thanks for your reply!&lt;br /&gt;&lt;br /&gt;1) searching I found this LPS that seemed like even if it does not explicitly on the method copyParameter: &amp;#034;&lt;strong&gt;LPS-31320 Parameters aren&amp;#039;t copied by copy-request-parameters if encoding is MULTIPART_FORM_DATA&amp;#034;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;For testing the  xmlportletportletfactory xml is the same as your example 10  (http://www.xmlportletfactory.org/1-table-2-fields-varchar-and-document) with a little change: the property of field Description with &amp;lt;required&amp;gt;true&amp;lt;/required&amp;gt;&lt;br /&gt;My xml file i attach to this message pbcopyparam.xml&lt;br /&gt;to reproduce the bug must initiate action to create, do not enter a description and confirm.&lt;br /&gt;&lt;br /&gt;2) I use the single approver worflow. The xml i user is xmlsimple.xml&lt;br /&gt;&lt;br /&gt;Best regards</summary>
    <dc:creator>besson Thierry</dc:creator>
    <dc:date>2015-01-14T08:33:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: User of Document field and worflow</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=260181" />
    <author>
      <name>Juan G.</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=260181</id>
    <updated>2015-01-12T10:33:07Z</updated>
    <published>2015-01-12T10:32:39Z</published>
    <summary type="html">Hi Besson,&lt;br /&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;besson Thierry:&lt;/div&gt;&lt;div class="quote"&gt;&lt;div class="quote-content"&gt;&lt;br /&gt;1) on a add action, if you have à check error error (for example, a required field without information), we have a error (with no log) because the PortalUtil.copyParameter dont work with the multipart form. Also the method ObjectFromRequest generate exception. I work on liferay 6.2 EE SP9. I see that on older versions there was a bug reported on liferay but not in 6.2?&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Please, can you tell me which LPS is that?&lt;br /&gt;&lt;br /&gt;&lt;div class="quote"&gt;&lt;div class="quote-content"&gt;3) I active the workflow on my entity. I dont upload a document. On the worflow portlet the preview is good for the Edit action but view action on the the first time send : &amp;#034;no asset found&amp;#034;. After assign to me and edit, the view is good.&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Which workflow definition are you using? Single approver? Can you attach your XMLPortletFactory xml?&lt;br /&gt;&lt;br /&gt;Hopefully I can check this next week.&lt;br /&gt;&lt;br /&gt;Thanks!</summary>
    <dc:creator>Juan G.</dc:creator>
    <dc:date>2015-01-12T10:32:39Z</dc:date>
  </entry>
  <entry>
    <title>User of Document field and worflow</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=257692" />
    <author>
      <name>besson Thierry</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=257692</id>
    <updated>2015-01-01T18:01:42Z</updated>
    <published>2015-01-01T10:02:04Z</published>
    <summary type="html">Hello,&lt;br /&gt;xmlportlet factory is a very interesting project. I try to use diiférent functionality feature on an entity having a document type fields and I encounter the following problems:&lt;br /&gt;1) on a add action, if you have à check error error (for example, a required field without information), we have a error (with no log) because the PortalUtil.copyParameter dont work with the multipart form. Also the method ObjectFromRequest generate exception. I work on liferay 6.2 EE SP9. I see that on older versions there was a bug reported on liferay but not in 6.2?&lt;br /&gt;&lt;br /&gt;2) When i active workflow on my entity, if i upload a document, i have a error but no log. upgrade: After search, its because, i try to upload a file who exists in the document library...  &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;3) I active the workflow on my entity. I dont upload a document. On the worflow portlet the preview is good for the Edit action but view action on the the first time send : &amp;#034;no asset found&amp;#034;. After assign to me and edit, the view is good.&lt;br /&gt;&lt;br /&gt;Do you have some ideas for 1 and 3? &lt;br /&gt;&lt;br /&gt;Thank you very much for your work and excuse my english!</summary>
    <dc:creator>besson Thierry</dc:creator>
    <dc:date>2015-01-01T10:02:04Z</dc:date>
  </entry>
  <entry>
    <title>RE: Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=206521" />
    <author>
      <name>Juan G.</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=206521</id>
    <updated>2014-06-03T07:10:13Z</updated>
    <published>2014-06-03T07:10:13Z</published>
    <summary type="html">Can you post the error stacktrace for both use cases?</summary>
    <dc:creator>Juan G.</dc:creator>
    <dc:date>2014-06-03T07:10:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204733" />
    <author>
      <name>beppo ivel</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204733</id>
    <updated>2014-05-27T13:49:42Z</updated>
    <published>2014-05-27T13:49:42Z</published>
    <summary type="html">I tried to modify the view:&lt;br /&gt;&lt;br /&gt;&lt;div class="code"&gt;&lt;span class="code-lines"&gt;1&lt;/span&gt; &amp;lt;span class=&amp;#034;aui-field-element&amp;#034;&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;2&lt;/span&gt; &amp;lt;% FileEntry userDocument_doc = PortletFileRepositoryUtil.getPortletFileEntry(testB.getUserDocumentA());&lt;br /&gt;&lt;span class="code-lines"&gt;3&lt;/span&gt;    String userDocument_url = PortletFileRepositoryUtil.getPortletFileEntryURL(themeDisplay, userDocument_doc, StringPool.BLANK);&lt;br /&gt;&lt;span class="code-lines"&gt;4&lt;/span&gt;&amp;nbsp; %&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;5&lt;/span&gt;  &amp;lt;aui:a href=&amp;#034;&amp;lt;%= userDocument_url %&amp;gt;&amp;#034; target=&amp;#034;_blank&amp;#034;&amp;gt;&amp;lt;img alt=&amp;#034;&amp;#034; src=&amp;#034;&amp;lt;%= userDocument_url %&amp;gt;&amp;#034; width=&amp;#034;100&amp;#034;&amp;gt;&amp;lt;%= testB.getTestBDescription() %&amp;gt;&amp;lt;/aui:a&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;6&lt;/span&gt;&amp;lt;/span&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;but it does not work. An other thing is, if I define two fields of type document in my definition file like:&lt;div class="code"&gt;&lt;span class="code-lines"&gt;&amp;nbsp;1&lt;/span&gt;&amp;lt;field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;2&lt;/span&gt;                        &amp;lt;name&amp;gt;userDocumentA&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;3&lt;/span&gt;                        &amp;lt;title&amp;gt;Document A&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;4&lt;/span&gt;                        &amp;lt;type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;5&lt;/span&gt;                            &amp;lt;document&amp;gt;&amp;lt;/document&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;6&lt;/span&gt;                        &amp;lt;/type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;7&lt;/span&gt;                        &amp;lt;showFieldInView&amp;gt;true&amp;lt;/showFieldInView&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;8&lt;/span&gt;                        &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;9&lt;/span&gt;                    &amp;lt;/field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;10&lt;/span&gt;&amp;lt;field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;11&lt;/span&gt;                        &amp;lt;name&amp;gt;userDocumentB&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;12&lt;/span&gt;                        &amp;lt;title&amp;gt;Document B&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;13&lt;/span&gt;                        &amp;lt;type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;14&lt;/span&gt;                            &amp;lt;document&amp;gt;&amp;lt;/document&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;15&lt;/span&gt;                        &amp;lt;/type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;16&lt;/span&gt;                        &amp;lt;showFieldInView&amp;gt;true&amp;lt;/showFieldInView&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;17&lt;/span&gt;                        &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;18&lt;/span&gt;                    &amp;lt;/field&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;I got the failure &amp;#034;Your request failed to complete.&amp;#034; by uploading files.</summary>
    <dc:creator>beppo ivel</dc:creator>
    <dc:date>2014-05-27T13:49:42Z</dc:date>
  </entry>
  <entry>
    <title>RE: Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204647" />
    <author>
      <name>beppo ivel</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204647</id>
    <updated>2014-05-27T10:52:50Z</updated>
    <published>2014-05-27T10:52:50Z</published>
    <summary type="html">Thats right, in the editegTest.jsp I can fond:&lt;div class="code"&gt;&lt;span class="code-lines"&gt;1&lt;/span&gt;&amp;lt;% if (egTest.getUserDocument()!=0){&lt;br /&gt;&lt;span class="code-lines"&gt;2&lt;/span&gt;    FileEntry userDocument_doc = PortletFileRepositoryUtil.getPortletFileEntry(egTest.getUserDocument());&lt;br /&gt;&lt;span class="code-lines"&gt;3&lt;/span&gt;    String userDocument_url = PortletFileRepositoryUtil.getPortletFileEntryURL(themeDisplay, userDocument_doc, StringPool.BLANK);&lt;br /&gt;&lt;span class="code-lines"&gt;4&lt;/span&gt;%&amp;gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Do you suggest to bind the description field in the viewegTest.jsp to the url?&lt;br /&gt;&lt;br /&gt;If I would have more then one document field in my form and I want to package them in a zip after uploading and provide a download url to this zip, how should I build this.</summary>
    <dc:creator>beppo ivel</dc:creator>
    <dc:date>2014-05-27T10:52:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204642" />
    <author>
      <name>Juan G.</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204642</id>
    <updated>2014-05-27T09:42:46Z</updated>
    <published>2014-05-27T09:42:46Z</published>
    <summary type="html">I guess right now the document URL is available only in the edit form of your entity.&lt;br /&gt;&lt;br /&gt;You can get the download code part from the editXXXX.jsp.</summary>
    <dc:creator>Juan G.</dc:creator>
    <dc:date>2014-05-27T09:42:46Z</dc:date>
  </entry>
  <entry>
    <title>RE: Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204563" />
    <author>
      <name>beppo ivel</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204563</id>
    <updated>2014-05-27T09:24:02Z</updated>
    <published>2014-05-26T19:22:21Z</published>
    <summary type="html">Thx, I tried to edit the autogenerated code, till now I get no working result. Is it possible to define the file download via xml definition file? I would show you my example but the file upload size here in the forum is to low. I build the application on the following xml:&lt;div class="code"&gt;&lt;span class="code-lines"&gt;&amp;nbsp;1&lt;/span&gt;&amp;lt;?xml version=&amp;#034;1.0&amp;#034; encoding=&amp;#034;utf-8&amp;#034;?&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;2&lt;/span&gt;&amp;lt;definition xmlns=&amp;#034;http://www.xmlportletfactory.org/xml/xmlportletfactory&amp;#034;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;3&lt;/span&gt;    xmlns:xsi=&amp;#034;http://www.w3.org/2001/XMLSchema-instance&amp;#034;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;4&lt;/span&gt;    xsi:schemaLocation=&amp;#034;http://www.xmlportletfactory.org/xml/xmlportletfactory xmlportletfactory.xsd&amp;#034;&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;5&lt;/span&gt;    &amp;lt;commonData&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;6&lt;/span&gt;        &amp;lt;client&amp;gt;Example01&amp;lt;/client&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;7&lt;/span&gt;        &amp;lt;projectName&amp;gt;egTest&amp;lt;/projectName&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;8&lt;/span&gt;        &amp;lt;version&amp;gt;1&amp;lt;/version&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;9&lt;/span&gt;    &amp;lt;/commonData&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;10&lt;/span&gt;    &amp;lt;applications&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;11&lt;/span&gt;        &amp;lt;!-- egTest Portlet Class and File definition --&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;12&lt;/span&gt;        &amp;lt;application&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;13&lt;/span&gt;            &amp;lt;classDef&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;14&lt;/span&gt;                &amp;lt;name&amp;gt;egTest&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;15&lt;/span&gt;                &amp;lt;title&amp;gt;hallo&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;16&lt;/span&gt;                &amp;lt;restrictBy&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;17&lt;/span&gt;                    &amp;lt;userId&amp;gt;false&amp;lt;/userId&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;18&lt;/span&gt;                &amp;lt;/restrictBy&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;19&lt;/span&gt;                &amp;lt;mode&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;20&lt;/span&gt;                    &amp;lt;add&amp;gt;true&amp;lt;/add&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;21&lt;/span&gt;                    &amp;lt;delete&amp;gt;true&amp;lt;/delete&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;22&lt;/span&gt;                    &amp;lt;modify&amp;gt;true&amp;lt;/modify&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;23&lt;/span&gt;                    &amp;lt;browse&amp;gt;true&amp;lt;/browse&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;24&lt;/span&gt;                &amp;lt;/mode&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;25&lt;/span&gt;            &amp;lt;/classDef&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;26&lt;/span&gt;            &amp;lt;fileDef&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;27&lt;/span&gt;                &amp;lt;name&amp;gt;egTest&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;28&lt;/span&gt;                &amp;lt;fields&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;29&lt;/span&gt;                    &amp;lt;field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;30&lt;/span&gt;                        &amp;lt;name&amp;gt;egTestId&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;31&lt;/span&gt;                        &amp;lt;title&amp;gt;egTest Id&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;32&lt;/span&gt;                        &amp;lt;type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;33&lt;/span&gt;                            &amp;lt;long&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;34&lt;/span&gt;                                &amp;lt;length&amp;gt;5&amp;lt;/length&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;35&lt;/span&gt;                                &amp;lt;signed&amp;gt;false&amp;lt;/signed&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;36&lt;/span&gt;                                &amp;lt;nullable&amp;gt;false&amp;lt;/nullable&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;37&lt;/span&gt;                            &amp;lt;/long&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;38&lt;/span&gt;                        &amp;lt;/type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;39&lt;/span&gt;                        &amp;lt;showFieldInView&amp;gt;false&amp;lt;/showFieldInView&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;40&lt;/span&gt;                    &amp;lt;/field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;41&lt;/span&gt;                    &amp;lt;field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;42&lt;/span&gt;                        &amp;lt;name&amp;gt;egTestDescription&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;43&lt;/span&gt;                        &amp;lt;title&amp;gt;egTest Description&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;44&lt;/span&gt;                        &amp;lt;type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;45&lt;/span&gt;                            &amp;lt;varchar&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;46&lt;/span&gt;                                &amp;lt;length&amp;gt;100&amp;lt;/length&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;47&lt;/span&gt;                            &amp;lt;/varchar&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;48&lt;/span&gt;                        &amp;lt;/type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;49&lt;/span&gt;                        &amp;lt;showFieldInView&amp;gt;true&amp;lt;/showFieldInView&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;50&lt;/span&gt;                        &amp;lt;required&amp;gt;true&amp;lt;/required&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;51&lt;/span&gt;                    &amp;lt;/field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;52&lt;/span&gt;                    &amp;lt;field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;53&lt;/span&gt;                        &amp;lt;name&amp;gt;userDocument&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;54&lt;/span&gt;                        &amp;lt;title&amp;gt;Document&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;55&lt;/span&gt;                        &amp;lt;type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;56&lt;/span&gt;                            &amp;lt;document&amp;gt;&amp;lt;/document&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;57&lt;/span&gt;                        &amp;lt;/type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;58&lt;/span&gt;                        &amp;lt;showFieldInView&amp;gt;true&amp;lt;/showFieldInView&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;59&lt;/span&gt;                        &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;60&lt;/span&gt;                    &amp;lt;/field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;61&lt;/span&gt;                &amp;lt;/fields&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;62&lt;/span&gt;            &amp;lt;/fileDef&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;63&lt;/span&gt;        &amp;lt;/application&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;64&lt;/span&gt;    &amp;lt;/applications&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;65&lt;/span&gt;&amp;lt;/definition&amp;gt;&lt;br /&gt;&lt;/div&gt;</summary>
    <dc:creator>beppo ivel</dc:creator>
    <dc:date>2014-05-26T19:22:21Z</dc:date>
  </entry>
  <entry>
    <title>RE: Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204548" />
    <author>
      <name>Juan G.</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204548</id>
    <updated>2014-05-26T17:53:02Z</updated>
    <published>2014-05-26T17:53:02Z</published>
    <summary type="html">If your field definition is like this:&lt;br /&gt;&lt;div class="code"&gt;&lt;span class="code-lines"&gt;&amp;nbsp;1&lt;/span&gt;....&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;2&lt;/span&gt;...&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;3&lt;/span&gt;&amp;lt;field&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;4&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;myDocument&amp;lt;/name&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;5&lt;/span&gt;      &amp;lt;title&amp;gt;Doc&amp;lt;/title&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;6&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;7&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;document&amp;gt;&amp;lt;/document&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;8&lt;/span&gt;      &amp;lt;/type&amp;gt;&lt;br /&gt;&lt;span class="code-lines"&gt;&amp;nbsp;9&lt;/span&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; .....&lt;br /&gt;&lt;span class="code-lines"&gt;10&lt;/span&gt;&lt;br /&gt;&lt;span class="code-lines"&gt;11&lt;/span&gt;&amp;lt;/field&amp;gt;&lt;br /&gt;&lt;/div&gt;Simply use this API:&lt;br /&gt;&lt;div class="code"&gt;&lt;span class="code-lines"&gt;1&lt;/span&gt;PortletFileRepositoryUtil.getPortletFileEntry(myentity.getMyDocument());&lt;/div&gt;&lt;br /&gt;Hope it helps..</summary>
    <dc:creator>Juan G.</dc:creator>
    <dc:date>2014-05-26T17:53:02Z</dc:date>
  </entry>
  <entry>
    <title>Access uploaded files</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204502" />
    <author>
      <name>beppo ivel</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204502</id>
    <updated>2014-05-26T16:24:18Z</updated>
    <published>2014-05-26T16:24:18Z</published>
    <summary type="html">Hi there,&lt;br /&gt;&lt;br /&gt;I created a portlet like &lt;a href="http://www.xmlportletfactory.org/1-table-2-fields-varchar-and-document"&gt;this&lt;/a&gt;. But I dont know how to access the downloaded files in lifray 6.2?</summary>
    <dc:creator>beppo ivel</dc:creator>
    <dc:date>2014-05-26T16:24:18Z</dc:date>
  </entry>
  <entry>
    <title>RE: Deploy example 9</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204177" />
    <author>
      <name>Jack A. Rider</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204177</id>
    <updated>2014-05-24T11:44:49Z</updated>
    <published>2014-05-24T11:44:49Z</published>
    <summary type="html">  Hi All,&lt;br /&gt;&lt;br /&gt;       Just inserted a note on the infro samples page, so people are aware of this.&lt;br /&gt;&lt;br /&gt; Thanks, Jack.</summary>
    <dc:creator>Jack A. Rider</dc:creator>
    <dc:date>2014-05-24T11:44:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: Deploy example 9</title>
    <link rel="alternate" href="https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204141" />
    <author>
      <name>Juan G.</name>
    </author>
    <id>https://www.xmlportletfactory.org/c/message_boards/find_message?p_l_id=&amp;messageId=204141</id>
    <updated>2014-05-24T07:26:02Z</updated>
    <published>2014-05-24T07:26:02Z</published>
    <summary type="html">Hi beppo,&lt;br /&gt;&lt;br /&gt;thanks for reporting!&lt;br /&gt;&lt;br /&gt;There are two issues for that example:&lt;br /&gt;&lt;ul style="list-style: disc inside;"&gt;&lt;li&gt;&amp;lt;image&amp;gt; is not supported anymore. Change that type to &amp;lt;document&amp;gt;.&lt;/li&gt;&lt;li&gt;userName field is used for getting Liferay user name, so pleasse change that name to &amp;#034;usersName&amp;#034; instead.&lt;/li&gt;&lt;/ul style="list-style: disc inside;"&gt;We will change the example file ASAP.&lt;br /&gt;&lt;br /&gt;Are you using the latest release of XMLPortletFactory? I guess you&amp;#039;re using an snapshot version.&lt;br /&gt;&lt;br /&gt;Thanks</summary>
    <dc:creator>Juan G.</dc:creator>
    <dc:date>2014-05-24T07:26:02Z</dc:date>
  </entry>
</feed>

