Eclipse HTML标记报错

5 篇文章 0 订阅
2 篇文章 0 订阅

Eclipse  Attribute value (No) uses wrong case character.


转载  http://www-01.ibm.com/support/docview.wss?uid=swg21497873

Question

How do I resolve problems when importing the MWPJSR168Sample portlet and Mobile Change of Address Sample portlet from the samples gallery into MPTK?

Answer

Issue and Solution for the issue when Importing The MWPJSR168Sample portlet from the samples gallery into MPTK.

a) While importing the MWPJSR168Sample portlet from the samples gallery into MPTK,you see a couple of errors such as these listed below in the screenshot(screenshot1).As a result of these, you can't run this portlet on the server.

Note : This only happens when you import this portlet from the samples gallery and try to run it. If you have taken this portlet from the <wp_root>/wp.mobile/wp.mobile.mwp/installableApps and deploy it on the Server using the Portal Administration GUI it works perfectly fine :

These are the errors you will see in the RAD environment : 

1) isValid() == false
2) Attribute value (POST) uses wrong case character. 




screenshot1


Solution for Problem 1 : isValid()==false)


1) Check the RAD80/RSA80 menu options.
2) Select the Window-->Preferences option. Expand Web > JSP Files > Validation. 
3). In the Errors/Warnings group, expand Custom actions and change the combo box to the right of "TagExtraInfo validation message" . In the screenshot(screenshot2) below : by default it is set to Error.
4) Change this value in the drop down combo list to either Ignore or Warning.




screenshot2



5) Click Apply and OK. You should see a message(screenshot3) like this below :Click on the Yes button.




screenshot3

6) If you look at the screenshot (screenshot4) below, you see that the first error is gone after applying the changes.



screenshot4


Solution for Problem 2 : Attribute value (POST) uses wrong case character.)


1) Check the RAD80/RSA80 menu options.
2) Go to Windows-->Preferences option. Expand the Web > HTML Files > Validation | Attributes options as seen in the screenshot below.




screenshot5

3) In the Attributes section, change the combo box to the right of "Attribute value using wrong case character" . In the screenshot above(screenshot5) : by default it is set to Error.
4)
Change this value in the drop down combo list to either Ignore or Warning.
5) Click Apply and OK. You should see a message(screenshot6) like this below :Click on the Yes button.



screenshot6

6) If you look at the screenshot below(screenshot7) ,you see that the second error is gone after applying the changes.


screenshot7

Once these errors are gone, you can run the portlet on the server.

Issue and Solution for the issue when Importing The Mobile Change of Address Sample portlet from the samples gallery into MPTK.

b) While importing the Mobile Change of Address Sample portlet from the samples gallery into MPTK, you see a couple of errors such as these listed below in the screenshot(screenshot8).As a result of these, you can't run these portlets on the server.
Note : This only happens when you import this portlet from the samples gallery and try to run it. If you have taken this portlet from the <wp_root>/wp.mobile/wp.mobile.mwp/installableApps and deploy it on the Server using the Portal Administration GUI it works perfectly fine :






screenshot8

The solution for this is to follow the same steps as mentioned above in Solution for Problem 2 : Attribute value (POST) uses wrong case character.)

After applying the same steps as mentioned above, we see that the errors are removed as displayed in the screenshot below(screenshot9)



screenshot9


  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值