Message Boards

« Back to 2.- Usage ( From Xml file to CRUD Portlet)

null is displayed after entering text

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
null is displayed after entering text
validation
Answer
7/23/12 5:53 AM
Hi everyone,
In some cases, after entering the text in custom portlet, the entered text is displayed as "null" in respective column.What is the cause?

RE: null is displayed after entering text
Answer
7/23/12 7:45 AM as a reply to vivekanantham janakiram..
Hello Viveknantham,


Difficult to say with so little data. For colleagues to be able to help will need more info, like:

General:
- Operating System and version.
- Java version.
- Liferay SDK version.
- Apache Ant version.
- XMLPortletFactory version.

Specific:
- Include Screen Shot (helpfull)
- Include XML definition file. (important)
- Include Error StackTrace (vital)
- Explanation of you where doing or trying to do. (helpful, see below)



What text you where entering, had escape codes?, Text and field lenght? allways occurs? is with one field and not with other?. need more data.


Saludos, Jack.

RE: null is displayed after entering text
Answer
7/27/12 11:03 AM as a reply to Jack A. Rider.
1. Operating System name and version -Windows 7 Home Premium 32-bit
2. Java version -jdk1.7.0_03 & jre7
3. Ant version-1.8.2
4. Liferay SDK version-6.0
5. XMLPortletFactory version-3.0


I just entered Customer Name, it occurs in rare cases.It resembles to all fields.
Attachment

Attachments: screenshot.png (95.1k), xmlfile.txt (8.3k)

RE: null is displayed after entering text
Answer
7/28/12 11:10 AM as a reply to vivekanantham janakiram..
First of all, check the Liferay version. Seems you have Liferay 6.1.

In that case, you are using wrong SDK (6.0), you should use SDK for 6.1 too.

And last (but not least), there isn't any v3.0 of XMLPortletFactory.

Please double check your versions and re-run XMLPortletFactory with right version before check anything else.