Re: contrib:PopupLink Problem

2006-12-21 Thread wong wayne
Thanks Nick. I found another alternative under Popup
a Tapestry page in a new window? Thread using
GenericLink. Both of them can popup with external link
but can I have a listener event to have a routine for
some checking? Thanks.

regards

awyne
--- Nick Westgate [EMAIL PROTECTED] wrote:

 Use PopupLinkRenderer, as mentioned in the other
 popup thread.
 In T3 I use it like this:
 
  component id=someLink type=ExternalLink
  binding name=page
 expression='SomePage'/
  binding name=parameters
 expression={'parameter_1'}/
  binding name=renderer
 expression=beans.popupLinkRenderer/
  /component
 ...
   bean name=popupLinkRenderer

class=org.apache.tapestry.contrib.link.PopupLinkRenderer
   set-property name=windowName
 expression='Title'/
   set-property name=features

expression='top=10,left=10,width=830,height=700,scrollbars=yes,resizable=yes'/
   /bean
 
 Cheers,
 Nick.
 
 
 wong wayne wrote:
  Dear All
  
  Is any way to popup a window and loading a
 external
  page with Popup Link? Popup link works fine when
 refer
  to a page within same project but cannot display
  properly (blank) when referring a external link.
  
  Here are my coding
  
  html
  
  td style=padding: 4px 0px 0px 0px;a jwcid
  =_popupLink_paymentimg jwcid=cartImage
  src=images/b_addcart.gif name=b_addcart
  width=113 height=23 border=0
  id=b_addcart//a/td
  
  page
  component id=_popupLink_payment
  type=contrib:PopupLink
  binding name=url expression=getPaymentLink()/
  binding name=href
 expression=getPaymentLink()/
  binding name=height expression=400/
  binding name=width expression=850/
  binding name=features
 

expression='top=200,left=100,resizable=no,scrollbars=yes'/
  binding name=windowName expression='Shopping
  Cart'/
  binding name=disabled expression=soldOut/
  /component 
  
  java
  private String getPaymentLink(){
  return paymentHost() +
 getStringPaymentParameter();}
  
  I found a solution at
  http://wiki.apache.org/tapestry/PopupLinkSubmit
 but it
  seems for Tapestry 4.0+, what I'm using is 3.0.3.
  Upgrade is not available for this case, any hints
  would be appreciate, thanks.
  
  regards
  
  wayne
  
  __
  Do You Yahoo!?
  Tired of spam?  Yahoo! Mail has the best spam
 protection around 
  http://mail.yahoo.com 
  
 

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



Re: Can you comment on this?

2006-12-21 Thread Emmanuel Sowah

Jesse,

This comment of yours that Wicket, in its current form, is technically
inferior doesn't hold water for me. Can you cite concrete reasons why you
think so?
And when I read your comment that they get beaten up a lot I decided to go
goggle and find out what that means and could see that the only bashing on
Wicket was based on their abuse of the session but this I read in the link
to the article I posted earlier that they are solving this issue by using
the hard disk.
Sorry, but I like fair discussions.

Emmanuel

On 12/20/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Why would Tapestry be losing any kind of battle because one person
wrote an email saying they recommend using Wicket?

When Wicket is actually technically / some other version of better
that I can measure I'll admit it but I'm obviously biased towards
Tapestry so my opinions are highly suspect.

Good for them for getting some good press. They get beaten up a lot so
I think it's good that some positive articles are floating around out
there for them.

On 12/20/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
 Hi Guys,

 I came across this article
 http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
thought
 probably someone here could comment. Is Tapestry really losing the
battle
 against Wicket?

 Emmanuel




--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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

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




Re: Standalone plugins

2006-12-21 Thread Norbert Sándor

I hope it will be better :D

Pedro Abelleira Seco írta:

Oh! good to hear that. I was trying to replace the
service

tapestry.init.ApplicationSpecificationInitializer

with a simple class that adds the id and path to the
libraries. It should work, but I will better wait and
try to use your better library.

Thanks
Pedro


--- Norbert Sándor [EMAIL PROTECTED] escribió:

  

I'm working on a library which can:
- inject library references into other libraries
using hivemind 
configurations

- implements global namespace for tapestry
components
- supports dynamic rendering of components by name
(not perfect solution 
but it works in most cases)


The code is already finished, I have to write some
docs yet.
(Now I'm out of order but I will release the library
this weekend or the 
next week.)


Regards:
Norbi

Ron Piterman írta:


again, the trick is adding references to a library
  

without coding it.


Tapestry defines in the hivemind registry the
  

service point :


tapestry.parse.SpecificationSource

which is responsible for reading the specification
  

from files - I would


think that to make dynamic libraries load, you
  

need to implement this


service a new:

create a single library which is dynamic, all
  

other libraries will


delegate to the tapestry implementation.

for your dynamic library, create a specification
  

which is dynamically


generated according to a hivemind configuration
  

point.


Never done this, but was often thinking about
  

it...


Cheers,
Ron


Pedro Abelleira Seco wrote:
  
  

Thanks for your response.

What I have in mind is to be in the situation of
having a general web application with a common


set of


services and components (including the a general
Border, etc.) and getting different contractors


to


develop different parts of the app in parallel


without


having to touch any single file in the main app


or any


other plugin to put them into production.

Then the warranty and support agreement from each
contractor would be clearly separated and future
modifications or additions of new plugins could


be


done by the best bidder.

Do you think the technical possibilities are


enough


for such scenario?

Cheers
Pedro


--- Ron Piterman [EMAIL PROTECTED] escribió:




It could be done, but above all needs restarting
  

of


the servlet
container for every change-

Since hivemind lets you peekup configuration
  

from


every jar on the
classpath, configuration isn't an issue.

However, adding a library without making an
  

explicit


reference to it
should be quite difficult - You may need to
  

create a


custom Library spec
source.

Cheers,
Ron


Pedro Abelleira Seco wrote:
  
  

Hello all,

I has been a happy user of Tapestry 3 and since



then
  
  

stepped out of web development for a while. But


I




have
  
  

to return there at some point.

I would like to be able to do in a web


application




the
  
  

same kind of things that are possible in client
applications with respect to plugins.

The idea would be to be able to drop a library


in




the
  
  

classpath which contained components and


_pages_




and
  
  

that could:

1.- Add entries (links) to a menu in a page of


the


application.
2.- When the user clicks on one of those links


to


display the corresponding page, which would be



located
  
  

in the library.

Do you think that would be possible with


Tapestry?


Thank you
Pedro






__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por


minuto. 
  
  

http://es.voice.yahoo.com





-
  



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]


  
  


__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por

minuto. 


http://es.voice.yahoo.com



=== message truncated ===





Re: contrib:PopupLink Problem

2006-12-21 Thread Nick Westgate

Sounds like you'll need to choose from one of javascript,
Tacos for T3, or your activateExternalPage() method.

Cheers,
Nick.


wong wayne wrote:

Thanks Nick. I found another alternative under Popup
a Tapestry page in a new window? Thread using
GenericLink. Both of them can popup with external link
but can I have a listener event to have a routine for
some checking? Thanks.

regards

awyne
--- Nick Westgate [EMAIL PROTECTED] wrote:


Use PopupLinkRenderer, as mentioned in the other
popup thread.


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



Re: Tap4 documentation: the For component example is not complete

2006-12-21 Thread Cyrille37

andyhot a écrit :

I'd open one JIRA issue in the 'documentation' category,
and i'd start adding my findings there...
  

Hi Andy, I could not find this JIRA


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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Cyrille37
More generally, I would like to know how to access Application 
environment for a service class.
So, Is there somewhere in Tapestry a Static method that could return 
some global Application information ?


For example, from a Service (Business) Class I would like to:
- get the Application Web Root to read a file
- get a key from a property file which stand in WEB-INF/

Any idea ?
Thanks
Cyrille

Cyrille37 a écrit :

Hello,
Sure it is a beginner question, but I'm a beginner :o)

I would like to read a file which is located in the web root folder, 
and put it in a String.

I had a look around the Internet and found some tricks :

A la Servlet :
ServletContext theApplicationsServletContext = (ServletContext) 
this.getExternalContext().getContext();
String realPath = 
theApplicationsServletContext.getRealPath(/resources/images);

File file = new File(realPath + File.separatorChar + justFileName);

A la Rife :
import com.uwyn.rife.tools.FileUtils;
URL resource = 
getClass().getClassLoader().getResource(model/WordList.txt);

final String wordlist = FileUtils.readString(resource);

Please could you tell me what are methods and usages with Tapestry ?

Thanks
cyrille





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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Marilen Corciovei
Hello,

@InjectObject(service:tapestry.globals.ServletContext)
public abstract ServletContext getServletContext();

...
String imageDir = getServletContext().getRealPath(images);
...

Len
www.len.ro


On Thu, 2006-12-21 at 10:02 +0100, Cyrille37 wrote:

 Hello,
 Sure it is a beginner question, but I'm a beginner :o)
 
 I would like to read a file which is located in the web root folder, and 
 put it in a String.
 I had a look around the Internet and found some tricks :
 
 A la Servlet :
 ServletContext theApplicationsServletContext = (ServletContext) 
 this.getExternalContext().getContext();
 String realPath = 
 theApplicationsServletContext.getRealPath(/resources/images);
 File file = new File(realPath + File.separatorChar + justFileName);
 
 A la Rife :
 import com.uwyn.rife.tools.FileUtils;
 URL resource = 
 getClass().getClassLoader().getResource(model/WordList.txt);
 final String wordlist = FileUtils.readString(resource);
 
 Please could you tell me what are methods and usages with Tapestry ?
 
 Thanks
 cyrille
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Cyrille37

Marilen Corciovei a écrit :

Hello,

@InjectObject(service:tapestry.globals.ServletContext)
public abstract ServletContext getServletContext();

Yes, that's it. Thanks Len.

And Please, how to without annotation ?

I'm looking in Tapestry Javadoc for some static method and I could not 
find one.


Cyrille


...
String imageDir = getServletContext().getRealPath(images);
...

Len
www.len.ro http://www.len.ro


On Thu, 2006-12-21 at 10:02 +0100, Cyrille37 wrote:

Hello,
Sure it is a beginner question, but I'm a beginner :o)

I would like to read a file which is located in the web root folder, and 
put it in a String.

I had a look around the Internet and found some tricks :

A la Servlet :
ServletContext theApplicationsServletContext = (ServletContext) 
this.getExternalContext().getContext();
String realPath = 
theApplicationsServletContext.getRealPath(/resources/images);

File file = new File(realPath + File.separatorChar + justFileName);

A la Rife :
import com.uwyn.rife.tools.FileUtils;
URL resource = 
getClass().getClassLoader().getResource(model/WordList.txt);

final String wordlist = FileUtils.readString(resource);

Please could you tell me what are methods and usages with Tapestry ?

Thanks
cyrille

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






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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Cyrille37

Marilen Corciovei a écrit :

Hello,

@InjectObject(service:tapestry.globals.ServletContext)
public abstract ServletContext getServletContext();


I could not use an abstract class. How will I instantiate it ?
I would not like to instantiate it with an IoC but like a normal Java 
Object.


Cyrille.


...
String imageDir = getServletContext().getRealPath(images);
...

Len
www.len.ro http://www.len.ro


On Thu, 2006-12-21 at 10:02 +0100, Cyrille37 wrote:

Hello,
Sure it is a beginner question, but I'm a beginner :o)

I would like to read a file which is located in the web root folder, and 
put it in a String.

I had a look around the Internet and found some tricks :

A la Servlet :
ServletContext theApplicationsServletContext = (ServletContext) 
this.getExternalContext().getContext();
String realPath = 
theApplicationsServletContext.getRealPath(/resources/images);

File file = new File(realPath + File.separatorChar + justFileName);

A la Rife :
import com.uwyn.rife.tools.FileUtils;
URL resource = 
getClass().getClassLoader().getResource(model/WordList.txt);

final String wordlist = FileUtils.readString(resource);

Please could you tell me what are methods and usages with Tapestry ?

Thanks
cyrille

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






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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Marilen Corciovei
This only works from inside a Tapestry page because this is linked to
the servlet context which knows about the real path. To a standard class
you need to pass the information somehow. 

Without injection it can be:
getPage().getRequestCycle().getRequestContext().getServlet().getServletContext().getRealPath(fileName);

Len
www.len.ro


On Thu, 2006-12-21 at 11:38 +0100, Cyrille37 wrote:

 Marilen Corciovei a écrit :
  Hello,
 
  @InjectObject(service:tapestry.globals.ServletContext)
  public abstract ServletContext getServletContext();
 
 I could not use an abstract class. How will I instantiate it ?
 I would not like to instantiate it with an IoC but like a normal Java 
 Object.
 
 Cyrille.
 
  ...
  String imageDir = getServletContext().getRealPath(images);
  ...
 
  Len
  www.len.ro http://www.len.ro
 
 
  On Thu, 2006-12-21 at 10:02 +0100, Cyrille37 wrote:
  Hello,
  Sure it is a beginner question, but I'm a beginner :o)
 
  I would like to read a file which is located in the web root folder, and 
  put it in a String.
  I had a look around the Internet and found some tricks :
 
  A la Servlet :
  ServletContext theApplicationsServletContext = (ServletContext) 
  this.getExternalContext().getContext();
  String realPath = 
  theApplicationsServletContext.getRealPath(/resources/images);
  File file = new File(realPath + File.separatorChar + justFileName);
 
  A la Rife :
  import com.uwyn.rife.tools.FileUtils;
  URL resource = 
  getClass().getClassLoader().getResource(model/WordList.txt);
  final String wordlist = FileUtils.readString(resource);
 
  Please could you tell me what are methods and usages with Tapestry ?
 
  Thanks
  cyrille
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL 
  PROTECTED]
 
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


Re: hook into T4's page creation process

2006-12-21 Thread Ron Piterman
yes, there is a configurable annotation workers, so you can
create/extend/override page methods when tapestry is preparing the
page/component class.

You can create your own class worker which will add the needed logic to
the mentioned attach event.

Take a look at the annotations module code and hivemind configuration.

Cheers,
Ron



karthik G wrote:
 I just want to add an annotation on the page and then take some action when
 the page is being bound to a request from the page pool.
 
 @SecuredPage
 abstract class MyPage extends BasePage{
 
 }
 
 Is there anyways i can hook into T4's page creation process and then
 depending upon the annotation take some action? For e.g in the above
 case, I
 just want to be able to check for a user object in the session and redirect
 to login page.
 
 I looked at PageAttachListener and it looks nice. But I dont want to
 implement that in my page but would like to attach a listener to T4 itself.
 
 thanks,
 Karthik
 


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



Re: DirectLink with another element instead of a href=.../

2006-12-21 Thread Ron Piterman
AFAIK all link components have a linkRenderer parameter - I think thats
what you need...

Cheers,
Ron


talk.small wrote:
 I want to create the href with DirectLink, but with another owner element of
 area .../ instead of  
 becuase I want to render an image map on the page like this:
 
 MAP NAME=mymap
 AREA HREF=/reference/ ALT=HTML and CSS Reference COORDS=5,5,95,195
 AREA HREF=/design/ ALT=Design Guide COORDS=105,5,195,195
 AREA HREF=/tools/ ALT=Tools COORDS=205,5,295,195
 /MAP
 sitemap.gif 
 
 Does anyone know how can I achieve it? Thanks
 
 talk.small
 


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



Re: Tap4 documentation: the For component example is not complete

2006-12-21 Thread Ron Piterman
Hallo cyrille,

Its under project information (bottom of navigation) /Issue tracking

http://tapestry.apache.org/issue-tracking.html


You are in a very good situation to help improve the docu, becuase you
are learning tapestry from ground up, and doing it very thoroughly- so
its really important you add jira issues if you find something is
missing/wrong - also if its just a typo -

later you just oversee such things, because you use the docu as
reference only... keep up the good work :)

Cheers,
Ron



Cyrille37 wrote:
 andyhot a écrit :
 I'd open one JIRA issue in the 'documentation' category,
 and i'd start adding my findings there...
   
 Hi Andy, I could not find this JIRA
 
 
 -
 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]



hivemind create-instance and additionnal parameters

2006-12-21 Thread Cyrille37

Hi,

I know I'm noisy on this list with my beginner's questions. Sorry for 
that, but it is not so easy to swallow all Tapestry's stuff.

by the way, here is my new question:

I would like to add a Session object. This config wroks nice.
  contribution configuration-id=tapestry.state.ApplicationObjects
   state-object name=hangmanStateObject scope=session 
   create-instance class=games.hangman.service.Hangman /
   /state-object
   /contribution
Now I would like to pass a parameter or set a property to that object 
(like i use to do with Spring).
In the object's class (games.hangman.service.Hangman) I would like to 
inject the ServletContext.

With Annotation I could do like :
   @InjectObject(service:tapestry.globals.ServletContext)
   public abstract ServletContext getServletContext();
But I do not want to use Annotation.

so  I would like to add this ServletContext in the previous 
state-object/create-instance definition. I'd a look at documentation 
(http://hivemind.apache.org/descriptor.html) but I did not find the 
right way.


Thanks for your help.
cyrille



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



Re: Migration experiences (3.0 - 4.1?)

2006-12-21 Thread Barry Books

I migrated 2 sites from 3.x to 4.0.x. I just put in the new libraries
and fixed everything that did not compile. For the most part the 3.x
html and page files will work. Both took a couple of days to get a
site that mostly worked. The biggest problems were things like PDF
pages, all the plain HTML stuff was pretty easy.

But as you say, you end up the something odd after this. On one
project I just put up with the fact that it's an in transition
project. Anything new I do the 4.x way. When I have to mess with old
code I update things. On the other project I took the opportunity to
clean things up and started over. I needed to make some schema
changes, I wrote a bunch of hivemind services and pretty much rewrote
the entire site. That took about 6 weeks but the new site is better,
has test cases and is much easier to work on now.

I would try and covert the site, get some experience with 4 and when
the time is right rework the site to take advantage of the 4.x
features

Barry

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



Re: Can you comment on this?

2006-12-21 Thread Martin Strand
I'm still troubled by the fact that nobody has come up with an answer to  
this:

Is vi better than emacs or is it the other way around?

Martin

On Thu, 21 Dec 2006 09:53:44 +0100, Emmanuel Sowah [EMAIL PROTECTED]  
wrote:



Jesse,

This comment of yours that Wicket, in its current form, is technically
inferior doesn't hold water for me. Can you cite concrete reasons why you
think so?
And when I read your comment that they get beaten up a lot I decided to  
go
goggle and find out what that means and could see that the only bashing  
on
Wicket was based on their abuse of the session but this I read in the  
link

to the article I posted earlier that they are solving this issue by using
the hard disk.
Sorry, but I like fair discussions.

Emmanuel

On 12/20/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Why would Tapestry be losing any kind of battle because one person
wrote an email saying they recommend using Wicket?

When Wicket is actually technically / some other version of better
that I can measure I'll admit it but I'm obviously biased towards
Tapestry so my opinions are highly suspect.

Good for them for getting some good press. They get beaten up a lot so
I think it's good that some positive articles are floating around out
there for them.

On 12/20/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
 Hi Guys,

 I came across this article
 http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
thought
 probably someone here could comment. Is Tapestry really losing the
battle
 against Wicket?

 Emmanuel


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



Re: Problem with InlineEditBox on persisted page property

2006-12-21 Thread Shing Hing Man
In (Tap 4.1.2) InlineEditBox.script :
  if expression=component.destroy
dojo.event.connectOnce(${box}, onSave,
function(newValue, oldValue){
tapestry.bind(${component.updateUrl},
{${component.clientId}:newValue}, true);
});
/if

where component.destroy is from
AbstractWidget.isDestroy. 
When I run my TestInlineBox page in debug mode, I
discovered that 
component.destroy is set to false. So the piece code
that fires the event to update the page property
description when button 'save' is clicked, is not
rendered. 
That explains why the persisted page property
description  does not keep its value between requests.
It works as expected when I comment out the if
expression=component.destroy.


When I run the TimeTracker application in debug mode, 
the  InlineBoxEditor component.destroy is true. 
In the javadoc of  AbstractWidget.isDestroy, it says
it is set dynamically and also give 
an explanation, which I do not understand.
http://tapestry.apache.org/tapestry4.1/apidocs/index.html

My question is why for my  TestInLineBox page,
component.destroy is set to false ?

Thanks in advance for any help!

Shing

 



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

 I am using the component InlineEditBox, in Tapestry
 4.1.2 snapshot,
 to edit a persisted (with session scope) property
 called description  on page TestInlineEditBox.
 I have noticed the changes done to the property
 description  is
 lost if I leave the page TestInlineEditBox  and come
 back to it later.
 As the property description is persisted with scope
 session,
 I expect the changes made  to the property
 description
 to be retained between requests.
 
 It would be appreciated if someone could  give me a
 pointer on this.
 
 Here is my code.
 
 
 public abstract class TestInlineEditBox extends
 BasePage implements 
   PageBeginRenderListener{
   
   @Persist
   public abstract String getDescription();
   
   public abstract void setDescription(String desc);
 
 
   public void pageBeginRender(PageEvent event) {
 
   
   if (getDescription() == null){
   setDescription(Please edit me);
   }
   
   }   
 }
 
 
 TestInlineEditBox.html :
  
  span Description /span:
   Span jwcid=[EMAIL PROTECTED]
 value=ognl:description/ br
   
 a href=# jwcid=@PageLink
 page=literal:HomeHome/a
 
 Shing
 
 
 
 
   
 
 Home page :
   http://uk.geocities.com/matmsh/index.html
 
 
   

___
 
 The all-new Yahoo! Mail goes wherever you go - free
 your email address from your Internet provider.
 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/index.html



___ 
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Ron Piterman
On which class do you need to access the resource?
Cheers,
Ron



Cyrille37 wrote:
 Hello,
 Sure it is a beginner question, but I'm a beginner :o)
 
 I would like to read a file which is located in the web root folder, and
 put it in a String.
 I had a look around the Internet and found some tricks :
 
 A la Servlet :
 ServletContext theApplicationsServletContext = (ServletContext)
 this.getExternalContext().getContext();
 String realPath =
 theApplicationsServletContext.getRealPath(/resources/images);
 File file = new File(realPath + File.separatorChar + justFileName);
 
 A la Rife :
 import com.uwyn.rife.tools.FileUtils;
 URL resource =
 getClass().getClassLoader().getResource(model/WordList.txt);
 final String wordlist = FileUtils.readString(resource);
 
 Please could you tell me what are methods and usages with Tapestry ?
 
 Thanks
 cyrille
 
 -
 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: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Cyrille37

Ron Piterman a écrit :

On which class do you need to access the resource?
  


I've resolved the case with Hivemind.
I pass to the ObjectFactory the ServletContext to get a root path and 
the relative filename.


   service-point id=hangmanFactoryService 
interface=games.hangman.service.HangmanFactory

   invoke-factory
   construct class=games.hangman.service.HangmanFactory
   set-service property=servletContext 
service-id=tapestry.globals.ServletContext/

   set property=wordsListFilename value=WordsList.txt/
   /construct
   /invoke-factory
   /service-point
  
   contribution configuration-id=tapestry.state.ApplicationObjects

   state-object name=hangmanStateObject scope=session 
   !-- create-instance class=games.hangman.service.Hangman 
/ --

   invoke-factory object=service:hangmanFactoryService /
   /state-object
   /contribution

I would have liked only the Hivemind's contribution entry, but to pass 
parameters to the instance I've understood that we have to use a 
Factory. So two Hivemind's entries.


Perhaps it could be lighter with the Hivemind's Lightweight Instance 
Initialization

http://hivemind.apache.org/instance-initialization.html
But I do not understand how it works ...

I would have liked something simple as:

   bean id=hangman scope=session 
class=games.hangman.service.Hangman 
  property name=servletContext 
ref=tapestry.globals.ServletContext /

  property name=wordsListFilename value=WordsList.txt /
   /bean

Cyrille


Cheers,
Ron



Cyrille37 wrote:
  

Hello,
Sure it is a beginner question, but I'm a beginner :o)

I would like to read a file which is located in the web root folder, and
put it in a String.
I had a look around the Internet and found some tricks :

A la Servlet :
ServletContext theApplicationsServletContext = (ServletContext)
this.getExternalContext().getContext();
String realPath =
theApplicationsServletContext.getRealPath(/resources/images);
File file = new File(realPath + File.separatorChar + justFileName);

A la Rife :
import com.uwyn.rife.tools.FileUtils;
URL resource =
getClass().getClassLoader().getResource(model/WordList.txt);
final String wordlist = FileUtils.readString(resource);

Please could you tell me what are methods and usages with Tapestry ?

Thanks
cyrille





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



Re: Can you comment on this?

2006-12-21 Thread Daniel Jue

Well, obviously emacs is better.

On 12/21/06, Martin Strand [EMAIL PROTECTED] wrote:

I'm still troubled by the fact that nobody has come up with an answer to
this:
Is vi better than emacs or is it the other way around?

Martin


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



Re: Can you comment on this?

2006-12-21 Thread karthik G

Both frameworks have excellent developers (which is great for users) and
from what I see both have a different approach to a problem. I think
everything can co-exist!


Case in point ;-)





http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709
http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709

Yes a built-in beanform doesn't seem to exist in Wicket now but that doesn't
mean that it can't be done. Wicket has Panel components that can just about
wrap any component. So you just need a TextFieldPanel that wraps a TextField
for e.g. You can have similar such Panels for a checkbox, drop down etc. But
at the end of the day they can all be treated as panels that need to be
rendered in a loop?. Then its just about having a Wicket Repeater component
that renders any of these panels depending upon the bean property.

So a minimalistic generic template could look like this -

span wicket:id=fields
 span wicket:id=fieldLabelLabel goes here/span
 span wicket:id=fieldComponentField Component/span
/span

IMHO the importance of beanform kind of component depends on the project you
are working on. Our client has tied up with another company to design UI
templates. We assemble the rest of the application. So in our case, the
beanform is not of much help. Please do note that I'm not trying to
trivialize the component implementation. But its important to realize that
the dynamic forms are supported within Wicket constructs as well.

Regards,
Karthik


On 12/21/06, DJ Gredler [EMAIL PROTECTED] wrote:


Case in point ;-)

http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709



On 12/20/06, DJ Gredler  [EMAIL PROTECTED] wrote:

 Emmanuel -

 I tend to view this as a free intellectual market at work. There were
 inadequacies in Tapestry and strengths in Wicket that drove this one
user to
 choose Wicket over Tapestry (and the other frameworks). If enough people
 agree with him, either Tapestry addresses these issues and becomes a
better
 framework, or users migrate to Wicket (or some other framework du jour).

 Either way, we developers end up with a better framework. Given the
amount
 of work that has already been invested in Tapestry and the community
that
 has been built around it, I think the first option is much more likely,
but
 then I'm no oracle :-)

 Daniel


 On 12/20/06, Emmanuel Sowah  [EMAIL PROTECTED] wrote:
 
  Hi Guys,
 
  I came across this article
  http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
  thought
  probably someone here could comment. Is Tapestry really losing the
  battle
  against Wicket?
 
  Emmanuel
 
 





Asynchronous Selection Boxes work with Firefox 2.0 but not with Internet Explorer 6/7

2006-12-21 Thread Stefan Esterer

Hi again..

I have a problem with selectionboxes which are dependent from one another
and are changend asynchron on selection.

In Firefox 2 this is working with no problems.
Internet Explorer 6 and 7 are first showing an empty selection box and then
an exception.

I have created a JIRA entry with attached files. 
https://issues.apache.org/jira/browse/TAPESTRY-1206

I hope somebody could help with this

thx 
stefon
-- 
View this message in context: 
http://www.nabble.com/Asynchronous-Selection-Boxes-work-with-Firefox-2.0-but-not-with-Internet-Explorer-6-7-tf2865941.html#a8009105
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: Can you comment on this?

2006-12-21 Thread Greg.L.Cormier
:s/emacs/vi

;)

-Original Message-
From: Daniel Jue [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 9:40 AM
To: Tapestry users
Subject: Re: Can you comment on this?


Well, obviously emacs is better.

On 12/21/06, Martin Strand [EMAIL PROTECTED] wrote:
 I'm still troubled by the fact that nobody has come up with an answer to
 this:
 Is vi better than emacs or is it the other way around?

 Martin

-
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: Radio components

2006-12-21 Thread Greg.L.Cormier
Thanks!

Does anyone have an example of a simple form that refreshes?

Looks like I might need

- a listener parameter on my Form component, not sure what to put there? It 
mentions it will use a default, so maybe I can just go.. listener= ?

- modify onchange to be onchange=javascript:tapestry.form.refresh(formName)


Thanks,
Greg

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 2:54 PM
To: Tapestry users
Subject: Re: Radio components


http://tapestry.apache.org/tapestry4.1/javascript/form.html



http://tapestry.apache.org/tapestry4.1/usersguide/upgrade4.0.html
(the last one is a work in progress)

On 12/20/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Whatever happened to adding

 onchange=javascript:this.form.events.refresh();

 to a Radio component in 4.1? Documentation doesn't mention the new method, 
 hoping there is one :(

 Thanks,
 Greg

 -
 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

-
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: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Ron Piterman
yes, thats it - BTW, you don't need an explicit set-service.
just exposte a setter in your implementation class, and hivemind will
autowire it:

public void setServletContext( ServletContext ctx) {...}

Cheers,
Ron


Cyrille37 wrote:
 Ron Piterman a écrit :
 On which class do you need to access the resource?
   
 
 I've resolved the case with Hivemind.
 I pass to the ObjectFactory the ServletContext to get a root path and
 the relative filename.
 
service-point id=hangmanFactoryService
 interface=games.hangman.service.HangmanFactory
invoke-factory
construct class=games.hangman.service.HangmanFactory
set-service property=servletContext
 service-id=tapestry.globals.ServletContext/
set property=wordsListFilename value=WordsList.txt/
/construct
/invoke-factory
/service-point
  contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=hangmanStateObject scope=session 
!-- create-instance class=games.hangman.service.Hangman
 / --
invoke-factory object=service:hangmanFactoryService /
/state-object
/contribution
 
 I would have liked only the Hivemind's contribution entry, but to pass
 parameters to the instance I've understood that we have to use a
 Factory. So two Hivemind's entries.
 
 Perhaps it could be lighter with the Hivemind's Lightweight Instance
 Initialization
 http://hivemind.apache.org/instance-initialization.html
 But I do not understand how it works ...
 
 I would have liked something simple as:
 
bean id=hangman scope=session
 class=games.hangman.service.Hangman 
   property name=servletContext
 ref=tapestry.globals.ServletContext /
   property name=wordsListFilename value=WordsList.txt /
/bean
 
 Cyrille
 
 Cheers,
 Ron



 Cyrille37 wrote:
  
 Hello,
 Sure it is a beginner question, but I'm a beginner :o)

 I would like to read a file which is located in the web root folder, and
 put it in a String.
 I had a look around the Internet and found some tricks :

 A la Servlet :
 ServletContext theApplicationsServletContext = (ServletContext)
 this.getExternalContext().getContext();
 String realPath =
 theApplicationsServletContext.getRealPath(/resources/images);
 File file = new File(realPath + File.separatorChar + justFileName);

 A la Rife :
 import com.uwyn.rife.tools.FileUtils;
 URL resource =
 getClass().getClassLoader().getResource(model/WordList.txt);
 final String wordlist = FileUtils.readString(resource);

 Please could you tell me what are methods and usages with Tapestry ?

 Thanks
 cyrille
 
 
 
 
 -
 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: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Cyrille37

Ron Piterman a écrit :

yes, thats it - BTW, you don't need an explicit set-service.
just exposte a setter in your implementation class, and hivemind will
autowire it:

public void setServletContext( ServletContext ctx) {...}
  

heuu...
I do not really understand.
Do you mean Hivemind will do that automatically ?
What are rules ?
Do you know the documentation about that ?

Thanks a lot
Cyrille

Cheers,
Ron


Cyrille37 wrote:
  

Ron Piterman a écrit :


On which class do you need to access the resource?
  
  

I've resolved the case with Hivemind.
I pass to the ObjectFactory the ServletContext to get a root path and
the relative filename.

   service-point id=hangmanFactoryService
interface=games.hangman.service.HangmanFactory
   invoke-factory
   construct class=games.hangman.service.HangmanFactory
   set-service property=servletContext
service-id=tapestry.globals.ServletContext/
   set property=wordsListFilename value=WordsList.txt/
   /construct
   /invoke-factory
   /service-point
 contribution configuration-id=tapestry.state.ApplicationObjects
   state-object name=hangmanStateObject scope=session 
   !-- create-instance class=games.hangman.service.Hangman
/ --
   invoke-factory object=service:hangmanFactoryService /
   /state-object
   /contribution

I would have liked only the Hivemind's contribution entry, but to pass
parameters to the instance I've understood that we have to use a
Factory. So two Hivemind's entries.

Perhaps it could be lighter with the Hivemind's Lightweight Instance
Initialization
http://hivemind.apache.org/instance-initialization.html
But I do not understand how it works ...

I would have liked something simple as:

   bean id=hangman scope=session
class=games.hangman.service.Hangman 
  property name=servletContext
ref=tapestry.globals.ServletContext /
  property name=wordsListFilename value=WordsList.txt /
   /bean

Cyrille



Cheers,
Ron



Cyrille37 wrote:
 
  

Hello,
Sure it is a beginner question, but I'm a beginner :o)

I would like to read a file which is located in the web root folder, and
put it in a String.
I had a look around the Internet and found some tricks :

A la Servlet :
ServletContext theApplicationsServletContext = (ServletContext)
this.getExternalContext().getContext();
String realPath =
theApplicationsServletContext.getRealPath(/resources/images);
File file = new File(realPath + File.separatorChar + justFileName);

A la Rife :
import com.uwyn.rife.tools.FileUtils;
URL resource =
getClass().getClassLoader().getResource(model/WordList.txt);
final String wordlist = FileUtils.readString(resource);

Please could you tell me what are methods and usages with Tapestry ?

Thanks
cyrille




  




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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Jiří Mareš

Hi,

the rules are quite simple, there have to be only one service of the type ... 
otherwise you have to specify what service
do you want to ...

Jirka

Cyrille37 napsal(a):
 
 Ron Piterman a écrit :
 yes, thats it - BTW, you don't need an explicit set-service.
 just exposte a setter in your implementation class, and hivemind will
 autowire it:

 public void setServletContext( ServletContext ctx) {...}
   
 heuu...
 I do not really understand.
 Do you mean Hivemind will do that automatically ?
 What are rules ?
 Do you know the documentation about that ?
 
 Thanks a lot
 Cyrille
 Cheers,
 Ron


 Cyrille37 wrote:
  
 Ron Piterman a écrit :

 On which class do you need to access the resource?
 
 I've resolved the case with Hivemind.
 I pass to the ObjectFactory the ServletContext to get a root path and
 the relative filename.

service-point id=hangmanFactoryService
 interface=games.hangman.service.HangmanFactory
invoke-factory
construct class=games.hangman.service.HangmanFactory
set-service property=servletContext
 service-id=tapestry.globals.ServletContext/
set property=wordsListFilename value=WordsList.txt/
/construct
/invoke-factory
/service-point
  contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=hangmanStateObject scope=session 
!-- create-instance class=games.hangman.service.Hangman
 / --
invoke-factory object=service:hangmanFactoryService /
/state-object
/contribution

 I would have liked only the Hivemind's contribution entry, but to pass
 parameters to the instance I've understood that we have to use a
 Factory. So two Hivemind's entries.

 Perhaps it could be lighter with the Hivemind's Lightweight Instance
 Initialization
 http://hivemind.apache.org/instance-initialization.html
 But I do not understand how it works ...

 I would have liked something simple as:

bean id=hangman scope=session
 class=games.hangman.service.Hangman 
   property name=servletContext
 ref=tapestry.globals.ServletContext /
   property name=wordsListFilename
 value=WordsList.txt /
/bean

 Cyrille


 Cheers,
 Ron



 Cyrille37 wrote:
  
  
 Hello,
 Sure it is a beginner question, but I'm a beginner :o)

 I would like to read a file which is located in the web root
 folder, and
 put it in a String.
 I had a look around the Internet and found some tricks :

 A la Servlet :
 ServletContext theApplicationsServletContext = (ServletContext)
 this.getExternalContext().getContext();
 String realPath =
 theApplicationsServletContext.getRealPath(/resources/images);
 File file = new File(realPath + File.separatorChar + justFileName);

 A la Rife :
 import com.uwyn.rife.tools.FileUtils;
 URL resource =
 getClass().getClassLoader().getResource(model/WordList.txt);
 final String wordlist = FileUtils.readString(resource);

 Please could you tell me what are methods and usages with Tapestry ?

 Thanks
 cyrille
 

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

-- 
Jiří Mareš (mailto:[EMAIL PROTECTED])
ČSAD SVT Praha, s.r.o. (http://www.svt.cz)
Czech Republic

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



Re: Can you comment on this?

2006-12-21 Thread Jesse Kuhnert

Bah! Everyone knows emacs is better...sheesh ;)

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

:s/emacs/vi

;)

-Original Message-
From: Daniel Jue [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 9:40 AM
To: Tapestry users
Subject: Re: Can you comment on this?


Well, obviously emacs is better.

On 12/21/06, Martin Strand [EMAIL PROTECTED] wrote:
 I'm still troubled by the fact that nobody has come up with an answer to
 this:
 Is vi better than emacs or is it the other way around?

 Martin

-
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

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



Job Offer in Miami, US

2006-12-21 Thread jake123

Location: Miami Lakes, Florida, United States

Investacorp Inc., a leading, privately owned broker-dealer firm, seeks to
hire a System Developer to join our MIS team.  This person will be
responsible for the design, development, and maintenance of Java based
applications.  The analyst will participate in the full development life
cycle from gathering requirements to implementation and maintenance.

Technical Skill Requirements:

* 3 or more years of experience in Information Technology.
* Strong programming skills in Java.  Preferably with experience with
some of the following:  JSP’s, servlets, Spring, Hibernate 3, Tapestry
4.0.2/ Tapestry 4.1.X, and Ant.
* Relational databases (preferably Oracle) and SQL.  Preferably with
experience in PL/SQL.
* Web technologies including HTML, Javascript, and CSS.
* Experience with an application server.
* Understanding of Linux, Unix, and NT environments.
* Sun certifications, such as the Sun Certified Programmer, are
preferred.

Other Skill Requirements:

* Ability to analyze complex business problems and implement solutions
with a minimum of direction.
* Ability to work well both independently and as part of a team.
* Experience with both unit testing and integrated system testing.

This job requires a commitment to excellence and the ability to function in
a small team-oriented environment.


Apply to Investacorp:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Job-Offer-in-Miami%2C-US-tf2866216.html#a8010076
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: Job Offer in Miami, US

2006-12-21 Thread Greg.L.Cormier
Damn, jobs down south are EXTRA tempting at this time of year!

-Original Message-
From: jake123 [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 11:05 AM
To: users@tapestry.apache.org
Subject: Job Offer in Miami, US



Location: Miami Lakes, Florida, United States

Investacorp Inc., a leading, privately owned broker-dealer firm, seeks to
hire a System Developer to join our MIS team.  This person will be
responsible for the design, development, and maintenance of Java based
applications.  The analyst will participate in the full development life
cycle from gathering requirements to implementation and maintenance.

Technical Skill Requirements:

* 3 or more years of experience in Information Technology.
* Strong programming skills in Java.  Preferably with experience with
some of the following:  JSP’s, servlets, Spring, Hibernate 3, Tapestry
4.0.2/ Tapestry 4.1.X, and Ant.
* Relational databases (preferably Oracle) and SQL.  Preferably with
experience in PL/SQL.
* Web technologies including HTML, Javascript, and CSS.
* Experience with an application server.
* Understanding of Linux, Unix, and NT environments.
* Sun certifications, such as the Sun Certified Programmer, are
preferred.

Other Skill Requirements:

* Ability to analyze complex business problems and implement solutions
with a minimum of direction.
* Ability to work well both independently and as part of a team.
* Experience with both unit testing and integrated system testing.

This job requires a commitment to excellence and the ability to function in
a small team-oriented environment.


Apply to Investacorp:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
-- 
View this message in context: 
http://www.nabble.com/Job-Offer-in-Miami%2C-US-tf2866216.html#a8010076
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: Can you comment on this?

2006-12-21 Thread Gentry, Michael \(Contractor\)
Well, emacs has a vi emulation mode ...


-Original Message-
From: Martin Strand [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 21, 2006 7:31 AM
To: Tapestry users
Subject: Re: Can you comment on this?


I'm still troubled by the fact that nobody has come up with an answer to

this:
Is vi better than emacs or is it the other way around?

Martin

On Thu, 21 Dec 2006 09:53:44 +0100, Emmanuel Sowah [EMAIL PROTECTED]  
wrote:

 Jesse,

 This comment of yours that Wicket, in its current form, is technically
 inferior doesn't hold water for me. Can you cite concrete reasons why
you
 think so?
 And when I read your comment that they get beaten up a lot I decided
to  
 go
 goggle and find out what that means and could see that the only
bashing  
 on
 Wicket was based on their abuse of the session but this I read in the

 link
 to the article I posted earlier that they are solving this issue by
using
 the hard disk.
 Sorry, but I like fair discussions.

 Emmanuel

 On 12/20/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 Why would Tapestry be losing any kind of battle because one person
 wrote an email saying they recommend using Wicket?

 When Wicket is actually technically / some other version of better
 that I can measure I'll admit it but I'm obviously biased towards
 Tapestry so my opinions are highly suspect.

 Good for them for getting some good press. They get beaten up a lot
so
 I think it's good that some positive articles are floating around out
 there for them.

 On 12/20/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
  Hi Guys,
 
  I came across this article
  http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
 thought
  probably someone here could comment. Is Tapestry really losing the
 battle
  against Wicket?
 
  Emmanuel

-
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: Job Offer in Miami, US

2006-12-21 Thread jake123

yes, is it not... 
it is really nice weather down here... and you can still walking around in
shorts... :)



Greg.L.Cormier wrote:
 
 Damn, jobs down south are EXTRA tempting at this time of year!
 
 -Original Message-
 From: jake123 [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 21, 2006 11:05 AM
 To: users@tapestry.apache.org
 Subject: Job Offer in Miami, US
 
 
 
 Location: Miami Lakes, Florida, United States
 
 Investacorp Inc., a leading, privately owned broker-dealer firm, seeks to
 hire a System Developer to join our MIS team.  This person will be
 responsible for the design, development, and maintenance of Java based
 applications.  The analyst will participate in the full development life
 cycle from gathering requirements to implementation and maintenance.
 
 Technical Skill Requirements:
 
 * 3 or more years of experience in Information Technology.
 * Strong programming skills in Java.  Preferably with experience with
 some of the following:  JSP’s, servlets, Spring, Hibernate 3, Tapestry
 4.0.2/ Tapestry 4.1.X, and Ant.
 * Relational databases (preferably Oracle) and SQL.  Preferably with
 experience in PL/SQL.
 * Web technologies including HTML, Javascript, and CSS.
 * Experience with an application server.
 * Understanding of Linux, Unix, and NT environments.
 * Sun certifications, such as the Sun Certified Programmer, are
 preferred.
 
 Other Skill Requirements:
 
 * Ability to analyze complex business problems and implement solutions
 with a minimum of direction.
 * Ability to work well both independently and as part of a team.
 * Experience with both unit testing and integrated system testing.
 
 This job requires a commitment to excellence and the ability to function
 in
 a small team-oriented environment.
 
 
 Apply to Investacorp:
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 -- 
 View this message in context:
 http://www.nabble.com/Job-Offer-in-Miami%2C-US-tf2866216.html#a8010076
 Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Job-Offer-in-Miami%2C-US-tf2866216.html#a8010438
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Ron Piterman
for example, you can not expect hivemind to inject IEngineService
automatically since there are many services implementing this interface
(PageService, ExternalService, DirectService and so on)


Otherwise it works fine.

Cheers,
Ron


Jiří Mareš wrote:
 Hi,
 
 the rules are quite simple, there have to be only one service of the type ... 
 otherwise you have to specify what service
 do you want to ...
 
 Jirka
 
 Cyrille37 napsal(a):
 Ron Piterman a écrit :
 yes, thats it - BTW, you don't need an explicit set-service.
 just exposte a setter in your implementation class, and hivemind will
 autowire it:

 public void setServletContext( ServletContext ctx) {...}
   
 heuu...
 I do not really understand.
 Do you mean Hivemind will do that automatically ?
 What are rules ?
 Do you know the documentation about that ?

 Thanks a lot
 Cyrille
 Cheers,
 Ron


 Cyrille37 wrote:
  
 Ron Piterman a écrit :

 On which class do you need to access the resource?
 
 I've resolved the case with Hivemind.
 I pass to the ObjectFactory the ServletContext to get a root path and
 the relative filename.

service-point id=hangmanFactoryService
 interface=games.hangman.service.HangmanFactory
invoke-factory
construct class=games.hangman.service.HangmanFactory
set-service property=servletContext
 service-id=tapestry.globals.ServletContext/
set property=wordsListFilename value=WordsList.txt/
/construct
/invoke-factory
/service-point
  contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=hangmanStateObject scope=session 
!-- create-instance class=games.hangman.service.Hangman
 / --
invoke-factory object=service:hangmanFactoryService /
/state-object
/contribution

 I would have liked only the Hivemind's contribution entry, but to pass
 parameters to the instance I've understood that we have to use a
 Factory. So two Hivemind's entries.

 Perhaps it could be lighter with the Hivemind's Lightweight Instance
 Initialization
 http://hivemind.apache.org/instance-initialization.html
 But I do not understand how it works ...

 I would have liked something simple as:

bean id=hangman scope=session
 class=games.hangman.service.Hangman 
   property name=servletContext
 ref=tapestry.globals.ServletContext /
   property name=wordsListFilename
 value=WordsList.txt /
/bean

 Cyrille


 Cheers,
 Ron



 Cyrille37 wrote:
  
  
 Hello,
 Sure it is a beginner question, but I'm a beginner :o)

 I would like to read a file which is located in the web root
 folder, and
 put it in a String.
 I had a look around the Internet and found some tricks :

 A la Servlet :
 ServletContext theApplicationsServletContext = (ServletContext)
 this.getExternalContext().getContext();
 String realPath =
 theApplicationsServletContext.getRealPath(/resources/images);
 File file = new File(realPath + File.separatorChar + justFileName);

 A la Rife :
 import com.uwyn.rife.tools.FileUtils;
 URL resource =
 getClass().getClassLoader().getResource(model/WordList.txt);
 final String wordlist = FileUtils.readString(resource);

 Please could you tell me what are methods and usages with Tapestry ?

 Thanks
 cyrille
 
   


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



another plugin... for idea this time!!

2006-12-21 Thread andyhot
Quoting Demetrios Kyriakis from the tap-idea mailing list
 Hi,

 Just saw in the plug-in repository that there's anther Tapestry plug-in
 for IntelliJ called HandyTapestry:
 http://handyedit.com/handytapestry.html

 D. 
Looks quite promising if you ask me!

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


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



Re: reading a file in web root in a Tapestry fashion

2006-12-21 Thread Ron Piterman
http://hivemind.apache.org/hivemind/BuilderFactory.html#Autowiring



Cyrille37 wrote:
 Ron Piterman a écrit :
 yes, thats it - BTW, you don't need an explicit set-service.
 just exposte a setter in your implementation class, and hivemind will
 autowire it:

 public void setServletContext( ServletContext ctx) {...}
   
 heuu...
 I do not really understand.
 Do you mean Hivemind will do that automatically ?
 What are rules ?
 Do you know the documentation about that ?
 
 Thanks a lot
 Cyrille
 Cheers,
 Ron


 Cyrille37 wrote:
  
 Ron Piterman a écrit :

 On which class do you need to access the resource?
 
 I've resolved the case with Hivemind.
 I pass to the ObjectFactory the ServletContext to get a root path and
 the relative filename.

service-point id=hangmanFactoryService
 interface=games.hangman.service.HangmanFactory
invoke-factory
construct class=games.hangman.service.HangmanFactory
set-service property=servletContext
 service-id=tapestry.globals.ServletContext/
set property=wordsListFilename value=WordsList.txt/
/construct
/invoke-factory
/service-point
  contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=hangmanStateObject scope=session 
!-- create-instance class=games.hangman.service.Hangman
 / --
invoke-factory object=service:hangmanFactoryService /
/state-object
/contribution

 I would have liked only the Hivemind's contribution entry, but to pass
 parameters to the instance I've understood that we have to use a
 Factory. So two Hivemind's entries.

 Perhaps it could be lighter with the Hivemind's Lightweight Instance
 Initialization
 http://hivemind.apache.org/instance-initialization.html
 But I do not understand how it works ...

 I would have liked something simple as:

bean id=hangman scope=session
 class=games.hangman.service.Hangman 
   property name=servletContext
 ref=tapestry.globals.ServletContext /
   property name=wordsListFilename
 value=WordsList.txt /
/bean

 Cyrille


 Cheers,
 Ron



 Cyrille37 wrote:
  
  
 Hello,
 Sure it is a beginner question, but I'm a beginner :o)

 I would like to read a file which is located in the web root
 folder, and
 put it in a String.
 I had a look around the Internet and found some tricks :

 A la Servlet :
 ServletContext theApplicationsServletContext = (ServletContext)
 this.getExternalContext().getContext();
 String realPath =
 theApplicationsServletContext.getRealPath(/resources/images);
 File file = new File(realPath + File.separatorChar + justFileName);

 A la Rife :
 import com.uwyn.rife.tools.FileUtils;
 URL resource =
 getClass().getClassLoader().getResource(model/WordList.txt);
 final String wordlist = FileUtils.readString(resource);

 Please could you tell me what are methods and usages with Tapestry ?

 Thanks
 cyrille
 

   
 
 
 
 -
 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: Can you comment on this?

2006-12-21 Thread Thomas.Vaughan
Yeah, but Fannie Mae uses emacs to edit all their accounting files, and
look where that got 'em . . . 

Vi would have never let that happen.

-Original Message-
From: Gentry, Michael (Contractor) [mailto:[EMAIL PROTECTED]

Sent: Thursday, December 21, 2006 11:10 AM
To: Tapestry users
Subject: RE: Can you comment on this?

Well, emacs has a vi emulation mode ...


-Original Message-
From: Martin Strand [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 21, 2006 7:31 AM
To: Tapestry users
Subject: Re: Can you comment on this?


I'm still troubled by the fact that nobody has come up with an answer to

this:
Is vi better than emacs or is it the other way around?

Martin

On Thu, 21 Dec 2006 09:53:44 +0100, Emmanuel Sowah [EMAIL PROTECTED]  
wrote:

 Jesse,

 This comment of yours that Wicket, in its current form, is technically
 inferior doesn't hold water for me. Can you cite concrete reasons why
you
 think so?
 And when I read your comment that they get beaten up a lot I decided
to  
 go
 goggle and find out what that means and could see that the only
bashing  
 on
 Wicket was based on their abuse of the session but this I read in the

 link
 to the article I posted earlier that they are solving this issue by
using
 the hard disk.
 Sorry, but I like fair discussions.

 Emmanuel

 On 12/20/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 Why would Tapestry be losing any kind of battle because one person
 wrote an email saying they recommend using Wicket?

 When Wicket is actually technically / some other version of better
 that I can measure I'll admit it but I'm obviously biased towards
 Tapestry so my opinions are highly suspect.

 Good for them for getting some good press. They get beaten up a lot
so
 I think it's good that some positive articles are floating around out
 there for them.

 On 12/20/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
  Hi Guys,
 
  I came across this article
  http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
 thought
  probably someone here could comment. Is Tapestry really losing the
 battle
  against Wicket?
 
  Emmanuel

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



Re: another plugin... for idea this time!!

2006-12-21 Thread Dennis Sinelnikov
Not to steal the thread, but since it's on the similar topic, I figured 
it's ok.


Does anyone know of a tap4+ eclipse plugin?  Spindle is great, but last 
time I looked it was only tap3 compliant.


Thanks,
Dennis

andyhot wrote:

Quoting Demetrios Kyriakis from the tap-idea mailing list

Hi,

Just saw in the plug-in repository that there's anther Tapestry plug-in
for IntelliJ called HandyTapestry:
http://handyedit.com/handytapestry.html

D. 

Looks quite promising if you ask me!




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



Help with @ScriptIncludes

2006-12-21 Thread Greg.L.Cormier
Okay, in my border.html, inside my head I have a nice 

span jwcid=@ScriptIncludes /

I view source and looks like it's working:

script type=text/javascriptdjConfig = ..snip... /script
script type=text/javascript 
src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
...snip a few more script tags ...


However, I'm getting an error on the first dojo.js include.. 

Error: illegal character
Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
Line: 1
Source Code:


if I paste that URL directly into my browser I get a bunch of jibberish. It 
does look like it's gzip-compressed... I disabled all my compression filters 
but it's still compressed, possibly by Tapestry.

Any ideas? This should in theory be working out of the box?

Thanks,
Greg

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



link to another page's listener

2006-12-21 Thread Cyrille37

Hi,
I'd just re-read doc about DirecLink, ExternalLink  Co and I don't find 
how to create a like in page A which point to a listener of page B.


page A has a listener 'newGame'.
I would like to add a link on page B which point to pageA.newGame()

Is it really not possible or I've missed something ?

Tahnks for you help and patience, cyrille

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



Re: link to another page's listener

2006-12-21 Thread andyhot
Cyrille37 wrote:
 Hi,
 I'd just re-read doc about DirecLink, ExternalLink  Co and I don't
 find how to create a like in page A which point to a listener of page B.

 page A has a listener 'newGame'.
 I would like to add a link on page B which point to pageA.newGame()

 Is it really not possible or I've missed something ?

Well, if you *must*, take a look at
http://issues.apache.org/jira/browse/TAPESTRY-944


 Tahnks for you help and patience, cyrille

 -
 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 / J2EE Consulting 


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



Re: link to another page's listener

2006-12-21 Thread Cyrille37

andyhot a écrit :

Cyrille37 wrote:
  

Hi,
I'd just re-read doc about DirecLink, ExternalLink  Co and I don't
find how to create a like in page A which point to a listener of page B.

page A has a listener 'newGame'.
I would like to add a link on page B which point to pageA.newGame()

Is it really not possible or I've missed something ?



Well, if you *must*, take a look at
http://issues.apache.org/jira/browse/TAPESTRY-944
  


I like the extListener idea, but I do not understand how to implement it 
... Sorry for my missing knowledge :(


cyrille


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



Re: link to another page's listener

2006-12-21 Thread Cyrille37

Cyrille37 a écrit :

andyhot a écrit :

Cyrille37 wrote:
 

Hi,
I'd just re-read doc about DirecLink, ExternalLink  Co and I don't
find how to create a like in page A which point to a listener of 
page B.


page A has a listener 'newGame'.
I would like to add a link on page B which point to pageA.newGame()

Is it really not possible or I've missed something ?



Well, if you *must*, take a look at
http://issues.apache.org/jira/browse/TAPESTRY-944
  


I like the extListener idea, but I do not understand how to implement 
it ... Sorry for my missing knowledge :(


Perhaps you means to create an extListener factory ?
could you tell me where is the mapping from listener: to 
ListenerBindingFactory ?

Perhaps I will understand ...

Cheers
Cyrille


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



Re: Can you comment on this?

2006-12-21 Thread DJ Gredler

Martin -

Can you please change your email address? I rediscover it about once a
month, usually as I'm about to take a gulp of hot coffee or tea. Reading
programming-related mailing lists should not be dangerous to your health ;-)

Regards,

Daniel


On 12/21/06, Martin Strand [EMAIL PROTECTED] wrote:


I'm still troubled by the fact that nobody has come up with an answer to
this:
Is vi better than emacs or is it the other way around?

Martin

On Thu, 21 Dec 2006 09:53:44 +0100, Emmanuel Sowah [EMAIL PROTECTED]
wrote:

 Jesse,

 This comment of yours that Wicket, in its current form, is technically
 inferior doesn't hold water for me. Can you cite concrete reasons why
you
 think so?
 And when I read your comment that they get beaten up a lot I decided to
 go
 goggle and find out what that means and could see that the only bashing
 on
 Wicket was based on their abuse of the session but this I read in the
 link
 to the article I posted earlier that they are solving this issue by
using
 the hard disk.
 Sorry, but I like fair discussions.

 Emmanuel

 On 12/20/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 Why would Tapestry be losing any kind of battle because one person
 wrote an email saying they recommend using Wicket?

 When Wicket is actually technically / some other version of better
 that I can measure I'll admit it but I'm obviously biased towards
 Tapestry so my opinions are highly suspect.

 Good for them for getting some good press. They get beaten up a lot so
 I think it's good that some positive articles are floating around out
 there for them.

 On 12/20/06, Emmanuel Sowah [EMAIL PROTECTED] wrote:
  Hi Guys,
 
  I came across this article
  http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
 thought
  probably someone here could comment. Is Tapestry really losing the
 battle
  against Wicket?
 
  Emmanuel

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




Re: Can you comment on this?

2006-12-21 Thread DJ Gredler

Karthik -

Sorry if my post came across the wrong way -- I just think it's a good
illustration of the kind of healthy cross-pollination I had been referring
to earlier. I'm not implying that they can't or won't implement this sort of
component, nor am I saying that something like this fits every project. I'm
just pointing out a visible example of the free intellectual market at
work. In fact, I'm eager to see how they improve on the concept, so that I
can steal their ideas! ;-)

Take care,

Daniel


On 12/21/06, karthik G [EMAIL PROTECTED] wrote:


Both frameworks have excellent developers (which is great for users) and
from what I see both have a different approach to a problem. I think
everything can co-exist!

 Case in point ;-)



http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709

http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709


Yes a built-in beanform doesn't seem to exist in Wicket now but that
doesn't
mean that it can't be done. Wicket has Panel components that can just
about
wrap any component. So you just need a TextFieldPanel that wraps a
TextField
for e.g. You can have similar such Panels for a checkbox, drop down etc.
But
at the end of the day they can all be treated as panels that need to be
rendered in a loop?. Then its just about having a Wicket Repeater
component
that renders any of these panels depending upon the bean property.

So a minimalistic generic template could look like this -

span wicket:id=fields
  span wicket:id=fieldLabelLabel goes here/span
  span wicket:id=fieldComponentField Component/span
/span

IMHO the importance of beanform kind of component depends on the project
you
are working on. Our client has tied up with another company to design UI
templates. We assemble the rest of the application. So in our case, the
beanform is not of much help. Please do note that I'm not trying to
trivialize the component implementation. But its important to realize that
the dynamic forms are supported within Wicket constructs as well.

Regards,
Karthik


On 12/21/06, DJ Gredler [EMAIL PROTECTED] wrote:

 Case in point ;-)


http://www.nabble.com/Directly-map-a-bean-to-HTML-form-tf2845102.html#a7944709



 On 12/20/06, DJ Gredler  [EMAIL PROTECTED] wrote:
 
  Emmanuel -
 
  I tend to view this as a free intellectual market at work. There were
  inadequacies in Tapestry and strengths in Wicket that drove this one
 user to
  choose Wicket over Tapestry (and the other frameworks). If enough
people
  agree with him, either Tapestry addresses these issues and becomes a
 better
  framework, or users migrate to Wicket (or some other framework du
jour).

  Either way, we developers end up with a better framework. Given the
 amount
  of work that has already been invested in Tapestry and the community
 that
  has been built around it, I think the first option is much more
likely,
 but
  then I'm no oracle :-)
 
  Daniel
 
 
  On 12/20/06, Emmanuel Sowah  [EMAIL PROTECTED] wrote:
  
   Hi Guys,
  
   I came across this article
   http://www.infoq.com/news/2006/12/wicket-vs-springmvc-and-jsf and
   thought
   probably someone here could comment. Is Tapestry really losing the
   battle
   against Wicket?
  
   Emmanuel
  
  
 






Re: DropdownTimePicker, DropdownDatePicker, and time zones

2006-12-21 Thread Jon McCarty

Nice.  You avoided all the deprecated functions too (gotta love those Java
dates).

One gotcha I noticed was that the SimpleDateFormat objects are static, and
they're not thread safe by nature (at least according to the JavaDoc). 
Those should probably be instance variables instead of statics.

Thanks for the fix!
Jon


Jessek wrote:
 
 Thanks for noticing. I didn't follow the exact pattern that you
 outlined but have made them rfc3339 compliant and things look much
 better now.
 
 Should be available at some point today.
 
 On 12/15/06, Jon McCarty [EMAIL PROTECTED] wrote:

 Hi everyone –

 I'm enjoying the Tap4.1.1 line (I think that's where I am – I'm pulling
 from
 svn trunk), but I had a problem with the Dojo-backed dropdown date and
 time
 pickers.

 Right now, they're passing the dates to the client-side components in a
 way
 that causes the client-side to do a timezone conversion.  This throws off
 my
 app when the client is in a different timezone than the server.

 For my $0.02, the server should control all timezone issues – I want
 times
 rendered as text to be the same as the ones in my widgets!  I'd like to
 recommend this change for the Tapestry trunk:

 Change how we pass the date in DropdownDatePicker and DropdownTimePicker
 to
 this code fragment:


 Object formatted = new JSONLiteral(new Date( + (value.getYear()+1900) +
, + value.getMonth() +
, + value.getDate() +
, + value.getHours() +
, + value.getMinutes() +
, + value.getSeconds() + ));
 json.put(value, formatted);


 This works for both the date and time pickers.  (Currently, the time
 picker
 doesn't work at all, probably due to a recent change in Dojo's formatting
 requirements.)

 Comments?  Should I open a JIRA to this effect?

 --JM

 --
 View this message in context:
 http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a7896437
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 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
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a8013696
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Session issues, persistence, sessions, since 4.1.2

2006-12-21 Thread Josh Long

Hi,

I know this is remarkably non specific, but a page of mine that
didnothing in particular just fine in the latest and greatest
iteration of 4.1.1-SNAPSHOT with one session persistent property gives
a stale sesssion error under the latest and greatest 4.1.2-SNAPSHOT.

Has anything changed that might have triggered this erratic behavior?

Thanks in advance for any help,

Josh

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



Re: Session issues, persistence, sessions, since 4.1.2

2006-12-21 Thread Jesse Kuhnert

Nothing that I know of ...

On 12/21/06, Josh Long [EMAIL PROTECTED] wrote:

Hi,

I know this is remarkably non specific, but a page of mine that
didnothing in particular just fine in the latest and greatest
iteration of 4.1.1-SNAPSHOT with one session persistent property gives
a stale sesssion error under the latest and greatest 4.1.2-SNAPSHOT.

Has anything changed that might have triggered this erratic behavior?

Thanks in advance for any help,

Josh

-
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

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



Re: Help with @ScriptIncludes

2006-12-21 Thread Jesse Kuhnert

No idea...It should be working.

The illegal character error sounds suspicious. Are you trying to use
some dojo widgets on this page and if so which ones ?

Other than that I'd probably need a test case or
something..(preferably a self contained maven2 mini app with embedded
jetty stuff so I can just run mvn jetty:run to get going. )

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

Okay, in my border.html, inside my head I have a nice

span jwcid=@ScriptIncludes /

I view source and looks like it's working:

script type=text/javascriptdjConfig = ..snip... /script
script type=text/javascript 
src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
...snip a few more script tags ...


However, I'm getting an error on the first dojo.js include..

Error: illegal character
Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
Line: 1
Source Code:


if I paste that URL directly into my browser I get a bunch of jibberish. It 
does look like it's gzip-compressed... I disabled all my compression filters 
but it's still compressed, possibly by Tapestry.

Any ideas? This should in theory be working out of the box?

Thanks,
Greg

-
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

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



Re: Problem with InlineEditBox on persisted page property

2006-12-21 Thread Jesse Kuhnert

Not sure, but with the amount of emails flying around you'll have a
much better chance of this getting looked at if a jira issue is filed.

On 12/21/06, Shing Hing Man [EMAIL PROTECTED] wrote:

In (Tap 4.1.2) InlineEditBox.script :
  if expression=component.destroy
dojo.event.connectOnce(${box}, onSave,
function(newValue, oldValue){
tapestry.bind(${component.updateUrl},
{${component.clientId}:newValue}, true);
});
/if

where component.destroy is from
AbstractWidget.isDestroy.
When I run my TestInlineBox page in debug mode, I
discovered that
component.destroy is set to false. So the piece code
that fires the event to update the page property
description when button 'save' is clicked, is not
rendered.
That explains why the persisted page property
description  does not keep its value between requests.
It works as expected when I comment out the if
expression=component.destroy.


When I run the TimeTracker application in debug mode,
the  InlineBoxEditor component.destroy is true.
In the javadoc of  AbstractWidget.isDestroy, it says
it is set dynamically and also give
an explanation, which I do not understand.
http://tapestry.apache.org/tapestry4.1/apidocs/index.html

My question is why for my  TestInLineBox page,
component.destroy is set to false ?

Thanks in advance for any help!

Shing





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

 I am using the component InlineEditBox, in Tapestry
 4.1.2 snapshot,
 to edit a persisted (with session scope) property
 called description  on page TestInlineEditBox.
 I have noticed the changes done to the property
 description  is
 lost if I leave the page TestInlineEditBox  and come
 back to it later.
 As the property description is persisted with scope
 session,
 I expect the changes made  to the property
 description
 to be retained between requests.

 It would be appreciated if someone could  give me a
 pointer on this.

 Here is my code.


 public abstract class TestInlineEditBox extends
 BasePage implements
   PageBeginRenderListener{

   @Persist
   public abstract String getDescription();

   public abstract void setDescription(String desc);


   public void pageBeginRender(PageEvent event) {


   if (getDescription() == null){
   setDescription(Please edit me);
   }

   }
 }


 TestInlineEditBox.html :

  span Description /span:
   Span jwcid=[EMAIL PROTECTED]
 value=ognl:description/ br

 a href=# jwcid=@PageLink
 page=literal:HomeHome/a

 Shing






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




___

 The all-new Yahoo! Mail goes wherever you go - free
 your email address from your Internet provider.
 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/index.html



___
The all-new Yahoo! Mail goes wherever you go - free your email address from 
your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html

-
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

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



RE: Help with @ScriptIncludes

2006-12-21 Thread Greg.L.Cormier
Hmm, oddly enough in Internet Explorer, I think it's working.

Maybe firefox doesn't support GZIP'd JS files...

Jesse, is there a way to disable all response compression in Tapestry?

Thanks,
Greg

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:05 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


No idea...It should be working.

The illegal character error sounds suspicious. Are you trying to use
some dojo widgets on this page and if so which ones ?

Other than that I'd probably need a test case or
something..(preferably a self contained maven2 mini app with embedded
jetty stuff so I can just run mvn jetty:run to get going. )

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Okay, in my border.html, inside my head I have a nice

 span jwcid=@ScriptIncludes /

 I view source and looks like it's working:

 script type=text/javascriptdjConfig = ..snip... /script
 script type=text/javascript 
 src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
 ...snip a few more script tags ...


 However, I'm getting an error on the first dojo.js include..

 Error: illegal character
 Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
 Line: 1
 Source Code:
 

 if I paste that URL directly into my browser I get a bunch of jibberish. It 
 does look like it's gzip-compressed... I disabled all my compression filters 
 but it's still compressed, possibly by Tapestry.

 Any ideas? This should in theory be working out of the box?

 Thanks,
 Greg

 -
 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

-
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: Help with @ScriptIncludes

2006-12-21 Thread Jesse Kuhnert

Firefox doesn't have any issues with gzip compression. IE does in very
special cases (even when it sends headers saying it does), but I've
got these corner cases covered as well.

Allowing for more fine grained controls over these additional asset
service abilities is on my todo list but not something you can control
very much currently. (other than adding more regexp config options to
have ~more~ assets handled this way)

I'm afraid you are stuck giving me an example to track things down
with for now. .. (which is better for me but I do know it might be
frustrating..)

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

Hmm, oddly enough in Internet Explorer, I think it's working.

Maybe firefox doesn't support GZIP'd JS files...

Jesse, is there a way to disable all response compression in Tapestry?

Thanks,
Greg

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:05 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


No idea...It should be working.

The illegal character error sounds suspicious. Are you trying to use
some dojo widgets on this page and if so which ones ?

Other than that I'd probably need a test case or
something..(preferably a self contained maven2 mini app with embedded
jetty stuff so I can just run mvn jetty:run to get going. )

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Okay, in my border.html, inside my head I have a nice

 span jwcid=@ScriptIncludes /

 I view source and looks like it's working:

 script type=text/javascriptdjConfig = ..snip... /script
 script type=text/javascript 
src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
 ...snip a few more script tags ...


 However, I'm getting an error on the first dojo.js include..

 Error: illegal character
 Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
 Line: 1
 Source Code:
 

 if I paste that URL directly into my browser I get a bunch of jibberish. It 
does look like it's gzip-compressed... I disabled all my compression filters but 
it's still compressed, possibly by Tapestry.

 Any ideas? This should in theory be working out of the box?

 Thanks,
 Greg

 -
 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

-
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

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



RE: Help with @ScriptIncludes

2006-12-21 Thread Greg.L.Cormier
I'm not setup on Maven2, or Jetty for that matter at all :(  
Netbeans+Ant+Websphere5 is what I'm stuck with over here :(

The reason I'm curious about Firefox is because it's definately choking on the 
script include line. The error console gives an illegal character, and then 
a ton of undefined objects, indicating the file isn't getting parsed.

Error: illegal character
Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
Line: 1
Source Code:

Error: dojo is not defined
Source File: http://peanut/pctadmin/app?page=Home
Line: 14

None of these errors are there on IE - instead I get other errors which 
indicate I have no idea what I'm doing with Tapestry 4.1 and dojo, which is 
very accurate :-D But at least it appears the DOJO library is actually being 
loaded.


-Greg

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:24 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


Firefox doesn't have any issues with gzip compression. IE does in very
special cases (even when it sends headers saying it does), but I've
got these corner cases covered as well.

Allowing for more fine grained controls over these additional asset
service abilities is on my todo list but not something you can control
very much currently. (other than adding more regexp config options to
have ~more~ assets handled this way)

I'm afraid you are stuck giving me an example to track things down
with for now. .. (which is better for me but I do know it might be
frustrating..)

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hmm, oddly enough in Internet Explorer, I think it's working.

 Maybe firefox doesn't support GZIP'd JS files...

 Jesse, is there a way to disable all response compression in Tapestry?

 Thanks,
 Greg

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 21, 2006 3:05 PM
 To: Tapestry users
 Subject: Re: Help with @ScriptIncludes


 No idea...It should be working.

 The illegal character error sounds suspicious. Are you trying to use
 some dojo widgets on this page and if so which ones ?

 Other than that I'd probably need a test case or
 something..(preferably a self contained maven2 mini app with embedded
 jetty stuff so I can just run mvn jetty:run to get going. )

 On 12/21/06, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Okay, in my border.html, inside my head I have a nice
 
  span jwcid=@ScriptIncludes /
 
  I view source and looks like it's working:
 
  script type=text/javascriptdjConfig = ..snip... /script
  script type=text/javascript 
  src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
  ...snip a few more script tags ...
 
 
  However, I'm getting an error on the first dojo.js include..
 
  Error: illegal character
  Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
  Line: 1
  Source Code:
  
 
  if I paste that URL directly into my browser I get a bunch of jibberish. It 
  does look like it's gzip-compressed... I disabled all my compression 
  filters but it's still compressed, possibly by Tapestry.
 
  Any ideas? This should in theory be working out of the box?
 
  Thanks,
  Greg
 
  -
  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

 -
 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

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



[poll] how do people feel about me changing that validation dialog in 4.1.1 ?

2006-12-21 Thread Jesse Kuhnert

If you are using Tapestry 4.1.1 or greater then you have probably run
into the new client side validation modal dialog popup:

http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html

I've decided that I should probably follow some of my own advice and
would like to fix this as described here:

http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages/

Ironically I had already created a Dojo widget to do the exact same
thing before this blog entry even came out but never really thought to
apply the same kind of idea to validation..(this is also the kind of
non-intrusive validation that tacos does by default):

http://archive.dojotoolkit.org/nightly/tests/widget/test_Toaster.html

Not sure which release this belongs in but I've got all kinds of
usability/humane/etc plans for validation that I'm going to want to
try applying at some point. I'd really rather just completely remove
this dialog but want to see how people feel about it first.

I can always just make this a configurable option where you opt-in and
choose which kind of client side validation theme you'd like, but
I'm not as convinced that more options here will necessarily be
helping people.

What do you think/feel ?

--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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

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



Re: Help with @ScriptIncludes

2006-12-21 Thread Jesse Kuhnert

All I see in the email is some sort of weird checkbox icon ?

Maybe at least turning the debug console on (ie using FireBug ) and
copying and pasting some of those exact errors and all text associated
with them might help me.

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

I'm not setup on Maven2, or Jetty for that matter at all :(  
Netbeans+Ant+Websphere5 is what I'm stuck with over here :(

The reason I'm curious about Firefox is because it's definately choking on the script 
include line. The error console gives an illegal character, and then a ton of 
undefined objects, indicating the file isn't getting parsed.

Error: illegal character
Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
Line: 1
Source Code:

Error: dojo is not defined
Source File: http://peanut/pctadmin/app?page=Home
Line: 14

None of these errors are there on IE - instead I get other errors which 
indicate I have no idea what I'm doing with Tapestry 4.1 and dojo, which is 
very accurate :-D But at least it appears the DOJO library is actually being 
loaded.


-Greg

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:24 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


Firefox doesn't have any issues with gzip compression. IE does in very
special cases (even when it sends headers saying it does), but I've
got these corner cases covered as well.

Allowing for more fine grained controls over these additional asset
service abilities is on my todo list but not something you can control
very much currently. (other than adding more regexp config options to
have ~more~ assets handled this way)

I'm afraid you are stuck giving me an example to track things down
with for now. .. (which is better for me but I do know it might be
frustrating..)

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Hmm, oddly enough in Internet Explorer, I think it's working.

 Maybe firefox doesn't support GZIP'd JS files...

 Jesse, is there a way to disable all response compression in Tapestry?

 Thanks,
 Greg

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 21, 2006 3:05 PM
 To: Tapestry users
 Subject: Re: Help with @ScriptIncludes


 No idea...It should be working.

 The illegal character error sounds suspicious. Are you trying to use
 some dojo widgets on this page and if so which ones ?

 Other than that I'd probably need a test case or
 something..(preferably a self contained maven2 mini app with embedded
 jetty stuff so I can just run mvn jetty:run to get going. )

 On 12/21/06, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Okay, in my border.html, inside my head I have a nice
 
  span jwcid=@ScriptIncludes /
 
  I view source and looks like it's working:
 
  script type=text/javascriptdjConfig = ..snip... /script
  script type=text/javascript 
src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
  ...snip a few more script tags ...
 
 
  However, I'm getting an error on the first dojo.js include..
 
  Error: illegal character
  Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
  Line: 1
  Source Code:
  
 
  if I paste that URL directly into my browser I get a bunch of jibberish. It 
does look like it's gzip-compressed... I disabled all my compression filters but it's 
still compressed, possibly by Tapestry.
 
  Any ideas? This should in theory be working out of the box?
 
  Thanks,
  Greg
 
  -
  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

 -
 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

-
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

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

RE: Help with @ScriptIncludes

2006-12-21 Thread Greg.L.Cormier
Fixed it! Alright, so it was GZIP'd JS include causing the issue!

Initially I had a compression filter on my servlet path /app/*. So it 
compressed the JS file that Tapestry was returning with the URL 
/app?service=assetpath=%2Fdojo%2Fdojo.js

Then I disabled the filter.

I guess this file was still cached :@

I downloaded an extension to modify my request headers to set 
Accept-Encoding=none. Did a refresh on my app. Stuff works :) I guess it 
overwrote the cached version. Now if I pase that URL above into the address 
bar, I get a bunch of javascript. Tapestry remains not at fault ;)

That would also explain why it worked in IE - I tried it after I disabled the 
gzip compression filter.

Thanks! Greg




-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:44 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


All I see in the email is some sort of weird checkbox icon ?

Maybe at least turning the debug console on (ie using FireBug ) and
copying and pasting some of those exact errors and all text associated
with them might help me.

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I'm not setup on Maven2, or Jetty for that matter at all :(  
 Netbeans+Ant+Websphere5 is what I'm stuck with over here :(

 The reason I'm curious about Firefox is because it's definately choking on 
 the script include line. The error console gives an illegal character, 
 and then a ton of undefined objects, indicating the file isn't getting parsed.

 Error: illegal character
 Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
 Line: 1
 Source Code:
 
 Error: dojo is not defined
 Source File: http://peanut/pctadmin/app?page=Home
 Line: 14

 None of these errors are there on IE - instead I get other errors which 
 indicate I have no idea what I'm doing with Tapestry 4.1 and dojo, which is 
 very accurate :-D But at least it appears the DOJO library is actually being 
 loaded.


 -Greg

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 21, 2006 3:24 PM
 To: Tapestry users
 Subject: Re: Help with @ScriptIncludes


 Firefox doesn't have any issues with gzip compression. IE does in very
 special cases (even when it sends headers saying it does), but I've
 got these corner cases covered as well.

 Allowing for more fine grained controls over these additional asset
 service abilities is on my todo list but not something you can control
 very much currently. (other than adding more regexp config options to
 have ~more~ assets handled this way)

 I'm afraid you are stuck giving me an example to track things down
 with for now. .. (which is better for me but I do know it might be
 frustrating..)

 On 12/21/06, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Hmm, oddly enough in Internet Explorer, I think it's working.
 
  Maybe firefox doesn't support GZIP'd JS files...
 
  Jesse, is there a way to disable all response compression in Tapestry?
 
  Thanks,
  Greg
 
  -Original Message-
  From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 21, 2006 3:05 PM
  To: Tapestry users
  Subject: Re: Help with @ScriptIncludes
 
 
  No idea...It should be working.
 
  The illegal character error sounds suspicious. Are you trying to use
  some dojo widgets on this page and if so which ones ?
 
  Other than that I'd probably need a test case or
  something..(preferably a self contained maven2 mini app with embedded
  jetty stuff so I can just run mvn jetty:run to get going. )
 
  On 12/21/06, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Okay, in my border.html, inside my head I have a nice
  
   span jwcid=@ScriptIncludes /
  
   I view source and looks like it's working:
  
   script type=text/javascriptdjConfig = ..snip... /script
   script type=text/javascript 
   src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
   ...snip a few more script tags ...
  
  
   However, I'm getting an error on the first dojo.js include..
  
   Error: illegal character
   Source File: 
   http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
   Line: 1
   Source Code:
   
  
   if I paste that URL directly into my browser I get a bunch of jibberish. 
   It does look like it's gzip-compressed... I disabled all my compression 
   filters but it's still compressed, possibly by Tapestry.
  
   Any ideas? This should in theory be working out of the box?
  
   Thanks,
   Greg
  
   -
   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
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional 

Re: Help with @ScriptIncludes

2006-12-21 Thread Jesse Kuhnert

I wonder if there is some way I can detect someone using a gzip filter
already on output streams somehow ?

At the very least it sounds like I need to have a global yes/no kind
of option to use it or not. ...I'll file my own jira issue : )

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

Fixed it! Alright, so it was GZIP'd JS include causing the issue!

Initially I had a compression filter on my servlet path /app/*. So it compressed 
the JS file that Tapestry was returning with the URL 
/app?service=assetpath=%2Fdojo%2Fdojo.js

Then I disabled the filter.

I guess this file was still cached :@

I downloaded an extension to modify my request headers to set 
Accept-Encoding=none. Did a refresh on my app. Stuff works :) I guess it 
overwrote the cached version. Now if I pase that URL above into the address bar, I get a 
bunch of javascript. Tapestry remains not at fault ;)

That would also explain why it worked in IE - I tried it after I disabled the 
gzip compression filter.

Thanks! Greg




-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:44 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


All I see in the email is some sort of weird checkbox icon ?

Maybe at least turning the debug console on (ie using FireBug ) and
copying and pasting some of those exact errors and all text associated
with them might help me.

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 I'm not setup on Maven2, or Jetty for that matter at all :(  
Netbeans+Ant+Websphere5 is what I'm stuck with over here :(

 The reason I'm curious about Firefox is because it's definately choking on the script 
include line. The error console gives an illegal character, and then a ton of 
undefined objects, indicating the file isn't getting parsed.

 Error: illegal character
 Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
 Line: 1
 Source Code:
 
 Error: dojo is not defined
 Source File: http://peanut/pctadmin/app?page=Home
 Line: 14

 None of these errors are there on IE - instead I get other errors which 
indicate I have no idea what I'm doing with Tapestry 4.1 and dojo, which is very 
accurate :-D But at least it appears the DOJO library is actually being loaded.


 -Greg

 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 21, 2006 3:24 PM
 To: Tapestry users
 Subject: Re: Help with @ScriptIncludes


 Firefox doesn't have any issues with gzip compression. IE does in very
 special cases (even when it sends headers saying it does), but I've
 got these corner cases covered as well.

 Allowing for more fine grained controls over these additional asset
 service abilities is on my todo list but not something you can control
 very much currently. (other than adding more regexp config options to
 have ~more~ assets handled this way)

 I'm afraid you are stuck giving me an example to track things down
 with for now. .. (which is better for me but I do know it might be
 frustrating..)

 On 12/21/06, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  Hmm, oddly enough in Internet Explorer, I think it's working.
 
  Maybe firefox doesn't support GZIP'd JS files...
 
  Jesse, is there a way to disable all response compression in Tapestry?
 
  Thanks,
  Greg
 
  -Original Message-
  From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 21, 2006 3:05 PM
  To: Tapestry users
  Subject: Re: Help with @ScriptIncludes
 
 
  No idea...It should be working.
 
  The illegal character error sounds suspicious. Are you trying to use
  some dojo widgets on this page and if so which ones ?
 
  Other than that I'd probably need a test case or
  something..(preferably a self contained maven2 mini app with embedded
  jetty stuff so I can just run mvn jetty:run to get going. )
 
  On 12/21/06, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Okay, in my border.html, inside my head I have a nice
  
   span jwcid=@ScriptIncludes /
  
   I view source and looks like it's working:
  
   script type=text/javascriptdjConfig = ..snip... /script
   script type=text/javascript 
src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
   ...snip a few more script tags ...
  
  
   However, I'm getting an error on the first dojo.js include..
  
   Error: illegal character
   Source File: 
http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
   Line: 1
   Source Code:
   
  
   if I paste that URL directly into my browser I get a bunch of jibberish. 
It does look like it's gzip-compressed... I disabled all my compression filters but it's 
still compressed, possibly by Tapestry.
  
   Any ideas? This should in theory be working out of the box?
  
   Thanks,
   Greg
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Jesse Kuhnert
  Tapestry/Dojo 

RE: Help with @ScriptIncludes

2006-12-21 Thread Greg.L.Cormier
I doubt it, the Filter modifies the response just before it gets sent back to 
the client. It'd have to be client-side, or the last filter in a chain, but 
developers usually explicitly put the compression filter last ;)

Time to add-in my compression filter again, but excluding *.js!!

-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 21, 2006 3:58 PM
To: Tapestry users
Subject: Re: Help with @ScriptIncludes


I wonder if there is some way I can detect someone using a gzip filter
already on output streams somehow ?

At the very least it sounds like I need to have a global yes/no kind
of option to use it or not. ...I'll file my own jira issue : )

On 12/21/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 Fixed it! Alright, so it was GZIP'd JS include causing the issue!

 Initially I had a compression filter on my servlet path /app/*. So it 
 compressed the JS file that Tapestry was returning with the URL 
 /app?service=assetpath=%2Fdojo%2Fdojo.js

 Then I disabled the filter.

 I guess this file was still cached :@

 I downloaded an extension to modify my request headers to set 
 Accept-Encoding=none. Did a refresh on my app. Stuff works :) I guess it 
 overwrote the cached version. Now if I pase that URL above into the address 
 bar, I get a bunch of javascript. Tapestry remains not at fault ;)

 That would also explain why it worked in IE - I tried it after I disabled 
 the gzip compression filter.

 Thanks! Greg




 -Original Message-
 From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 21, 2006 3:44 PM
 To: Tapestry users
 Subject: Re: Help with @ScriptIncludes


 All I see in the email is some sort of weird checkbox icon ?

 Maybe at least turning the debug console on (ie using FireBug ) and
 copying and pasting some of those exact errors and all text associated
 with them might help me.

 On 12/21/06, [EMAIL PROTECTED]
 [EMAIL PROTECTED] wrote:
  I'm not setup on Maven2, or Jetty for that matter at all :(  
  Netbeans+Ant+Websphere5 is what I'm stuck with over here :(
 
  The reason I'm curious about Firefox is because it's definately choking on 
  the script include line. The error console gives an illegal character, 
  and then a ton of undefined objects, indicating the file isn't getting 
  parsed.
 
  Error: illegal character
  Source File: http://peanut/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js
  Line: 1
  Source Code:
  
  Error: dojo is not defined
  Source File: http://peanut/pctadmin/app?page=Home
  Line: 14
 
  None of these errors are there on IE - instead I get other errors which 
  indicate I have no idea what I'm doing with Tapestry 4.1 and dojo, which is 
  very accurate :-D But at least it appears the DOJO library is actually 
  being loaded.
 
 
  -Greg
 
  -Original Message-
  From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
  Sent: Thursday, December 21, 2006 3:24 PM
  To: Tapestry users
  Subject: Re: Help with @ScriptIncludes
 
 
  Firefox doesn't have any issues with gzip compression. IE does in very
  special cases (even when it sends headers saying it does), but I've
  got these corner cases covered as well.
 
  Allowing for more fine grained controls over these additional asset
  service abilities is on my todo list but not something you can control
  very much currently. (other than adding more regexp config options to
  have ~more~ assets handled this way)
 
  I'm afraid you are stuck giving me an example to track things down
  with for now. .. (which is better for me but I do know it might be
  frustrating..)
 
  On 12/21/06, [EMAIL PROTECTED]
  [EMAIL PROTECTED] wrote:
   Hmm, oddly enough in Internet Explorer, I think it's working.
  
   Maybe firefox doesn't support GZIP'd JS files...
  
   Jesse, is there a way to disable all response compression in Tapestry?
  
   Thanks,
   Greg
  
   -Original Message-
   From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
   Sent: Thursday, December 21, 2006 3:05 PM
   To: Tapestry users
   Subject: Re: Help with @ScriptIncludes
  
  
   No idea...It should be working.
  
   The illegal character error sounds suspicious. Are you trying to use
   some dojo widgets on this page and if so which ones ?
  
   Other than that I'd probably need a test case or
   something..(preferably a self contained maven2 mini app with embedded
   jetty stuff so I can just run mvn jetty:run to get going. )
  
   On 12/21/06, [EMAIL PROTECTED]
   [EMAIL PROTECTED] wrote:
Okay, in my border.html, inside my head I have a nice
   
span jwcid=@ScriptIncludes /
   
I view source and looks like it's working:
   
script type=text/javascriptdjConfig = ..snip... /script
script type=text/javascript 
src=/pctadmin/app?service=assetpath=%2Fdojo%2Fdojo.js/script
...snip a few more script tags ...
   
   
However, I'm getting an error on the first dojo.js include..
   
Error: illegal character
Source File: 

Re: [poll] how do people feel about me changing that validation dialog in 4.1.1 ?

2006-12-21 Thread Alexandru Dragomir

+1.
And even more , i'd like it to be configurable.
You can choose this way if you wanted the feedback to be modal or not.

Alex


On 12/21/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:


If you are using Tapestry 4.1.1 or greater then you have probably run
into the new client side validation modal dialog popup:


http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html

I've decided that I should probably follow some of my own advice and
would like to fix this as described here:


http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages/

Ironically I had already created a Dojo widget to do the exact same
thing before this blog entry even came out but never really thought to
apply the same kind of idea to validation..(this is also the kind of
non-intrusive validation that tacos does by default):

http://archive.dojotoolkit.org/nightly/tests/widget/test_Toaster.html

Not sure which release this belongs in but I've got all kinds of
usability/humane/etc plans for validation that I'm going to want to
try applying at some point. I'd really rather just completely remove
this dialog but want to see how people feel about it first.

I can always just make this a configurable option where you opt-in and
choose which kind of client side validation theme you'd like, but
I'm not as convinced that more options here will necessarily be
helping people.

What do you think/feel ?

--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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

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




Re: [poll] how do people feel about me changing that validation dialog in 4.1.1 ?

2006-12-21 Thread Norbert Sándor
I can't help too much because in my apps I used server side validation 
only, so I don't know how the client side validation currently works.
But if I would use it, then what I'd like is a very easy way to plug in 
my own solution - which is the exact same copy of what my server side 
implementation does. So my users could see the same visual presentation 
of the error message regardsless of it was generated on the client or 
server side.


Regards:
Norbi

Jesse Kuhnert írta:

If you are using Tapestry 4.1.1 or greater then you have probably run
into the new client side validation modal dialog popup:

http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html 



I've decided that I should probably follow some of my own advice and
would like to fix this as described here:

http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages/ 



Ironically I had already created a Dojo widget to do the exact same
thing before this blog entry even came out but never really thought to
apply the same kind of idea to validation..(this is also the kind of
non-intrusive validation that tacos does by default):

http://archive.dojotoolkit.org/nightly/tests/widget/test_Toaster.html

Not sure which release this belongs in but I've got all kinds of
usability/humane/etc plans for validation that I'm going to want to
try applying at some point. I'd really rather just completely remove
this dialog but want to see how people feel about it first.

I can always just make this a configurable option where you opt-in and
choose which kind of client side validation theme you'd like, but
I'm not as convinced that more options here will necessarily be
helping people.

What do you think/feel ?



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



Re: Can you comment on this?

2006-12-21 Thread Francis Amanfo

Hi,

Seems like you've missed some pasta today. I urge you to get yourself some
Italian pasta and after that come back and make some sensible arguments.

Emmanuel

On 12/21/06, Angelo Turetta  [EMAIL PROTECTED] wrote:


Emmanuel Sowah wrote:
 Sorry, but I like fair discussions.

Oh, do you?

I don't know who you are, and I've been subscribed to this mailing list
for very few months, so maybe I'm wrong: but the only thing I've seen
you do (more than once) is desperately trying to start some idiotic
flame-war. That's quite the opposite of 'fair discussion'.
This list is intended for Tapestry users peer discussion: if you don't
use (or like) Tapestry, you are wasting your time here, and ours too.

Angelo Turetta
Modena - Italy

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





--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
   -Donald Knuth
I don't make predictions. I never have,
and I never will.
   -Tony Blair


Re: Can you comment on this?

2006-12-21 Thread DJ Gredler

LOL. Francis == Emmanuel?

On 12/21/06, Francis Amanfo [EMAIL PROTECTED] wrote:


Hi,

Seems like you've missed some pasta today. I urge you to get yourself some
Italian pasta and after that come back and make some sensible arguments.

Emmanuel

On 12/21/06, Angelo Turetta  [EMAIL PROTECTED] wrote:

 Emmanuel Sowah wrote:
  Sorry, but I like fair discussions.

 Oh, do you?

 I don't know who you are, and I've been subscribed to this mailing list
 for very few months, so maybe I'm wrong: but the only thing I've seen
 you do (more than once) is desperately trying to start some idiotic
 flame-war. That's quite the opposite of 'fair discussion'.
 This list is intended for Tapestry users peer discussion: if you don't
 use (or like) Tapestry, you are wasting your time here, and ours too.

 Angelo Turetta
 Modena - Italy

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




--
Beware of bugs in the above code;
I have only proved it correct, not tried it.
-Donald Knuth
I don't make predictions. I never have,
and I never will.
-Tony Blair




Re: DropdownTimePicker, DropdownDatePicker, and time zones

2006-12-21 Thread Sam Gendler

We suffered this same problem, and unfortunately aren't using 4.1.x.
Both tacos and tapestry date pickers have this problem in tap 4.0.x.
Jess, what exactly was required for you to fix this?  I haven't
looked, but I assume tacos is using the dojo date picker, so I should
be able to make similar changes to tacos to get the same results.
I've been putting off dealing with this for the better part of a week,
but I'm going to have to dig into it soon.

--sam


On 12/21/06, Jon McCarty [EMAIL PROTECTED] wrote:


Nice.  You avoided all the deprecated functions too (gotta love those Java
dates).

One gotcha I noticed was that the SimpleDateFormat objects are static, and
they're not thread safe by nature (at least according to the JavaDoc).
Those should probably be instance variables instead of statics.

Thanks for the fix!
Jon


Jessek wrote:

 Thanks for noticing. I didn't follow the exact pattern that you
 outlined but have made them rfc3339 compliant and things look much
 better now.

 Should be available at some point today.

 On 12/15/06, Jon McCarty [EMAIL PROTECTED] wrote:

 Hi everyone –

 I'm enjoying the Tap4.1.1 line (I think that's where I am – I'm pulling
 from
 svn trunk), but I had a problem with the Dojo-backed dropdown date and
 time
 pickers.

 Right now, they're passing the dates to the client-side components in a
 way
 that causes the client-side to do a timezone conversion.  This throws off
 my
 app when the client is in a different timezone than the server.

 For my $0.02, the server should control all timezone issues – I want
 times
 rendered as text to be the same as the ones in my widgets!  I'd like to
 recommend this change for the Tapestry trunk:

 Change how we pass the date in DropdownDatePicker and DropdownTimePicker
 to
 this code fragment:


 Object formatted = new JSONLiteral(new Date( + (value.getYear()+1900) +
, + value.getMonth() +
, + value.getDate() +
, + value.getHours() +
, + value.getMinutes() +
, + value.getSeconds() + ));
 json.put(value, formatted);


 This works for both the date and time pickers.  (Currently, the time
 picker
 doesn't work at all, probably due to a recent change in Dojo's formatting
 requirements.)

 Comments?  Should I open a JIRA to this effect?

 --JM

 --
 View this message in context:
 
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a7896437
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 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

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




--
View this message in context: 
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a8013696
Sent from the Tapestry - User mailing list archive at Nabble.com.


-
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: DropdownTimePicker, DropdownDatePicker, and time zones

2006-12-21 Thread Jesse Kuhnert

Tacos uses this calendar :

http://www.dynarch.com/projects/calendar/

I don't think I've looked at the Tapestry DatePicker javascript yet
for any bugs so presumably it still has the same problem? (can't
remember all the changes made anymore )

On 12/21/06, Sam Gendler [EMAIL PROTECTED] wrote:

We suffered this same problem, and unfortunately aren't using 4.1.x.
Both tacos and tapestry date pickers have this problem in tap 4.0.x.
Jess, what exactly was required for you to fix this?  I haven't
looked, but I assume tacos is using the dojo date picker, so I should
be able to make similar changes to tacos to get the same results.
I've been putting off dealing with this for the better part of a week,
but I'm going to have to dig into it soon.

--sam


On 12/21/06, Jon McCarty [EMAIL PROTECTED] wrote:

 Nice.  You avoided all the deprecated functions too (gotta love those Java
 dates).

 One gotcha I noticed was that the SimpleDateFormat objects are static, and
 they're not thread safe by nature (at least according to the JavaDoc).
 Those should probably be instance variables instead of statics.

 Thanks for the fix!
 Jon


 Jessek wrote:
 
  Thanks for noticing. I didn't follow the exact pattern that you
  outlined but have made them rfc3339 compliant and things look much
  better now.
 
  Should be available at some point today.
 
  On 12/15/06, Jon McCarty [EMAIL PROTECTED] wrote:
 
  Hi everyone –
 
  I'm enjoying the Tap4.1.1 line (I think that's where I am – I'm pulling
  from
  svn trunk), but I had a problem with the Dojo-backed dropdown date and
  time
  pickers.
 
  Right now, they're passing the dates to the client-side components in a
  way
  that causes the client-side to do a timezone conversion.  This throws off
  my
  app when the client is in a different timezone than the server.
 
  For my $0.02, the server should control all timezone issues – I want
  times
  rendered as text to be the same as the ones in my widgets!  I'd like to
  recommend this change for the Tapestry trunk:
 
  Change how we pass the date in DropdownDatePicker and DropdownTimePicker
  to
  this code fragment:
 
 
  Object formatted = new JSONLiteral(new Date( + (value.getYear()+1900) +
 , + value.getMonth() +
 , + value.getDate() +
 , + value.getHours() +
 , + value.getMinutes() +
 , + value.getSeconds() + ));
  json.put(value, formatted);
 
 
  This works for both the date and time pickers.  (Currently, the time
  picker
  doesn't work at all, probably due to a recent change in Dojo's formatting
  requirements.)
 
  Comments?  Should I open a JIRA to this effect?
 
  --JM
 
  --
  View this message in context:
  
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a7896437
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  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
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context: 
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a8013696
 Sent from the Tapestry - User mailing list archive at Nabble.com.


 -
 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

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



Re: Can you comment on this?

2006-12-21 Thread James Carman

Can you please take this off-line?  The rest of us Tapestry users
don't need to hear this, IMHO.


On 12/21/06, DJ Gredler [EMAIL PROTECTED] wrote:

LOL. Francis == Emmanuel?

On 12/21/06, Francis Amanfo [EMAIL PROTECTED] wrote:

 Hi,

 Seems like you've missed some pasta today. I urge you to get yourself some
 Italian pasta and after that come back and make some sensible arguments.

 Emmanuel

 On 12/21/06, Angelo Turetta  [EMAIL PROTECTED] wrote:
 
  Emmanuel Sowah wrote:
   Sorry, but I like fair discussions.
 
  Oh, do you?
 
  I don't know who you are, and I've been subscribed to this mailing list
  for very few months, so maybe I'm wrong: but the only thing I've seen
  you do (more than once) is desperately trying to start some idiotic
  flame-war. That's quite the opposite of 'fair discussion'.
  This list is intended for Tapestry users peer discussion: if you don't
  use (or like) Tapestry, you are wasting your time here, and ours too.
 
  Angelo Turetta
  Modena - Italy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 Beware of bugs in the above code;
 I have only proved it correct, not tried it.
 -Donald Knuth
 I don't make predictions. I never have,
 and I never will.
 -Tony Blair






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



Re: Can you comment on this?

2006-12-21 Thread DJ Gredler

It's sock puppetry, if true, and thus germane to the discussion.

*shrug*

/thread-participation

On 12/21/06, James Carman [EMAIL PROTECTED] wrote:


Can you please take this off-line?  The rest of us Tapestry users
don't need to hear this, IMHO.


On 12/21/06, DJ Gredler [EMAIL PROTECTED] wrote:
 LOL. Francis == Emmanuel?

 On 12/21/06, Francis Amanfo [EMAIL PROTECTED] wrote:
 
  Hi,
 
  Seems like you've missed some pasta today. I urge you to get yourself
some
  Italian pasta and after that come back and make some sensible
arguments.
 
  Emmanuel
 
  On 12/21/06, Angelo Turetta  [EMAIL PROTECTED] wrote:
  
   Emmanuel Sowah wrote:
Sorry, but I like fair discussions.
  
   Oh, do you?
  
   I don't know who you are, and I've been subscribed to this mailing
list
   for very few months, so maybe I'm wrong: but the only thing I've
seen
   you do (more than once) is desperately trying to start some idiotic
   flame-war. That's quite the opposite of 'fair discussion'.
   This list is intended for Tapestry users peer discussion: if you
don't
   use (or like) Tapestry, you are wasting your time here, and ours
too.
  
   Angelo Turetta
   Modena - Italy
  
  
-
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Beware of bugs in the above code;
  I have only proved it correct, not tried it.
  -Donald Knuth
  I don't make predictions. I never have,
  and I never will.
  -Tony Blair
 
 



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




Re: [poll] how do people feel about me changing that validation dialog in 4.1.1 ?

2006-12-21 Thread Dennis Sinelnikov
Jesse -- I took a look at the links you sent and agree with Alex. 
Flexibility is nice to have, +1 for configurable :)


Thanks,
Dennis

Norbert Sándor wrote:
I can't help too much because in my apps I used server side validation 
only, so I don't know how the client side validation currently works.
But if I would use it, then what I'd like is a very easy way to plug in 
my own solution - which is the exact same copy of what my server side 
implementation does. So my users could see the same visual presentation 
of the error message regardsless of it was generated on the client or 
server side.


Regards:
Norbi

Jesse Kuhnert írta:

If you are using Tapestry 4.1.1 or greater then you have probably run
into the new client side validation modal dialog popup:

http://tapestry.apache.org/tapestry4.1/usersguide/clientside-validation.html 



I've decided that I should probably follow some of my own advice and
would like to fix this as described here:

http://www.humanized.com/weblog/2006/09/11/monolog_boxes_and_transparent_messages/ 



Ironically I had already created a Dojo widget to do the exact same
thing before this blog entry even came out but never really thought to
apply the same kind of idea to validation..(this is also the kind of
non-intrusive validation that tacos does by default):

http://archive.dojotoolkit.org/nightly/tests/widget/test_Toaster.html

Not sure which release this belongs in but I've got all kinds of
usability/humane/etc plans for validation that I'm going to want to
try applying at some point. I'd really rather just completely remove
this dialog but want to see how people feel about it first.

I can always just make this a configurable option where you opt-in and
choose which kind of client side validation theme you'd like, but
I'm not as convinced that more options here will necessarily be
helping people.

What do you think/feel ?



-
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: Can you comment on this?

2006-12-21 Thread Nick Westgate

Classic. I had suspected this for some time.

This is duplicity of the worst sort, Francis.
Now that you've outed yourself, please take
your embarrassingly inept trolling elsewhere.

Nick.


DJ Gredler wrote:

LOL. Francis == Emmanuel?

On 12/21/06, Francis Amanfo [EMAIL PROTECTED] wrote:


Hi,

Seems like you've missed some pasta today. I urge you to get yourself 
some

Italian pasta and after that come back and make some sensible arguments.

Emmanuel


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



Re: Can you comment on this?

2006-12-21 Thread Jesse Kuhnert

I think I manually took it elsewhere already. Maybe he will appear as
Sophie next. We'll see..

On 12/21/06, Nick Westgate [EMAIL PROTECTED] wrote:

Classic. I had suspected this for some time.

This is duplicity of the worst sort, Francis.
Now that you've outed yourself, please take
your embarrassingly inept trolling elsewhere.

Nick.


DJ Gredler wrote:
 LOL. Francis == Emmanuel?

 On 12/21/06, Francis Amanfo [EMAIL PROTECTED] wrote:

 Hi,

 Seems like you've missed some pasta today. I urge you to get yourself
 some
 Italian pasta and after that come back and make some sensible arguments.

 Emmanuel

-
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

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



Re: DropdownTimePicker, DropdownDatePicker, and time zones

2006-12-21 Thread Sam Gendler

OK, one tacos port of dojo date picker coming up in the next few days,
assuming it works in dojo 0.3.1, anyway.  I'll base it one what you've
got in tap 4.1 so migration should be as painless as possible.

--sam


On 12/21/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:

Tacos uses this calendar :

http://www.dynarch.com/projects/calendar/

I don't think I've looked at the Tapestry DatePicker javascript yet
for any bugs so presumably it still has the same problem? (can't
remember all the changes made anymore )

On 12/21/06, Sam Gendler [EMAIL PROTECTED] wrote:
 We suffered this same problem, and unfortunately aren't using 4.1.x.
 Both tacos and tapestry date pickers have this problem in tap 4.0.x.
 Jess, what exactly was required for you to fix this?  I haven't
 looked, but I assume tacos is using the dojo date picker, so I should
 be able to make similar changes to tacos to get the same results.
 I've been putting off dealing with this for the better part of a week,
 but I'm going to have to dig into it soon.

 --sam


 On 12/21/06, Jon McCarty [EMAIL PROTECTED] wrote:
 
  Nice.  You avoided all the deprecated functions too (gotta love those Java
  dates).
 
  One gotcha I noticed was that the SimpleDateFormat objects are static, and
  they're not thread safe by nature (at least according to the JavaDoc).
  Those should probably be instance variables instead of statics.
 
  Thanks for the fix!
  Jon
 
 
  Jessek wrote:
  
   Thanks for noticing. I didn't follow the exact pattern that you
   outlined but have made them rfc3339 compliant and things look much
   better now.
  
   Should be available at some point today.
  
   On 12/15/06, Jon McCarty [EMAIL PROTECTED] wrote:
  
   Hi everyone –
  
   I'm enjoying the Tap4.1.1 line (I think that's where I am – I'm pulling
   from
   svn trunk), but I had a problem with the Dojo-backed dropdown date and
   time
   pickers.
  
   Right now, they're passing the dates to the client-side components in a
   way
   that causes the client-side to do a timezone conversion.  This throws off
   my
   app when the client is in a different timezone than the server.
  
   For my $0.02, the server should control all timezone issues – I want
   times
   rendered as text to be the same as the ones in my widgets!  I'd like to
   recommend this change for the Tapestry trunk:
  
   Change how we pass the date in DropdownDatePicker and DropdownTimePicker
   to
   this code fragment:
  
  
   Object formatted = new JSONLiteral(new Date( + (value.getYear()+1900) +
  , + value.getMonth() +
  , + value.getDate() +
  , + value.getHours() +
  , + value.getMinutes() +
  , + value.getSeconds() + ));
   json.put(value, formatted);
  
  
   This works for both the date and time pickers.  (Currently, the time
   picker
   doesn't work at all, probably due to a recent change in Dojo's formatting
   requirements.)
  
   Comments?  Should I open a JIRA to this effect?
  
   --JM
  
   --
   View this message in context:
   
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a7896437
   Sent from the Tapestry - User mailing list archive at Nabble.com.
  
  
   -
   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
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context: 
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a8013696
  Sent from the Tapestry - User mailing list archive at Nabble.com.
 
 
  -
  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

-
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: DropdownTimePicker, DropdownDatePicker, and time zones

2006-12-21 Thread Jesse Kuhnert

I wouldn't be as sure about 0.3.1 having perfect i18n support. (maybe,
can't remember that anymore now either . ... I do remember where
important things like my car keys and home address are most of the
time though. ;) )

On 12/22/06, Sam Gendler [EMAIL PROTECTED] wrote:

OK, one tacos port of dojo date picker coming up in the next few days,
assuming it works in dojo 0.3.1, anyway.  I'll base it one what you've
got in tap 4.1 so migration should be as painless as possible.

--sam


On 12/21/06, Jesse Kuhnert [EMAIL PROTECTED] wrote:
 Tacos uses this calendar :

 http://www.dynarch.com/projects/calendar/

 I don't think I've looked at the Tapestry DatePicker javascript yet
 for any bugs so presumably it still has the same problem? (can't
 remember all the changes made anymore )

 On 12/21/06, Sam Gendler [EMAIL PROTECTED] wrote:
  We suffered this same problem, and unfortunately aren't using 4.1.x.
  Both tacos and tapestry date pickers have this problem in tap 4.0.x.
  Jess, what exactly was required for you to fix this?  I haven't
  looked, but I assume tacos is using the dojo date picker, so I should
  be able to make similar changes to tacos to get the same results.
  I've been putting off dealing with this for the better part of a week,
  but I'm going to have to dig into it soon.
 
  --sam
 
 
  On 12/21/06, Jon McCarty [EMAIL PROTECTED] wrote:
  
   Nice.  You avoided all the deprecated functions too (gotta love those Java
   dates).
  
   One gotcha I noticed was that the SimpleDateFormat objects are static, and
   they're not thread safe by nature (at least according to the JavaDoc).
   Those should probably be instance variables instead of statics.
  
   Thanks for the fix!
   Jon
  
  
   Jessek wrote:
   
Thanks for noticing. I didn't follow the exact pattern that you
outlined but have made them rfc3339 compliant and things look much
better now.
   
Should be available at some point today.
   
On 12/15/06, Jon McCarty [EMAIL PROTECTED] wrote:
   
Hi everyone –
   
I'm enjoying the Tap4.1.1 line (I think that's where I am – I'm pulling
from
svn trunk), but I had a problem with the Dojo-backed dropdown date and
time
pickers.
   
Right now, they're passing the dates to the client-side components in a
way
that causes the client-side to do a timezone conversion.  This throws 
off
my
app when the client is in a different timezone than the server.
   
For my $0.02, the server should control all timezone issues – I want
times
rendered as text to be the same as the ones in my widgets!  I'd like to
recommend this change for the Tapestry trunk:
   
Change how we pass the date in DropdownDatePicker and 
DropdownTimePicker
to
this code fragment:
   
   
Object formatted = new JSONLiteral(new Date( + 
(value.getYear()+1900) +
   , + value.getMonth() +
   , + value.getDate() +
   , + value.getHours() +
   , + value.getMinutes() +
   , + value.getSeconds() + ));
json.put(value, formatted);
   
   
This works for both the date and time pickers.  (Currently, the time
picker
doesn't work at all, probably due to a recent change in Dojo's 
formatting
requirements.)
   
Comments?  Should I open a JIRA to this effect?
   
--JM
   
--
View this message in context:

http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a7896437
Sent from the Tapestry - User mailing list archive at Nabble.com.
   
   
-
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
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
   --
   View this message in context: 
http://www.nabble.com/DropdownTimePicker%2C-DropdownDatePicker%2C-and-time-zones-tf2828601.html#a8013696
   Sent from the Tapestry - User mailing list archive at Nabble.com.
  
  
   -
   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.