Re: Templating with Tapestry5

2007-04-30 Thread Weisu

Please look at this post "Templating with Tapestry 5 by bjornharvold". Hope
it will help you.


Joshua Jackson-3 wrote:
> 
> Dear all,
> 
> I'm really new with tapestry5 and tapestry. I've been figuring out
> about templating with tapestry5 the same way as struts-tiles or
> facelets. How do I do this with tapestry5? I've been trying to find
> out about the tutorial in tapestry website but can not figure it out
> also.
> 
> Can somebody help me on this by giving me hints?
> 
> Thanks in advance,
> joshua
> 
> -- 
> Join the hireway project, an outsourcing portal for us
> http://sourceforge.net/projects/hireway
> http://groups.google.com/group/hireway
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Templating-with-Tapestry5-tf3673041.html#a10265112
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: [T5] IOC: services without interface do not work

2007-04-30 Thread Howard Lewis Ship

Please file a bug; I tested the ServiceBinder approach but must have missed
the service builder method approach.

On 4/30/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote:


hi,

found my problem... in order to have a service that does not have an
interface
you have to use the ServiceBinder.

Shouldn't it be possible to have these kind of services returned by a
builder
method as well? IMHO this way it'd feel more consistent

g,
kris




Kristian Marinkovic <[EMAIL PROTECTED]>
27.04.2007 14:27
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
[T5] IOC: services without interface do not work






hi all,

when i try to return a service in my module that does not have an
interface
i get a "No service implements the interface..." exception. The recent
blog
entry suggests that it should work now ..


http://tapestryjava.blogspot.com/2007/04/pleasing-crowds-improving-ioc-extending.html


My module code is below. Am i missing something?
Or maybe i'm just too eager to use it... :)

I'm using the latest sources from the repository.


MyModule.java
public class MyModule {
public static SimpleServiceImpl build() {
return new SimpleServiceImpl();
}
}


g,
kris

btw. anyone tried to build tapestry 5 with java 1.6





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


T4 contrib table sorting

2007-04-30 Thread Yohan Yudanara

Hi.. I'm using tapestry 4.0.1 included in Appfuse 1.9.4

why does the sorting on contrib table not working (ascending to 
descending or descending to ascending) when I click on title column too 
quick?


When I click in title column for the first time, the table data sorted 
ascending..
When I click second time right after that, the table data still sorted 
ascending..
I have to wait for some period (about 5 seconds, but it's not exactly) 
before click on the title heading to make it sort descending.


The contrib table also show strange behaviour when I click refresh 
button (F5) on browser. (I've try it in IE and firefox). When I click 
refresh, the table show ascending. When I refresh again, the table show 
descending, When I refresh again, the table show ascending, and so on


Plz help..
thanks a lot




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



Templating with Tapestry5

2007-04-30 Thread Joshua Jackson

Dear all,

I'm really new with tapestry5 and tapestry. I've been figuring out
about templating with tapestry5 the same way as struts-tiles or
facelets. How do I do this with tapestry5? I've been trying to find
out about the tutorial in tapestry website but can not figure it out
also.

Can somebody help me on this by giving me hints?

Thanks in advance,
joshua

--
Join the hireway project, an outsourcing portal for us
http://sourceforge.net/projects/hireway
http://groups.google.com/group/hireway

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



Re: T5 - Unable to resolve component type 'comp' to a component class name

2007-04-30 Thread Howard Lewis Ship

We're in the process of building, and then voting on, a 5.0.4 release ... at
which point the docs will match the code available from Maven.

On 4/30/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote:


t:comp is not supported anymore. now its 
t:"component_type"

look into the Tapestry 5 tutorial pdf... examples there are
up to date :)

g,kris





winlaw <[EMAIL PROTECTED]>
30.04.2007 14:54
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
T5 - Unable to resolve component type 'comp' to a component class name







I am trying to copy the example demonstarted in the Screencast but get the
following error when I fire up the browser:

Unable to resolve component type 'comp' to a component class name.
Available
component types: core/ActionLink, core/Any, core/BeanEditForm,
core/Checkbox, core/ComponentMessages, core/Delegate, core/Errors,
core/Form, core/FormSupportImpl, core/Grid, core/GridCell,
core/GridColumns,
core/GridPager, core/GridRows, core/If, core/Img, core/Label, core/Loop,
core/Output, core/OutputRaw, core/PageLink, core/PasswordField,
core/RenderObject, core/Select, core/Submit, core/TextArea,
core/TextField.

The code which appears to cause is:

  
${index}
  


Libs include:
tapestry-ioc-5.0.3.jar
tapestry-core-5.0.3.jar
javaassist-3.4.ga.jar
commons-logging-1.0.4.jar

Many thanks for your help.
Jim


--
View this message in context:

http://www.nabble.com/T5---Unable-to-resolve-component-type-%27comp%27-to-a-component-class-name-tf3669522.html#a10252977

Sent from the Tapestry - User mailing list archive at Nabble.com.


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






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

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


Re: Tapestry 5 and Template Reloading

2007-04-30 Thread Howard Lewis Ship

Caution: the case matter here (one of the few areas in Tapestry).  So that
should be Start.html to exactly match Start.java.

You might find you app broken if deployed on a platform that properly
differentiates case, such as Linux or Solaris.

On 4/30/07, Kristian Marinkovic <[EMAIL PROTECTED]> wrote:


hi bjorn,

it works fine for me... where did you put your templates?
do you get any exceptions? Have you tried the tutorial?

you can put your templates into the WEB-INF/ folder or
into the respective package...

eg. my directory structure

main/java/com/whatever/pages/Start.java
main/resources/com/whatever/pages/start.html


g,
kris


-bjornharvold <[EMAIL PROTECTED]> schrieb: -

An: users@tapestry.apache.org
Von: bjornharvold <[EMAIL PROTECTED]>
Datum: 30.04.2007 09:06PM
Thema: Tapestry 5 and Template Reloading


I can't seem to get template reloading to work. Classes reload just fine.
I
installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have
the
same problem or better yet, the solution?

thx
bjorn
--
View this message in context:
http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10258922
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


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





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


starting point for ajax with dojo and tapestry 4.1?

2007-04-30 Thread Paul Stanton
Hi, does anyone know of any good tutorials/demos for ajax with dojo and 
tapestry 4.1?


thanks.



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



Re: Initialize a value in the state object.

2007-04-30 Thread Hugo Palma
Try using the BuilderFactory service for creating the ASO. You can see 
more info about the service here 
http://hivemind.apache.org/hivemind1/hivemind/BuilderFactory.html.


In your example it would look like this:


 













Giaccone, Anthony CTR DTIC-A wrote:

Here's what I want to do..

I have a form that holds a variety of data, which the user will use to
generate a query.  The query data is persistent at the session. This
wayIf they wander down a path, eventually they'll return to the "main"
page, and the query data will be returned from the "session" and they'll
be ready to query based on the data that was last entered. 

This all works fine and dandy. 


What I want to do now, is set a value in this persistent object when the
object is created. To provide a default value for one (or more) of the
query parameters. 


Imagine for instance that you want to search a queue of beans for those
beans that are in state "Pending"  as the intial state of the query
page.

This seems like a perfect place to use Hivemind. The query data is
already constructed by Hivemind. 


Here's the XML for the query data in the hivemind.xml


  
		 


class="mil.dtic.j2ee.Hibernate.QueryForms.MiprQueryItem" />




So my question is.. How do I convince Hivemind to set the property
status on the object MiprQueryItem to the value of "Pending". 





  


Integration Prototype/Scriptaculous

2007-04-30 Thread banmig

Hi guys,

 My company asked for to develop some functionalities ajax for tapestry
5 using Prototype/Scriptaculous, as refresh in combos, reconstruction of
grids. It would like to know if somebody could help me, indicating some
examples, since I am new in tapestry and we do not want to use dojo.

Thanks,
Anderson
-- 
View this message in context: 
http://www.nabble.com/Integration-Prototype-Scriptaculous-tf3672448.html#a10261951
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Initialize a value in the state object.

2007-04-30 Thread Giaccone, Anthony CTR DTIC-A


Here's what I want to do..

I have a form that holds a variety of data, which the user will use to
generate a query.  The query data is persistent at the session. This
wayIf they wander down a path, eventually they'll return to the "main"
page, and the query data will be returned from the "session" and they'll
be ready to query based on the data that was last entered. 

This all works fine and dandy. 

What I want to do now, is set a value in this persistent object when the
object is created. To provide a default value for one (or more) of the
query parameters. 

Imagine for instance that you want to search a queue of beans for those
beans that are in state "Pending"  as the intial state of the query
page.

This seems like a perfect place to use Hivemind. The query data is
already constructed by Hivemind. 

Here's the XML for the query data in the hivemind.xml


   
 





So my question is.. How do I convince Hivemind to set the property
status on the object MiprQueryItem to the value of "Pending". 





4.1.2 Translator/Validation

2007-04-30 Thread Tony Nelson
It would seem to me that translators would be called before validators, 
but I'm not sure how that applies with the new dojo validation.  Can 
someone suggest a place to find a sample?


I have a requirement for my project that all inputs that are percentages 
before formatted with a percent sign at the end of the value in the 
input box which is easily accomplished with a translator.


However if I apply a min or max validator, on submit I get errors 
because the form doesn't seem to call my translator to get the original 
value.


Have I been staring at this too long?  Does what I wrote even make sense?

Thanks in advance (again)
Tony Nelson

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

Re: problems in Demo of Tacos's TAB & Upload Progress Bar

2007-04-30 Thread sunilmanu

Hi,

Yes, this helped. I am able to see the content now. thanks !!

But now I placed my working code inside one of the tabs and I am able to see
the contents. But as soon as I select a option that is a AjaxEventSubmit, i
see the result for a split-of a second and then all the content vanishes.
Tabs loses all the content in it even the static content inside tab2 and
tab3 !! But when I check the source code of the HTML, i do see the form and
different components and contents inside them.

is it a CSS issue ?

Thanks,
Sunil



Shing Hing Man wrote:
> 
> For the tab component, try adding 
> 
>  /* Must have this, otherwise the body of the tabs
> will not be visible */ 
>   .dojoTabContainer{
> width: 100%; height: 20em;
>}
>  
> 
> Shing
> 
> 
> --- sunilmanu <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Hi Everyone,
>> 
>> I noticed some issues with the Tacos demo of Upload
>> progress Bar example. I
>> tried to upload various files and the Status
>> Progress Bar shows up after a
>> lng time for a Big file and even after
>> progress bar comes up, it
>> does not move. i.e progress is not being showed in
>> the example. Here is the
>> link for that :
>>
> http://opencomponentry.com:8080/tacos/forms/UploadProgressBar.html
>> 
>> Also, i noticed issues with the TAB component. The
>> content is not displayed.
>> I checked the view source and also from the Source
>> code of Demo, All the 3
>> tabs have content inside them, but none get
>> displayed. Here is the link for
>> that example:
>>
> http://opencomponentry.com:8080/tacos/dojo/TabsExample.html
>> 
>> Are they a bug, or something else needs to be
>> configured ? Please advice on
>> how to tackle this issue.
>> 
>> Thanks,
>> Sunil
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/problems-in-Demo-of-Tacos%27s-TAB---Upload-Progress-Bar-tf3657624.html#a10219037
>> Sent from the Tapestry - User mailing list archive
>> at Nabble.com.
>> 
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> 
> 
> 
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/ 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/problems-in-Demo-of-Tacos%27s-TAB---Upload-Progress-Bar-tf3657624.html#a10260960
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Need help with Tacos and validation

2007-04-30 Thread Andreas Andreou

Like http://opencomponentry.com:8080/tacos/forms/FormEffectsExample.html ?

http://fisheye3.cenqua.com/browse/tacos/tacos-4.0/trunk/tacos-demo/src/context/WEB-INF/forms/FormEffectsExample.html


On 4/30/07, Jacob Bergoo <[EMAIL PROTECTED]> wrote:



Hi,
I have a search form that is @tacos:AjaxForm and to this I have a
@tacos:AjaxSubmit with a listener connected. I want to do some validation
in
this listener method that at least one filed in the search form has some
content. I tried to add Validation in the normal Tapestry way, but that
does
not seems to work.. does anybody have any examples or pointers on how to
do
this?

Thanks,
Jacob
--
View this message in context:
http://www.nabble.com/Need-help-with-Tacos-and-validation-tf3671067.html#a10257942
Sent from the Tapestry - User mailing list archive at Nabble.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 / JEE Consulting


[T4.1] Stupid AJAX mistake solved involving Border, Shell and Components

2007-04-30 Thread Daniel Jue

Hi, since I hope to help other Tapestry newbies, let me share the
solution to my hours of battle.  This was a total noob mistake that
bothered me over a couple weeks.

Background:
I had a home page that was using a Border component.  Everything was fine.
Made a component that had an AJAX autocompleter in it.  Embedded the
component in the home page.  Oh, well I needed to add the @Shell
component to the home page so that the home page will get the
necessary scripts inserted.

Everything is fine at this point.

Several times I tried to move the @Shell component from my Home page
to my Border component.  Each time my AJAX subcomponent would break.

Stupid problem:
I just noticed that my Home page had been set up like this:




Blah Blah Blah Blah Blah Blah Blah Blah





The AJAX component wasn't working because it was outside of the @Border span!

Specific Symptoms:
The component was still rendering, and the error handling and form
submit still worked, but the autocompleter was not getting it's
selection model or updating itself.


Solution:




Blah Blah Blah Blah Blah Blah Blah Blah





Now my Border happily uses the Shell component for all my pages...for now. =)

Daniel

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



Antwort: Tapestry 5 and Template Reloading

2007-04-30 Thread Kristian Marinkovic
hi bjorn,it works fine for me... where did you put your templates?do you get any exceptions? Have you tried the tutorial?you can put your templates into the WEB-INF/ folder or into the respective package... eg. my directory structure main/java/com/whatever/pages/Start.javamain/resources/com/whatever/pages/start.htmlg,kris-bjornharvold <[EMAIL PROTECTED]> schrieb: -An: users@tapestry.apache.orgVon: bjornharvold <[EMAIL PROTECTED]>Datum: 30.04.2007 09:06PMThema: Tapestry 5 and Template ReloadingI can't seem to get template reloading to work. Classes reload just fine. Iinstalled the latest Eclipse with JettyRunner and jetty 5.1. Anyone have thesame problem or better yet, the solution?thxbjorn-- View this message in context: http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10258922Sent from the Tapestry - User mailing list archive at Nabble.com.-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]

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



Re: New OGNL snapshot?

2007-04-30 Thread Jesse Kuhnert

Ughh...Please be gentle:

http://opencomponentry.com/repository/m2-snapshot-repo/ognl/

--
Jesse Kuhnert
Tapestry/Dojo team member/developer

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


Tapestry 5 and Template Reloading

2007-04-30 Thread bjornharvold

I can't seem to get template reloading to work. Classes reload just fine. I
installed the latest Eclipse with JettyRunner and jetty 5.1. Anyone have the
same problem or better yet, the solution?

thx
bjorn
-- 
View this message in context: 
http://www.nabble.com/Tapestry-5-and-Template-Reloading-tf3671362.html#a10258922
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Need help with Tacos and validation

2007-04-30 Thread Jacob Bergoo

Hi,
I have a search form that is @tacos:AjaxForm and to this I have a
@tacos:AjaxSubmit with a listener connected. I want to do some validation in
this listener method that at least one field in the search form has some
content. I tried to add Validation in the normal Tapestry way, but that does
not seems to work.. does anybody have any examples or pointers on how to do
this?

Thanks,
Jacob
-- 
View this message in context: 
http://www.nabble.com/Need-help-with-Tacos-and-validation-tf3671067.html#a10257942
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: Tap 4.1.1 TextField Ajax question

2007-04-30 Thread Jesse Kuhnert

Yes, 4.1.2  requires ognl 2.7-SNAPSHOT.
http://howardlewisship.com/repository/ognl/ognl/

On 4/30/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


I would be very happy to use Tapestry 4.1.2 but I run into a problem
every time I try the latest snapshot:

java.lang.NoClassDefFoundError: ognl/enhance/ExpressionAccessor

I assume this related to the OGNL stability you mention.

Is there a newer beta of OGNL I grab from somewhere to get moving
along?  If so I'll just throw it in my local repository for now.

Thanks again
Tony



Jesse Kuhnert wrote:
> You want to use targets="" . Elements = "" is strictly for pure html
> elements and not tapestry components.
>
> If you use the 4.1.2-SNAPSHOT version it will also automatically
> figure out
> which form your targeted components are attached to and submit that as
> part
> of the event so that you can do things like get the current value of the
> field.
>
> 4.1.2 should be released very soon, just holding out for ognl stability.
>
> On 4/30/07, Tony Nelson <[EMAIL PROTECTED]> wrote:
>>
>> I am attempting to use @EventListener to submit the value of a
TextField
>> onChange.  So, I have an input defined:
>>
>> >displayName="Text" />
>>
>> In the page class I have:
>>
>> @Component(bindings = {"validators=validators:required"})
>> public abstract TextField getMyField();
>>
>> @EventListener(events={"onchange"}, elements="myField")
>> public void testEvent(IRequestCycle cycle)
>> {
>> logger.debug("LOOKHERE... " + getText());
>> }
>>
>> But I'll be darned if any of the events are firing.
>>
>> To rule out other problems, I copied the "big brother is watching"
>> sample from:
>>
>> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
>>
>> to the same page, and it works just fine..
>>
>> 30 Apr 2007 11:35:36,658 [http-8080-Processor24] DEBUG
>> com.starpoint.instihire.web.tapestry.page.Test  - User clicked on x/y
>> coordinates 159/326
>>
>> Am I barking up the wrong tree?  My final goal is to have a dropdown
>> update it's contents based on the text in the TextField, but until I
can
>> dynamically get it's value I'm stuck.
>>
>> Thanks in advance for all the help.
>> Tony Nelson
>>
>>
>>
>>
>> -
>> 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


Tap4 IEngineService & IAsset issues

2007-04-30 Thread Norman Franke
Based on the Tap4 Workbench ChartService example, I've created a  
similar service that fetches pictures from a database. I encountered  
two issues that I can't figure out:


1. The URLs generated for the picture are extremely long. I assume  
this is because it's serializing my page state (where the picture  
lives). Is there a way to have it just include the primary key of the  
table instead of everything client persisted on that page? (I persist  
the database row to implement first-write-wins updating.)


2. A more puzzling problem is if a picture can't be found (doesn't  
exist in the database), I want to instead send a default "no picture  
available" image. How do I get either a InputStream or File to this  
image stored in WEB-INF from the IEngineSerivce service() menthod?


Thanks!
Norman



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



Re: Tap 4.1.1 TextField Ajax question

2007-04-30 Thread Tony Nelson
I would be very happy to use Tapestry 4.1.2 but I run into a problem 
every time I try the latest snapshot:


java.lang.NoClassDefFoundError: ognl/enhance/ExpressionAccessor

I assume this related to the OGNL stability you mention.  


Is there a newer beta of OGNL I grab from somewhere to get moving along?  If so 
I'll just throw it in my local repository for now.

Thanks again
Tony



Jesse Kuhnert wrote:

You want to use targets="" . Elements = "" is strictly for pure html
elements and not tapestry components.

If you use the 4.1.2-SNAPSHOT version it will also automatically 
figure out
which form your targeted components are attached to and submit that as 
part

of the event so that you can do things like get the current value of the
field.

4.1.2 should be released very soon, just holding out for ognl stability.

On 4/30/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


I am attempting to use @EventListener to submit the value of a TextField
onChange.  So, I have an input defined:



In the page class I have:

@Component(bindings = {"validators=validators:required"})
public abstract TextField getMyField();

@EventListener(events={"onchange"}, elements="myField")
public void testEvent(IRequestCycle cycle)
{
logger.debug("LOOKHERE... " + getText());
}

But I'll be darned if any of the events are firing.

To rule out other problems, I copied the "big brother is watching"
sample from:

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

to the same page, and it works just fine..

30 Apr 2007 11:35:36,658 [http-8080-Processor24] DEBUG
com.starpoint.instihire.web.tapestry.page.Test  - User clicked on x/y
coordinates 159/326

Am I barking up the wrong tree?  My final goal is to have a dropdown
update it's contents based on the text in the TextField, but until I can
dynamically get it's value I'm stuck.

Thanks in advance for all the help.
Tony Nelson




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

Integration Prototype/Scriptaculous

2007-04-30 Thread Anderson Balduíno

Hi guys,

My company asked for to develop some functionalities ajax for tapestry
5 using Prototype/Scriptaculous, as refresh in combos, reconstruction of
grids. It would like to know if somebody could help me, indicating some
examples, since I am new in tapestry and we do not want to use dojo.

Thanks,
Anderson


Re: Tap 4.1.1 TextField Ajax question

2007-04-30 Thread Jesse Kuhnert

You want to use targets="" . Elements = "" is strictly for pure html
elements and not tapestry components.

If you use the 4.1.2-SNAPSHOT version it will also automatically figure out
which form your targeted components are attached to and submit that as part
of the event so that you can do things like get the current value of the
field.

4.1.2 should be released very soon, just holding out for ognl stability.

On 4/30/07, Tony Nelson <[EMAIL PROTECTED]> wrote:


I am attempting to use @EventListener to submit the value of a TextField
onChange.  So, I have an input defined:



In the page class I have:

@Component(bindings = {"validators=validators:required"})
public abstract TextField getMyField();

@EventListener(events={"onchange"}, elements="myField")
public void testEvent(IRequestCycle cycle)
{
logger.debug("LOOKHERE... " + getText());
}

But I'll be darned if any of the events are firing.

To rule out other problems, I copied the "big brother is watching"
sample from:

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

to the same page, and it works just fine..

30 Apr 2007 11:35:36,658 [http-8080-Processor24] DEBUG
com.starpoint.instihire.web.tapestry.page.Test  - User clicked on x/y
coordinates 159/326

Am I barking up the wrong tree?  My final goal is to have a dropdown
update it's contents based on the text in the TextField, but until I can
dynamically get it's value I'm stuck.

Thanks in advance for all the help.
Tony Nelson




-
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


Tap 4.1.1 TextField Ajax question

2007-04-30 Thread Tony Nelson
I am attempting to use @EventListener to submit the value of a TextField 
onChange.  So, I have an input defined:


   

In the page class I have:

   @Component(bindings = {"validators=validators:required"})
   public abstract TextField getMyField();

   @EventListener(events={"onchange"}, elements="myField")
   public void testEvent(IRequestCycle cycle)
   {
   logger.debug("LOOKHERE... " + getText());
   }

But I'll be darned if any of the events are firing.

To rule out other problems, I copied the "big brother is watching" 
sample from:


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

to the same page, and it works just fine..

30 Apr 2007 11:35:36,658 [http-8080-Processor24] DEBUG 
com.starpoint.instihire.web.tapestry.page.Test  - User clicked on x/y 
coordinates 159/326


Am I barking up the wrong tree?  My final goal is to have a dropdown 
update it's contents based on the text in the TextField, but until I can 
dynamically get it's value I'm stuck.


Thanks in advance for all the help.
Tony Nelson



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

Re: New OGNL snapshot?

2007-04-30 Thread Jesse Kuhnert

Thanks ..I could always host them myself as well but I'm waiting with the
hope that the problem will be resolved without having to traumatize everyone
with multiple moves. It may make us look foolish / unprofessional.

On 4/30/07, Patrick Moore <[EMAIL PROTECTED]> wrote:


If you send me the jars ... I have a repo that I could post it tooat
least for today and with a little bit of work on my end ... more than that
if needed...

-Pat

On 4/30/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
>
> Unfortunately I haven't been able to.  Some technical difficulties have
> come
> up with the current deployment target so I have to find a new home to
> deploy
> it to. I'm not sure where that's supposed to be exactly.  The
opensymphony
> people have offered their repo but want me to change the groupId to
> opensymphony - not really appealinggarrI'm open to ideas...
>
> On 4/30/07, Ben Dotte <[EMAIL PROTECTED]> wrote:
> >
> > Jesse - you fixed some ognl bugs on 4-28 but I don't see a new
snapshot.
> > Any chance you could push one out so we can test the fixes?
> >
> > Thanks!
> > Ben
> >
> > -
> > 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


Re: New OGNL snapshot?

2007-04-30 Thread Patrick Moore

If you send me the jars ... I have a repo that I could post it tooat
least for today and with a little bit of work on my end ... more than that
if needed...

-Pat

On 4/30/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:


Unfortunately I haven't been able to.  Some technical difficulties have
come
up with the current deployment target so I have to find a new home to
deploy
it to. I'm not sure where that's supposed to be exactly.  The opensymphony
people have offered their repo but want me to change the groupId to
opensymphony - not really appealinggarrI'm open to ideas...

On 4/30/07, Ben Dotte <[EMAIL PROTECTED]> wrote:
>
> Jesse - you fixed some ognl bugs on 4-28 but I don't see a new snapshot.
> Any chance you could push one out so we can test the fixes?
>
> Thanks!
> Ben
>
> -
> 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



Tapestry 5 + Acegi

2007-04-30 Thread Juan Maya

I am starting to develop a new application with Tapestry 5 and i am amazed,
I have had such a big productivity bust; now i need to integrate acegi to my
app and i was wonder if somebody has explored how to integrate both
frameworks.

Any help would be appreciated it. I am still a newbie with tapestry 5 and i
am not sure where to start.

Thanks


Re: New OGNL snapshot?

2007-04-30 Thread Jesse Kuhnert

Unfortunately I haven't been able to.  Some technical difficulties have come
up with the current deployment target so I have to find a new home to deploy
it to. I'm not sure where that's supposed to be exactly.  The opensymphony
people have offered their repo but want me to change the groupId to
opensymphony - not really appealinggarrI'm open to ideas...

On 4/30/07, Ben Dotte <[EMAIL PROTECTED]> wrote:


Jesse - you fixed some ognl bugs on 4-28 but I don't see a new snapshot.
Any chance you could push one out so we can test the fixes?

Thanks!
Ben

-
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


New OGNL snapshot?

2007-04-30 Thread Ben Dotte
Jesse - you fixed some ognl bugs on 4-28 but I don't see a new snapshot.
Any chance you could push one out so we can test the fixes?

Thanks!
Ben

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



[ANN] Tapestry 4 Tutorial, issue 5

2007-04-30 Thread Kolesnikov, Alexander GNI
Have a look:

http://www.devshed.com/c/a/Apache/A-Closer-Look-at-Simple-Components-in-
Apache-Tapestry/

The issues are rather short, they are actually the halves of the
originally submitted articles, as this is the tactic of the publisher.
But anyway, the story goes on.

Cheers,

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


RE: T5 - Unable to resolve component type 'comp' to a component class name

2007-04-30 Thread Kristian Marinkovic
t:comp is not supported anymore. now its 
t:"component_type"

look into the Tapestry 5 tutorial pdf... examples there are
up to date :)

g,kris





winlaw <[EMAIL PROTECTED]> 
30.04.2007 14:54
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
T5 - Unable to resolve component type 'comp' to a component class name







I am trying to copy the example demonstarted in the Screencast but get the
following error when I fire up the browser: 

Unable to resolve component type 'comp' to a component class name. 
Available
component types: core/ActionLink, core/Any, core/BeanEditForm,
core/Checkbox, core/ComponentMessages, core/Delegate, core/Errors,
core/Form, core/FormSupportImpl, core/Grid, core/GridCell, 
core/GridColumns,
core/GridPager, core/GridRows, core/If, core/Img, core/Label, core/Loop,
core/Output, core/OutputRaw, core/PageLink, core/PasswordField,
core/RenderObject, core/Select, core/Submit, core/TextArea, 
core/TextField.

The code which appears to cause is: 

  
${index}
  


Libs include:
tapestry-ioc-5.0.3.jar
tapestry-core-5.0.3.jar
javaassist-3.4.ga.jar
commons-logging-1.0.4.jar

Many thanks for your help.
Jim


-- 
View this message in context: 
http://www.nabble.com/T5---Unable-to-resolve-component-type-%27comp%27-to-a-component-class-name-tf3669522.html#a10252977

Sent from the Tapestry - User mailing list archive at Nabble.com.


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




T5 - Unable to resolve component type 'comp' to a component class name

2007-04-30 Thread winlaw

I am trying to copy the example demonstarted in the Screencast but get the
following error when I fire up the browser:  

Unable to resolve component type 'comp' to a component class name. Available
component types: core/ActionLink, core/Any, core/BeanEditForm,
core/Checkbox, core/ComponentMessages, core/Delegate, core/Errors,
core/Form, core/FormSupportImpl, core/Grid, core/GridCell, core/GridColumns,
core/GridPager, core/GridRows, core/If, core/Img, core/Label, core/Loop,
core/Output, core/OutputRaw, core/PageLink, core/PasswordField,
core/RenderObject, core/Select, core/Submit, core/TextArea, core/TextField.

The code which appears to cause is: 

  
${index}
  


Libs include:
tapestry-ioc-5.0.3.jar
tapestry-core-5.0.3.jar
javaassist-3.4.ga.jar
commons-logging-1.0.4.jar

Many thanks for your help.
Jim


-- 
View this message in context: 
http://www.nabble.com/T5---Unable-to-resolve-component-type-%27comp%27-to-a-component-class-name-tf3669522.html#a10252977
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Sizing of DatePicker

2007-04-30 Thread winlaw

I am new to Java, Tapestry & HTML.

I have the following code that displays a DatePicker which works fine.
However the DatePicker is almost the same width  as my form. How do I size
the DatePicker?

.html code:
validfromdate :


.java code:
@Component(type = "DatePicker", bindings = {"validators=validators:",
"value=validFromdate", "includeWeek=true",
"translator=translator:date,pattern=dd/MM/", "displayName=literal:Valid
>From Date"})
  public abstract DatePicker getValidFromDateField();

Many thanks for assistance..
Jim
http://www.nabble.com/file/8152/validfromdate.JPG 
-- 
View this message in context: 
http://www.nabble.com/Sizing-of-DatePicker-tf3669237.html#a10252170
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



RE: [T5] IOC: services without interface do not work

2007-04-30 Thread Kristian Marinkovic
hi,

found my problem... in order to have a service that does not have an 
interface 
you have to use the ServiceBinder.

Shouldn't it be possible to have these kind of services returned by a 
builder
method as well? IMHO this way it'd feel more consistent

g,
kris




Kristian Marinkovic <[EMAIL PROTECTED]> 
27.04.2007 14:27
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
[T5] IOC: services without interface do not work






hi all,

when i try to return a service in my module that does not have an 
interface
i get a "No service implements the interface..." exception. The recent 
blog
entry suggests that it should work now ..

http://tapestryjava.blogspot.com/2007/04/pleasing-crowds-improving-ioc-extending.html


My module code is below. Am i missing something?
Or maybe i'm just too eager to use it... :)

I'm using the latest sources from the repository. 


MyModule.java
public class MyModule { 
public static SimpleServiceImpl build() {
return new SimpleServiceImpl();
}
}


g,
kris

btw. anyone tried to build tapestry 5 with java 1.6