Re: [WARNING] Latest Tapestry 5 Screencast

2007-03-05 Thread Peter Stavrinides
Thanks for the screencasts Howard, its a great way to get productive 
quickly, a real time saver!!!


Weisu wrote:

Great work Howard, just wonder where can I find the source code of this
Screencast and all the other Screencasts.
Thanks!

Massimo Lusetti wrote:
  

On 3/1/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:



This one shows off the new Grid component.
  

Amazing work Howard i got just one question.
you said one approach to mark a field as hidden is to use the
NonVisual annotation but i don't like the idea of annotating my domain
data objects so i guess i've to use the BeanModel facility, am i
right?

Thanks
--
Massimo
http://meridio.blogspot.com

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






  


--
Peter Stavrinides
Albourne Partners (Cyprus) Ltd
Tel: +357 22 750652 

If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. 




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



Re: [T4] Adding body of a sub-component w/o using a template

2007-03-05 Thread Richard Kirby

Hi Christian,

Assuming your LinkSubmit subcomponent extends the 
org.apache.tapestry.form.LinkSubmit class, just override the


public void renderBody(IMarkupWriter writer, IRequestCycle cycle)

method and put in whatever code you like.

Cheers

Richard

Christian Haselbach wrote:

On Sun, Mar 04, 2007 at 03:29:04AM +0200, andyhot wrote:
  

You can't dynamically change the component structure



Well, I do not really want to change it dynamically, so this is not the
problem.

  

Now, i still can't understand your use case, so i can't offer any help there
(what's the meaning of influence its body w/o using a template), but



Let me refrase this:
When using a template I can give a subcomponent a body. How can I do it
w/o using a template? I have a LinkSubmit subcomponent, which I want to
have render its content with a certain body. While I can define this
body using a template, the template looks ugly (in this case, not in
general). It is better understandable when written programmatically.

  

perhaps you can build a custom component and pass parameters to it...



Sure, but that would be mostly a rewriting of LinkSubmit. I rather hoped
I could reuse LinkSubmit.

The use case is pretty simple: A specialized LinkSubmit component.

Regards,
Christian

  



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



Re: T5 binding problem

2007-03-05 Thread Howard Lewis Ship

Two problems here:

1) Not well formed XML.  That  inside the test attribute isn't
allow.  Use lt;
2) OGNL isn't supported in T5.

For anything more complicated than a property access, you do the work
in Java code as a synthetic property.

On 3/5/07, Davor Hrg [EMAIL PROTECTED] wrote:

Hi,
maybe this was reported and solved but here it goes ...

I've tried the tapestry tutorial and it was very nice and easy.
I've made few mistakes but error reporting is great so it was fixed quickly.

the problem occured when I tried to add some of the proposed changes to the
app..

just to test the expressions I added:
t:comp type=If test=ognl:index5

but I get the error
Failure parsing template context:WEB-INF/Guess.html: The value of attribute
test associated with an element type t:comp must not contain the ''
character.

Am I doing it wrong, or it's just a bug to be fixed later

Davor Hrg




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

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

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



RE: Trying to use StateObjectFactory...

2007-03-05 Thread Ben Dotte
Hi Alexander,

The way I have done this is to make the factory a service as well.

contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=security scope=session
invoke-factory object=service:MyFactory/
/state-object
/contribution

service-point id=MyFactory
interface=org.apache.tapestry.engine.state.StateObjectFactory
invoke-factory
construct class=com.test.util.SecurityBeanFactory /
/invoke-factory
/service-point

HTH

Ben

-Original Message-
From: Kolesnikov, Alexander GNI [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 05, 2007 6:34 AM
To: Tapestry users
Subject: Trying to use StateObjectFactory...

Hello everyone,

I am using Tapestry 4.0.2.

I want to use an ASO with some security information in it. The
information should be obtained from HttpRequest on the ASO's creation. I
decided to use a StateObjectFactory to create such an ASO and configured
it like this:

contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=security scope=session
invoke-factory
object=com.test.util.SecurityBeanFactory/
/state-object
/contribution

Then I am trying to obtain the ASO in the page's code like this:

@InjectState(security)
public abstract SecurityBean getSecurity();

The code for the factory was more sensible, but to find a problem I left
just this:

public class SecureBeanFactory implements StateObjectFactory {

public Object createStateObject() {
SecurityBean sb = new SecurityBean(new TestUser(), new
TestApplication());
return sb;
}
}

However, I am getting an exception:

org.apache.hivemind.ApplicationRuntimeException 

Unable to construct configuration tapestry.state.ApplicationObjects:
Error: Object provider selector 'com.test.util.SecurityBeanFactory' is
not properly formatted. 

What can be wrong here?

Thanks,

Alexander


--
CONFIDENTIALITY NOTICE: If you have received this email in error, please
immediately notify the sender by e-mail at the address shown.  This
email transmission may contain confidential information.  This
information is intended only for the use of the individual(s) or entity
to whom it is intended even if addressed incorrectly.  Please delete it
from your files if you are not the intended recipient.  Thank you for
your compliance.  Copyright 2007 CIGNA

==

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



Re: Trying to use StateObjectFactory...

2007-03-05 Thread Richard Kirby

Hi Alexander,

You need to define a service that you then reference in the invoke-factory:

service-point id=SecurityBeanFactory 
interface=org.apache.tapestry.engine.state.StateObjectFactory

 invoke-factory
   construct class=com.test.util.SecurityBeanFactory
 !-- Any config you need here... --
   /construct
 /invoke-factory
/service-point

contribution configuration-id=tapestry.state.ApplicationObjects
 state-object name=security scope=session.
   invoke-factory object=service:SecurityBeanFactory /
 /state-object
/contribution

Cheers

Richard

Kolesnikov, Alexander GNI wrote:

Hello everyone,

I am using Tapestry 4.0.2.

I want to use an ASO with some security information in it. The
information should be obtained from HttpRequest on the ASO's creation. I
decided to use a StateObjectFactory to create such an ASO and configured
it like this:

contribution configuration-id=tapestry.state.ApplicationObjects
state-object name=security scope=session
invoke-factory
object=com.test.util.SecurityBeanFactory/
/state-object
/contribution

Then I am trying to obtain the ASO in the page's code like this:

@InjectState(security)
public abstract SecurityBean getSecurity();

The code for the factory was more sensible, but to find a problem I left
just this:

public class SecureBeanFactory implements StateObjectFactory {

public Object createStateObject() {
SecurityBean sb = new SecurityBean(new TestUser(), new
TestApplication());
return sb;
}
}

However, I am getting an exception:

org.apache.hivemind.ApplicationRuntimeException 


Unable to construct configuration tapestry.state.ApplicationObjects:
Error: Object provider selector 'com.test.util.SecurityBeanFactory' is
not properly formatted. 


What can be wrong here?

Thanks,

Alexander

--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==

  



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



RE: Trying to use StateObjectFactory...

2007-03-05 Thread Kolesnikov, Alexander GNI
Thank you, Richard,

Are there any docs on what I can do in construct? Say, I want to
obtain HttpRequest?

Alexander

-Original Message-
From: Richard Kirby [mailto:[EMAIL PROTECTED] 
Sent: 05 March 2007 14:44
To: Tapestry users
Subject: Re: Trying to use StateObjectFactory...


Hi Alexander,

You need to define a service that you then reference in the
invoke-factory:

service-point id=SecurityBeanFactory 
interface=org.apache.tapestry.engine.state.StateObjectFactory
  invoke-factory
construct class=com.test.util.SecurityBeanFactory
  !-- Any config you need here... --
/construct
  /invoke-factory
/service-point

contribution configuration-id=tapestry.state.ApplicationObjects
  state-object name=security scope=session.
invoke-factory object=service:SecurityBeanFactory /
  /state-object
/contribution

Cheers

Richard

Kolesnikov, Alexander GNI wrote:
 Hello everyone,

 I am using Tapestry 4.0.2.

 I want to use an ASO with some security information in it. The 
 information should be obtained from HttpRequest on the ASO's creation.

 I decided to use a StateObjectFactory to create such an ASO and 
 configured it like this:

 contribution configuration-id=tapestry.state.ApplicationObjects
   state-object name=security scope=session
   invoke-factory
object=com.test.util.SecurityBeanFactory/
   /state-object
 /contribution

 Then I am trying to obtain the ASO in the page's code like this:

 @InjectState(security)
 public abstract SecurityBean getSecurity();

 The code for the factory was more sensible, but to find a problem I 
 left just this:

 public class SecureBeanFactory implements StateObjectFactory {

   public Object createStateObject() {
   SecurityBean sb = new SecurityBean(new TestUser(), new 
 TestApplication());
   return sb;
   }
 }

 However, I am getting an exception:

 org.apache.hivemind.ApplicationRuntimeException

 Unable to construct configuration tapestry.state.ApplicationObjects:
 Error: Object provider selector 'com.test.util.SecurityBeanFactory' is

 not properly formatted.

 What can be wrong here?

 Thanks,

 Alexander

 --
 
 CONFIDENTIALITY NOTICE: If you have received this email in error,
please immediately notify the sender by e-mail at the address shown.
This email transmission may contain confidential information.  This
information is intended only for the use of the individual(s) or entity
to whom it is intended even if addressed incorrectly.  Please delete it
from your files if you are not the intended recipient.  Thank you for
your compliance.  Copyright 2007 CIGNA


==

   


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



--
CONFIDENTIALITY NOTICE: If you have received this email in error, please 
immediately notify the sender by e-mail at the address shown.  This email 
transmission may contain confidential information.  This information is 
intended only for the use of the individual(s) or entity to whom it is intended 
even if addressed incorrectly.  Please delete it from your files if you are not 
the intended recipient.  Thank you for your compliance.  Copyright 2007 CIGNA
==


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



AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Andrea Chiumenti

Hello,
I've the following problem in Tapestry 4.1.1:
I've a component that conditionally renders other components. With default
components like TextField I've no problems, while if I try to ad an
Autocompleter it seems that when the component is rendered no

tapestry.widget.synchronizeWidgetState

is called for it and, even if I can see the component when I click on the
dropdown button an exception is thrown.

How could I solve it ?

Thanks,
kiuma


Re: AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Jesse Kuhnert

My memory isn't able to retain state knowledge of 4.1.1 reliably
enough to have a clue on this, but if you try it on 4.1.2-SNAPSHOT and
run into the same problem + file a jira issue I can probably fix
whatever it is.

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

Hello,
I've the following problem in Tapestry 4.1.1:
I've a component that conditionally renders other components. With default
components like TextField I've no problems, while if I try to ad an
Autocompleter it seems that when the component is rendered no

tapestry.widget.synchronizeWidgetState

is called for it and, even if I can see the component when I click on the
dropdown button an exception is thrown.

How could I solve it ?

Thanks,
kiuma




--
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: AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Andrea Chiumenti

Thank you very much Jasse

On 3/5/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


My memory isn't able to retain state knowledge of 4.1.1 reliably
enough to have a clue on this, but if you try it on 4.1.2-SNAPSHOT and
run into the same problem + file a jira issue I can probably fix
whatever it is.

On 3/5/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 Hello,
 I've the following problem in Tapestry 4.1.1:
 I've a component that conditionally renders other components. With
default
 components like TextField I've no problems, while if I try to ad an
 Autocompleter it seems that when the component is rendered no

 tapestry.widget.synchronizeWidgetState

 is called for it and, even if I can see the component when I click on
the
 dropdown button an exception is thrown.

 How could I solve it ?

 Thanks,
 kiuma



--
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: Trying to use StateObjectFactory...

2007-03-05 Thread Kolesnikov, Alexander GNI
Thanks a lot, Richard, that was REALLY instructive :D

And here is the configuration that I managed to get working:

construct class=com.test.util.SecurityBeanFactory
 set-object property=request
value=service:tapestry.globals.HttpServletRequest /
/construct

Cheers,

Alexander

-Original Message-
From: Richard Kirby [mailto:[EMAIL PROTECTED] 
Sent: 05 March 2007 15:10
To: Tapestry users
Subject: Re: Trying to use StateObjectFactory...


Hi Alexander,

There are loads of docs! The thing to know is that the construct part 
is a general feature of HiveMind1, so look at the docs at 
http://hivemind.apache.org/, however within a Tapestry project you 
naturally want to access Tapestry related services, so look at 
http://tapestry.apache.org/ for info there.

For your specific question of obtaining the HttpServletRequest, you need

to locate where that is offered. The route I followed is:

tapestry.apache.org

Select the tapestry4 version from left hand menu.

Select Framework from left hand menu.

Select Reports from the dropped down menu.

Select HiveDoc.

Search for HttpServletRequest to get the answer that 
tapestry.globals.HttpServletRequest is a service.

Therefore to add this service to your SecurityBeanFactory, just add the 
line:

set-service property=httpServletRequest 
service-id=service:HttpServletRequest /

inside your construct

and provide a:

public void setHttpServletRequest(javax.servlet.http.HttpServletRequest 
request) {
this.request = request;
}

method in your SecurityBeanFactory class.

Note from the HiveDoc description that the 
tapestry.globals.HttpServletRequest is a threaded service, which means 
that it magically returns the actual HttpServletRequest object for that 
particular web request (cheers to Howard for such a brilliant 
implementation!).

Cheers

Richard

Kolesnikov, Alexander GNI wrote:
 Thank you, Richard,

 Are there any docs on what I can do in construct? Say, I want to 
 obtain HttpRequest?

 Alexander

 -Original Message-
 From: Richard Kirby [mailto:[EMAIL PROTECTED]
 Sent: 05 March 2007 14:44
 To: Tapestry users
 Subject: Re: Trying to use StateObjectFactory...


 Hi Alexander,

 You need to define a service that you then reference in the
 invoke-factory:

 service-point id=SecurityBeanFactory
 interface=org.apache.tapestry.engine.state.StateObjectFactory
   invoke-factory
 construct class=com.test.util.SecurityBeanFactory
   !-- Any config you need here... --
 /construct
   /invoke-factory
 /service-point

 contribution configuration-id=tapestry.state.ApplicationObjects
   state-object name=security scope=session.
 invoke-factory object=service:SecurityBeanFactory /
   /state-object
 /contribution

 Cheers

 Richard

 Kolesnikov, Alexander GNI wrote:
   
 Hello everyone,

 I am using Tapestry 4.0.2.

 I want to use an ASO with some security information in it. The
 information should be obtained from HttpRequest on the ASO's
creation.
 

   
 I decided to use a StateObjectFactory to create such an ASO and
 configured it like this:

 contribution configuration-id=tapestry.state.ApplicationObjects
  state-object name=security scope=session
  invoke-factory
 
 object=com.test.util.SecurityBeanFactory/
   
  /state-object
 /contribution

 Then I am trying to obtain the ASO in the page's code like this:

 @InjectState(security)
 public abstract SecurityBean getSecurity();

 The code for the factory was more sensible, but to find a problem I
 left just this:

 public class SecureBeanFactory implements StateObjectFactory {

  public Object createStateObject() {
  SecurityBean sb = new SecurityBean(new TestUser(), new
 TestApplication());
  return sb;
  }
 }

 However, I am getting an exception:

 org.apache.hivemind.ApplicationRuntimeException

 Unable to construct configuration tapestry.state.ApplicationObjects:
 Error: Object provider selector 'com.test.util.SecurityBeanFactory' 
 is
 

   
 not properly formatted.

 What can be wrong here?

 Thanks,

 Alexander

 -
 -
 
 CONFIDENTIALITY NOTICE: If you have received this email in error,
 
 please immediately notify the sender by e-mail at the address shown. 
 This email transmission may contain confidential information.  This 
 information is intended only for the use of the individual(s) or 
 entity to whom it is intended even if addressed incorrectly.  Please 
 delete it from your files if you are not the intended recipient.  
 Thank you for your compliance.  Copyright 2007 CIGNA
   
 ==
 ==
 ==
   
   
 


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



 --
 
 

Re: AJAx request and init script (Tapestry 4.1.1)

2007-03-05 Thread Andrea Chiumenti

Sorry Jasse,
but I have in my pom:

dependency
   groupIdorg.apache.tapestry/groupId
   artifactIdtapestry-framework/artifactId
   version4.1.2-SNAPSHOT/version
   /dependency

and

repository
   idapache.snapshots/id
   urlhttp://people.apache.org/repo/m2-snapshot-repository/url
   /repository

but I'm not able to get the snapshot: what do I have to do ?
kiuma



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


Thank you very much Jasse

On 3/5/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 My memory isn't able to retain state knowledge of 4.1.1 reliably
 enough to have a clue on this, but if you try it on 4.1.2-SNAPSHOT and
 run into the same problem + file a jira issue I can probably fix
 whatever it is.

 On 3/5/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
  Hello,
  I've the following problem in Tapestry 4.1.1:
  I've a component that conditionally renders other components. With
 default
  components like TextField I've no problems, while if I try to ad an
  Autocompleter it seems that when the component is rendered no
 
  tapestry.widget.synchronizeWidgetState
 
  is called for it and, even if I can see the component when I click on
 the
  dropdown button an exception is thrown.
 
  How could I solve it ?
 
  Thanks,
  kiuma
 


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





Jasse:--- Ajax request and init script (Tapestry 4.1.2-SNAPSHOT)

2007-03-05 Thread Andrea Chiumenti

Jasse,
well sorry again,
the 4.1.2-SNAPSHOT didn't fixed the problem.

I'm developing edit grid for Tapestry 4.1.x, and the component is in final
status so in a couple of days I'll make an official announcement.
Sadly the component will not work with Autocompleter and other tapestry/dojo
components until the bug will be fixed.

I've to release the component because I hope someone will help me to fix and
enhance it, and because I have to release other smart components, like IOC
menu and chron job component.

If you are so kind to have a look at the component and give me some hints,
I'll appreciate very much.

You can download it by svn:
svn co https://tapestry-jfly.svn.sourceforge.net/svnroot/tapestry-jfly/trunkjfly

I hope you'll enjoy my effort.

Regards,
kiuma


Re: Jasse:--- Ajax request and init script (Tapestry 4.1.2-SNAPSHOT)

2007-03-05 Thread Jesse Kuhnert

I'm happy to help but I'll need you to do just a ~little~ more work
for me to maintain a certain level of bug fixing efficiency. If you
can create a tiny self contained maven2 based application with one
simple page that'll allow me to run mvn jetty:run on the app and see
the bug first hand you're much more likely to get help .I can
always download this from your svn repo and piece it together in an
app I create but I can't make any promises on when such a thing would
happen...(likely a very very long time from now)

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

Jasse,
well sorry again,
the 4.1.2-SNAPSHOT didn't fixed the problem.

I'm developing edit grid for Tapestry 4.1.x, and the component is in final
status so in a couple of days I'll make an official announcement.
Sadly the component will not work with Autocompleter and other tapestry/dojo
components until the bug will be fixed.

I've to release the component because I hope someone will help me to fix and
enhance it, and because I have to release other smart components, like IOC
menu and chron job component.

If you are so kind to have a look at the component and give me some hints,
I'll appreciate very much.

You can download it by svn:
svn co https://tapestry-jfly.svn.sourceforge.net/svnroot/tapestry-jfly/trunkjfly

I hope you'll enjoy my effort.

Regards,
kiuma




--
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: Jasse:--- Ajax request and init script (Tapestry 4.1.2-SNAPSHOT)

2007-03-05 Thread Andrea Chiumenti

Ok Jasse, I'll do this tomorow morning, and I hope to have the new web site
up and running :)
In the meanwhile you can checkout the svn and  run 'mvn jetty:run' from
JFlyDemo just for today ;-P

Thanks for help,
kiuma


On 3/5/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


I'm happy to help but I'll need you to do just a ~little~ more work
for me to maintain a certain level of bug fixing efficiency. If you
can create a tiny self contained maven2 based application with one
simple page that'll allow me to run mvn jetty:run on the app and see
the bug first hand you're much more likely to get help .I can
always download this from your svn repo and piece it together in an
app I create but I can't make any promises on when such a thing would
happen...(likely a very very long time from now)

On 3/5/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 Jasse,
 well sorry again,
 the 4.1.2-SNAPSHOT didn't fixed the problem.

 I'm developing edit grid for Tapestry 4.1.x, and the component is in
final
 status so in a couple of days I'll make an official announcement.
 Sadly the component will not work with Autocompleter and other
tapestry/dojo
 components until the bug will be fixed.

 I've to release the component because I hope someone will help me to fix
and
 enhance it, and because I have to release other smart components, like
IOC
 menu and chron job component.

 If you are so kind to have a look at the component and give me some
hints,
 I'll appreciate very much.

 You can download it by svn:
 svn co
https://tapestry-jfly.svn.sourceforge.net/svnroot/tapestry-jfly/trunkjfly

 I hope you'll enjoy my effort.

 Regards,
 kiuma



--
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: T4 -- Filter in WebRequestServicerPipeline Issue

2007-03-05 Thread Johan Maasing

Check out http://issues.apache.org/jira/browse/TAPESTRY-695
It might be the same problem and has a work around.
I include
   requestGlobals.store(request, response);
in my filter and that works fine.

On 3/5/07, Tim Downey [EMAIL PROTECTED] wrote:


Hi,

I'm trying to implement a pattern that does some automatic cleanup and
checking using the WebRequestServicerPipeline.  I'm performing some URL
checks to detect when a user is switching amongst applications in my
WAR.

I've used Hivemind to add a filter to the WebRequestServicerPipeline, but
I'm having some issues that relate to the lifecycle of requests that I'm
hoping someone can shed light on.

From the docs, it appears that the WebRequestServicerPipeline should be
initialized with all the necessary globals around the request, but I am
unable to access the ApplicationStateManager from within my filter.

Prior to servicing the request, my filter is trying to use an injected
ApplicationStateManager to access a state object, but it doesn't appear to
be properly initialized.  I'm getting the following exception.  Can
someone
confirm that I should be able to access the ApplicationStateManager within
this pipeline prior to servicing the request?

 [java] 08:27:57,156 ERROR [STDERR] java.lang.NullPointerException:
Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals(
org.apache.tapestry.services.RequestGlobals) is null.
 [java] 08:27:57,156 ERROR [STDERR] at

$WebRequest_1112241239a._targetServiceProperty($WebRequest_1112241239a.java)
 [java] 08:27:57,156 ERROR [STDERR] at
$WebRequest_1112241239a.getSession($WebRequest_1112241239a.java)
 [java] 08:27:57,156 ERROR [STDERR] at
$WebRequest_11122412326.getSession($WebRequest_11122412326.java)
 [java] 08:27:57,156 ERROR [STDERR] at
org.apache.tapestry.engine.state.SessionScopeManager.getSession(
SessionScopeManager.java:48)
 [java] 08:27:57,156 ERROR [STDERR] at
org.apache.tapestry.engine.state.SessionScopeManager.get(
SessionScopeManager.java:64)
 [java] 08:27:57,156 ERROR [STDERR] at

$StateObjectPersistenceManager_111224124ae.get($StateObjectPersistenceManager_111224124ae.java)
 [java] 08:27:57,156 ERROR [STDERR] at
org.apache.tapestry.engine.state.StateObjectManagerImpl.get(
StateObjectManagerImpl.java:50)
 [java] 08:27:57,156 ERROR [STDERR] at
org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(
ApplicationStateManagerImpl.java:60)
 [java] 08:27:57,156 ERROR [STDERR] at

$ApplicationStateManager_11122412342.get($ApplicationStateManager_11122412342.java)
 [java] 08:27:57,156 ERROR [STDERR] at

$ApplicationStateManager_11122412343.get($ApplicationStateManager_11122412343.java)
 [java] 08:27:57,156 ERROR [STDERR] at

com.workscape.proxyadmin.lifecycle.ProxyAdminLifeCycleHandler.startApplication
(ProxyAdminLifeCycleHandler.java:32)
 [java] 08:27:57,156 ERROR [STDERR] at

$ApplicationLifeCycleHandler_1112241238b.startApplication($ApplicationLifeCycleHandler_1112241238b.java)
 [java] 08:27:57,156 ERROR [STDERR] at

com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter.startApplication
(ApplicationLifeCycleFilter.java:221)
 [java] 08:27:57,156 ERROR [STDERR] at

com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter.interceptNonNestedRequest
(ApplicationLifeCycleFilter.java:195)
 [java] 08:27:57,156 ERROR [STDERR] at
com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter.service(
ApplicationLifeCycleFilter.java:105)
 [java] 08:27:57,156 ERROR [STDERR] at

$WebRequestServicerFilter_11122412380.service($WebRequestServicerFilter_11122412380.java)
 [java] 08:27:57,156 ERROR [STDERR] at

$WebRequestServicer_11122412384.service($WebRequestServicer_11122412384.java)
 [java] 08:27:57,156 ERROR [STDERR] at

$WebRequestServicer_1112241237c.service($WebRequestServicer_1112241237c.java)
 [java] 08:27:57,156 ERROR [STDERR] at
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service
(
WebRequestServicerPipelineBridge.java:56)

I've configured the pipeline as follows:

  contribution configuration-id=
tapestry.request.WebRequestServicerPipeline
 filter name=ApplicationLifeCycleFilter
object=service:ApplicationLifeCycleFilter/
  /contribution

  service-point id=ApplicationLifeCycleFilter interface=
org.apache.tapestry.services.WebRequestServicerFilter
invoke-factory
  construct class=
com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter
  set-configuration property=contributions
configuration-id=ApplicationLifeCycleHandlers/
  /construct
/invoke-factory
  /service-point

whereby I have a bunch of contributions used to find the proper
application
life cycle handlers.

Regards,
Tim



Re: T4 -- Filter in WebRequestServicerPipeline Issue

2007-03-05 Thread Tim Downey

Thanks Johan,

I ended up doing the same thing.

On 3/5/07, Johan Maasing [EMAIL PROTECTED] wrote:


Check out http://issues.apache.org/jira/browse/TAPESTRY-695
It might be the same problem and has a work around.
I include
requestGlobals.store(request, response);
in my filter and that works fine.

On 3/5/07, Tim Downey [EMAIL PROTECTED] wrote:

 Hi,

 I'm trying to implement a pattern that does some automatic cleanup and
 checking using the WebRequestServicerPipeline.  I'm performing some URL
 checks to detect when a user is switching amongst applications in my
 WAR.

 I've used Hivemind to add a filter to the WebRequestServicerPipeline,
but
 I'm having some issues that relate to the lifecycle of requests that I'm
 hoping someone can shed light on.

 From the docs, it appears that the WebRequestServicerPipeline should be
 initialized with all the necessary globals around the request, but I am
 unable to access the ApplicationStateManager from within my filter.

 Prior to servicing the request, my filter is trying to use an injected
 ApplicationStateManager to access a state object, but it doesn't appear
to
 be properly initialized.  I'm getting the following exception.  Can
 someone
 confirm that I should be able to access the ApplicationStateManager
within
 this pipeline prior to servicing the request?

  [java] 08:27:57,156 ERROR [STDERR] java.lang.NullPointerException:
 Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals
(
 org.apache.tapestry.services.RequestGlobals) is null.
  [java] 08:27:57,156 ERROR [STDERR] at


$WebRequest_1112241239a._targetServiceProperty($WebRequest_1112241239a.java)
  [java] 08:27:57,156 ERROR [STDERR] at
 $WebRequest_1112241239a.getSession($WebRequest_1112241239a.java)
  [java] 08:27:57,156 ERROR [STDERR] at
 $WebRequest_11122412326.getSession($WebRequest_11122412326.java)
  [java] 08:27:57,156 ERROR [STDERR] at
 org.apache.tapestry.engine.state.SessionScopeManager.getSession(
 SessionScopeManager.java:48)
  [java] 08:27:57,156 ERROR [STDERR] at
 org.apache.tapestry.engine.state.SessionScopeManager.get(
 SessionScopeManager.java:64)
  [java] 08:27:57,156 ERROR [STDERR] at


$StateObjectPersistenceManager_111224124ae.get($StateObjectPersistenceManager_111224124ae.java)
  [java] 08:27:57,156 ERROR [STDERR] at
 org.apache.tapestry.engine.state.StateObjectManagerImpl.get(
 StateObjectManagerImpl.java:50)
  [java] 08:27:57,156 ERROR [STDERR] at
 org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(
 ApplicationStateManagerImpl.java:60)
  [java] 08:27:57,156 ERROR [STDERR] at


$ApplicationStateManager_11122412342.get($ApplicationStateManager_11122412342.java)
  [java] 08:27:57,156 ERROR [STDERR] at


$ApplicationStateManager_11122412343.get($ApplicationStateManager_11122412343.java)
  [java] 08:27:57,156 ERROR [STDERR] at


com.workscape.proxyadmin.lifecycle.ProxyAdminLifeCycleHandler.startApplication
 (ProxyAdminLifeCycleHandler.java:32)
  [java] 08:27:57,156 ERROR [STDERR] at


$ApplicationLifeCycleHandler_1112241238b.startApplication($ApplicationLifeCycleHandler_1112241238b.java)
  [java] 08:27:57,156 ERROR [STDERR] at


com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter.startApplication
 (ApplicationLifeCycleFilter.java:221)
  [java] 08:27:57,156 ERROR [STDERR] at


com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter.interceptNonNestedRequest
 (ApplicationLifeCycleFilter.java:195)
  [java] 08:27:57,156 ERROR [STDERR] at
 com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter.service(
 ApplicationLifeCycleFilter.java:105)
  [java] 08:27:57,156 ERROR [STDERR] at


$WebRequestServicerFilter_11122412380.service($WebRequestServicerFilter_11122412380.java)
  [java] 08:27:57,156 ERROR [STDERR] at


$WebRequestServicer_11122412384.service($WebRequestServicer_11122412384.java)
  [java] 08:27:57,156 ERROR [STDERR] at


$WebRequestServicer_1112241237c.service($WebRequestServicer_1112241237c.java)
  [java] 08:27:57,156 ERROR [STDERR] at

org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service
 (
 WebRequestServicerPipelineBridge.java:56)

 I've configured the pipeline as follows:

   contribution configuration-id=
 tapestry.request.WebRequestServicerPipeline
  filter name=ApplicationLifeCycleFilter
 object=service:ApplicationLifeCycleFilter/
   /contribution

   service-point id=ApplicationLifeCycleFilter interface=
 org.apache.tapestry.services.WebRequestServicerFilter
 invoke-factory
   construct class=
 com.workscape.oneforce.lifecycle.ApplicationLifeCycleFilter
   set-configuration property=contributions
 configuration-id=ApplicationLifeCycleHandlers/
   /construct
 /invoke-factory
   /service-point

 whereby I have a bunch of contributions used to find the proper
 application
 life cycle handlers.

 Regards,
 Tim




Re: method name of listener

2007-03-05 Thread Jesse Kuhnert

Isn't the name of a listener known by the very definition? I mean,
when ~don't~ you know the name of it?

On 2/19/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:


hi all,

is there a way to obtain the method name of a listener?

I need it to generate a javascript function with the same
name. calling this js function will trigger an asynchronous XHR
call (Tapestry.bind) that triggers the corresponding listener.
The js method also accepts parameters that get send to the page.

in case anyone else needs this very, very simple component
i'll post it somewhere.

g,
kris


-
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: Upgrade to 4.1.1 or wait to 4.12

2007-03-05 Thread Jesse Kuhnert

Go with 4.1.2. It's better than 4.1.1.

On 2/19/07, Chris Chiappone [EMAIL PROTECTED] wrote:

I am about to upgrade from 4.0.1 to 4.1.1 but would like to know if
4.1.2 will be considered stable soon or not.  If so I may as well just
wait for 4.1.2.

--
~chris

-
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: getting messages in Tapestry 4.1.1

2007-03-05 Thread Jesse Kuhnert

Which messages were these? If they are validation messages I'm not
sure. I think this gets controlled internally currently. (Though
there's a ticket open to make it more configurable via hivemind)

On 2/20/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:

Hello,
I need to get tapestry messages into a bean that dosn't directly refers to
Tapestry how can I do this ?

kiuma




--
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: Update Tapestry 3 to 4.1.1

2007-03-05 Thread Jesse Kuhnert

La tapisserie 4.1.2 est très bonne, mais vous pouvez courir dans des
problèmes ici et là. Les chemins de mise à niveau les plus durs sont
ceux qui impliquent des services faits sur commande d'IEngineService,
tout autrement devraient être beaucoup moins douloureux.

Si pas alors je devine vous pouvez jeter la merde à moi et l'espoir
pendant de meilleures périodes avec 5... ;)

On 2/20/07, Marilen Corciovei [EMAIL PROTECTED] wrote:

Bonjour,

Je suis en train d'evaluer une migration de la plateforme que j'ai
develope en T3 (produit develope pour un client francais) vers une
version plus recente de Tapestry. J'ai pas encore arrive a une
conclusion mais j'aimerait echanger des opinions.

Cordialement,
Len
www.len.ro


On Mon, 2007-02-19 at 18:09 +0100, [EMAIL PROTECTED] wrote:

 Hello,

 I search french users because I want discuss about the migration
 tapestry 3 to 4.1.1(Active) I need know the impact because I have already
 develop jwc and I'mnot very good in english. So I take your help.


 Cordialement - Best regards

 BRAJUS Cédric
 SETVAL-CTIV
 http://www.ctiv.vallourec.fr/
 Office : + 33 (0)3 27 22 76 67
Fax : + 33 (0)3 27 22 23 00




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



Popup windows and redirect URL

2007-03-05 Thread wong wayne
Dear all

Not sure is it proper post this question here. I'm
using Tapestry version of JSCookMenu and would like to
popup a new windows and redirect to another site. I
can redirect to another site with throw a
RedirectException(http://tapestry.apache.org/;) and
use PopupLinkRenderer for popup new windows but not
sure how can link them up. Any hints would be
appreciate, thanks.

regards

wayne


 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

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



Re: Programmatic DirectLink with updateComponents and parameter

2007-03-05 Thread Jesse Kuhnert

I'm not sure what all of this search/replace/sweep stuff is but basic
updates should work . .. Maybe if you try again with an example I can
understand easier I can help.

p.s. You can use updateComponents=basket_container or
updateComponents=basket_container, another_container now if you
want...Support was added in for easier string list expressions.

On 2/21/07, Andreas Pardeike [EMAIL PROTECTED] wrote:

Hi,

I've seen some examples on how to generate a DirectLink programmatic but
so far, I couldn't get it to work. Especially because I need it to
update
a component via ajax.

Quick overview: I parse external static html text with fake links and
replace those links with the correct versions. One of them is a [Buy]
button
and it needs to call a listener to add the item to the database and
then it
refreshes the view on the page via ajax.

On my normal Tapestry pages, this looks like:

component id=buy_link type=DirectLink
   binding name=listener value=listener:doAddToBasket/
   binding name=parameters value=new java.lang.Object[]
{ item_id, 1, '' }/
   binding name=updateComponents value={'basket_container'}/
   binding name=async value=true/
/component

and this works fine. Now, on my content page which will read in a
specific
html page via a given name, I do a search/replace sweep and there, I
need to
do the same (the basket component is in my Border).

What I have done is to have a fake_buy component similar to the one
above in
my content page and a property 'item_id' which is referred by
fake_by. I was
able to do this:

setItem_id(linkParam);
DirectLink fakeBuy = (DirectLink)getComponent(fake_buy);
ILink fakeBuyLink = fakeBuy.getLink(getPage().getRequestCycle());
link = fakeBuyLink.getURL();

But I am not sure if this is the right way to do it because I fear side
effects.

Andreas Pardeike

-
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: tapestry 4 to focus on specified field

2007-03-05 Thread Jesse Kuhnert

You can also just call tapestry.form.focusField('yourFieldId')
directly via javascript at the bottom of your page. (if you felt like
being dirty about it...)

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-framework/src/js/tapestry/form.js?view=markup

On 3/3/07, andyhot [EMAIL PROTECTED] wrote:

haipeng du wrote:
 I know these. But I just think that may be useful and helpful to add
 focus
 fields order list to form.
Just add a tabindex informal parameter to the related form fields...
You have to manage focus ordering yourself.



 On 3/2/07, Howard Lewis Ship [EMAIL PROTECTED] wrote:

 Tapestry will add JavaScript to focus on the first field that has an
 error. If no fields are in error, then the first required field. If no
 required fields, then the first field, period.

 The focus parameter is used when you have multiple forms on one page,
 and want to control which one gets to take focus.

 On 3/2/07, haipeng du [EMAIL PROTECTED] wrote:
  How could I set up form and field to make tapestry form focus on
 specified
  field. In the form, it is only one parameter called focus which is
  boolean. It should have parameter that takes a list of fields name
 or id
 for
  focus order. Does t4 have that?
  Thanks a lot.
 
 
  --
  Haipeng Du
  Software Engineer
  Comphealth,
  Salt Lake City
 


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

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

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





--
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: [T4] Adding body of a sub-component w/o using a template

2007-03-05 Thread Jesse Kuhnert

Yes. What Richard says.

This is how the Shell component renders javascript includes for instance...

On 3/5/07, Richard Kirby [EMAIL PROTECTED] wrote:

Hi Christian,

Assuming your LinkSubmit subcomponent extends the
org.apache.tapestry.form.LinkSubmit class, just override the

public void renderBody(IMarkupWriter writer, IRequestCycle cycle)

method and put in whatever code you like.

Cheers

Richard

Christian Haselbach wrote:
 On Sun, Mar 04, 2007 at 03:29:04AM +0200, andyhot wrote:

 You can't dynamically change the component structure


 Well, I do not really want to change it dynamically, so this is not the
 problem.


 Now, i still can't understand your use case, so i can't offer any help there
 (what's the meaning of influence its body w/o using a template), but


 Let me refrase this:
 When using a template I can give a subcomponent a body. How can I do it
 w/o using a template? I have a LinkSubmit subcomponent, which I want to
 have render its content with a certain body. While I can define this
 body using a template, the template looks ugly (in this case, not in
 general). It is better understandable when written programmatically.


 perhaps you can build a custom component and pass parameters to it...


 Sure, but that would be mostly a rewriting of LinkSubmit. I rather hoped
 I could reuse LinkSubmit.

 The use case is pretty simple: A specialized LinkSubmit component.

 Regards,
 Christian




-
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: Using EventListener to submit unknown form

2007-03-05 Thread Jesse Kuhnert

I've been meaning to add this in. It would be trivial but just haven't
done it yet. Creating a jira issue will be a good reminder.

On 2/21/07, Daniel Tabuenca [EMAIL PROTECTED] wrote:

I have a component that is meant to be used inside a form. I would
like to have an eventListener that submits the enclosing form but I
have no way of knowing what the name of the form component will be. Is
there any way to have eventListener submit the enclosing form rather
than specifying a form component by name?

-
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: Putting hivemind configuration files outside the WAR

2007-03-05 Thread Jesse Kuhnert

Subclass ApplicationServlet (or replace it).. There's not very much
code there to manage so it shouldn't be too bad.

On 2/21/07, Tapestry User List [EMAIL PROTECTED] wrote:

Hi,

I have configuration data (hivemind.xml) which may change reasonably often,
and which I'd like to be able to change without rebuilding the war file.
What's the best way to make this available to HiveMind in Tapestry?

Is there a easy way to do that or do I have to subclass ApplicationServlet
and overrid the constructRegistry() method ?

D.




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



Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Leffel, Daniel
Am I doing something wrong? I can't get any components nested within a dialog 
to update using DirectLink. If I move the very same components outside of the 
dialog, everything updates correctly using async or json. It doesn't matter 
whether the dialog is hidden or not. Inside the dialog, nothing updates - there 
is nothing in the AJAX response. Is there a trick to making this work?

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



Re: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Jesse Kuhnert

That's odd. I have some pretty complicated components being updated
inside of a dialog, though admittedly I normally just specify the
dialog as being the thing to update.

I can take a look tomorrow to see if there's anything obvious I've
missed...Did you have something more specific as an example? (assuming
that it isn't obviously broken when I try it )

There are some more debugging options available now as well, esp with
intercepting the interactions between DojoAjaxResponseBuilder and
client, maybe seeing what the server is doing will help you:

http://tapestry.apache.org/tapestry4.1/ajax/debugging.html

On 3/5/07, Leffel, Daniel [EMAIL PROTECTED] wrote:

Am I doing something wrong? I can't get any components nested within a dialog 
to update using DirectLink. If I move the very same components outside of the 
dialog, everything updates correctly using async or json. It doesn't matter 
whether the dialog is hidden or not. Inside the dialog, nothing updates - there 
is nothing in the AJAX response. Is there a trick to making this work?

-
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: Autocompleter Questions

2007-03-05 Thread Jesse Kuhnert

No idea, but a working example always helps me:

http://svn.apache.org/viewvc/tapestry/tapestry4/trunk/tapestry-examples/TimeTracker/src/

On 2/22/07, Chris Chiappone [EMAIL PROTECTED] wrote:

I am trying to get the autocompleter component to work with tap 4.1.1
I used to have tacos:Autocompleter working and wanted to replace it
with the new default component.  I am not getting any exceptions but
there are no values in my drop down.  Here is my page class and html

public IAutocompleteModel getCompanyModel() {
log.info(SETTING UP MODEL);
ListCompany searchList = new ArrayListCompany();

CollectionCompany comps = getCompanyDao().findAll();
for(Company c : comps){
log.info(Adding company:  + c.getId() + + 
c.getName());
searchList.add(c);

}

return(new DefaultAutocompleteModel(searchList, id, name));

}


@Component(id=autoCompleter, type=Autocompleter, bindings={
model=ognl:companyModel, value=ognl:TppName,
focus=literal:false})
public abstract Autocompleter getAutoCompleter();



form jwcid=[EMAIL PROTECTED] 
listener=listener:searchForm
pinput jwcid=autoCompleter / input 
jwcid=@Submit
size=200px value=message:searchTpp class=searchSubmit //p
/form

--
~chris

-
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: Variable number of rows with JSON - grid component

2007-03-05 Thread Jesse Kuhnert

Looks cool! I wish I had more time to look but I'm busy busy busy...

On 2/23/07, Justin Walsh [EMAIL PROTECTED] wrote:

Hi,

I've put together a small demo of a grid like html component which makes
use of a JSON string in a hidden input field (tapestry component) to
convey state between the client and server.

http://cruise.sadalbari.com:8080/tapestry-prototypes/GridDemo.html

Basically each entry in the grid is an ActionEntry (a javascript class
which has its java counterpart on the server side).
ActionEntries contain 3 fields
1) A unique id (this is a client assigned unique id)
2) An action (either ADD, UPDATE, DELETE or NONE)
3) An embedded object - which in this case is a GridEntry object with a
code and amount

Editing of the html entries fires javascript events which update the
object model (in the client).  When the user clicks Save, the object
model - an array of action entries is converted to a JSON String and
submitted (using a tapestry form) to the server.

On the server side, I manually convert the JSON string to an object
graph and then apply the necc. changes (ADDING, UPDATING, DELETING etc)

One big drawback is that because the component is dynamic HTML, I can't
apply validation (and translation) using the normal tapestry mechanisms.
 I've hacked around this by including a hidden div containing an
@TextField component which contains the same attributes (translators,
validators) that I wish to apply to each of the amount input fields.

div style=display:none
  input jwcid=[EMAIL PROTECTED] disabled=true value=ognl:amount
id=amount validators=validators:required
translator=translator:number displayName=amount /
/div

So then on the server side (and this is where it gets ugly) I use this
component to do translation and validation, catching the validation
errors and populating a validation delegate.

TextField comp = (TextField)component;
Object object = comp.getTranslatedFieldSupport().parse(comp, jsonValue
== JSONObject.NULL ? null : jsonValue.toString());
comp.getValidatableFieldSupport().validate(comp, null, cycle, object);

I'm a newbie to tapestry and JSON - but am willing to share this
contribution to anyone that may find it useful.  I'd also like to
improve on the validation - so if anyone has any suggestions on how do
this in a more elegant manner let me know.

Thanks

--
Justin Walsh
http://www.ewage.co.za

-
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 assignment of variables between pages

2007-03-05 Thread Jesse Kuhnert

This may have been the case with a previous 4.1.2-SNAPSHOT version
that was doing some ~things~ with cglib and properties but I doubt
it...

If your properties aren't persistent there is no magic happening,
they just get set on the object.

Perhaps you are doing this in some kind of page loading method like
validate() or similar?

Even with persistent properties the object is first handed off to the
persistent store changes manager impl and then just set on the page
object, so there's no valid reason I can think of where this would
happen as you've described it.

I'd add some breakpoints to your code and run them in any of the
standard ide debuggers to find out definitively what is happening if
it were me. They leave 0 room for doubt in these situations.

On 2/27/07, Patrick Klein [EMAIL PROTECTED] wrote:

Hi!

cache is not disabled.

Regards,
Patrick
 Are you disabling the cache ?

 On 2/27/07, Patrick Klein [EMAIL PROTECTED] wrote:

 Hallo!

 I'm hoping I'm not completely OT with this problem here...

 We are using setters and getters to pass over objects between pages,
 like (in pseudo-java)

 page a:
 (PageB) page = (PageB) cycle.getPage(PageB);
 page.setVar(obj);
 [...]
 cycle.activate(page);

 page b:
 Obj var = getVar();
 if(var != null) {
 [...]
 }
 [...]
 public abstract Obj getVar();
 public abstract void setVar(Obj var);

 The problem which is driving us up the walls is that in some cases, the
 transition seems to get messed up, as a not-null object is handed over,
 but on the receiving side this object is null...
 An additional problem is that this behavior seems to be not valid for
 all http-sessions handled by tomcat, some work as they should.

 We are using Tap 4.1.2 (SNAPSHOT from 16.02.2007), Tomcat 5.5.17 (and
 5.5.20) and Hibernate 3.2.1ga with java 1.5.11SE.

 Did anyone here encounter a similar problem and if yes, give me a hint
 of where to look or how to fix it?

 Regards,
 Patrick Klein

 -
 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: T4: AJAX request from a page with a dojo editor causes exception

2007-03-05 Thread Jesse Kuhnert

There's probably more exception stuff hidden down in there but there
are certain states where moz components will throw exceptions like
these when it is handling event bubbling sort of scenarios.

If you literally want to know what the problem is you can look it up
at http://lxr.mozilla.org/ but without that I'd try creating a non
server interacting version that breaks in the same way to track it
down...Or something like that anyways.. ;)

On 2/28/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:


hi all,

when i try to send data via tapestry.bind to my Tapestry page from
a page with a dojo editor (editor2) i get following javascript exception:

[exception]
DEBUG: [Exception... Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIXMLHttpRequest.open] nsresult: 0x80004005
(NS_ERROR_FAILURE) location: JS frame ::
http://localhost:8080/gp/js/dojo.js.uncompressed.js :: anonymous :: line
10642 data: no] when calling onKeyPress$joinpoint$method on [Widget
dojo:editor2, dojo_Editor2_0] with arguments [object Object]
FATAL exception raised: Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIXMLHttpRequest.open]
[/exception]

i set up a maven project where i can reproduce this anytime but i
dont know what is causing this exception. When i view the raw html
template in FF (... the not generated html ) everything works fine.

i hope someone can give me a hint. is it related to the keyhandlers of
the editor? why does it matter if do a ajax call?

please help

my code looks like this:

editor.js
var editor = null;

function startEdit(e) {
   editor = dojo.widget.createWidget(Editor2, {
 toolbarTemplatePath:null
  }, dojo.byId(edit));

   var k = dojo.event.browser.keys;
   // listen to key events
   editor.addKeyHandler(k.KEY_ESCAPE,null,listenESC);
   editor.addKeyHandler(k.KEY_ENTER ,null,listenENTER);
}

function initEditor() {
   dojo.event.connect(dojo.byId(edit), ondblclick, startEdit);
}

function listenESC() {}

function listenENTER() {
   ...
   asyncListenerDoSave(data);
   ...
}

asyncCaller component:
dojo.require(dojo.dom);
dojo.require(dojo.dnd.*);
dojo.require(dojo.event.*);
dojo.require(dojo.widget.*);
dojo.require(dojo.widget.Editor2);
dojo.require(tapestry.event);


function asyncListenerDoSave(data) {
   tapestry.bind(/gp/app?component=asyncpage=Editorservice=direct,
data, false);
}

g,
kris




-
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: getting messages in Tapestry 4.1.1

2007-03-05 Thread Andrea Chiumenti

Jesse,
they where validation messages, but after some attempts, I've been able to
get messages from application (of course the validator is a custom one)


kiuma

On 3/6/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:


Which messages were these? If they are validation messages I'm not
sure. I think this gets controlled internally currently. (Though
there's a ticket open to make it more configurable via hivemind)

On 2/20/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
 Hello,
 I need to get tapestry messages into a bean that dosn't directly refers
to
 Tapestry how can I do this ?

 kiuma



--
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: T4: render empty Ajax response

2007-03-05 Thread Jesse Kuhnert

Don't specify which components to update? Or make it a json render and
return some meta protocol between your client and server?

On 3/1/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:


hi,

how do i render an empty ajax response?

i'm sending an ajax request to synchronize
the model with the view but i do not need
any information back except an acknowledgement
that my request was received and processed.

g,
kris


-
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: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Leffel, Daniel
So simply updating the entire dialog worked perfectly. This suits my needs 
because the response is small, so I haven't debugged more. I'll check it out 
tomorrow and see if I can find out what's going on when trying to update 
components within the dialog. 

Thanks,

Danny


-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Mon 3/5/2007 9:05 PM
To: Tapestry users
Subject: Re: Tapestry 4.1.2 DirectLink updateComponents within a Dialog
 
That's odd. I have some pretty complicated components being updated
inside of a dialog, though admittedly I normally just specify the
dialog as being the thing to update.

I can take a look tomorrow to see if there's anything obvious I've
missed...Did you have something more specific as an example? (assuming
that it isn't obviously broken when I try it )

There are some more debugging options available now as well, esp with
intercepting the interactions between DojoAjaxResponseBuilder and
client, maybe seeing what the server is doing will help you:

http://tapestry.apache.org/tapestry4.1/ajax/debugging.html

On 3/5/07, Leffel, Daniel [EMAIL PROTECTED] wrote:
 Am I doing something wrong? I can't get any components nested within a dialog 
 to update using DirectLink. If I move the very same components outside of the 
 dialog, everything updates correctly using async or json. It doesn't matter 
 whether the dialog is hidden or not. Inside the dialog, nothing updates - 
 there is nothing in the AJAX response. Is there a trick to making this work?

 -
 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: Tapestry 4.1.1 Hidden field truncates characters

2007-03-05 Thread Jesse Kuhnert

Yeah...I'm sure 'c' is claimed by one of the DataSqueezer
implementations for encoding data.

On 3/1/07, Julian Wood [EMAIL PROTECTED] wrote:

Have you tried setting encode to false on the hidden field?

J

On 1-Mar-07, at 5:41 AM, Peter Stavrinides wrote:

 Hi all,

 In my page I use a hidden field to store a name bound to  a string
 property, this works fine most of the time, but I have an unusual
 situation sometimes when I submit, and the value is a sequence of
 say three characters ('ccc'), it gets truncated. Surely someone has
 had a similar situation, have I missed something? might this have
 something to do with the type casting mechanism in the framework
 for the 'Hidden' component? As soon as I change the component to a
 TextField, magically it no longer truncates...  I do use JavaScript
 to submit, but that shouldn't make any difference, any ideas?

 This is the basic outline:
 script

 function SubmitForm(){
//some processing
document.forms[0].pname.value = document.getElementById
 ('CopiedPortfolio').value;
document.forms[0].submit();
 }
 /script

 form jwcid=@Form listener=listener:formSubmit method=post
input jwcid=[EMAIL PROTECTED] value=ognl:portfolioName/

--
Julian Wood [EMAIL PROTECTED]

Software Engineer
Teaching  Learning Centre
University of Calgary

http://tlc.ucalgary.ca






--
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: EventListener and DatePicker

2007-03-05 Thread Jesse Kuhnert

The actual bug in this instance was the value= attribute not being
carried over on the input field being managed by the DatePicker.
...I've implemented a more robust general solution for all scenarios
that ensures all properties (whether formal or made up ) are properly
carried over on xhr requests nowSo not specific to DatePicker.

On 3/1/07, andyhot [EMAIL PROTECTED] wrote:

PLease, create a JIRA and post the patch (preferably just a diff) there

Lionel Touati wrote:
 In fact this issue was raised by the fact the DatePicker does not
 automatically updates after being changed during the AJAX response

 Here's a patch to the DatePicker.script to handle that

 L.



 Lionel Touati a écrit :
 Hi ,

 I'm trying to put up a sample to use two date pickers, and an event
 listener. When I change the value
 file:///C:/dev/tap4.1/egencia/src/org/apache/tapestry/form/DatePicker.script
 cid:part1.09020002.01090402@expediacorporate.frof the first one,
 the second should be updated. The code is working, and in Firebug I
 see the proper html back from the server with the correct date,
 however the page is not updated in firefox.

 Any idea of what could go wrong ?

 Thanks

 Lionel

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




 

 ?xml version=1.0 encoding=UTF-8?
 !--
Copyright 2005 The Apache Software Foundation

Licensed under the Apache License, Version 2.0 (the License);
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an AS IS BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
 --

 !DOCTYPE script PUBLIC
   -//Apache Software Foundation//Tapestry Script Specification 3.0//EN
   http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd;

 script

 include-script resource-path=DatePicker.js/

 input-symbol key=name  class=java.lang.String required=yes/
 input-symbol key=formName class=java.lang.String required=yes/
 input-symbol key=monthNames  required=yes/
 input-symbol key=shortMonthNames required=yes/
 input-symbol key=weekDayNames required=yes/
 input-symbol key=shortWeekDayNames  required=yes/
 input-symbol key=firstDayInWeek required=yes/
 input-symbol key=minimalDaysInFirstWeek required=yes/
 input-symbol key=format required=yes/
 input-symbol key=includeWeek required=yes/
 input-symbol key=clearButtonLabel required=yes/
 input-symbol key=value required=no/

 let key=calendarObject unique=yes
   calendar_${name}
 /let

 let key=buttonOnclickHandler
   javascript:${calendarObject}.toggle(dojo.byId(${name}));
 /let

 body
 var ${calendarObject};
 /body

 initialization
 if expression=value == null
 ${calendarObject} = new Calendar();
 /if
 if expression=value != null
 ${calendarObject} = new Calendar(${value.time});
 /if
 ${calendarObject}.initialize([${monthNames}],
   [${shortMonthNames}],
   [${weekDayNames}],
   [${shortWeekDayNames}],
   ${format}, ${firstDayInWeek}, ${includeWeek}, ${minimalDaysInFirstWeek}, 
${clearButtonLabel});
 ${calendarObject}.onchange = function() {
   var field = dojo.byId(${formName}).${name};
   var value = ${calendarObject}.formatDate();
   if (field.value != value) {
 field.value = value;
 if (field.onchange) field.onchange();
   }
 }
   var field = dojo.byId(${formName}).${name};
   var value = ${calendarObject}.formatDate();
   if (field.value != value) {
 field.value = value;
   }

 /initialization
 /script



 

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





--
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: Alternative for Shell parameter parseWidgets

2007-03-05 Thread Jesse Kuhnert

No that's my fault. I banished it from core because I was worried it
would behave unexpectedly (a worry seen to be true by the jira issues
created from it existing in Tacos alone) and cause too many overall
headaches...

If I can help it it will never see the light of day in core. :)

On 3/2/07, Diego [EMAIL PROTECTED] wrote:

Thanks Andy,

That looks good, I will update to Tacos 4.1.1.

I have seen that some tapestry dojo components moved to tapestry and back.
But wouldn't DojoWidget or Widget belong in Tapestry core, because its a
really generic component?

Regards
Diego

On 3/1/07, andyhot [EMAIL PROTECTED] wrote:

 http://tacos.sourceforge.net/tacos4.1/tacos-core/tapdoc/index.html

 http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/downloading.html

 Take a look at the dojo:Widget component


 Diego wrote:
  Is there a alternative way of using dojo Widgets in tapestry 4.1.1.
 
  If I don't set parseWidgets = true, then the widgets aren't parsed.
  But the text of the Shell says: . It is highly reccomended that you
  keep this at its default value of false.
 
 
  Regards,
  Diego
 


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






--
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: getting messages in Tapestry 4.1.1

2007-03-05 Thread Jesse Kuhnert

Ah yes...I was just annoyed by this on a project today as well, so
your chances of seeing a fix for it soon are extremely good. ;)

On 3/6/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:

Jesse,
they where validation messages, but after some attempts, I've been able to
get messages from application (of course the validator is a custom one)


kiuma

On 3/6/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

 Which messages were these? If they are validation messages I'm not
 sure. I think this gets controlled internally currently. (Though
 there's a ticket open to make it more configurable via hivemind)

 On 2/20/07, Andrea Chiumenti [EMAIL PROTECTED] wrote:
  Hello,
  I need to get tapestry messages into a bean that dosn't directly refers
 to
  Tapestry how can I do this ?
 
  kiuma
 


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






--
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: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

2007-03-05 Thread Jesse Kuhnert

Damnit...I don't know how I let something that obvious slip through.
I'll test this out tomorrow either way.

On 3/6/07, Leffel, Daniel [EMAIL PROTECTED] wrote:

So simply updating the entire dialog worked perfectly. This suits my needs 
because the response is small, so I haven't debugged more. I'll check it out 
tomorrow and see if I can find out what's going on when trying to update 
components within the dialog.

Thanks,

Danny


-Original Message-
From: Jesse Kuhnert [mailto:[EMAIL PROTECTED]
Sent: Mon 3/5/2007 9:05 PM
To: Tapestry users
Subject: Re: Tapestry 4.1.2 DirectLink updateComponents within a Dialog

That's odd. I have some pretty complicated components being updated
inside of a dialog, though admittedly I normally just specify the
dialog as being the thing to update.

I can take a look tomorrow to see if there's anything obvious I've
missed...Did you have something more specific as an example? (assuming
that it isn't obviously broken when I try it )

There are some more debugging options available now as well, esp with
intercepting the interactions between DojoAjaxResponseBuilder and
client, maybe seeing what the server is doing will help you:

http://tapestry.apache.org/tapestry4.1/ajax/debugging.html

On 3/5/07, Leffel, Daniel [EMAIL PROTECTED] wrote:
 Am I doing something wrong? I can't get any components nested within a dialog 
to update using DirectLink. If I move the very same components outside of the 
dialog, everything updates correctly using async or json. It doesn't matter 
whether the dialog is hidden or not. Inside the dialog, nothing updates - there is 
nothing in the AJAX response. Is there a trick to making this work?

 -
 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: Alternative for Shell parameter parseWidgets

2007-03-05 Thread Jesse Kuhnert

On second thought that makes it sound like a bad component somehow.
It's not that at all. I'm actually jealous of the more liberal freedom
enjoyed in Tacos land..It's a good component, just too precarious for
tap core.

On 3/6/07, Jesse Kuhnert [EMAIL PROTECTED] wrote:

No that's my fault. I banished it from core because I was worried it
would behave unexpectedly (a worry seen to be true by the jira issues
created from it existing in Tacos alone) and cause too many overall
headaches...

If I can help it it will never see the light of day in core. :)

On 3/2/07, Diego [EMAIL PROTECTED] wrote:
 Thanks Andy,

 That looks good, I will update to Tacos 4.1.1.

 I have seen that some tapestry dojo components moved to tapestry and back.
 But wouldn't DojoWidget or Widget belong in Tapestry core, because its a
 really generic component?

 Regards
 Diego

 On 3/1/07, andyhot [EMAIL PROTECTED] wrote:
 
  http://tacos.sourceforge.net/tacos4.1/tacos-core/tapdoc/index.html
 
  
http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/downloading.html
 
  Take a look at the dojo:Widget component
 
 
  Diego wrote:
   Is there a alternative way of using dojo Widgets in tapestry 4.1.1.
  
   If I don't set parseWidgets = true, then the widgets aren't parsed.
   But the text of the Shell says: . It is highly reccomended that you
   keep this at its default value of false.
  
  
   Regards,
   Diego
  
 
 
  --
  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]
 
 



--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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




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