Hi Howard,

Thanks for your advice. 

As per your advice, I changed the model to literal type but still the same.
Further, I attached Tapestry source code(5.2.1) along my debug path and
found that the enumClass.getEnumConstants() at line #41 of EnumSelectModel
class was returning NULL only for the following implementation style
(EnumSelectModel is working fine in other pages): 

- We have build a component to handle Select drop down called
editselectfield.tml. It includes the select as shown below. But for our
investigation, I have change the model to literal type now otherwise it is
model="${fieldType}":
<t:select clientId="${clientId}_txt" blankOption="never" value="field"
model="literal:Red,Green,Blue"/> //Line 6

- From the parent pages, we include our editselectfield.tml as shown below:
<t:editselectfield clientId="relationship" field="dater.relationship"
fieldType="relationship" lable="Status"  addDesc="Add your relationship
status"/>
     Where relationship is Enum :
     public enum Relationship {
         RS1, RS2, RS3, RS4;
     }
     
I have changed the model type to literal in our editselectfield component
but I still get this issue.  

classpath:com/skyecandy/components/EditSelectField.tml, line 6
1       <div class="content_row"
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
2       <t:form>
3       <div class="content_row_${leftLength}left">${lable}</div>
4       <div class="content_row_long_${rightLength}right" id="${clientId}"
style="display:none;">
5       <textarea id="${clientId}_txt_placeholder"
style="display:none;">${fieldValue}</textarea>
6       <t:select clientId="${clientId}_txt" blankOption="never" value="field"
model="literal:Red,Green,Blue"/>
7        #  /images/buttons/save_new.gif  &#160;
8        # Cancel 
9       </div>
10      <t:zone class="content_row_${rightLength}right" visible="true"
update="show" t:id="editFieldZone" id="${clientId}_zone">
11      <t:if test="fieldAdd">

Any advice would be of great help for us to resolve this issue. 

Thank you,
Vinod
-- 
View this message in context: 
http://tapestry.1045711.n5.nabble.com/org-apache-tapestry5-util-EnumSelectModel-java-lang-NullPointerException-migrate-from-Tapestry-5-1-04-tp3356787p3357359.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to