List Info

Thread: Tomahawk, Trinidad and Struts-Tiles Problem




Tomahawk, Trinidad and Struts-Tiles Problem
country flaguser name
United States
2007-10-08 11:38:27
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.j
sp.JspTilesViewHandlerImpl</param-value> 
</context-param> 


Thank you,
Kate

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


RE: Tomahawk, Trinidad and Struts-Tiles Problem
country flaguser name
Belgium
2007-10-08 11:58:24
> 
> 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.JspTilesViewHand
lerImpl
  </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.



RE: Tomahawk, Trinidad and Struts-Tiles Problem
country flaguser name
United States
2007-10-09 03:22:27
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.JspTilesViewHand
lerImpl
  </view-handler>
</application>

____

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


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )