Re: dojo 0.4.3

2007-05-19 Thread Srinivas Yermal

Hi,

I am using TAP-4.0.2 and the tacos 4.0.1 for an app in production. The dojo
code that comes along with this I think is 0.3.3. Can I upgrade this to
0.4.3 without any side-effects? Has anybody done this before?

Thanks much,
Srini.

On 5/16/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:


Please update:

ojo 0.4.3 is now available to
download
http://download.dojotoolkit.org/release-0.4.3/dojo-0.4.3-ajax.tar.gz.
This is a security release. Dojo 0.4.1 and 0.4.2 users are strongly
recommended to upgrade as soon as possible. 0.4.1 and 0.4.2 have a flaw in
two files that could allow cross site scripting (XSS) attacks against your
site if you do not upgrade.





--
http://www.indygosoft.com


T4.1.2-Snapshot : Bad version number in .class file

2007-05-19 Thread Shing Hing Man
After getting the latest T4.1.2. snapshot 

org.apache.tapestry:tapestry-framework:4.1.2-20070518.223114-88



my application produce the exception below.

I wonder if anyone else is experiencing the same
problem.

Shing



org.apache.hivemind.ApplicationRuntimeException: Error
building service
tapestry.enhance.AutowireWorkerFactory: Could not load
class
org.apache.tapestry.enhance.AutowireWorkerFactory from
[EMAIL PROTECTED]()
  --parent--
[EMAIL PROTECTED]: Bad version
number in .class file
[jar:file:/home/matmsh/.m2/repository/org/apache/tapestry/tapestry-framework/4.1.2-SNAPSHOT/tapestry-framework-4.1.2-SNAPSHOT.jar!/META-INF/tapestry.enhance.xml,
line 108, column 25]
at
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:66)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
at
$ServiceImplementationFactory_112a44d0b09._service($ServiceImplementationFactory_112a44d0b09.java)
at
$ServiceImplementationFactory_112a44d0b09.createCoreServiceImplementation($ServiceImplementationFactory_112a44d0b09.java)
at
$ServiceImplementationFactory_112a44d0b08.createCoreServiceImplementation($ServiceImplementationFactory_112a44d0b08.java)
at
org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:62)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
at
org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
at
org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
at 
$EnhancementWorker_112a44d0ad6._service($EnhancementWorker_112a44d0ad6.java)





___ 
Now you can scan emails quickly with a reading pane. Get the new Yahoo! Mail. 
http://uk.docs.yahoo.com/nowyoucan.html

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



Re: dojo 0.4.3

2007-05-19 Thread Andreas Andreou

I just tried the 4.0.1 war with the latest dojo and it's not really
compatible -
i think there were a few api changes in dojo.

Inspite of that, several things do work (using the kitchen-sin profile), and
it shouldn't be hard to
update tacos for dojo 0.4.3.
I'm not working with TAP-4.0.2 and tacos 4.0.1 anymore so i'll go ahead and
ask another dev
what he thinks about updating.


On 5/19/07, Srinivas Yermal [EMAIL PROTECTED] wrote:


Hi,

I am using TAP-4.0.2 and the tacos 4.0.1 for an app in production. The
dojo
code that comes along with this I think is 0.3.3. Can I upgrade this to
0.4.3 without any side-effects? Has anybody done this before?

Thanks much,
Srini.

On 5/16/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:

 Please update:

 ojo 0.4.3 is now available to
 download
 http://download.dojotoolkit.org/release-0.4.3/dojo-0.4.3-ajax.tar.gz.
 This is a security release. Dojo 0.4.1 and 0.4.2 users are strongly
 recommended to upgrade as soon as possible. 0.4.1 and 0.4.2 have a flaw
in
 two files that could allow cross site scripting (XSS) attacks against
your
 site if you do not upgrade.




--
http://www.indygosoft.com





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


The webApp loading slowly? T5+Spring2

2007-05-19 Thread Donyee

Hi all, I am using T5.05 snapshot + Spring2 in my app. After I start
the server(Jetty or Tomcat5), when i click the pageLink ( a ) in my
page sereral times ,then the app becomes slowly. The memory changes
not much.
The app is well before i  add the Spring to manage the Dao.
Does anyone meet this question?
Any idea is great!


徐 依伟


Create sub-package base on Tapestry5.0.4

2007-05-19 Thread Allen Guo
Hi All,

I set the param-name tapestry.app-package=org.opend.bogo in web.xml
So the default page classes have to be put in package org.opend.bogo.pages

Now I create a class named Shop.java and the corresponding Shop.html in
sub-package named org.pend.bogo.pages.admin.
It's working fine when I test it .
But when I try to move it to WEB-INF or WEB-INF/admin it will not work:(
It seems that the Shop.thml must be put under package
org.pend.bogo.pages.admin

I have been thinking we should put these html files together.
So I hope it can be put under web context folder or sub-folder. But I
can't now.

Could anybody give me some suggestion?

from Shanghai
Allen Guo





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



Tapestry Bayeux 2.0.0-beta2 Release

2007-05-19 Thread Jacob von Eyben

Tapestry Bayeux v2.0.0-beta2 is now available. New in this version:

* Upgraded component library to be tapestry 4.1 compatible.
* Made it possible to specify more than just once download resource 
source when using the DownloadLink component.
* Made it possible to set a content-disposition header for a download 
resource.


Tapestry Bayeux is a open source component library for tapestry and more 
information can be found here:


The project website:
http://tapestry-bayeux.sourceforge.net/

A blog about the bayeux release:
http://ancientprogramming.blogspot.com/2007/05/bayeux-is-now-tapestry-41-compatible.html

Cheers,

Jacob von Eyben


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



Re: Create sub-package base on Tapestry5.0.4

2007-05-19 Thread Howard Lewis Ship

org.opend.bogo.pages.admin.Shop will search for its template on the
classpath as org/opend/bogo/pages/admin/Shop.html or in the web context as
WEB-INF/admin/Shop.html.

I'm pretty sure this works, because I was demoing it for a client recently
...

On 5/19/07, Allen Guo [EMAIL PROTECTED] wrote:


Hi All,

I set the param-name tapestry.app-package=org.opend.bogo in web.xml
So the default page classes have to be put in package org.opend.bogo.pages

Now I create a class named Shop.java and the corresponding Shop.html in
sub-package named org.pend.bogo.pages.admin.
It's working fine when I test it .
But when I try to move it to WEB-INF or WEB-INF/admin it will not work:(
It seems that the Shop.thml must be put under package
org.pend.bogo.pages.admin

I have been thinking we should put these html files together.
So I hope it can be put under web context folder or sub-folder. But I
can't now.

Could anybody give me some suggestion?

from Shanghai
Allen Guo





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





--
Howard M. Lewis Ship
TWD Consulting, Inc.
Independent J2EE / Open-Source Java Consultant
Creator and PMC Chair, Apache Tapestry
Creator, Apache HiveMind

Professional Tapestry training, mentoring, support
and project work.  http://howardlewisship.com


Re: Create sub-package base on Tapestry5.0.4

2007-05-19 Thread Allen Guo

It does work if I put the Shop.html inside org/opend/bogo/pages/admin/
But it really doesn't work if put it under WEB-INF/admin :(

I visit the page with http://localhost/bogo/admin/Shop; , am I right?


Howard Lewis Ship 写道:

org.opend.bogo.pages.admin.Shop will search for its template on the
classpath as org/opend/bogo/pages/admin/Shop.html or in the web 
context as

WEB-INF/admin/Shop.html.

I'm pretty sure this works, because I was demoing it for a client 
recently

...

On 5/19/07, Allen Guo [EMAIL PROTECTED] wrote:


Hi All,

I set the param-name tapestry.app-package=org.opend.bogo in web.xml
So the default page classes have to be put in package 
org.opend.bogo.pages


Now I create a class named Shop.java and the corresponding Shop.html in
sub-package named org.pend.bogo.pages.admin.
It's working fine when I test it .
But when I try to move it to WEB-INF or WEB-INF/admin it will not work:(
It seems that the Shop.thml must be put under package
org.pend.bogo.pages.admin

I have been thinking we should put these html files together.
So I hope it can be put under web context folder or sub-folder. But I
can't now.

Could anybody give me some suggestion?

from Shanghai
Allen Guo





-
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]



Re: Tapestry Bayeux 2.0.0-beta2 Release

2007-05-19 Thread Andreas Andreou

Yep, those *Once components can be handy...
I took a look at the source...

In ClickOnce.script, perhaps this is a better try (instead of redifining
tapestry.form.validation.validateForm )


dojo.event.connectAround(tapestry.form.validation, validateForm ,
function(miObj) {
  // calls the 'original' function
  var ret = return miObj.proceed();
  // do something with bayeux ongoingSubmit
  if (!ret) ongoingSubmit = false;

  return ret;
});



On 5/19/07, Jacob von Eyben [EMAIL PROTECTED] wrote:


Tapestry Bayeux v2.0.0-beta2 is now available. New in this version:

* Upgraded component library to be tapestry 4.1 compatible.
* Made it possible to specify more than just once download resource
source when using the DownloadLink component.
* Made it possible to set a content-disposition header for a download
resource.

Tapestry Bayeux is a open source component library for tapestry and more
information can be found here:

The project website:
http://tapestry-bayeux.sourceforge.net/

A blog about the bayeux release:

http://ancientprogramming.blogspot.com/2007/05/bayeux-is-now-tapestry-41-compatible.html

Cheers,

Jacob von Eyben


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





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


Re: Tapestry Bayeux 2.0.0-beta2 Release

2007-05-19 Thread Andreas Andreou

And well done for the release!

On 5/19/07, Andreas Andreou [EMAIL PROTECTED] wrote:


Yep, those *Once components can be handy...
I took a look at the source...

In ClickOnce.script, perhaps this is a better try (instead of redifining
tapestry.form.validation.validateForm )


dojo.event.connectAround (tapestry.form.validation, validateForm ,
function(miObj) {
   // calls the 'original' function
   var ret = return miObj.proceed();
   // do something with bayeux ongoingSubmit
   if (!ret) ongoingSubmit = false;

   return ret;
});



On 5/19/07, Jacob von Eyben [EMAIL PROTECTED] wrote:

 Tapestry Bayeux v2.0.0-beta2 is now available. New in this version:

 * Upgraded component library to be tapestry 4.1 compatible.
 * Made it possible to specify more than just once download resource
 source when using the DownloadLink component.
 * Made it possible to set a content-disposition header for a download
 resource.

 Tapestry Bayeux is a open source component library for tapestry and more
 information can be found here:

 The project website:
 http://tapestry-bayeux.sourceforge.net/

 A blog about the bayeux release:

 
http://ancientprogramming.blogspot.com/2007/05/bayeux-is-now-tapestry-41-compatible.html

 Cheers,

 Jacob von Eyben


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




--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting


I can’t use enity in template

2007-05-19 Thread Allen Guo
Hi All

I cann't still use enities in template in Tapestry5.0.4, the system
throw the same exception below

Failure parsing template context:WEB-INF/ProductEdit.html: The entity
nbsp was referenced, but not declared.


Allen Guo



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



Re: dojo 0.4.3

2007-05-19 Thread Srinivas Yermal

Hi Andreas,

Thanks for looking into it. I just tried replacing the dojo directory with
the dojo-0.4.3 download. Quite a few things do work, but a lot of it as you
said, especially ajax calls back to the server dont seem to work.

Can I help in anyway? Are there any specific steps that I need to follow to
upgrade or is it more like a case by case thing? I agree there are quite a
few dojo API changes. I am not in a shape right now to move the app to
TAP4.1.

Thanks again,
Srini

On 5/19/07, Andreas Andreou [EMAIL PROTECTED] wrote:


I just tried the 4.0.1 war with the latest dojo and it's not really
compatible -
i think there were a few api changes in dojo.

Inspite of that, several things do work (using the kitchen-sin profile),
and
it shouldn't be hard to
update tacos for dojo 0.4.3.
I'm not working with TAP-4.0.2 and tacos 4.0.1 anymore so i'll go ahead
and
ask another dev
what he thinks about updating.


On 5/19/07, Srinivas Yermal [EMAIL PROTECTED] wrote:

 Hi,

 I am using TAP-4.0.2 and the tacos 4.0.1 for an app in production. The
 dojo
 code that comes along with this I think is 0.3.3. Can I upgrade this to
 0.4.3 without any side-effects? Has anybody done this before?

 Thanks much,
 Srini.

 On 5/16/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 
  Please update:
 
  ojo 0.4.3 is now available to
  download
  http://download.dojotoolkit.org/release-0.4.3/dojo-0.4.3-ajax.tar.gz.
  This is a security release. Dojo 0.4.1 and 0.4.2 users are strongly
  recommended to upgrade as soon as possible. 0.4.1 and 0.4.2 have a
flaw
 in
  two files that could allow cross site scripting (XSS) attacks against
 your
  site if you do not upgrade.
 



 --
 http://www.indygosoft.com




--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / JEE Consulting





--
http://www.indygosoft.com


Re: T4.1.2-Snapshot : Bad version number in .class file

2007-05-19 Thread Shing Hing Man
I got the Bad version number error when I am using 
Java 1.5. The error goes way when I switch to Java
1.6.

Must we use Java 1.6 to run Tap 4.1.2 now ?

Shing 




--- Shing Hing Man [EMAIL PROTECTED] wrote:

 After getting the latest T4.1.2. snapshot 
 

org.apache.tapestry:tapestry-framework:4.1.2-20070518.223114-88
 
 
 
 my application produce the exception below.
 
 I wonder if anyone else is experiencing the same
 problem.
 
 Shing
 
 
 
 org.apache.hivemind.ApplicationRuntimeException:
 Error
 building service
 tapestry.enhance.AutowireWorkerFactory: Could not
 load
 class
 org.apache.tapestry.enhance.AutowireWorkerFactory
 from
 [EMAIL PROTECTED]()
   --parent--
 [EMAIL PROTECTED]: Bad
 version
 number in .class file

[jar:file:/home/matmsh/.m2/repository/org/apache/tapestry/tapestry-framework/4.1.2-SNAPSHOT/tapestry-framework-4.1.2-SNAPSHOT.jar!/META-INF/tapestry.enhance.xml,
 line 108, column 25]
   at

org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:66)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
   at

org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
   at

$ServiceImplementationFactory_112a44d0b09._service($ServiceImplementationFactory_112a44d0b09.java)
   at

$ServiceImplementationFactory_112a44d0b09.createCoreServiceImplementation($ServiceImplementationFactory_112a44d0b09.java)
   at

$ServiceImplementationFactory_112a44d0b08.createCoreServiceImplementation($ServiceImplementationFactory_112a44d0b08.java)
   at

org.apache.hivemind.impl.InvokeFactoryServiceConstructor.constructCoreServiceImplementation(InvokeFactoryServiceConstructor.java:62)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructCoreServiceImplementation(AbstractServiceModelImpl.java:108)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructNewServiceImplementation(AbstractServiceModelImpl.java:158)
   at

org.apache.hivemind.impl.servicemodel.AbstractServiceModelImpl.constructServiceImplementation(AbstractServiceModelImpl.java:140)
   at

org.apache.hivemind.impl.servicemodel.SingletonServiceModel.getActualServiceImplementation(SingletonServiceModel.java:69)
   at

$EnhancementWorker_112a44d0ad6._service($EnhancementWorker_112a44d0ad6.java)
 
 
 
 
   

___
 
 Now you can scan emails quickly with a reading pane.
 Get the new Yahoo! Mail.
 http://uk.docs.yahoo.com/nowyoucan.html
 

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


Home page : http://uk.geocities.com/matmsh/


  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Re: T5 Templating and alternate css files based on current page

2007-05-19 Thread Martin Reurings
You're right, but I cannot assume that the webapp will be running as the 
root-context, it is accually unlikely that this app will be running as 
the root-context. Also I cannot yet know under what context-name it will 
be running, so I want to setup the links to all static content in a 
context-aware manner.


However, since we're talking about the skin of the pages, I cannot know 
from which level of directory nesting the page will be rendered, as such 
I cannot create the links relative to the page ('../static/css/.').


Then there's the matter that I may want to add some localized statics to 
the page and that would be served well by using T5 approved methods of 
creating the url's to static files.


Maybe I should ask my question in a different way, let's forget about 
the code that I already have, please ignore it and try to answer the 
following:

What would be the best way in Tapestry 5 to create the following html-code:
link rel=stylesheet type=text/css 
href=[context-uri]/static/css/[name-of-skin]/base.css title=freshletter


in which [context-uri] is expended into the name of the context and 
[name-of-skin] is expended into the value of a configurable option. As a 
bonus the accual asset (css-file) would be localized and thus expended 
into base_en.css


Martin

Bill Holloway wrote:

I thought that if a directory in the context didn't conflict with a
tapestry page name (like 'start'), then the url to that directory
would reference it ok.  For example, I have a context dir (named
'webapp' under src/main) that looks like this:

/src/main/webapp:
- css
 - main_style.css
- images
- js
- WEB-INF

If I direct my browser to http://localhost:8080/css/main_style.css, I
get a raw dump of the css file to the browser screen as I would
expect.  This .css file also gets properly injected if I use

@Inject
@Path (context:css/main_style.css)
private Asset _mainStyle;

This is all properly working code (under Jetty at least :)

Bill

On 5/18/07, Martin Reurings [EMAIL PROTECTED] wrote:

Hmmm, but that would generate a path to the webserver ('/static/')
root and not to the root of the context ('[appContext]/static/...'),
plus it would bypass internationalization. Now I admit for css files the
internationalization wouldn't matter but for skin-related images it
might matter a lot and I would like to work it out within the @Inject
method if possible.

However, this idea has created a work-around for me, I'm now using the
@inject @path combo to create to url's to the separate skins and I'm
switching between them  based on the value of the property 'skin'. I
think it could be improved upon:
public class SiteDesign {

public final static String SKIN_PUBLISHER = publisher;
public final static String SKIN_ADVERTISER = advertiser;

@Parameter
private String skin = publisher;

@Inject
@Path(context:static/css/advertiser/skin.css)
private Asset skin1CSS;

@Inject
@Path(context:static/css/publisher/skin.css)
private Asset skin2CSS;

public Asset getSkinCSS() {
if (skin.equalsIgnoreCase(SKIN_PUBLISHER)) return skin2CSS;
return skin1CSS;
}

public String getSkin() {
return skin;
}

}


Bill Holloway wrote:
 If skin is a component property that's properly evaluated for you,
 you can return the evaluated path as a page property to an Any
 component in the template for the link:

 In TheComponent.java

 private String _skin // perhaps a parameter or resolved in onActivate?

 public String getStylesheetPath ()
 {
 return /static/css/ + _skin + /color-scheme.css;
 }

 In TheComponent.html:

 ...
 link t:type=any element=link rel=stylesheet type=text/css
 href=prop:stylesheetPath /
 ...

 Bill

 On 5/17/07, Martin Reurings [EMAIL PROTECTED] wrote:
 We've created a simple template component to render the generic html
 layout
 of the page and handle things like the navigation in the near future.
 Since
 we've just started to use tapestry I am still trying to get my head
 around
 some of the things that would probably seem obvious to anybody else.

 I will have several CSS files linked in the head of my html file,
 since the
 url to a specific page is unknown and may be nested in a directory
 structure
 these files need to be absolute and should have the context root
 included.

 Now I've figured out how to do that using this:
 @Inject
 @Path(context:static/css/layout.css)
 private Asset layoutCSS;

 The layout doesn't change, this is fine with me, but the color-scheme
 will
 change depending on which section of the site a user is browsing in
 and this
 introduces a variable in the directory structure. Now I've figured
 out how
 to use a property to pass that value on to my template component:
 t:SiteDesign title=literal:xyz skin=literal:advertiser xmlns:t=
 http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;

 However, I have spent some time trying to figure out how to get this
 value
 injected into my accual url, as this 

Re: Tapestry Bayeux 2.0.0-beta2 Release

2007-05-19 Thread Geoff Callender

To all Tapestry users:

It seems to me that do it once is an essential capability that  
everyone desires in a web framework.


Perhaps the existing Tapestry components (Submit, SubmitLink,  
ImageLink, and DirectLink) should have the option added to them?


What do you think?

Geoff

On 20/05/2007, at 1:55 AM, Jacob von Eyben wrote:


Tapestry Bayeux v2.0.0-beta2 is now available. New in this version:

* Upgraded component library to be tapestry 4.1 compatible.
* Made it possible to specify more than just once download resource  
source when using the DownloadLink component.
* Made it possible to set a content-disposition header for a  
download resource.


Tapestry Bayeux is a open source component library for tapestry and  
more information can be found here:


The project website:
http://tapestry-bayeux.sourceforge.net/

A blog about the bayeux release:
http://ancientprogramming.blogspot.com/2007/05/bayeux-is-now- 
tapestry-41-compatible.html


Cheers,

Jacob von Eyben


-
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]



Re: Tapestry Bayeux 2.0.0-beta2 Release

2007-05-19 Thread Jesse Kuhnert

I don't think this is something I would want to add in to the core simply
because there are way too many ways to do this and choosing the wrong one
will hurt everyone else...

For instance - off the cuff I would probably do something more like this
instead:

function disableInputs(ids){
for (var id in ids) {
  var node = document.getElementById(id);
  if (!node){continue;}

  node.setAttribute(disabled, true);
  if (node.tagName == A){
  node.innerHTML = Processing...;
  } else if (node.tagName == INPUT) {
  node.value = Processing...;
  }
   }
}

input jwcid=[EMAIL PROTECTED] onClick=disableInputs(this.id) /

I left out a global handler for XHR io responses as well as doing a
getTextContent() on the A element so I could dump the old content into a
bogus node attribute in order to retrieve it again once any XHR requests
were finished. (same thing to do on inputs ) ...

That's one way at least.  The possibilities are endless. It's still a cool
idea though - which is why I'm glad we have different people providing their
own component libraries. :)

On 5/19/07, Geoff Callender [EMAIL PROTECTED] wrote:


To all Tapestry users:

It seems to me that do it once is an essential capability that
everyone desires in a web framework.

Perhaps the existing Tapestry components (Submit, SubmitLink,
ImageLink, and DirectLink) should have the option added to them?

What do you think?

Geoff

On 20/05/2007, at 1:55 AM, Jacob von Eyben wrote:

 Tapestry Bayeux v2.0.0-beta2 is now available. New in this version:

 * Upgraded component library to be tapestry 4.1 compatible.
 * Made it possible to specify more than just once download resource
 source when using the DownloadLink component.
 * Made it possible to set a content-disposition header for a
 download resource.

 Tapestry Bayeux is a open source component library for tapestry and
 more information can be found here:

 The project website:
 http://tapestry-bayeux.sourceforge.net/

 A blog about the bayeux release:
 http://ancientprogramming.blogspot.com/2007/05/bayeux-is-now-
 tapestry-41-compatible.html

 Cheers,

 Jacob von Eyben


 -
 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]





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


just posted some thoughts on tapestry and its future

2007-05-19 Thread Warner Onstine
This is something that I've been thinking about for a while and wrote  
a blog post about why I think Tapestry hasn't seen greater adoption,  
I would like to encourage all who are interested in commenting (or  
just reading) to visit my blog.


I would like this to be a constructive discussion, so please no  
flames ;-).


http://jroller.com/page/WarnerOnstine?entry=why_hasn_t_tapestry_been

-warner

Warner Onstine - Programmer/Author
New book! Tapestry 101 available at http://sourcebeat.com/books/ 
tapestrylive.html

[EMAIL PROTECTED]
http://warneronstine.com/blog




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



How to load a image dynamiclly in tapestry5.0.4

2007-05-19 Thread Allen Guo
Hi All,

I want to show the ProductDetail page with product image. It looks like
img src=p_001.jpg /.
You know, every product has different image name,so I need to pass the
string 'p_001.jpg' to the corresponding page.
As result the img tag should look like img src=${product.image}/ or
I can use Asset to do it.

But I tried to do it using the first approach, exception occured.
And I don't know how to the second approach.
Can anyone give me an idea?

Thank in advance
Allen Guo


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



Validation display format not good in IE(Tapestry5.0.4)

2007-05-19 Thread Allen Guo
Hi All,

Has anyone tried the validation message display in IE
I found the validation message display in IE is not good, but it's fine
in FireFox.

The test is based on Tapestry5.0.4 or Tapestry5.0.3

Allen Guo



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