Topic
No replies
TammyDix
TammyDix
6 Posts
ACCEPTED ANSWER

Pinned topic JSF1.2 Custom tag issues in WAS8 environment

‏2012-11-29T20:02:25Z |
We have a custom tag that was developed in JSF1.1 for WAS6.1. We are in the process of migrating the same app to WAS8 now. And this custom component is not working in JSF1.2 WAS8 environment. Spent the last few weeks trying to resolve this.

Here is the tag declaration:

<tag>
<name>request</name>
<tag-class>mypkg.tags.RequestDetailsTag</tag-class>
<body-content>JSP</body-content>
<attribute>
<name>request</name>
<required>true</required>
<type>mypkg.db.dao.MyObject</type>
</attribute>
<attribute>
<name>id</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<name>rendered</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<name>label</name>
<required>false</required>
</attribute>
<attribute>
<name>labelColumn</name>
<required>false</required>
<type>java.lang.Boolean</type>
</attribute>
<attribute>
<name>columns</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<name>readOnly</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
<attribute>
<name>tableStyle</name>
<required>false</required>
<type>java.lang.String</type>
</attribute>
</tag>

Upon submit, the first function called is decode(). And it is here that when you try to get the attribute "request" of this tag that the object mypkg.db.dao.MyObject is null. Cannot figure out why because WAS6.1 it works fine. Although in WAS6.1 the decode method is not called right away. So I am confused is the problem of our custom tag or the JSF phases the way they are called.

Anyone if you have pointers for me that would be very helpful. Have a deadline for the project migration and hence urging for someone to help.

Thanks.
TD