Re: Extra input field after ajax returning MultiZoneUpdate

2010-04-16 Thread Howard Lewis Ship
I've been tracking this problem; there's a timing issue when Tapestry
adds a hidden field to store the t:formdata; the DOM is being streamed
to characters after the  field is added to the DOM, but before
it is fully configured.  It's deeply tricky stuff.

On Fri, Apr 16, 2010 at 11:28 AM, Adam Derkey  wrote:
> Was this the right list to send this to? Should I send to the dev list or
> open a jira ticket?
>
> On Wed, Apr 14, 2010 at 3:58 PM, Adam Derkey  wrote:
>
>> Using Tapestry 5.2.0-SNAPSHOT
>>
>> I'm updating multiple zones after a select on Change event. The JSON
>> response is including an extra input field after a select field in one of
>> the zones I'm updating. The extra input is then showing up in the rendered
>> page in the browser. Why would tapestry be adding in an extra input field?
>> Is there a way to do this without the extra input being returned?
>>
>> I created this example using the quickstart app and send the entire project
>> if needed.
>>
>> Thanks
>> Adam
>>
>> /*
>>  * Form.java
>>  */
>> package com.test.pages;
>>
>> import com.test.model.GenericSelectModel;
>> import com.test.vo.SelectObj;
>> import java.util.ArrayList;
>> import java.util.List;
>> import org.apache.tapestry5.EventContext;
>> import org.apache.tapestry5.SelectModel;
>> import org.apache.tapestry5.ajax.MultiZoneUpdate;
>> import org.apache.tapestry5.annotations.Component;
>> import org.apache.tapestry5.annotations.Property;
>> import org.apache.tapestry5.corelib.components.Select;
>> import org.apache.tapestry5.corelib.components.Zone;
>> import org.apache.tapestry5.ioc.annotations.Inject;
>> import org.apache.tapestry5.ioc.services.PropertyAccess;
>> import org.apache.tapestry5.services.Request;
>>
>> /**
>>  *
>>  * @author aderkey
>>  */
>> public class Form {
>>
>>     @Inject
>>     private Request request;
>>
>>     @Inject
>>     private PropertyAccess propertyAccess;
>>
>>     @Component(id="selectValue1", parameters = {"model=select1Model",
>> "encoder=select1Model"})
>>     private Select select1;
>>
>>     @Property
>>     private SelectModel select1Model;
>>
>>     @Property
>>     private SelectObj selectValue1;
>>
>>     @Component(id="selectValue2", parameters = {"model=select2Model",
>> "encoder=select2Model"})
>>     private Select select2;
>>
>>     @Property
>>     private SelectModel select2Model;
>>
>>     @Property
>>     private SelectObj selectValue2;
>>
>>     @Component(id="select1ValueZone")
>>     private Zone select1ValueZone;
>>
>>     @Component(id="select2ValueZone")
>>     private Zone select2ValueZone;
>>
>>     void onActivate(EventContext ctx) {
>>         List select1List = new ArrayList();
>>         select1List.add(new SelectObj(0, "0 pre ajax"));
>>         select1List.add(new SelectObj(1, "1 pre ajax"));
>>         select1List.add(new SelectObj(2, "2 pre ajax"));
>>         select1List.add(new SelectObj(3, "3 pre ajax"));
>>         select1List.add(new SelectObj(4, "4 pre ajax"));
>>         select1Model = new GenericSelectModel(select1List, SelectObj.class,
>> "text", "id", propertyAccess);
>>
>>         List select2List = new ArrayList();
>>         select2List.add(new SelectObj(0, "0 pre ajax"));
>>         select2List.add(new SelectObj(1, "1 pre ajax"));
>>         select2List.add(new SelectObj(2, "2 pre ajax"));
>>         select2List.add(new SelectObj(3, "3 pre ajax"));
>>         select2Model = new GenericSelectModel(select2List, SelectObj.class,
>> "text", "id", propertyAccess);
>>     }
>>
>>     public Object onValueChangedFromSelectValue1(SelectObj selectObj) {
>>         System.out.println("onValueChangedSelectValue1");
>>         List select2List = new ArrayList();
>>         select2List.add(new SelectObj(4, "4 post ajax"));
>>         select2List.add(new SelectObj(5, "5 post ajax"));
>>         select2List.add(new SelectObj(6, "6 post ajax"));
>>         select2List.add(new SelectObj(7, "7 post ajax"));
>>         select2Model = new GenericSelectModel(select2List, SelectObj.class,
>> "text", "id", propertyAccess);
>>
>>         if(request.isXHR()) {
>>             return new MultiZoneUpdate("select1ValueZone",
>> select1ValueZone.getBody()).add("select2ValueZone",
>> select2ValueZone.getBody());
>>         } else {
>>             return this;
>>         }
>>     }
>>
>> }
>>
>> Form.tml
>>
>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
>> xmlns:p="tapestry:parameter">
>>     
>>         > t:zone="select1ValueZone"/>
>>         Show
>>         > t:id="selectValue2" t:validate="required"/>
>>     
>> 
>>
>> JSON Response:
>> {"content":"","zones":{"select2ValueZone":"> id='selectValue2-127fe104b7d' name='selectValue2'>4 post
>> ajax<\/option>5 post ajax<\/option>6
>> post ajax<\/option>7 post ajax<\/option><\/select>
>> <\/input>","select1ValueZone":"Show"}}
>>
>>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

Re: 5.0.1.8 Download?

2010-04-16 Thread xfile80303

Hi Peter,

I'm not following the release schedule so I can't say, and I've finished up
with that project now so will be moving on to other things.

Best of luck,

Levi
-- 
View this message in context: 
http://n2.nabble.com/5-0-1-8-Download-tp4832734p4915245.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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



Re: How do I set up logging with Tapestry 5 and Tomcat?

2010-04-16 Thread Peter Stavrinides
> You need a log4j.properties file in $CATALINA_HOME/lib
Or in the classes directory at runtime... to ensure its always in the right 
place simply put the log4j.properties or log4j.xml file is in the 
src/main/resources root folder.

regards,
Peter


- Original Message -
From: "Tim Koop" 
To: "Tapestry users" 
Sent: Thursday, 15 April, 2010 17:01:19 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: How do I set up logging with Tapestry 5 and Tomcat?

Good question.

I don't know the answer.

It might have something to do with the fact that I put all my Tapestry 
jars in a common Tomcat lib directory.  It might be different if you put 
them all in your application's lib directory.  That way log4j would only 
start looking for log4j.properties when your application starts, not 
with Tomcat starts.  And it might find it in your WEB-INF/classes directory.


Tim Koop
t...@timkoop.com 
www.timkoop.com 

On 15/04/2010 2:36 AM, Ivano Luberti wrote:
> But if I deploy on a server I cannot control how can I tune my logging?
>
> Il 14/04/2010 23.06, Tim Koop ha scritto:
>
>> To answer my own question, the answer is this:
>>
>> You need a log4j.properties file in $CATALINA_HOME/lib, as this page
>> describes:
>>
>> http://tomcat.apache.org/tomcat-6.0-doc/logging.html
>>
>> As soon as that file was there, my own log4j.properties in my classes
>> folder started to be used.  Just a guess, but I guess that the missing
>> file in Tomcat's directory caused an irrecoverable error with log4j (I
>> did have a log4j error in the Tomcat startup script), so nothing else
>> worked after that.
>>
>> But now it all works fine.
>>
>>
>>
>> Tim Koop
>> t...@timkoop.com
>> www.timkoop.com
>>
>> On 14/04/2010 12:07 PM, Tim Koop wrote:
>>  
>>> Hi everyone.  I've been using Tapestry 5 for a while.  I like it, but
>>> I can't seem to get logging working.
>>>
>>> In my page java class I have this:
>>>
>>> @Inject
>>> private Logger log;
>>>
>>> Object onSuccess() {
>>>  log.debug("Tim was here.");
>>>  return null;
>>> }
>>>
>>> This compiles and runs.  I would like to see that message in a log
>>> file somewhere, but I can't find it anywhere.  I've looked through
>>> Tomcat's logs (catalina, hiost-manager, and manager), and I've looked
>>> on the console that I started Tomcat from, but I can't find it.
>>>
>>> I'm not using the Maven setup.  Apparently it makes a
>>> log4j.properties file somewhere.  I tried making one and I put it in
>>> my WEB-INF/classes folder.  I also tried putting it in WEB-INF/.
>>> Neither seemed to work.  The contents of my log4j.properties file is
>>> this:
>>>
>>> log4j.rootLogger=DEBUG, R
>>> log4j.appender.R=org.apache.log4j.RollingFileAppender
>>> log4j.appender.R.File=C:\\work\\tomcat\\logs\\timslogfile.log
>>> log4j.appender.R.MaxFileSize=10MB
>>> log4j.appender.R.MaxBackupIndex=10
>>> log4j.appender.R.layout=org.apache.log4j.PatternLayout
>>> log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
>>> log4j.logger.org.apache.catalina=ERROR, R
>>>
>>> Does anyone have any ideas?  I'm out of ideas.
>>>
>>> Thanks in advance.
>>>
>>>
>>  
>

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



Re: Tapestry 5.1.0.5 Google App Engine

2010-04-16 Thread Alex Kotchnev
I haven't used the 1.3.2 release, as switching between the point releases
always requires a bit of this unpleasant hacking / setup and the possibility
of new issues. Here are the issues that I remember having to deal with
(historically, not all of them might be an issue right now):

* Replace the security manager - this is only needed to run in the dev
server. There are no issues w/ the app in production. I'm not sure if this
is still needed.
* Replacing the default agent
* An issue w/ javassist - had to switch back to an older version ( 3.9, was
it ? ).

Most of the tips I picked up from Dmitry's blog.

I can check later on and send out my changes that do work w/ 1.3.0 .
Although it does give a warning when I build the app w/ 1.3.0 (because
there's a newer version), the app runs fine when I deploy to GAE (
http://www.zadachite.com)

Regards,

Alex K

On Fri, Apr 16, 2010 at 3:00 PM, Christian Edward Gruber <
christianedwardgru...@gmail.com> wrote:

> Actually, we're going to use 5.2 (I'm working with Mike Taylor on this)
>
> We'll check the list archives, but a lot of what we're seeing seems related
> on first blush, but isn't related, because we can't get to the problem
> solved in those e-mails (we're not getting the main page component looked-up
> properly, let alone sub-components).
>
> Specifically, findResources() in appengine's dev kit returns an empty
> enumeration for resources in the page path, but returns a non-empty enum
> when executed in a standard jdk.
>
> cheers,
> Christian.
>
>
> On Apr 16, 2010, at 2:45 PM, Alex Kotchnev wrote:
>
>  Mike,
>>  what version of GAE are you using ?
>>
>>  T 5.1.0.5 still has an issue that prevents it from running out of the
>> box. Search for GAE on this list to find it. The issue is fixed in 5.2 and
>> works like magic ( I'm using the 5.2 snapshot build w/ GAE 1.3.0)
>>
>>   There are a number of T5 apps running in GAE, search this list for more
>> details. There are a couple of things you need to do to make the dev
>> server
>> run OK (e.g. there's some monkeying around w/ the agent that ships w/ the
>> dev server), search for Dmitry Gusev's posts on this list (and on his
>> blog)
>> for details.
>>
>>
>> Regards,
>>
>> Alex K
>>
>>
>>
>>
>> On Fri, Apr 16, 2010 at 1:55 PM, Michael Taylor > >wrote:
>>
>>  Hello Tapestry Users,
>>>
>>> I’ve been playing around with getting Tapestry 5.1.0.5  working on Google
>>> App Engine and I’m having a issue with running it on the DevApp server.
>>>
>>> Essentially the DevApp server uses a custom class loader to simulate the
>>> class loading restrictions imposed by GAE.
>>>
>>> It looks as though for some reason this custom class loader is preventing
>>> tapestry from being able to locate page classes.  Specifically
>>>
>>>
>>>
>>> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl::findClassesWithinPath(String
>>> packagePath)
>>>
>>> does the following lookup
>>>
>>> Enumeration urls = contextClassLoader.getResources(packagePath);
>>>
>>> which when I run it in the GAE DevApp always seems to come back empty.
>>>
>>> I did some searching around on line and found this issue
>>>
>>> http://code.google.com/p/googleappengine/issues/detail?id=1480
>>>
>>> which seems suspiciously similar but isn’t quite the behavior I’m seeing.
>>> In that case Tapestry was unable to load a component (Loop) that was
>>> found
>>> in a page.  I don’t even seem to get that far.  The filter never finds
>>> any
>>> of my page objects and thus never gets as far as looking for the
>>> components
>>> that they might use.
>>>
>>> Has anyone else run into this problem? Any pointers would be much
>>> appreciated.
>>>
>>> Regards,
>>>
>>> Mike Taylor
>>>
>>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Documentation Request/Suggestion

2010-04-16 Thread Markus Feindler

Howard may be forgiven :)

Howard is stuck in London due to Volcano.  Never thought that'd be my status.

Howard is also jet-lagged, exhausted and sick.

On Fri, Apr 16, 2010 at 11:24 AM, Markus Feindler
 wrote:
  

So?? Howard?


So a community-driven documentation effort is out of the question unless
we
come up with a system or procedure that complies with ASF rules.



We could just require to sign a CLA for people that want to help out
with documentation. This would mean to give rights to modifiy/create
only to people with CLA. It is the way struts2 handles this issue.

This way people who want to help with documentation would not need
commit rights.

 Piero

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


  

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







  



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



Re: Tapestry 5.1.0.5 Google App Engine

2010-04-16 Thread Christian Edward Gruber

Actually, we're going to use 5.2 (I'm working with Mike Taylor on this)

We'll check the list archives, but a lot of what we're seeing seems  
related on first blush, but isn't related, because we can't get to the  
problem solved in those e-mails (we're not getting the main page  
component looked-up properly, let alone sub-components).


Specifically, findResources() in appengine's dev kit returns an empty  
enumeration for resources in the page path, but returns a non-empty  
enum when executed in a standard jdk.


cheers,
Christian.

On Apr 16, 2010, at 2:45 PM, Alex Kotchnev wrote:


Mike,
  what version of GAE are you using ?

  T 5.1.0.5 still has an issue that prevents it from running out of  
the
box. Search for GAE on this list to find it. The issue is fixed in  
5.2 and

works like magic ( I'm using the 5.2 snapshot build w/ GAE 1.3.0)

   There are a number of T5 apps running in GAE, search this list  
for more
details. There are a couple of things you need to do to make the dev  
server
run OK (e.g. there's some monkeying around w/ the agent that ships  
w/ the
dev server), search for Dmitry Gusev's posts on this list (and on  
his blog)

for details.


Regards,

Alex K




On Fri, Apr 16, 2010 at 1:55 PM, Michael Taylor  
wrote:



Hello Tapestry Users,

I’ve been playing around with getting Tapestry 5.1.0.5  working on  
Google
App Engine and I’m having a issue with running it on the DevApp  
server.


Essentially the DevApp server uses a custom class loader to  
simulate the

class loading restrictions imposed by GAE.

It looks as though for some reason this custom class loader is  
preventing

tapestry from being able to locate page classes.  Specifically


org 
.apache 
.tapestry5 
.ioc 
.internal.services.ClassNameLocatorImpl::findClassesWithinPath(String

packagePath)

does the following lookup

Enumeration urls = contextClassLoader.getResources(packagePath);

which when I run it in the GAE DevApp always seems to come back  
empty.


I did some searching around on line and found this issue

http://code.google.com/p/googleappengine/issues/detail?id=1480

which seems suspiciously similar but isn’t quite the behavior I’m  
seeing.
In that case Tapestry was unable to load a component (Loop) that  
was found
in a page.  I don’t even seem to get that far.  The filter never  
finds any
of my page objects and thus never gets as far as looking for the  
components

that they might use.

Has anyone else run into this problem? Any pointers would be much
appreciated.

Regards,

Mike Taylor




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



Re: Documentation Request/Suggestion

2010-04-16 Thread Howard Lewis Ship
Howard is stuck in London due to Volcano.  Never thought that'd be my status.

Howard is also jet-lagged, exhausted and sick.

On Fri, Apr 16, 2010 at 11:24 AM, Markus Feindler
 wrote:
> So?? Howard?
>>>
>>> So a community-driven documentation effort is out of the question unless
>>> we
>>> come up with a system or procedure that complies with ASF rules.
>>>
>>
>> We could just require to sign a CLA for people that want to help out
>> with documentation. This would mean to give rights to modifiy/create
>> only to people with CLA. It is the way struts2 handles this issue.
>>
>> This way people who want to help with documentation would not need
>> commit rights.
>>
>>              Piero
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Howard M. Lewis Ship

Creator of Apache Tapestry

The source for Tapestry training, mentoring and support. Contact me to
learn how I can get you up and productive in Tapestry fast!

(971) 678-5210
http://howardlewisship.com

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



Re: Tapestry 5.1.0.5 Google App Engine

2010-04-16 Thread Alex Kotchnev
Mike,
   what version of GAE are you using ?

   T 5.1.0.5 still has an issue that prevents it from running out of the
box. Search for GAE on this list to find it. The issue is fixed in 5.2 and
works like magic ( I'm using the 5.2 snapshot build w/ GAE 1.3.0)

There are a number of T5 apps running in GAE, search this list for more
details. There are a couple of things you need to do to make the dev server
run OK (e.g. there's some monkeying around w/ the agent that ships w/ the
dev server), search for Dmitry Gusev's posts on this list (and on his blog)
for details.


Regards,

Alex K




On Fri, Apr 16, 2010 at 1:55 PM, Michael Taylor wrote:

> Hello Tapestry Users,
>
> I’ve been playing around with getting Tapestry 5.1.0.5  working on Google
> App Engine and I’m having a issue with running it on the DevApp server.
>
> Essentially the DevApp server uses a custom class loader to simulate the
> class loading restrictions imposed by GAE.
>
> It looks as though for some reason this custom class loader is preventing
> tapestry from being able to locate page classes.  Specifically
>
>
> org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl::findClassesWithinPath(String
> packagePath)
>
> does the following lookup
>
> Enumeration urls = contextClassLoader.getResources(packagePath);
>
> which when I run it in the GAE DevApp always seems to come back empty.
>
> I did some searching around on line and found this issue
>
> http://code.google.com/p/googleappengine/issues/detail?id=1480
>
> which seems suspiciously similar but isn’t quite the behavior I’m seeing.
> In that case Tapestry was unable to load a component (Loop) that was found
> in a page.  I don’t even seem to get that far.  The filter never finds any
> of my page objects and thus never gets as far as looking for the components
> that they might use.
>
> Has anyone else run into this problem? Any pointers would be much
> appreciated.
>
> Regards,
>
> Mike Taylor
>


Re: Extra input field after ajax returning MultiZoneUpdate

2010-04-16 Thread Adam Derkey
Was this the right list to send this to? Should I send to the dev list or
open a jira ticket?

On Wed, Apr 14, 2010 at 3:58 PM, Adam Derkey  wrote:

> Using Tapestry 5.2.0-SNAPSHOT
>
> I'm updating multiple zones after a select on Change event. The JSON
> response is including an extra input field after a select field in one of
> the zones I'm updating. The extra input is then showing up in the rendered
> page in the browser. Why would tapestry be adding in an extra input field?
> Is there a way to do this without the extra input being returned?
>
> I created this example using the quickstart app and send the entire project
> if needed.
>
> Thanks
> Adam
>
> /*
>  * Form.java
>  */
> package com.test.pages;
>
> import com.test.model.GenericSelectModel;
> import com.test.vo.SelectObj;
> import java.util.ArrayList;
> import java.util.List;
> import org.apache.tapestry5.EventContext;
> import org.apache.tapestry5.SelectModel;
> import org.apache.tapestry5.ajax.MultiZoneUpdate;
> import org.apache.tapestry5.annotations.Component;
> import org.apache.tapestry5.annotations.Property;
> import org.apache.tapestry5.corelib.components.Select;
> import org.apache.tapestry5.corelib.components.Zone;
> import org.apache.tapestry5.ioc.annotations.Inject;
> import org.apache.tapestry5.ioc.services.PropertyAccess;
> import org.apache.tapestry5.services.Request;
>
> /**
>  *
>  * @author aderkey
>  */
> public class Form {
>
> @Inject
> private Request request;
>
> @Inject
> private PropertyAccess propertyAccess;
>
> @Component(id="selectValue1", parameters = {"model=select1Model",
> "encoder=select1Model"})
> private Select select1;
>
> @Property
> private SelectModel select1Model;
>
> @Property
> private SelectObj selectValue1;
>
> @Component(id="selectValue2", parameters = {"model=select2Model",
> "encoder=select2Model"})
> private Select select2;
>
> @Property
> private SelectModel select2Model;
>
> @Property
> private SelectObj selectValue2;
>
> @Component(id="select1ValueZone")
> private Zone select1ValueZone;
>
> @Component(id="select2ValueZone")
> private Zone select2ValueZone;
>
> void onActivate(EventContext ctx) {
> List select1List = new ArrayList();
> select1List.add(new SelectObj(0, "0 pre ajax"));
> select1List.add(new SelectObj(1, "1 pre ajax"));
> select1List.add(new SelectObj(2, "2 pre ajax"));
> select1List.add(new SelectObj(3, "3 pre ajax"));
> select1List.add(new SelectObj(4, "4 pre ajax"));
> select1Model = new GenericSelectModel(select1List, SelectObj.class,
> "text", "id", propertyAccess);
>
> List select2List = new ArrayList();
> select2List.add(new SelectObj(0, "0 pre ajax"));
> select2List.add(new SelectObj(1, "1 pre ajax"));
> select2List.add(new SelectObj(2, "2 pre ajax"));
> select2List.add(new SelectObj(3, "3 pre ajax"));
> select2Model = new GenericSelectModel(select2List, SelectObj.class,
> "text", "id", propertyAccess);
> }
>
> public Object onValueChangedFromSelectValue1(SelectObj selectObj) {
> System.out.println("onValueChangedSelectValue1");
> List select2List = new ArrayList();
> select2List.add(new SelectObj(4, "4 post ajax"));
> select2List.add(new SelectObj(5, "5 post ajax"));
> select2List.add(new SelectObj(6, "6 post ajax"));
> select2List.add(new SelectObj(7, "7 post ajax"));
> select2Model = new GenericSelectModel(select2List, SelectObj.class,
> "text", "id", propertyAccess);
>
> if(request.isXHR()) {
> return new MultiZoneUpdate("select1ValueZone",
> select1ValueZone.getBody()).add("select2ValueZone",
> select2ValueZone.getBody());
> } else {
> return this;
> }
> }
>
> }
>
> Form.tml
>
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";
> xmlns:p="tapestry:parameter">
> 
>  t:zone="select1ValueZone"/>
> Show
>  t:id="selectValue2" t:validate="required"/>
> 
> 
>
> JSON Response:
> {"content":"","zones":{"select2ValueZone":" id='selectValue2-127fe104b7d' name='selectValue2'>4 post
> ajax<\/option>5 post ajax<\/option>6
> post ajax<\/option>7 post ajax<\/option><\/select>
> <\/input>","select1ValueZone":"Show"}}
>
>


Re: Documentation Request/Suggestion

2010-04-16 Thread Markus Feindler

So?? Howard?

So a community-driven documentation effort is out of the question unless we
come up with a system or procedure that complies with ASF rules.



We could just require to sign a CLA for people that want to help out
with documentation. This would mean to give rights to modifiy/create
only to people with CLA. It is the way struts2 handles this issue.

This way people who want to help with documentation would not need
commit rights.

  Piero

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

  



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



Tapestry 5.1.0.5 Google App Engine

2010-04-16 Thread Michael Taylor
Hello Tapestry Users,

I’ve been playing around with getting Tapestry 5.1.0.5  working on Google
App Engine and I’m having a issue with running it on the DevApp server.

Essentially the DevApp server uses a custom class loader to simulate the
class loading restrictions imposed by GAE.

It looks as though for some reason this custom class loader is preventing
tapestry from being able to locate page classes.  Specifically

org.apache.tapestry5.ioc.internal.services.ClassNameLocatorImpl::findClassesWithinPath(String
packagePath)

does the following lookup

Enumeration urls = contextClassLoader.getResources(packagePath);

which when I run it in the GAE DevApp always seems to come back empty.

I did some searching around on line and found this issue

http://code.google.com/p/googleappengine/issues/detail?id=1480

which seems suspiciously similar but isn’t quite the behavior I’m seeing.
In that case Tapestry was unable to load a component (Loop) that was found
in a page.  I don’t even seem to get that far.  The filter never finds any
of my page objects and thus never gets as far as looking for the components
that they might use.

Has anyone else run into this problem? Any pointers would be much
appreciated.

Regards,

Mike Taylor


Re: Remove style sheet links

2010-04-16 Thread Christophe Cordenier
Hi

Maybe, you can have a look at
http://tapestry.formos.com/nightly/tapx/tapx-templating/

Regards,
Christophe Cordenier.

2010/4/15 Christoph Jäger 

> Hi,
>
> I have some pages in my webapp, which are really only used as templates for
> creating the content of an HTML email. Now, I do not want to have any
> external links in this page (because in the email, external links will not
> be resolved anyhow). But Tapestry always includes its own style-sheet links
> in the header of the html page.
>
> Can I easily switch off this behaviour for some of my pages (i.e. for the
> pages I want to use as email templates)?
>
> Best Regards
>
> Christoph
>
>
>
>
>


-- 
Regards,
Christophe Cordenier.

Developer of wooki @wookicentral.com


Re: Google Map Module and JavaScript-only PDF viewer component | GSOC2010

2010-04-16 Thread Charith Madusanka
Hi Alex,

 in my opinion, you shouldn't worry about the app engine, it's a special
> case. If you work it out for the general tapestry case where the PDF is
> read
> from a file or a stream, that'll be plenty.
>

 Thank for your reply.Now I'm on the way succeed my work. If you have
any suggestion please send me.It's great help to me.

thanx

charith


Re: multipage grid with "select all" button

2010-04-16 Thread Norman Franke
I've actually done things like this for queries and adding a query to  
a list of items to process. I have a checkbox to select all on the  
screen, which is just pure Prototype javascript. I then have a link  
called "add entire query" that re-runs the query and adds the results  
to the queue. Works well and the users find it intuitive.


Norman Franke
Answering Service for Directors, Inc.
www.myasd.com



On Apr 15, 2010, at 9:43 AM, Thiago H. de Paula Figueiredo wrote:

On Thu, 15 Apr 2010 10:38:19 -0300, Yury Luneff   
wrote:



yes, sure, but you can't select elements by class that are physically
not on this page now (another page of grid, both inline=true or  
false)


Why would you want to select something that is not shown? It seems  
quite error-prone and not intuitive to me.
I can't recall any website that does that. In your case, you "select  
all" button must also use AJAX to send a notification to the page so  
it can consider all objects selected.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant,  
developer, and instructor
Owner, software architect and developer, Ars Machina Tecnologia da  
Informação Ltda.

http://www.arsmachina.com.br

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





Re: multipage grid with "select all" button

2010-04-16 Thread Andreas Andreou
that's the fun part with cookies - you dont have to make them interact during
form submittion - they are sent to the server on every request (even
images, e.t.c.
of course that  also has pitfalls... and explains why most high
traffic sites choose to server resources from a cookieless (sub)domain)!

On Fri, Apr 16, 2010 at 06:12, Yury Luneff  wrote:
>> i've done something like this once (outside tapestry) using cookies to store
>> the selections (which were basically the entity ids) - then added some js
>> to make each checkbox checked if needed.
>
>> This keeps each page's selections fine.
>
>> Additionally, as soon as a page's checkboxes are all checked, i would
>> detect that
>> in js and show a link "Select all other entries" which would store a
>> predifined value in
>> the cookie (you could use the word "all", because users where allowed
>> to filter my table,
>> I used a predifined prefix and the filter data)
>
> OK. Say we might do something like that in tapestry (actually,
> yesterday we've tried to do something like a ajax form submit whenever
> checkbox is checked, but thats bad). Suppose it's easy to add info to
> a cookie in onclick for a checkbox. How do I hook to form submission
> so I can put info from cookies to form submission? I'm only starting
> to see what Tapestry.js does so I don't quite have a clue about that.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>



-- 
Andreas Andreou - andy...@apache.org - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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



Re: 5.0.1.8 Download?

2010-04-16 Thread Peter Stavrinides
Is 5.0.1.8 a release candidate yet, are you planning to vote on it?

cheers,
Peter 


- Original Message -
From: "xfile80303" 
To: users@tapestry.apache.org
Sent: Thursday, 1 April, 2010 19:26:48 GMT +02:00 Athens, Beirut, Bucharest, 
Istanbul
Subject: Re: 5.0.1.8 Download?


Thank you Ulrich.  That's what I was looking for.  :)
-- 
View this message in context: 
http://n2.nabble.com/5-0-1-8-Download-tp4832734p4838183.html
Sent from the Tapestry Users mailing list archive at Nabble.com.

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


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



onchange force page submit

2010-04-16 Thread asianCoolz
my html code at http://codepaste.net/b6ormu


when onchange on selectbox, this form will be submitted and my pageValidate()
will be called follow by upadteStaff() listener method. I wonder, when such
submission is fired, can onchange='' pass a flag ('selectboxisfired' string)
that i able to capture inside pagevalidate() 'selectboxisfired'?  this will
allow my logic inside pagevalidate to indicate is triggered by selectbox.  



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



Re: Getting default validation messages from Messages service

2010-04-16 Thread Stephan Windmüller

On 16.04.2010 11:34 Kristian Marinkovic wrote:


you have to obtain your messages object from ValidationMessagesSource


Thanks, that helped using "messages.format".

Regards
 Stephan

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



Re: Getting default validation messages from Messages service

2010-04-16 Thread Kristian Marinkovic
you have to obtain your messages object from ValidationMessagesSource

g,
kris



Von:Stephan Windmüller 
An: users@tapestry.apache.org
Datum:  16.04.2010 11:29
Betreff:Getting default validation messages from Messages service



Hello!

Since it seems to be impossible to deactivate validation for single 
buttons of a form component, I want to do validation manually in 
onValidateForm. For this I need the default validation error messages, 
but I cannot receive them through the message service.

messages.get("myTextField-required-message")

is unknown but it should be there. What am I doing wrong?

Regards
  Stephan

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




Getting default validation messages from Messages service

2010-04-16 Thread Stephan Windmüller

Hello!

Since it seems to be impossible to deactivate validation for single 
buttons of a form component, I want to do validation manually in 
onValidateForm. For this I need the default validation error messages, 
but I cannot receive them through the message service.


messages.get("myTextField-required-message")

is unknown but it should be there. What am I doing wrong?

Regards
 Stephan

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



Re: How to display images in a grid componet?

2010-04-16 Thread 啊酒
No, I didn't put it inside a form.
I set the volatile parameter to true, but just got the error.
And the encoder in a grid has a type of ValueEncoder, which doesn't work
here?

2010/4/16 Stephan Windmüller 

> On 16.04.2010 08:07  啊酒 wrote:
>
>  Any suggestions?
>>
>
> Did you place the grid inside a form? You could try to add an encoder or
> setting the volatile parameter to true.
>
> HTH
>  Stephan
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: FormClientPersistence for Tapestry5

2010-04-16 Thread Stephan Windmüller

On 16.04.2010 08:51 p.stavrini...@albourne.com wrote:


Oups. It seems that I misunderstood the description. What I wanted
was persisting values into hidden form field instead of the session.

It would only work inside a page. If you want to implement it,
implement a PersistentFieldStrategy and contribute it to the
PersistentFieldManager service.

If you do implement it please post a wiki article or something... this
is a classic persistence strategy used heavily by platforms like
ColdFusion (since version 3 and probably earlier), imho it would be a
quite useful.


Sorry, but I did not implement it. Instead I rearranged some persistence
behavior in my pages. Nonetheless I am still looking for a solution
like the above, too.

- Stephan

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