i now moved the part wich is made by

   <s:head theme="ajax" debug="true"/>

---------------
<script language="JavaScript" type="text/javascript">
    // Dojo configuration
    djConfig = {
        baseRelativePath: "/struts/dojo",
        isDebug: true,
        bindEncoding: "UTF-8",
        debugAtAllCosts: true // not needed, but allows the Venkman
debugger to work with the includes
    };
</script>
<script language="JavaScript" type="text/javascript"
        src="/struts/dojo/dojo.js"></script>
<script language="JavaScript" type="text/javascript"
        src="/struts/simple/dojoRequire.js"></script>
<script language="JavaScript" type="text/javascript"
        src="/struts/ajax/dojoRequire.js"></script>
<script language="JavaScript" type="text/javascript"
        src="/struts/CommonFunctions.js"></script>
---------------
into the /src/main/webapp/decorators/default.jsp

and this works apart from the decoration which is still done.....

tibi

tibi wrote:
> 1)
> i have copied all files from the dojo folder from the
> struts2-core-2.0.6.jar into
> src/main/webapp/scripts/dojo
>
> 2)
> a) i changed includes to excludes
> b) tried to remove it
>
> 3)
> added this to a page:
>
>    <s:head theme="ajax" debug="true"/>
>    
> but i have no succes....
>
>
> tibi
>
>
> tibi wrote:
>   
>> i search but i don't understand all.
>> 1) copy dojo files to scripts/dojo
>> what dojo files can i copy from where??
>>
>> 2)exclude scripts/dojo/* in staticFilter
>> i have this in my web.xml
>>   <filter>
>>        <filter-name>staticFilter</filter-name>
>>       
>> <filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
>>        <init-param>
>>            <param-name>includes</param-name>
>>            <param-value>/scripts/dojo/*</param-value>
>>        </init-param>
>>    </filter>
>> do i need to change include to exclude or remove the ini-params?
>>
>> 3)add manual dojo stuff to my <head>
>> is that this line?:
>>    <s:head theme="ajax" debug="true"/>
>>
>>
>>
>> thanks
>>
>> tibi
>>
>> tibi wrote:
>>     
>>> ok so it is not a bug but a feature ;)
>>>
>>>
>>> tibi
>>>
>>>
>>> Matt Raible wrote:
>>>       
>>>> On 9/11/07, tibi <[EMAIL PROTECTED]> wrote:
>>>>  
>>>>         
>>>>> by googeleing i found this from matt:
>>>>> ----------------------------------------------------------------------
>>>>> If you search through the mailing list archives, you'll find that
>>>>> solution. The solution is to copy Dojo's files to scripts/dojo and
>>>>> exclude scripts/dojo/* in the StaticFilter. Then you have to add the
>>>>> manual Dojo stuff to your <head>.
>>>>>
>>>>> Matt
>>>>> ----------------------------------------------------------------------
>>>>>
>>>>> is this fixed in RC1?
>>>>>     
>>>>>           
>>>> No, this is still required in RC1. The reason is because Dojo uses
>>>> *.html for its template filenames. Since we use it for our Actions,
>>>> you have to use the StaticFilter to load static files. The
>>>> StaticFilter doesn't currently load content from JAR files, but it may
>>>> be able to be enhanced to do so. Because of this, you have to copy
>>>> Dojos files into your project. The good news is this is a recommended
>>>> practice for Struts 2 for performance reasons.
>>>>
>>>> http://struts.apache.org/2.x/docs/performance-tuning.html
>>>>
>>>> Matt
>>>>
>>>>
>>>>  
>>>>         
>>>>> tibi
>>>>>
>>>>>
>>>>>
>>>>> tibi wrote:
>>>>>   
>>>>>           
>>>>>> when i minimize to this:
>>>>>> <%@ include file="/common/taglibs.jsp"%>
>>>>>>
>>>>>> <head>
>>>>>>    <s:head theme="ajax" debug="true"/>
>>>>>> </head>
>>>>>>
>>>>>>
>>>>>> is still get the same error.
>>>>>> i see that this is renderd into the html output (view source in
>>>>>> firefox):
>>>>>>
>>>>>> ...
>>>>>> <script language="JavaScript" type="text/javascript">
>>>>>>    // Dojo configuration
>>>>>>    djConfig = {
>>>>>>        baseRelativePath: "/struts/dojo",
>>>>>>        isDebug: true,
>>>>>>        bindEncoding: "UTF-8",
>>>>>>        debugAtAllCosts: true // not needed, but allows the Venkman
>>>>>> debugger to work with the includes
>>>>>>    };
>>>>>> </script>
>>>>>> <script language="JavaScript" type="text/javascript"
>>>>>>        src="/struts/dojo/dojo.js"></script>
>>>>>> <script language="JavaScript" type="text/javascript"
>>>>>>        src="/struts/simple/dojoRequire.js"></script>
>>>>>> <script language="JavaScript" type="text/javascript"
>>>>>>        src="/struts/ajax/dojoRequire.js"></script>
>>>>>>
>>>>>> <script language="JavaScript" type="text/javascript"
>>>>>>        src="/struts/CommonFunctions.js"></script>
>>>>>>
>>>>>> ...
>>>>>>
>>>>>>
>>>>>>
>>>>>> tibi wrote:
>>>>>>     
>>>>>>             
>>>>>>> ok followed some other example but i keep getting this error:
>>>>>>> Error: Could not load 'struts.widget.Bind'; last tried
>>>>>>> '__package__.js'
>>>>>>> Source File: http://localhost:8080/struts/dojo/dojo.js
>>>>>>> Line: 94
>>>>>>>
>>>>>>> what did i do:
>>>>>>> app 2.0m5 struts2, spring2, hibernate2
>>>>>>> i have this jsp file:
>>>>>>> ------------------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>> <%@ include file="/common/taglibs.jsp"%>
>>>>>>>
>>>>>>> <head>
>>>>>>>    <title><fmt:message key="searchCandidate.title"/></title>
>>>>>>>    <meta name="heading" content="<fmt:message
>>>>>>> key='searchCandidate.heading'/>"/>
>>>>>>>    <s:head theme="ajax" debug="true"/>
>>>>>>> </head>
>>>>>>>
>>>>>>> <script>
>>>>>>> now = new Date();
>>>>>>> document.write("test test"+ now.getSeconds());
>>>>>>> </script>
>>>>>>>
>>>>>>> <!-- URL link to struts action-->
>>>>>>> <s:url id="ajaxText" action="ajax" method="ajax" />
>>>>>>>
>>>>>>>
>>>>>>> <!-- Div where content will be displayed -->
>>>>>>> <s:div theme="ajax" id="weather" href="${ajaxText}">
>>>>>>>    loading content...
>>>>>>> </s:div>
>>>>>>> -----------------------------------------------------------------------------------
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> off course a struts xml with the action ajax connected to an
>>>>>>> AjaxAction class with a method ajax
>>>>>>> but i think there is a problem loading the javascript dojo
>>>>>>> package....
>>>>>>>
>>>>>>> any help would be welcome ;)
>>>>>>>
>>>>>>> tibi
>>>>>>>
>>>>>>>
>>>>>>> tibi wrote:
>>>>>>>       
>>>>>>>               
>>>>>>>> is there no one who uses ajax in a nice way and can tell me
>>>>>>>> about it??
>>>>>>>>
>>>>>>>> thanks,
>>>>>>>>
>>>>>>>> tibi
>>>>>>>>
>>>>>>>>
>>>>>>>> tibi wrote:
>>>>>>>>         
>>>>>>>>                 
>>>>>>>>> wait is see an javascript error... which i don;t understand:
>>>>>>>>>
>>>>>>>>> Error: Could not load 'struts.widget.Bind'; last tried
>>>>>>>>> '__package__.js'
>>>>>>>>> Source File: http://localhost:8080/struts/dojo/dojo.js
>>>>>>>>> Line: 94
>>>>>>>>>
>>>>>>>>> tibi
>>>>>>>>>
>>>>>>>>> tibi wrote:
>>>>>>>>>           
>>>>>>>>>                   
>>>>>>>>>> after using ajax in a not so nice way (with getting full html
>>>>>>>>>> as a
>>>>>>>>>> result... ) i'm trying to follow this example:
>>>>>>>>>> http://cwiki.apache.org/S2WIKI/struts-2-spring-2-jpa-ajax.html
>>>>>>>>>>
>>>>>>>>>> if have made the following:
>>>>>>>>>> but it works fine (it deletes) but not without refreshing the
>>>>>>>>>> page.
>>>>>>>>>>
>>>>>>>>>> any help???
>>>>>>>>>>
>>>>>>>>>> <%@ include file="/common/taglibs.jsp"%>
>>>>>>>>>>
>>>>>>>>>> <head>
>>>>>>>>>>    <title><fmt:message
>>>>>>>>>> key="candidateProfileDetail.title"/></title>
>>>>>>>>>>    <meta name="heading" content="<fmt:message
>>>>>>>>>> key='candidateProfileDetail.heading'/>"/>
>>>>>>>>>> </head>
>>>>>>>>>> <script>
>>>>>>>>>> now = new Date();
>>>>>>>>>> document.write("test test"+ now.getSeconds());
>>>>>>>>>> </script>
>>>>>>>>>>
>>>>>>>>>> <p>Persons</p>
>>>>>>>>>> <s:if test="persons.size > 0">
>>>>>>>>>>    <table>
>>>>>>>>>>        <s:iterator value="persons">
>>>>>>>>>>            <tr id="row_<s:property value="id"/>">
>>>>>>>>>>                <td>
>>>>>>>>>>                    <s:property value="firstName" />
>>>>>>>>>>                </td>
>>>>>>>>>>                <td>
>>>>>>>>>>                    <s:property value="lastName" />
>>>>>>>>>>                </td>
>>>>>>>>>>                <td>
>>>>>>>>>>                    <s:url id="removeUrl" action="ajax">
>>>>>>>>>>                        <s:param name="id" value="id" />
>>>>>>>>>>                        <s:param name="method:remove"
>>>>>>>>>> value="true" />
>>>>>>>>>>                    </s:url>
>>>>>>>>>>                    <s:a href="%{removeUrl}" theme="ajax"
>>>>>>>>>> targets="persons">Remove</s:a>
>>>>>>>>>>                    <s:a href="%{removeUrl}">Remove 2</s:a>
>>>>>>>>>>                    <s:a id="a_%{id}" theme="ajax"
>>>>>>>>>> notifyTopics="/edit">Edit</s:a>
>>>>>>>>>>                </td>
>>>>>>>>>>            </tr>
>>>>>>>>>>        </s:iterator>
>>>>>>>>>>    </table>
>>>>>>>>>> </s:if>
>>>>>>>>>>
>>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>>
>>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>               
>>>>>>>>>>                     
>>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>>
>>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>             
>>>>>>>>>                   
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>>
>>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>>
>>>>>>>>
>>>>>>>>           
>>>>>>>>                 
>>>>>>> ---------------------------------------------------------------------
>>>>>>>
>>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>>
>>>>>>>
>>>>>>>         
>>>>>>>               
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>>
>>>>>>
>>>>>>       
>>>>>>             
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>>     
>>>>>           
>>>>   
>>>>         
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>       
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to