Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4253058
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:53:46+00:00 2026-05-21T04:53:46+00:00

The body field of a form may contain long text, so the default String

  • 0

The body field of a form may contain long text, so the default String property won’t do.

Looking for how to make the datastore use Text (this is not part of the entity definition like I recall from the Python version), I found this in the source of the ackbar blog:

(ns <snip>
  (:import (com.google.appengine.api.datastore
            EntityNotFoundException Text)))
<snip>
(ds/save! (Post. url title (Text. body) ts in-feed? category))

But if I do the same, I get: “java.lang.RuntimeException: java.lang.IllegalArgumentException: Don’t know how to create ISeq from: com.google.appengine.api.datastore.Text”

(One notable difference is that the ackbar I’m looking at uses appengine-magic 0.3.2.)

I also tried as-text as briefly mentioned on https://github.com/gcv/appengine-magic#readme, but (as-text body) in there leads to the same error message as above.


EDIT: Turned out the problem wasn’t actually to get a Text property into the store, but to make sense of it when retrieving it. My Submit handler triggers saving and than a reload of the form page, and I failed to think of that. Sorry for the noise.

The way to get the value out without hiccup is (.getValue body).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T04:53:47+00:00Added an answer on May 21, 2026 at 4:53 am

    From the appengine-magic documentation:

    as-text: casts a string to com.google.appengine.api.datastore.Text.

    So you should pass a java.lang.String to as-text.

    (as-text body)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 1.5 million records, each with a text field body that contains a
I have a simple input field inside a form tag: <body> <form action=#> <label>Input</label>
In Register.php, it contains a form. <html> <body> <form action=Insert.php method=post> Email: <input type=text
I have a table body that grabs it's rows (and form fields) via AJAX
<body> <div> <?= $_POST['msg'] ?> </div> <form id=frm method=post> <input type=hidden name='msg' value='{field0: Im
Content type Events has intro, body and an event date field (using Date module).
I am looking for the syntax to add node fields to the body of
I am trying to put the date and time into a form field onload.
I'm trying to make a simple custom field field_book_year for the new node type
Im trying to work out how to take form field values and selected drop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.