You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by kate07 <ek...@philotech.de> on 2007/10/08 18:38:27 UTC

Tomahawk, Trinidad and Struts-Tiles Problem

I'm currently trying to integrate my application (MyFaces 1.1.5, Tomahawk
1.1.6, StrutsTiles) and Trinidad 1.0.2

I didn't have any success in my first attempt of integrating Trinidad with
my application so I'm wondering if: 
- is this possible? Has anyone successfully configured the above 4 versions
to work together?

Can anyone please tell me if I did anything wrong.  I am desperately need
your help.

I got the following JavaScript-error at trinidad-generic js: "Object
expected" -->
--------------------------------------------------------
<input type="hidden" name="org.apache.myfaces.trinidad.faces.FORM"
value="menubar:user">
<!--Start: org.apache.myfaces.trinidad.Form-->

<input type="hidden" name="org.apache.myfaces.trinidad.faces.STATE"
value="!1">
<script type="text/javascript">function _menubar_userValidator(){return
true;}</script>

<script type="text/javascript">_submitFormCheck();</script>
---------------------------------------------------------

my tiles.jsp:
============= 
<f:view>
<f:loadBundle var="text" basename="#{basePage.bundleName}"/>

<body onLoad="onLoad();" onbeforeunload="offload();">

  <div id="menubar">
    <f:subview id="menubar">
      <tiles:insert attribute="menubar" flush="false" />
    </f:subview>    
  </div>

  <div id="infobar">
    <f:subview id="infobar">
      <tiles:insert attribute="infobar" flush="false" />
    </f:subview>    
  </div>
   ...

</body>

</f:view>

my Faces-Config: 
============= 
<application> 
     <!-- Use the Trinidad RenderKit --> 
     <default-render-kit-id> 
         org.apache.myfaces.trinidad.core 
     </default-render-kit-id> 
</application> 

my Web.xml 
============ 
 <!-- TRINIDAD CONTEXT PARAM --> 
<context-param> 
    
<param-name>org.apache.myfaces.trinidad.ALTERNATE_VIEW_HANDLER</param-name> 
    
<param-value>org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl</param-value> 
</context-param> 


Thank you,
Kate

-- 
View this message in context: http://www.nabble.com/Tomahawk%2C-Trinidad-and-Struts-Tiles-Problem-tf4589373.html#a13100299
Sent from the MyFaces - Users mailing list archive at Nabble.com.


RE: Tomahawk, Trinidad and Struts-Tiles Problem

Posted by kate07 <ek...@philotech.de>.
I have set the view-handler as alternate handler in web.xml...


> 
> my Faces-Config:
> =============
> <application>
>      <!-- Use the Trinidad RenderKit -->
>      <default-render-kit-id>
>          org.apache.myfaces.trinidad.core
>      </default-render-kit-id>
> </application>
> 
Have you set the view-handler?

<application>
  <view-handler>
    org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
  </view-handler>
</application>

____

-- 
View this message in context: http://www.nabble.com/Tomahawk%2C-Trinidad-and-Struts-Tiles-Problem-tf4589373.html#a13111276
Sent from the MyFaces - Users mailing list archive at Nabble.com.


RE: Tomahawk, Trinidad and Struts-Tiles Problem

Posted by MC PHERSON Sandy <sa...@eurocontrol.int>.
> 
> my Faces-Config:
> =============
> <application>
>      <!-- Use the Trinidad RenderKit -->
>      <default-render-kit-id>
>          org.apache.myfaces.trinidad.core
>      </default-render-kit-id>
> </application>
> 
Have you set the view-handler?

<application>
  <view-handler>
    org.apache.myfaces.tomahawk.application.jsp.JspTilesViewHandlerImpl
  </view-handler>
</application>

____

This message and any files transmitted with it are legally privileged and intended for the sole use of the individual(s) or entity to whom they are addressed. If you are not the intended recipient, please notify the sender by reply and delete the message and any attachments from your system. Any unauthorised use or disclosure of the content of this message is strictly prohibited and may be unlawful.

Nothing in this e-mail message amounts to a contractual or legal commitment on the part of EUROCONTROL, unless it is confirmed by appropriately signed hard copy.

Any views expressed in this message are those of the sender.