You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ken nashua <nh...@hotmail.com> on 2007/08/13 19:16:34 UTC

T-4.1 Asset Usage - proper for dojo ?

Folks,

I am receiving bootstrap problems with my webapp using T-4.1

		<tapestry.version>4.1</tapestry.version>
		<ognl.version>2.6.7</ognl.version>
		<spring.version>2.0.6</spring.version>

All I am trying to do is operate dojo with T-4.1 as it comes bundled with 
T-4.1 right?

I receive this stack dump...

0:8080
[INFO] Started Jetty Server
2007-08-13 12:53:30,745 [btpool0-2] WARN  
tapestry.error.RequestExceptionReporter - Failure to
export classpath resource /dojo/src/html/style.js.
org.apache.hivemind.ApplicationRuntimeException: Classpath resource 
'/dojo/src/html/style.js'
does not exist.
        at 
org.apache.tapestry.asset.AssetService.service(AssetService.java:248)
        at 
$IEngineService_11460249fbf.service($IEngineService_11460249fbf.java)
        at 
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOute
rProxy.java:72)
        at 
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241)
        at 
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTermin

Am I operatiing dojo the right way in my custom component below with the 
asset annotations?

Thanks in advance

Best regards
Ken in nashua

@ComponentClass(allowBody = true, allowInformalParameters = true)
public abstract class CustomHead extends Shell
{
	@InjectState("adminLayout")
	public abstract AdminLayout getLayout();

	public abstract void setLayout(AdminLayout layout);

	private static final String generatorContent = "Tapestry Application 
Framework, version " + Tapestry.VERSION;

	@Asset("/js/dojo/dojo.js")
	public abstract IAsset getDefaultDojoSource();

	@Asset("/dojo/")
	public abstract IAsset getDefaultDojoPath();

	@Asset("/tapestry/core.js")
	public abstract IAsset getDefaultTapestrySource();

	@Asset("/tapestry/")
	public abstract IAsset getDefaultTapestryPath();

	@Asset("/styles/tapestryskin/theme.css")
	public abstract IAsset getTheme();

	public abstract IApplicationSpecification getApplicationSpecification();

	@Parameter(required = true, cache = true)
	public abstract IAsset getStylesheet();

	public abstract void setStylesheet(IAsset stylesheet);

	@Parameter(required = true, cache = true)
	public abstract String getTitle();

	public abstract void setTitle(String title);

_________________________________________________________________
See what you’re getting into…before you go there 
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507


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


Re: T-4.1 Asset Usage - proper for dojo ?

Posted by andyhot <an...@di.uoa.gr>.
You really should use 4.1.2, from
http://tapestry.apache.org/download.html

For the dojo path use @Asset("/dojo-0.4.3/")


Ken nashua wrote:
> Folks,
>
> I am receiving bootstrap problems with my webapp using T-4.1
>
> <tapestry.version>4.1</tapestry.version>
> <ognl.version>2.6.7</ognl.version>
> <spring.version>2.0.6</spring.version>
>
> All I am trying to do is operate dojo with T-4.1 as it comes bundled 
> with T-4.1 right?
>
> I receive this stack dump...
>
> 0:8080
> [INFO] Started Jetty Server
> 2007-08-13 12:53:30,745 [btpool0-2] WARN 
> tapestry.error.RequestExceptionReporter - Failure to
> export classpath resource /dojo/src/html/style.js.
> org.apache.hivemind.ApplicationRuntimeException: Classpath resource 
> '/dojo/src/html/style.js'
> does not exist.
> at org.apache.tapestry.asset.AssetService.service(AssetService.java:248)
> at $IEngineService_11460249fbf.service($IEngineService_11460249fbf.java)
> at 
> org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOute 
>
> rProxy.java:72)
> at 
> org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:241) 
>
> at 
> org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTermin 
>
>
> Am I operatiing dojo the right way in my custom component below with 
> the asset annotations?
>
> Thanks in advance
>
> Best regards
> Ken in nashua
>
> @ComponentClass(allowBody = true, allowInformalParameters = true)
> public abstract class CustomHead extends Shell
> {
> @InjectState("adminLayout")
> public abstract AdminLayout getLayout();
>
> public abstract void setLayout(AdminLayout layout);
>
> private static final String generatorContent = "Tapestry Application 
> Framework, version " + Tapestry.VERSION;
>
> @Asset("/js/dojo/dojo.js")
> public abstract IAsset getDefaultDojoSource();
>
> @Asset("/dojo/")
> public abstract IAsset getDefaultDojoPath();
>
> @Asset("/tapestry/core.js")
> public abstract IAsset getDefaultTapestrySource();
>
> @Asset("/tapestry/")
> public abstract IAsset getDefaultTapestryPath();
>
> @Asset("/styles/tapestryskin/theme.css")
> public abstract IAsset getTheme();
>
> public abstract IApplicationSpecification getApplicationSpecification();
>
> @Parameter(required = true, cache = true)
> public abstract IAsset getStylesheet();
>
> public abstract void setStylesheet(IAsset stylesheet);
>
> @Parameter(required = true, cache = true)
> public abstract String getTitle();
>
> public abstract void setTitle(String title);
>
> _________________________________________________________________
> See what you’re getting into…before you go there 
> http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


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