Render a blob in Fatwire

Posted: December 15, 2011 in Fatwire
Tags: , , , , , ,

If you have a requirement of using the Flex Family, and render the text stored in Blobs, this example would definitely help you.

For example, if you want to allow the user to enter a Huge text (that would not fit according to the normal RDBMS standards), then this concept of blobs can be used. Following are the steps that need to be done in order to successfully create and render the blob.

  • Create a flex attribute “text” with BLOB  as the Value Type, and if you want to specify any attribute editors like FCKEditor, EWebEditPro, etc, then specify them as well.
  • Enable that attribute in the Flex Definition, so that it becomes a part of the flex asset, and will be visible in the asset creation form.
  • Now, the content you enter in the form will be stored in the file system, instead of being stored in the database system.

After creation of the asset, the next thing to do is coding the template that renders the blob which we have created earlier.

  • In the import section of the jsp, import the blobservice tag library:
        <%@ taglib prefix="blobservice" uri="futuretense_cs/blobservice.tld"%>
  • Load the asset:
        <assetset:setasset name="myasset" id='<%=ics.GetVar("cid")%>' type='<%= ics.GetVar("c")%>'/>
  • Load the attribute from the asset
        <assetset:getattributevalues name="myasset" typename="PageContent_A" attribute="text"
  • Render the blob:
      <ics:listloop listname="Textfile" maxrows='<%=ics.GetVar("rows")%>'>
                 <ics:listget listname="Textfile" fieldname="blobvalue" output="textvalue"/>
                 <blobservice:readdata id='<%=ics.GetVar("textvalue")%>' listvarname="Textdata"/>
                 <render:stream list="Textdata" filecolumn="urldata"/>

In the preview of your website/page, the text should be rendered.

  1. You have remarked very interesting points! ps nice website.

  2. Bobby Kratt says:

    Good web site! I truly love how it is simple on my eyes and the data are well written. I’m wondering how I might be notified whenever a new post has been made. I’ve subscribed to your RSS feed which must do the trick! Have a great day! “Reputation is what other people know about you. Honor is what you know about yourself.” by Lois McMaster Bujold.

  3. Tad Fouyer says:

    Really great info can be found on website .

  4. I have recently started a web site, the info you provide on this website has helped me greatly. Thank you for all of your time & work. “A creative man is motivated by the desire to achieve, not by the desire to beat others.” by Ayn Rand.

  5. Only a smiling visitor here to share the love (:, btw outstanding design . “He who will not reason is a bigot he who cannot is a fool and he who dares not is a slave.” by Sir William Drummond.

  6. Good write-up, I’m regular visitor of one’s blog, maintain up the nice operate, and It is going to be a regular visitor for a lengthy time.

  7. Andy Arcudi says:

    Generally I do not learn article on blogs, however I wish to say that this write-up very pressured me to take a look at and do it! Your writing taste has been surprised me. Thanks, very great post.

  8. Hey there just wanted to give you a brief heads up and let you know a few of the pictures aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different browsers and both show the same outcome.

    • Kk says:

      heyy..thanks for letting me know the issue. I researched on this, and tried on different networks. Sometimes, based on the network, some of the images are loading slowly.

  9. Some really prize articles on this website , bookmarked .

  10. I like what you guys are up also. Such clever work and reporting! Carry on the excellent works guys I’ve incorporated you guys to my blogroll. I think it will improve the value of my web site :). “He is happiest, be he king or peasant, who finds peace in his home.” by Johann von Goethe.

  11. Hello, i feel that i noticed you visited my web site thus i got here to “go back the favor”.I’m attempting to find issues to enhance my website!I guess its adequate to use a few of your ideas!!

  12. Lon Keding says:

    Hey There. I discovered your blog using msn. This is an extremely well written article. I will be sure to bookmark it and come back to learn more of your useful info. Thanks for the post. I’ll definitely return.

  13. Hello there admin, I basically needed to leave a swift statement to point out that I respected your post. Thanks!

  14. Romeo Chao says:

    Many thanks for the art, previously interesting and compelling. I discovered my way here through Google, I’ll go back over again 🙂

  15. Jason Quiett says:

    I like this blog its a master peace ! Glad I found this on google. “Irrationally held truths may be more harmful than reasoned errors.” by Thomas Huxley.

  16. Whats up. I actually wished to actually leave a nice swift remark and let you understand that I’ve been focusing on your blog for quite some time. Keep up the very incredible efforts and I will be checking back again much more in the near future.

  17. Great work! That is the type of info that should be shared across the net. Shame on Google for not positioning this publish upper! Come on over and talk over with my site . Thank you =)

  18. I found what I was looking for. great article, thanks

  19. Jasmin Mable says:

    Dead indited subject material , thankyou for selective information .

  20. Thanks, I have just been looking for information about this topic for a long time and yours is the best I have discovered so far. However, what in regards to the conclusion? Are you certain concerning the source?

  21. Respect to op , some wonderful selective information . “If you don’t leap, you’ll never know what it’s like to fly.” by Guy Finley.

  22. Hugh Ruesga says:

    I appreciate a tremendous publish, would examine one’s others topics. thanks for your thinking for this, I really felt somewhat thump by this post. Many thanks again! You earn an excellent aspect. Has fantastic info here. I do think that in case more people thought about it like this, they’d have got a better time period obtain the grasp ofing the issue.

  23. Thanks for an unbelievable submit, would study your particular others reviews. thank you your thinking within this, I experienced a bit struck by this post. Many thanks again! You commit a great point. Portrays natures best by the great info here. I feel that when a greater number thought about it like that, they’d possess a better time frame get the grasp ofing the situation.

  24. Enjoyed studying this, very good stuff, thanks . “Shared joys make a friend, not shared sufferings.” by Friedrich Wilhelm Nietzsche.

  25. Cesar Bilich says:

    I see something really interesting about your weblog so I bookmarked .

  26. you have a great blog here! would you like to make some invite posts on my blog?

  27. Pleasant write-up. My partner and i learn something more challenging with totally different blogs day-to-day. It will at all times become stirring to master subject material coming from some other freelance writers as well as comply with fairly a very important factor from their store. I’d personally desire to make use of many while using the articles in my personal web site no matter whether you never brain. Natually I’ll offer you a hyperlink within your world wide web weblog. Many thanks pertaining to sharing.

  28. Gia Vilcan says:

    hello!,I really like your writing very so much! proportion we communicate more approximately your post on AOL? I need a specialist in this space to resolve my problem. May be that’s you! Having a look ahead to see you.

  29. I’d forever want to be update on new content on this website, saved to my bookmarks!

  30. Hi there, There’s no doubt that your web site could be having internet browser compatibility issues. Whenever I take a look at your blog in Safari, it looks fine however, when opening in Internet Explorer, it’s got some overlapping issues. I merely wanted to give you a quick heads up! Other than that, fantastic blog!

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s