You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Manjith Kumar Adapa <ma...@aztec.soft.net> on 2005/09/26 17:08:47 UTC

Help in Javascript

Hi,

I need a sample piece of code.
In the html where I can put all the javascript methods in .js file and refer
them in html through Tapestry 4

Thanks
Manjith

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Help in Javascript

Posted by "Md. Rezaul Hoque" <ja...@gmail.com>.
Isn't it working properly? Use just javascript import instead of css.
 -Regards
Babu

 On 9/27/05, Md. Rezaul Hoque <ja...@gmail.com> wrote:
>
> Page1.html
> ---------
> <html jwcid="@Shell" title="Welcome" stylesheet="asset:babu">
> <head jwcid="$remove$">
> <title>Babu</title>
> <link rel="stylesheet" text="text/css" href="../css/Babu.css"/>
> </head>
> <body>
> ...
> </body>
> </html>
>
> Page.page
> ------------
> <page-specification ...>
> <asset name="babu" path="context:/css/Babu.css"/>
> ...
> </page-specification>
>   -------------------------
> Hope it will help you.
>  Regards
> -Babu
>
>  On 9/26/05, Manjith Kumar Adapa <ma...@aztec.soft.net> wrote:
> >
> > Hi,
> >
> > I need a sample piece of code.
> > In the html where I can put all the javascript methods in .js file and
> > refer
> > them in html through Tapestry 4
> >
> > Thanks
> > Manjith
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> >
> >
>

Re: Help in Javascript

Posted by "Md. Rezaul Hoque" <ja...@gmail.com>.
 Page1.html
---------
<html jwcid="@Shell" title="Welcome" stylesheet="asset:babu">
<head jwcid="$remove$">
<title>Babu</title>
<link rel="stylesheet" text="text/css" href="../css/Babu.css"/>
</head>
<body>
...
</body>
</html>

Page.page
------------
<page-specification ...>
<asset name="babu" path="context:/css/Babu.css"/>
...
</page-specification>
  -------------------------
Hope it will help you.
 Regards
-Babu

 On 9/26/05, Manjith Kumar Adapa <ma...@aztec.soft.net> wrote:
>
> Hi,
>
> I need a sample piece of code.
> In the html where I can put all the javascript methods in .js file and
> refer
> them in html through Tapestry 4
>
> Thanks
> Manjith
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>
>

RE: Deployment problems: argument type mismatch

Posted by Patrick Casey <pa...@adelphia.net>.
	Just a wild-assed guess here, but does your new development
environment have any xml parser jars in the classpath that your old
environment didn't? In my limited experience you can really narf Tapestry if
you put the wrong XML parser (like the GNU one) in your classpath.

	--- Pat

> -----Original Message-----
> From: Eric Schneider [mailto:eric@centralparksoftware.com]
> Sent: Monday, September 26, 2005 8:49 AM
> To: Tapestry users
> Subject: Deployment problems: argument type mismatch
> 
> Hi,
> 
> Our SA recently setup a new deployment environment that we're having
> configuration issues with.  The application has run successfully on
> other machines.
> 
> It seems to throw an argument type mismatch while trying to build the
> ApplicationSpecificationInitializer related services.
> 
>    <service-point id="ApplicationSpecificationInitializer"
> interface="ApplicationInitializer">
> 
>      Locates and parses the application specification and informs the
> ApplicationGlobals service about it.
> 
>      <invoke-factory>
>        <construct class="impl.ApplicationSpecificationInitializer">
>          <set-service property="classpathResourceFactory" service-
> id="tapestry.ClasspathResourceFactory"/>
>          <set-service property="globals" service-
> id="tapestry.globals.ApplicationGlobals"/>
>          <set-service property="parser" service-
> id="tapestry.parse.SpecificationParser"/>
>        </construct>
>      </invoke-factory>
>    </service-point>
> 
> Has anyone seen something similar?
> 
> Thanks in advance,
> Eric
> 
> javax.servlet.ServletException:
> 
> Unable to initialize application servlet: Unable to construct service
> tapestry.init.ApplicationSpecificationInitializer: Error building
> service tapestry.init.ApplicationSpecificationInitializer: Error at
> jar:file:<PATH_TO_APP>/WEB-INF/lib/tapestry-4.0-beta-4.jar!/META-INF/
> tapestry.init.xml, line 46: Service interceptor factory
> hivemind.LoggingInterceptor failed to create
> org.apache.tapestry.parse.ISpecificationParser interceptor for
> service tapestry.parse.SpecificationParser as class
> $ISpecificationParser_10692dad6da: argument type mismatch
> 
> Root Cause:
> 
> org.apache.hivemind.ApplicationRuntimeException: Unable to construct
> service tapestry.init.ApplicationSpecificationInitializer: Error
> building service tapestry.init.ApplicationSpecificationInitializer:
> Error at jar:file:<PATH_TO_APP>/WEB-INF/lib/tapestry-4.0-beta-4.jar!/
> META-INF/tapestry.init.xml, line 46: Service interceptor factory
> hivemind.LoggingInterceptor failed to create
> org.apache.tapestry.parse.ISpecificationParser interceptor for
> service tapestry.parse.SpecificationParser as class
> $ISpecificationParser_10692dad6da: argument type mismatch
> [jar:file:<PATH_TO_APP>/WEB-INF/lib/tapestry-4.0-beta-4.jar!/META-INF/
> tapestry.init.xml, line 42]
> 
> 
> SunOne Application Server 7.0
> Java version 1.4.2



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Deployment problems: argument type mismatch

Posted by Eric Schneider <er...@centralparksoftware.com>.
Hi,

Our SA recently setup a new deployment environment that we're having  
configuration issues with.  The application has run successfully on  
other machines.

It seems to throw an argument type mismatch while trying to build the  
ApplicationSpecificationInitializer related services.

   <service-point id="ApplicationSpecificationInitializer"  
interface="ApplicationInitializer">

     Locates and parses the application specification and informs the  
ApplicationGlobals service about it.

     <invoke-factory>
       <construct class="impl.ApplicationSpecificationInitializer">
         <set-service property="classpathResourceFactory" service- 
id="tapestry.ClasspathResourceFactory"/>
         <set-service property="globals" service- 
id="tapestry.globals.ApplicationGlobals"/>
         <set-service property="parser" service- 
id="tapestry.parse.SpecificationParser"/>
       </construct>
     </invoke-factory>
   </service-point>

Has anyone seen something similar?

Thanks in advance,
Eric

javax.servlet.ServletException:

Unable to initialize application servlet: Unable to construct service  
tapestry.init.ApplicationSpecificationInitializer: Error building  
service tapestry.init.ApplicationSpecificationInitializer: Error at  
jar:file:<PATH_TO_APP>/WEB-INF/lib/tapestry-4.0-beta-4.jar!/META-INF/ 
tapestry.init.xml, line 46: Service interceptor factory  
hivemind.LoggingInterceptor failed to create  
org.apache.tapestry.parse.ISpecificationParser interceptor for  
service tapestry.parse.SpecificationParser as class  
$ISpecificationParser_10692dad6da: argument type mismatch

Root Cause:

org.apache.hivemind.ApplicationRuntimeException: Unable to construct  
service tapestry.init.ApplicationSpecificationInitializer: Error  
building service tapestry.init.ApplicationSpecificationInitializer:  
Error at jar:file:<PATH_TO_APP>/WEB-INF/lib/tapestry-4.0-beta-4.jar!/ 
META-INF/tapestry.init.xml, line 46: Service interceptor factory  
hivemind.LoggingInterceptor failed to create  
org.apache.tapestry.parse.ISpecificationParser interceptor for  
service tapestry.parse.SpecificationParser as class  
$ISpecificationParser_10692dad6da: argument type mismatch  
[jar:file:<PATH_TO_APP>/WEB-INF/lib/tapestry-4.0-beta-4.jar!/META-INF/ 
tapestry.init.xml, line 42]


SunOne Application Server 7.0
Java version 1.4.2

Re: Help in Javascript

Posted by Ron Piterman <rp...@gmx.net>.
Look at the sourcecode of the palette component ( contrib )

the .script files are described here:

http://jakarta.apache.org/tapestry/3.0.3/doc/DevelopersGuide/script-spec.html


����� Manjith Kumar Adapa:
> Hi,
> 
> I need a sample piece of code.
> In the html where I can put all the javascript methods in .js file and refer
> them in html through Tapestry 4
> 
> Thanks
> Manjith
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


RE: Help in Javascript

Posted by Patrick Casey <pa...@adelphia.net>.
	Alternately if you're looking to just link in some static
javascript:

	This on the page file:

	<context-asset name="search_js" path="/script/SearchForm.js"/>  
      <component id="searchScript" type="Any">
	    <static-binding name="element" value="script"/>
    	<binding name="src" expression="assets.search_js"/>
	</component>      

	This in the html;

	<script jwcid="searchScript" language="JavaScript"
type="text/javascript"/>


	I must confess that's how I do all of my javascript, largely because
I could never figure out Howard's rewrite model. 

	--- Pat

> -----Original Message-----
> From: Manjith Kumar Adapa [mailto:manjitha@aztec.soft.net]
> Sent: Monday, September 26, 2005 8:09 AM
> To: Tapestry users
> Subject: Help in Javascript
> 
> Hi,
> 
> I need a sample piece of code.
> In the html where I can put all the javascript methods in .js file and
> refer
> them in html through Tapestry 4
> 
> Thanks
> Manjith
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org