File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript error when upgrading to tomahawk 1.1.3

 
Travis
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When upgrading to tomahawk 1.1.3 from 1.1.1, I have an issue with the <t:inputCalendar> component. I am using the most up to date jars of myfaces 1.1.4. My environment is Websphere 6.

I don't get any errors in my console when I run my application, but I get javascript errors when the page with the inputcalendar loads. It says, 'org_apache_myfaces_PopupCalendar' is undefined.

I am not seeing any documentation about this issue.

If anyone could help me out with this issue, it would be greatly appreciated.

Thanks in advance,
Travis
 
Ali Gohar
Ranch Hand
Posts: 572
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you post the code where you have used that control?
 
Travis
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the component code (resides inside a h:form tag)

<t:inputCalendar id="effectiveStartDate" value="#{addSkillBean.effectiveStartDate}" readonly="true" renderAsPopup="true" renderPopupButtonAsImage="true" styleClass="dateField" popupDateFormat="#{labels.datePattern}" title="Effective Start Date"></t:inputCalendar>

Extension filter setup in web.xml
<!-- Extensions Filter -->
<filter>
<filter-name>extensionsFilter</filter-name>
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
<init-param>
<param-name>uploadMaxFileSize</param-name>
<param-value>100m</param-value>
<description>Set the size limit for uploaded files.
Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
<init-param>
<param-name>uploadThresholdSize</param-name>
<param-value>100k</param-value>
<description>Set the threshold size - files
below this limit are stored in memory, files above
this limit are stored on disk.

Format: 10 - 10 bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>

Thanks,
Travis
 
Ali Gohar
Ranch Hand
Posts: 572
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this and check if it works

 
Travis
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This inputDate component renders two input text boxes for day and year and renders a drop down for the months with the listed code you have posted (not a popup calendar). I am still using the tomahawk 1.1.3 version of the jar.

I would like to be able to continue using the inputCalendar component instead of changing to the inputDate component as it is used widely throughout my application. Is this a know bug with the 1.1.3?

Thanks for the replies.
 
Travis
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Update:

I have set the ADD_RESOURCE_CLASS to streamingAddResource and it no longer gives me the javascript errors, but still isn't performing correctly. It does an inline popup instead of being on a div layer. On top of that, it also doesn't have the look and feel as it did before I upgrade to the 1.1.3 version of the tomahawk jar.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic