Re: T5 Multiple Select Box Values

2007-09-05 Thread Davor Hrg
Select component doesn't support multiple values at the moment.
it handles form submission by calling _request.getParameter(elementName);
which returns only first value.

Davor Hrg

On 9/5/07, Sean McCarthy <[EMAIL PROTECTED]> wrote:
>
> Does anyone have a simple example on how to get the selected items from a
> select list.  In all of my experimentation I only get the value of the first
> item that has been selected.  I have reviewed the GenericSelectionModel and
> it seems like a lot of effort to receive a comma separated list.
>
> Thanks in advance.
>
> Sean
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T4.1.2 DropdownDatePicker

2007-09-05 Thread Igor Drobiazko
You can use the parameter "translator".

On 9/5/07, Norman Franke <[EMAIL PROTECTED]> wrote:
>
> I'm attempting to convert my application from Tapestry 4.0.2 to 4.1.2
> and I've run into a problem with the DropdownDatePicker component.
> Previously, I used a dojo version and then used an onFocus event to
> parse the data field as needed. This allowed me to take dates in
> almost any format, including "3/13" or "3/13/07" or "31 jul 07", etc.
> This worked rather well.
>
> How can this be done in using the DropdownDatePicker in 4.1.2? I
> tried adding a dojo onValueChanged, but it gets the value after it
> was parsed (typically ending up "12/31/1969". No javascript events
> are called on the DropdownDatePicker itself, e.g. onChange or onBlur,
> since the control ends up as a  block that Tapestry then does
> some magic with behind the scenes.
>
> Any ideas?
> Norman
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T5: Troubles editing a list of objects

2007-09-05 Thread Marcus Schmidke
Nick,

that was really simple ... and works fine, thank you.

But I must admit that I don't understand what I'm doing here (even
reading the documentation about loop.volatile did not help me, sorry).
What is volatile's default for?

I understood so far:

Having volatile=default causes serialization of the displayed objects
during render. To where? I suppose it's that long long long long
invisible field at the beginning of the form?

Ok.

Later, on request processing, the objects get deserialized from the
form, and then, the input values are applied.

But what is the intended way to deal with those deserialized objects?
They are referenced from nowhere in my code. How can I access the
changed values?

Marcus.


2007/9/6, Nick Westgate <[EMAIL PROTECTED]>:
> Use:
> 

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



Re: T3: CheckBox

2007-09-05 Thread Nick Westgate

ListPropertySelectionModel and NamedListItem are regular a classes.
Put them wherever you like.

To use them, create your model from a list of objects that implement
the NamedListItem interface.

selectionModel = new ListPropertySelectionModel(itemList);

Cheers,
Nick.


Nazmul Bhuiyan wrote:

Hi Nick,

Few more basic questions:
To use contrib's component I have added the following lines in my
.application file as below:
  

How should I define the path to use the ListPropertySelectionModel as there
is no library.
I'm getting path exception.



Can you please please give me some example how should I use this
ListPropertySelectionModel? I'm not using Palette.

Thanks


Nick Westgate wrote:

You can write your own selection model, or of course use what others have
already written to address this problem.

Check out this thread:
http://www.nabble.com/Multiple-Select-tf144431.html#a400648

Since you are using a list it's easiest to use Robert's
ListPropertySelectionModel.
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SListPropertySelectionModel

Cheers,
Nick.


Nazmul Bhuiyan wrote:

Hi Nick,

Is there any method that I can use to create a
ObjectPropertySelectionModel
model instead of StringPropertySelectionModel as below?

public static final IPropertySelectionModel theModel = 
new StringPropertySelectionModel(new String[] {"a", "b", "c"}); 


My page displays a list of objects and I want select some of these
objects
and do something about it.


Thanks

Naz


Nick Westgate wrote:

You'll want to use the MultiplePropertySelection component:
http://tapestry.apache.org/tapestry3/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html

If you need to change the rendering style you can just grab
the source for the default renderer (which generates a table)
and change it to output things differently.

Cheers,
Nick.


Nick Westgate wrote:

It depends how T3's method matching works, but you might need:
public void formSubmit(IRequestCycle cycle)

Note the I in IRequestCycle.

Cheers,
Nick.


Nazmul Bhuiyan wrote:

Hello,

I’ve a list of objects displayed in a page. I want to collect ids of
selected object by adding a check box for each of these objects. Then 
I’ll

use another action event to do something with this collection of ids.

But I’m getting the following error message:

Unable to resolve expression 'formSubmit' for
[EMAIL PROTECTED] 


binding:ExpressionBinding[InfringementsMaint formSubmit]
location:context:/InfringementsMaint.html, line 10

Can any one please help me out on this?

My code below:

.html


Infringement List

Inf Type
Tran Type
Name
Address
Offence
Reminder
Edit/Delete
Add to Batch










selected="ognl:addToBatch"/>






.page
persistent="yes"/>


.java
public abstract boolean isAddToBatch();
public abstract void setAddToBatch(boolean value);

public void formSubmit(RequestCycle cycle) {
if (isAddToBatch()) {
   //Get all the infringement Id to add into Batch and add 
them into

a collection
}
}


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



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




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







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



Re: T5: How to set the input validation to Server Side

2007-09-05 Thread Nick Westgate

Validation is done on the server side too. You don't have to configure anything.

See here:
http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner

Cheers,
Nick.


smithfox wrote:

I have two problems with Tapestry5.05

1. How to set the input validation to Server Side?
2. If use client javascript validation, how to translate the messages to
Chinese?


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



Re: Input Validation example

2007-09-05 Thread Nick Westgate

This should work automatically. Read the component reference for TextField.
Your java class should define a property with the same name as the field's id.

(It's already there if you copied the source.)

Cheers,
Nick.


Jean-Philippe Steinmetz wrote:

Hello all,

 


I'm having some trouble with the input validation example. I have everything
set up as described in

 


http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html

 


but am getting the following error for my Login page:

 


Parameter(s) translate, value are required for
org.apache.tapestry.corelib.components.TextField, but have not been bound.

 


Anyone know why? I'm using Tap 5.0.5

 


Jean-Philippe Steinmetz

---

Webmaster / Developer

Information Sciences Institute

University of Southern California

[EMAIL PROTECTED]

310.448.8471

 





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



Re: T5: Troubles editing a list of objects

2007-09-05 Thread Nick Westgate

Use:


Cheers,
Nick.


Marcus Schmidke wrote:

Hello all,

the following might be an absolute beginner's error, but since I'm an
absolute beginner, I probably am allowed to have this kind of problem
...

I'm trying to edit a list of values:

class Value {
  String name;
  String text;
  boolean used;
  ... getters ...
  ... setters ...
}

class Page {
  private @Persist List values;
  private Value value; //iterator

  ... getters / setters ...
  ... some code to initialize values list ...
}

And the html code:


  

${value.name}



  




The page is rendered perfectly. On Submit, the new values are passed
into some Value objects.

But: those Value objects are serialized/deserialized instances of the
original Value objects. While the List still holds the original Value
objects, only copies of them get modified. Result is that my program
code (which works on the list) never sees the modified versions, and
on re-rendering, the old values are displayed again.

What am I doing wrong??


Marcus.

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



T5: How to set the input validation to Server Side

2007-09-05 Thread smithfox

I have two problems with Tapestry5.05

1. How to set the input validation to Server Side?
2. If use client javascript validation, how to translate the messages to
Chinese?
-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-set-the-input-validation-to-Server-Side-tf4389348.html#a12514632
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: T3: CheckBox

2007-09-05 Thread Nazmul Bhuiyan

Hi Nick,

Few more basic questions:
To use contrib's component I have added the following lines in my
.application file as below:
  

How should I define the path to use the ListPropertySelectionModel as there
is no library.
I'm getting path exception.



Can you please please give me some example how should I use this
ListPropertySelectionModel? I'm not using Palette.

Thanks


Nick Westgate wrote:
> 
> You can write your own selection model, or of course use what others have
> already written to address this problem.
> 
> Check out this thread:
> http://www.nabble.com/Multiple-Select-tf144431.html#a400648
> 
> Since you are using a list it's easiest to use Robert's
> ListPropertySelectionModel.
> http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SListPropertySelectionModel
> 
> Cheers,
> Nick.
> 
> 
> Nazmul Bhuiyan wrote:
>> Hi Nick,
>> 
>> Is there any method that I can use to create a
>> ObjectPropertySelectionModel
>> model instead of StringPropertySelectionModel as below?
>> 
>> public static final IPropertySelectionModel theModel = 
>> new StringPropertySelectionModel(new String[] {"a", "b", "c"}); 
>> 
>> My page displays a list of objects and I want select some of these
>> objects
>> and do something about it.
>> 
>> 
>> Thanks
>> 
>> Naz
>> 
>> 
>> Nick Westgate wrote:
>>> You'll want to use the MultiplePropertySelection component:
>>> http://tapestry.apache.org/tapestry3/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html
>>>
>>> If you need to change the rendering style you can just grab
>>> the source for the default renderer (which generates a table)
>>> and change it to output things differently.
>>>
>>> Cheers,
>>> Nick.
>>>
>>>
>>> Nick Westgate wrote:
 It depends how T3's method matching works, but you might need:
 public void formSubmit(IRequestCycle cycle)

 Note the I in IRequestCycle.

 Cheers,
 Nick.


 Nazmul Bhuiyan wrote:
> Hello,
>
> I’ve a list of objects displayed in a page. I want to collect ids of
> selected object by adding a check box for each of these objects. Then 
> I’ll
> use another action event to do something with this collection of ids.
>
> But I’m getting the following error message:
>
> Unable to resolve expression 'formSubmit' for
> [EMAIL PROTECTED] 
>
> binding:ExpressionBinding[InfringementsMaint formSubmit]
> location:context:/InfringementsMaint.html, line 10
>
> Can any one please help me out on this?
>
> My code below:
>
> .html
> 
> 
> Infringement List
> 
> Inf Type
> Tran Type
> Name
> Address
> Offence
> Reminder
> Edit/Delete
> Add to Batch
> 
>  value="ognl:currentInfringement" element="tr">
> 
> 
> 
> 
> 
> 
>
> 
>  selected="ognl:addToBatch"/>
> 
> 
> 
> 
>
> .page
>  persistent="yes"/>
>
> .java
> public abstract boolean isAddToBatch();
> public abstract void setAddToBatch(boolean value);
>
> public void formSubmit(RequestCycle cycle) {
> if (isAddToBatch()) {
>//Get all the infringement Id to add into Batch and add 
> them into
> a collection
> }
> }
>
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


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

-- 
View this message in context: 
http://www.nabble.com/T3%3A-CheckBox-tf4369817.html#a12513557
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: Template Caching

2007-09-05 Thread Jean-Philippe Steinmetz
Thanks for the response. I actually just caught that WTP and Tomcat thread.
I'm using 5.0.5 and have been using Tomcat6 as my server. I have been doing
exactly what you were doing: build, drop war into Tomcat and test (which is
an annoying process as it is). I've since discovered the tomcat plug-in for
maven that seems to have solved the problem actually (at least so far). 

So with that I've dropped my existing testing pipeline down to one command:
mvn tomcat:run

I found the following page rather useful.
http://mojo.codehaus.org/tomcat-maven-plugin/deployment.html

Unfortunately I don't have much choice for which server to use. I'm stuck
with Tomcat for now. Thanks again.

Jean-Philippe

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> Josh Canfield
> Sent: Wednesday, September 05, 2007 3:07 PM
> To: Tapestry users
> Subject: Re: Template Caching
> 
> >
> > I've noticed that Tapestry seems to be somehow caching my templates even
> > when I rebuild and redeploy my web app. How do I prevent this? It's
> making
> > it very difficult to make changes while I debug.
> >
> 
> What version of Tapestry are you using? It's helpful to put that in the
> subject. Also, what application server are you deploying to?
> 
> See the recent message "*RE: T5 developing with WTP and TOMCAT*"
> 
> Also, I ran into a problem that sounds like yours with Tomcat. I used
> Maven
> to build the war, dropped it into the webapps folder so that tomcat would
> auto-deploy the app. Some old templates were still being used, but this
> wasn't a Tapestry problem. I checked in the folder where tomcat had
> exploded
> the war and there were both new and old files mixed in there...
> 
> I've had no problems using Jetty for debugging, and I'm considering
> replacing Tomcat with Jetty for production.
> 
> Josh
> 
> On 9/5/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote:
> >
> >
> > I've noticed that Tapestry seems to be somehow caching my templates even
> > when I rebuild and redeploy my web app. How do I prevent this? It's
> making
> > it very difficult to make changes while I debug.
> >
> >
> > Jean-Philippe Steinmetz
> >
> >
> >
> >
> 
> 
> --
> --
> TheDailyTube.com. Sign up and get the best new videos on the internet
> delivered fresh to your inbox.



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



You have clicked on a stale link Error

2007-09-05 Thread Ajit Raj
Hi,I got a error as following after I tried to re-log in to the application -- 
it happens when I clicked a "Submit" button on one of the page after session 
already timeout, and it redirect me back into the login page.You have clicked 
on a stale link.Rewind of form core/Example/SchoolReport expected only 0 form 
elements, but an additional id was requested by component 
sure/DateSelect/CheckDateSelected.This is most likely the result of using your 
browser's back button, but can also be an application error.You may continue by 
returning to the application's home page.I have to go to the home page first, 
then go to the page where I clicked "submit" button.Is this a tapestry issue? 
Is there a way to go back to the my last page after re-login instead of go 
through the home page? It seems that it only happens when some data needs to be 
sent back to the server, not happens on a DirectLink item.Thanks,Ajit
_
Invite your mail contacts to join your friends list with Windows Live Spaces. 
It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us

Re: Template Caching

2007-09-05 Thread Josh Canfield
>
> I've noticed that Tapestry seems to be somehow caching my templates even
> when I rebuild and redeploy my web app. How do I prevent this? It's making
> it very difficult to make changes while I debug.
>

What version of Tapestry are you using? It's helpful to put that in the
subject. Also, what application server are you deploying to?

See the recent message "*RE: T5 developing with WTP and TOMCAT*"

Also, I ran into a problem that sounds like yours with Tomcat. I used Maven
to build the war, dropped it into the webapps folder so that tomcat would
auto-deploy the app. Some old templates were still being used, but this
wasn't a Tapestry problem. I checked in the folder where tomcat had exploded
the war and there were both new and old files mixed in there...

I've had no problems using Jetty for debugging, and I'm considering
replacing Tomcat with Jetty for production.

Josh

On 9/5/07, Jean-Philippe Steinmetz <[EMAIL PROTECTED]> wrote:
>
>
> I've noticed that Tapestry seems to be somehow caching my templates even
> when I rebuild and redeploy my web app. How do I prevent this? It's making
> it very difficult to make changes while I debug.
>
>
> Jean-Philippe Steinmetz
>
>
>
>


-- 
--
TheDailyTube.com. Sign up and get the best new videos on the internet
delivered fresh to your inbox.


Re: T5 developing with WTP and TOMCAT

2007-09-05 Thread Renat Zubairov
Hello Gregory,

Nice that you've posted here the hot reloading issue, but have you
succeeded in deploying maven project under WTP?

We've tried today but failed. We required to do some .project hacks
but maven libraries are still not associated with the deployed WAR

Renat

On 05/09/07, Brysbaert Gregory <[EMAIL PROTECTED]> wrote:
> Hello,
>
> About this topic, I tried some investigations on my side, and I found out 
> that the reason why classes don't auto-reload is that the WebappClassLoader 
> of tomcat 5 (I currently use tomcat 5.0, but I guess it's the same on Tomcat 
> 5.5) keeps in cache (in a Hashtable more precisely) all classes it already 
> loaded once.
> And this cache is never cleared, except when the WebappClassLoader is stopped.
> So, when the class file is modified on the disk, tapestry 5 clears its own 
> cache, and then asks to the parent classloader (WebAppClassLoader) to reload 
> the class, which then serves the previous version of the class from its 
> cache. The result is that the class is never actually updated until the next 
> restart of tomcat.
>
> So, as a temporary solution, I tried to develop a class extending 
> WebappClassLoader that does not cache classes for packages containing 
> ".pages." and ".components.". The source of this class is :
>
> public class Tapestry5DevClassLoader extends WebappClassLoader{
>
>  private static String[] 
> noCacheElements={".pages.","/pages/",".components.","/components/"};
>
> public Tapestry5DevClassLoader() {
> super();
>
> }
>
> public Tapestry5DevClassLoader(ClassLoader arg0) {
> super(arg0);
>
> }
>
>
>
> @Override
> protected InputStream findLoadedResource(String arg0) {
> InputStream is=super.findLoadedResource(arg0);
> if (is!=null){
> if (isNoCacheElement(arg0))
> return null;
> }
> return is;
> }
>
> private boolean isNoCacheElement(String name){
>
> for (int i=0;i if (name.indexOf(noCacheElements[i])>=0)
> return true;
> }
>
> return false;
>
> }
>
>
>
> }
>
>
>
>
> To make it work, you have to do 2 things :
> - Compile the class and add it to the server/classes (or server/lib if you 
> package it in a jar) directory of your tomcat installation directory.
> - in your server.xml file, modify the context declaration and disable 
> tomcat's auto-reloading functionality, and declare the newly created 
> classloader instead of the default one :
>
>  source="org.eclipse.jst.j2ee.server:testtapestry5">
>  loaderClass="net.atos.mm.fwk.tapestry5.classloader.Tapestry5DevClassLoader">
>
> 
> 
>
> This is of course a temporary solution, but I tried it and it works for me.
>
> Waiting for something better, I hope it can help.
>
> Gregory Brysbaert
>
> -Message d'origine-
> De: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED]
> Envoyé: jeudi 16 août 2007 18:59
> À: Tapestry users
> Objet: Re: T5 developing with WTP and TOMCAT
>
> On Thu, 16 Aug 2007 12:54:31 -0300, Denny <[EMAIL PROTECTED]> wrote:
>
> > Ok, now, I am using jettylauncher eclipse plugin to develop T5. I hope T5
> > can fix the problem about working with tomcat. There are many people
> > using tomcat for develop and product.
>
> It's a Tomcat issue, not a Tapestry one. Howard explains the problem here:
> http://tapestryjava.blogspot.com/2007/02/fighting-with-tomcat.html
>
> --
> Thiago H. de Paula Figueiredo
> Desenvolvedor, Instrutor e Consultor de Tecnologia
> Eteg Tecnologia da Informação Ltda.
> http://www.eteg.com.br
>
> -
> 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]
>
>


-- 
Best regards,
Renat Zubairov


RE: Who Use Tapestry

2007-09-05 Thread Daniel Ruiz
Do you think? - I got used to read stuff in mail lists, so I really don’t
care atm.. :D

I don’t know if there is any wiki page that tracks communities around the
world, but would be nice to you let us know if you start anything..



Daniel Andrade Ruiz

-Original Message-
From: Marcelo C. de Freitas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 6:01 PM
To: Tapestry users
Subject: Re: Who Use Tapestry

isn't it time for us to create a Tapestry Brasil comunity?


:D

Em 05/09/07, Daniel Ruiz<[EMAIL PROTECTED]> escreveu:
>
> You got another one from Brazil
>
> :P
>
>
> Daniel Andrade Ruiz
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
> Carlos Delfino Carvalho Pinheiro
> Sent: Wednesday, September 05, 2007 4:33 PM
> To: Tapestry users
> Subject: Re: Who Use Tapestry
>
> I only see one Brazillina users.
>
> it Have more users in Brazil?
>
> Thanks.
>
>
> Em 05/09/07, Carlos Delfino Carvalho Pinheiro 
> <[EMAIL PROTECTED]>
> escreveu:
> >
> > thanks for all!
> >
> >
> >
> >
> > 2007/9/5, Marcelo Lotif <[EMAIL PROTECTED]>:
> > >
> > > and here
> > > http://wiki.apache.org/tapestry/SuccessStories
> > >
> > > :)
> > >
> > > 2007/9/5, Daniel Jue <[EMAIL PROTECTED]>:
> > > >
> > > > Some people have reported their success here:
> > > >
> > > > http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
> > > >
> > > > On 9/5/07, Carlos Delfino Carvalho Pinheiro < 
> > > > [EMAIL PROTECTED] > wrote:
> > > >
> > > > >   Hi!
> > > > >
> > > > >
> > > > >
> > > > > I need make one document for suggest to my company use Tapestry.
> > > > > But
> > > the
> > > > > Technical leader ask me about Who use Tapestry.
> > > > >
> > > > >
> > > > >
> > > > > Have one Wiki page where users can post you experiences?
> > > > >
> > > > >
> > > > >
> > > > > Thanks!
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > > >
> > > > > Carlos Delfino -  [image: call_blue_white_124x52]
> > > > >
> > > > > Consultoria e Gestão de Projetos no Terceiro Setor
> > > > >
> > > > > http://www.linkedin.com/in/carlosdelfino
> > > > >
> > > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > > >
> > > > >
> > > > >
> > > > >
> > > --
> > > --
> > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: 
> > > > > [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Atenciosamente,
> > > Marcelo Lotif
> > >
> >
> >
> >
> > --
> > Carlos Delfino
> > Desenvolvimento de Softwares e Projetos TSM Project Leader SGAP 
> > Project Leader PDTec Project Champion
> > --
> > Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e 
> > o visível. Ele é o Clemente, o Misericordioso!
> > Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, 
> > a Paz, o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus 
> > seja louvado acima dos que os homens Lhe associam!
> > Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos 
> > mais belos" (59, 22-24)
>
>
>
>
> --
> Carlos Delfino
> Desenvolvimento de Softwares e Projetos TSM Project Leader SGAP 
> Project Leader PDTec Project Champion
> --
> Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o 
> visível. Ele é o Clemente, o Misericordioso!
> Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a 
> Paz, o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja 
> louvado acima dos que os homens Lhe associam!
> Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos 
> mais belos" (59, 22-24)
>
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 
> 5/23/2007
> 3:59 PM
>
>
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 
> 5/23/2007
> 3:59 PM
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Marcelo C. Freitas

IM's:
MSN: [EMAIL PROTECTED]
ICQ: 24263609
Jabber: [EMAIL PROTECTED]
GTalk: [EMAIL PROTECTED]
Yahoo: baterausp

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

Internal Virus Database is out-of-date.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
3:59 PM
 

Internal Virus Database is out-of-date.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
3:59 PM
 


-
To u

T5: Troubles editing a list of objects

2007-09-05 Thread Marcus Schmidke
Hello all,

the following might be an absolute beginner's error, but since I'm an
absolute beginner, I probably am allowed to have this kind of problem
...

I'm trying to edit a list of values:

class Value {
  String name;
  String text;
  boolean used;
  ... getters ...
  ... setters ...
}

class Page {
  private @Persist List values;
  private Value value; //iterator

  ... getters / setters ...
  ... some code to initialize values list ...
}

And the html code:


  

${value.name}



  




The page is rendered perfectly. On Submit, the new values are passed
into some Value objects.

But: those Value objects are serialized/deserialized instances of the
original Value objects. While the List still holds the original Value
objects, only copies of them get modified. Result is that my program
code (which works on the list) never sees the modified versions, and
on re-rendering, the old values are displayed again.

What am I doing wrong??


Marcus.

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



Template Caching

2007-09-05 Thread Jean-Philippe Steinmetz
I've noticed that Tapestry seems to be somehow caching my templates even
when I rebuild and redeploy my web app. How do I prevent this? It's making
it very difficult to make changes while I debug.

 

Jean-Philippe Steinmetz

 



Re: Who Use Tapestry

2007-09-05 Thread Marcelo C. de Freitas
isn't it time for us to create a Tapestry Brasil comunity?


:D

Em 05/09/07, Daniel Ruiz<[EMAIL PROTECTED]> escreveu:
>
> You got another one from Brazil
>
> :P
>
>
> Daniel Andrade Ruiz
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
> Delfino Carvalho Pinheiro
> Sent: Wednesday, September 05, 2007 4:33 PM
> To: Tapestry users
> Subject: Re: Who Use Tapestry
>
> I only see one Brazillina users.
>
> it Have more users in Brazil?
>
> Thanks.
>
>
> Em 05/09/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
> escreveu:
> >
> > thanks for all!
> >
> >
> >
> >
> > 2007/9/5, Marcelo Lotif <[EMAIL PROTECTED]>:
> > >
> > > and here
> > > http://wiki.apache.org/tapestry/SuccessStories
> > >
> > > :)
> > >
> > > 2007/9/5, Daniel Jue <[EMAIL PROTECTED]>:
> > > >
> > > > Some people have reported their success here:
> > > >
> > > > http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
> > > >
> > > > On 9/5/07, Carlos Delfino Carvalho Pinheiro <
> > > > [EMAIL PROTECTED] > wrote:
> > > >
> > > > >   Hi!
> > > > >
> > > > >
> > > > >
> > > > > I need make one document for suggest to my company use Tapestry.
> > > > > But
> > > the
> > > > > Technical leader ask me about Who use Tapestry.
> > > > >
> > > > >
> > > > >
> > > > > Have one Wiki page where users can post you experiences?
> > > > >
> > > > >
> > > > >
> > > > > Thanks!
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > >
> > > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > > >
> > > > > Carlos Delfino -  [image: call_blue_white_124x52]
> > > > >
> > > > > Consultoria e Gestão de Projetos no Terceiro Setor
> > > > >
> > > > > http://www.linkedin.com/in/carlosdelfino
> > > > >
> > > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > > >
> > > > >
> > > > >
> > > > >
> > > 
> > > -
> > > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > >
> > > >
> > > >
> > >
> > >
> > > --
> > > Atenciosamente,
> > > Marcelo Lotif
> > >
> >
> >
> >
> > --
> > Carlos Delfino
> > Desenvolvimento de Softwares e Projetos TSM Project Leader SGAP
> > Project Leader PDTec Project Champion
> > --
> > Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
> > visível. Ele é o Clemente, o Misericordioso!
> > Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a
> > Paz, o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja
> > louvado acima dos que os homens Lhe associam!
> > Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos
> > mais belos" (59, 22-24)
>
>
>
>
> --
> Carlos Delfino
> Desenvolvimento de Softwares e Projetos
> TSM Project Leader
> SGAP Project Leader
> PDTec Project Champion
> --
> Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
> visível. Ele é o Clemente, o Misericordioso!
> Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
> o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
> acima dos que os homens Lhe associam!
> Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
> belos" (59, 22-24)
>
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
> 3:59 PM
>
>
> Internal Virus Database is out-of-date.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
> 3:59 PM
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Marcelo C. Freitas

IM's:
MSN: [EMAIL PROTECTED]
ICQ: 24263609
Jabber: [EMAIL PROTECTED]
GTalk: [EMAIL PROTECTED]
Yahoo: baterausp

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



RE: Who Use Tapestry

2007-09-05 Thread Daniel Ruiz

You got another one from Brazil 

:P


Daniel Andrade Ruiz

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Carlos
Delfino Carvalho Pinheiro
Sent: Wednesday, September 05, 2007 4:33 PM
To: Tapestry users
Subject: Re: Who Use Tapestry

I only see one Brazillina users.

it Have more users in Brazil?

Thanks.


Em 05/09/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
escreveu:
>
> thanks for all!
>
>
>
>
> 2007/9/5, Marcelo Lotif <[EMAIL PROTECTED]>:
> >
> > and here
> > http://wiki.apache.org/tapestry/SuccessStories
> >
> > :)
> >
> > 2007/9/5, Daniel Jue <[EMAIL PROTECTED]>:
> > >
> > > Some people have reported their success here:
> > >
> > > http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
> > >
> > > On 9/5/07, Carlos Delfino Carvalho Pinheiro < 
> > > [EMAIL PROTECTED] > wrote:
> > >
> > > >   Hi!
> > > >
> > > >
> > > >
> > > > I need make one document for suggest to my company use Tapestry. 
> > > > But
> > the
> > > > Technical leader ask me about Who use Tapestry.
> > > >
> > > >
> > > >
> > > > Have one Wiki page where users can post you experiences?
> > > >
> > > >
> > > >
> > > > Thanks!
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > >
> > > > Carlos Delfino -  [image: call_blue_white_124x52]
> > > >
> > > > Consultoria e Gestão de Projetos no Terceiro Setor
> > > >
> > > > http://www.linkedin.com/in/carlosdelfino
> > > >
> > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > >
> > > >
> > > >
> > > >
> > 
> > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> >
> >
> > --
> > Atenciosamente,
> > Marcelo Lotif
> >
>
>
>
> --
> Carlos Delfino
> Desenvolvimento de Softwares e Projetos TSM Project Leader SGAP 
> Project Leader PDTec Project Champion
> --
> Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o 
> visível. Ele é o Clemente, o Misericordioso!
> Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a 
> Paz, o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja 
> louvado acima dos que os homens Lhe associam!
> Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos 
> mais belos" (59, 22-24)




--
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
--
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)

Internal Virus Database is out-of-date.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
3:59 PM
 

Internal Virus Database is out-of-date.
Checked by AVG Free Edition. 
Version: 7.5.467 / Virus Database: 269.7.7/816 - Release Date: 5/23/2007
3:59 PM
 


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



T5 Multiple Select Box Values

2007-09-05 Thread Sean McCarthy
Does anyone have a simple example on how to get the selected items from a 
select list.  In all of my experimentation I only get the value of the first 
item that has been selected.  I have reviewed the GenericSelectionModel and it 
seems like a lot of effort to receive a comma separated list.  
 
Thanks in advance.
 
Sean

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



Input Validation example

2007-09-05 Thread Jean-Philippe Steinmetz
Hello all,

 

I'm having some trouble with the input validation example. I have everything
set up as described in

 

http://tapestry.apache.org/tapestry5/tapestry-core/guide/validation.html

 

but am getting the following error for my Login page:

 

Parameter(s) translate, value are required for
org.apache.tapestry.corelib.components.TextField, but have not been bound.

 

Anyone know why? I'm using Tap 5.0.5

 

Jean-Philippe Steinmetz

---

Webmaster / Developer

Information Sciences Institute

University of Southern California

[EMAIL PROTECTED]

310.448.8471

 



Re: Memory issues with Tapestry 4.1.x

2007-09-05 Thread mraible

If you have MySQL installed, there's a couple demos you should be able to
use:

http://static.raibledesigns.com/downloads/appfuse-light-tapestry-1.8-SNAPSHOT.zip
http://static.raibledesigns.com/downloads/appfuse-tapestry-2.0-SNAPSHOT.zip

It expects a MySQL admin user (for creating the database) with a username of
"root" and a blank password. To change that, pass in -Djdbc.username=foo
-Djdbc.password=bar when you run any Maven commands.

For AppFuse Light, you can reproduce the "can't shut down" issue by running
"mvn jetty:run", then browsing a couple pages (list -> detail) and then
using Ctrl+C to cancel it. This uses Tapestry 4.1.1.

For AppFuse, you can run "mvn" and it'll download Tomcat (using Cargo) and
run UI tests using Canoo WebTest. It runs out of memory near the last test
in the sequence. I've tried it with no JAVA_OPTS set and with the following
and it happens using both:

-Xms768M -Xmx768M -XX:PermSize=512m -XX:MaxPermSize=512m
-Djava.awt.headless=true -XX:+CMSClassUnloadingEnabled
-XX:+CMSPermGenSweepingEnabled -XX:+UseConcMarkSweepGC

Thanks,

Matt


Marcus Schulte wrote:
> 
> There are a couple of reports on the list that seem to point in this
> direction. Especially the HivemindClassPool seems to be a candidate for
> further observation. Since there are productive apps on 4.1.2 with no
> issues, an issue with a sample app / setup to reproduce an OOM would be
> very
> helpful.
> 
> 
> 2007/9/5, mraible <[EMAIL PROTECTED]>:
>>
>>
>> I've been experiencing some OOM issues in a couple applications ever
>> since
>> I
>> upgraded from 4.0.x to 4.1.x. I didn't change any code for the most part,
>> just some descriptors and such. Has anyone else noticed memory-hogging
>> issues with 4.1.x?
>>
>> Even stranger, if I start up my app using "mvn jetty:run", browse a
>> couple
>> pages and hit Ctrl+C, it doesn't kill the process. I have to forcefully
>> kill
>> the process in order to shut down Jetty. This doesn't happen with the
>> other
>> web frameworks I'm using, so I'm confident it's caused by Tapestry 4.1.2.
>>
>> Thanks,
>>
>> Matt
>> --
>> View this message in context:
>> http://www.nabble.com/Memory-issues-with-Tapestry-4.1.x-tf4387514.html#a12508911
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> Marcus Schulte
> http://marcus-schulte.blogspot.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Memory-issues-with-Tapestry-4.1.x-tf4387514.html#a12510029
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: Who Use Tapestry

2007-09-05 Thread Thiago H de Paula Figueiredo
On Wed, 05 Sep 2007 16:33:27 -0300, Carlos Delfino Carvalho Pinheiro  
<[EMAIL PROTECTED]> wrote:



I only see one Brazillina users.

it Have more users in Brazil?


Me too!

Don't know what I'm talking about? Read  
http://catb.org/jargon/html/A/AOL-.html. :)


--
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br

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



Re: Who Use Tapestry

2007-09-05 Thread Carlos Delfino Carvalho Pinheiro
I only see one Brazillina users.

it Have more users in Brazil?

Thanks.


Em 05/09/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
escreveu:
>
> thanks for all!
>
>
>
>
> 2007/9/5, Marcelo Lotif <[EMAIL PROTECTED]>:
> >
> > and here
> > http://wiki.apache.org/tapestry/SuccessStories
> >
> > :)
> >
> > 2007/9/5, Daniel Jue <[EMAIL PROTECTED]>:
> > >
> > > Some people have reported their success here:
> > >
> > > http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
> > >
> > > On 9/5/07, Carlos Delfino Carvalho Pinheiro <
> > > [EMAIL PROTECTED] > wrote:
> > >
> > > >   Hi!
> > > >
> > > >
> > > >
> > > > I need make one document for suggest to my company use Tapestry. But
> > the
> > > > Technical leader ask me about Who use Tapestry.
> > > >
> > > >
> > > >
> > > > Have one Wiki page where users can post you experiences?
> > > >
> > > >
> > > >
> > > > Thanks!
> > > >
> > > >
> > > >
> > > > --
> > > >
> > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > >
> > > > Carlos Delfino -  [image: call_blue_white_124x52]
> > > >
> > > > Consultoria e Gestão de Projetos no Terceiro Setor
> > > >
> > > > http://www.linkedin.com/in/carlosdelfino
> > > >
> > > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > > >
> > > >
> > > >
> > > >
> > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > >
> > >
> >
> >
> > --
> > Atenciosamente,
> > Marcelo Lotif
> >
>
>
>
> --
> Carlos Delfino
> Desenvolvimento de Softwares e Projetos
> TSM Project Leader
> SGAP Project Leader
> PDTec Project Champion
> --
> Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
> visível. Ele é o Clemente, o Misericordioso!
> Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a
> Paz, o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja
> louvado acima dos que os homens Lhe associam!
> Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
> belos" (59, 22-24)




-- 
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
--
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)


Re: Who Use Tapestry

2007-09-05 Thread Carlos Delfino Carvalho Pinheiro
thanks for all!




2007/9/5, Marcelo Lotif <[EMAIL PROTECTED]>:
>
> and here
> http://wiki.apache.org/tapestry/SuccessStories
>
> :)
>
> 2007/9/5, Daniel Jue <[EMAIL PROTECTED]>:
> >
> > Some people have reported their success here:
> >
> > http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
> >
> > On 9/5/07, Carlos Delfino Carvalho Pinheiro <
> > [EMAIL PROTECTED]> wrote:
> >
> > >   Hi!
> > >
> > >
> > >
> > > I need make one document for suggest to my company use Tapestry. But
> the
> > > Technical leader ask me about Who use Tapestry.
> > >
> > >
> > >
> > > Have one Wiki page where users can post you experiences?
> > >
> > >
> > >
> > > Thanks!
> > >
> > >
> > >
> > > --
> > >
> > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > >
> > > Carlos Delfino -  [image: call_blue_white_124x52]
> > >
> > > Consultoria e Gestão de Projetos no Terceiro Setor
> > >
> > > http://www.linkedin.com/in/carlosdelfino
> > >
> > > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> >
> >
>
>
> --
> Atenciosamente,
> Marcelo Lotif
>



-- 
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
--
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)


Re: Memory issues with Tapestry 4.1.x

2007-09-05 Thread Marcus Schulte
There are a couple of reports on the list that seem to point in this
direction. Especially the HivemindClassPool seems to be a candidate for
further observation. Since there are productive apps on 4.1.2 with no
issues, an issue with a sample app / setup to reproduce an OOM would be very
helpful.


2007/9/5, mraible <[EMAIL PROTECTED]>:
>
>
> I've been experiencing some OOM issues in a couple applications ever since
> I
> upgraded from 4.0.x to 4.1.x. I didn't change any code for the most part,
> just some descriptors and such. Has anyone else noticed memory-hogging
> issues with 4.1.x?
>
> Even stranger, if I start up my app using "mvn jetty:run", browse a couple
> pages and hit Ctrl+C, it doesn't kill the process. I have to forcefully
> kill
> the process in order to shut down Jetty. This doesn't happen with the
> other
> web frameworks I'm using, so I'm confident it's caused by Tapestry 4.1.2.
>
> Thanks,
>
> Matt
> --
> View this message in context:
> http://www.nabble.com/Memory-issues-with-Tapestry-4.1.x-tf4387514.html#a12508911
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Marcus Schulte
http://marcus-schulte.blogspot.com


T4.1.2 DropdownDatePicker

2007-09-05 Thread Norman Franke
I'm attempting to convert my application from Tapestry 4.0.2 to 4.1.2  
and I've run into a problem with the DropdownDatePicker component.  
Previously, I used a dojo version and then used an onFocus event to  
parse the data field as needed. This allowed me to take dates in  
almost any format, including "3/13" or "3/13/07" or "31 jul 07", etc.  
This worked rather well.


How can this be done in using the DropdownDatePicker in 4.1.2? I  
tried adding a dojo onValueChanged, but it gets the value after it  
was parsed (typically ending up "12/31/1969". No javascript events  
are called on the DropdownDatePicker itself, e.g. onChange or onBlur,  
since the control ends up as a  block that Tapestry then does  
some magic with behind the scenes.


Any ideas?
Norman



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



Memory issues with Tapestry 4.1.x

2007-09-05 Thread mraible

I've been experiencing some OOM issues in a couple applications ever since I
upgraded from 4.0.x to 4.1.x. I didn't change any code for the most part,
just some descriptors and such. Has anyone else noticed memory-hogging
issues with 4.1.x?

Even stranger, if I start up my app using "mvn jetty:run", browse a couple
pages and hit Ctrl+C, it doesn't kill the process. I have to forcefully kill
the process in order to shut down Jetty. This doesn't happen with the other
web frameworks I'm using, so I'm confident it's caused by Tapestry 4.1.2.

Thanks,

Matt
-- 
View this message in context: 
http://www.nabble.com/Memory-issues-with-Tapestry-4.1.x-tf4387514.html#a12508911
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: Who Use Tapestry

2007-09-05 Thread Marcelo Lotif
and here
http://wiki.apache.org/tapestry/SuccessStories

:)

2007/9/5, Daniel Jue <[EMAIL PROTECTED]>:
>
> Some people have reported their success here:
>
> http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1
>
> On 9/5/07, Carlos Delfino Carvalho Pinheiro <
> [EMAIL PROTECTED]> wrote:
>
> >   Hi!
> >
> >
> >
> > I need make one document for suggest to my company use Tapestry. But the
> > Technical leader ask me about Who use Tapestry.
> >
> >
> >
> > Have one Wiki page where users can post you experiences?
> >
> >
> >
> > Thanks!
> >
> >
> >
> > --
> >
> > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> >
> > Carlos Delfino -  [image: call_blue_white_124x52]
> >
> > Consultoria e Gestão de Projetos no Terceiro Setor
> >
> > http://www.linkedin.com/in/carlosdelfino
> >
> > ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>


-- 
Atenciosamente,
Marcelo Lotif


Re: Who Use Tapestry

2007-09-05 Thread Daniel Jue
Some people have reported their success here:

http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework1

On 9/5/07, Carlos Delfino Carvalho Pinheiro <
[EMAIL PROTECTED]> wrote:
>
>   Hi!
>
>
>
> I need make one document for suggest to my company use Tapestry. But the
> Technical leader ask me about Who use Tapestry.
>
>
>
> Have one Wiki page where users can post you experiences?
>
>
>
> Thanks!
>
>
>
> --
>
> ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
>
> Carlos Delfino -  [image: call_blue_white_124x52]
>
> Consultoria e Gestão de Projetos no Terceiro Setor
>
> http://www.linkedin.com/in/carlosdelfino
>
> ¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


Who Use Tapestry

2007-09-05 Thread Carlos Delfino Carvalho Pinheiro
 

Hi!

 

I need make one document for suggest to my company use Tapestry. But the
Technical leader ask me about Who use Tapestry.

 

Have one Wiki page where users can post you experiences?

 

Thanks!

 

--

¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨

Carlos Delfino -call_blue_white_124x52

Consultoria e Gestão de Projetos no Terceiro Setor

 
http://www.linkedin.com/in/carlosdelfino 

¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨~^.^~¨



 

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

[T5] Tapestry 5 portal/portlet support

2007-09-05 Thread Arint
Does T5 support jsr168?  I saw some blurb about T4 supporting it implicitly 
is it the same for T5? 




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



Re: [T5] xml namespace support (facebook, fbml)

2007-09-05 Thread Fernando Padilla
I was wondering if people could look into this patch and make comments.
 I would love to get it accepted sooner rather than later. :)

https://issues.apache.org/jira/browse/TAPESTRY-1600




Josh Canfield wrote:
> This has been mentioned as a bug in this list, search for *T5: XML
> declaration is missing from rendered page. Any workrounds?*
> 
> While I haven't tried this, I imagine that you could create components to
> work around this for now using MarkupWriter.writeRaw(). Or possibly use the
> OutputRaw component.
> 
> http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/components/OutputRaw.html
> 
> 
> Josh
> 
> On 8/30/07, Fernando Padilla <[EMAIL PROTECTED]> wrote:
>> Hi.  We are going to be writing a facebook application, and we want to
>> use Tapestry 5.  To do so, we have to generate FBML:
>> http://wiki.developers.facebook.com/index.php/FBML
>>
>> We came hit a pretty big snag, in that it doesn't look like tapestry 5
>> support namespaces/prefixes.  Below you see the tapestry template we are
>> using, and you see the output below it.  And we need all of the "fb:"
>> prefixes to stay there, as well as the "xmlns:fb" declaration.
>>
>> Do you have any ideas?  I know I can probably create a component for
>> each element, but that would just be a big unmaintainable pain ( there
>> are like 50 right now and the FBML language changes ).. Or is there a
>> simpler way to maintain lots of mostly the same components :(
>>
>> Any other ideas?
>>
>>
>>
>>
>>
>> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";
>> xmlns:fb="http://apps.facebook.com/ns/1.0";>
>>Welcome
>> Just to prove this is live: 
>> The current time is: ${currentTime}. 
>>
>>[refresh]
>> 
>>
>>
>> 
>>Welcome
>> Just to prove this is live: 
>> The current time is: Thu Aug 30 13:43:19 PDT 2007. 
>>
>>[refresh]
>> 
>>
>>
>> -
>> 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: T5 developing with WTP and TOMCAT

2007-09-05 Thread Brysbaert Gregory
Hello,

About this topic, I tried some investigations on my side, and I found out that 
the reason why classes don't auto-reload is that the WebappClassLoader of 
tomcat 5 (I currently use tomcat 5.0, but I guess it's the same on Tomcat 5.5) 
keeps in cache (in a Hashtable more precisely) all classes it already loaded 
once. 
And this cache is never cleared, except when the WebappClassLoader is stopped.
So, when the class file is modified on the disk, tapestry 5 clears its own 
cache, and then asks to the parent classloader (WebAppClassLoader) to reload 
the class, which then serves the previous version of the class from its cache. 
The result is that the class is never actually updated until the next restart 
of tomcat.

So, as a temporary solution, I tried to develop a class extending 
WebappClassLoader that does not cache classes for packages containing ".pages." 
and ".components.". The source of this class is : 

public class Tapestry5DevClassLoader extends WebappClassLoader{
 
 private static String[] 
noCacheElements={".pages.","/pages/",".components.","/components/"};
 
public Tapestry5DevClassLoader() {
super();

}

public Tapestry5DevClassLoader(ClassLoader arg0) {
super(arg0);

}



@Override
protected InputStream findLoadedResource(String arg0) {
InputStream is=super.findLoadedResource(arg0);
if (is!=null){
if (isNoCacheElement(arg0))
return null;
}
return is;
}

private boolean isNoCacheElement(String name){

for (int i=0;i=0)
return true;
}

return false;

}



}




To make it work, you have to do 2 things :
- Compile the class and add it to the server/classes (or server/lib if you 
package it in a jar) directory of your tomcat installation directory.
- in your server.xml file, modify the context declaration and disable tomcat's 
auto-reloading functionality, and declare the newly created classloader instead 
of the default one :







This is of course a temporary solution, but I tried it and it works for me. 

Waiting for something better, I hope it can help.

Gregory Brysbaert

-Message d'origine-
De : Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 16 août 2007 18:59
À : Tapestry users
Objet : Re: T5 developing with WTP and TOMCAT

On Thu, 16 Aug 2007 12:54:31 -0300, Denny <[EMAIL PROTECTED]> wrote:

> Ok, now, I am using jettylauncher eclipse plugin to develop T5. I hope T5
> can fix the problem about working with tomcat. There are many people  
> using tomcat for develop and product.

It's a Tomcat issue, not a Tapestry one. Howard explains the problem here:  
http://tapestryjava.blogspot.com/2007/02/fighting-with-tomcat.html

-- 
Thiago H. de Paula Figueiredo
Desenvolvedor, Instrutor e Consultor de Tecnologia
Eteg Tecnologia da Informação Ltda.
http://www.eteg.com.br

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



JSON - contentbox dimensions on render within request cycle

2007-09-05 Thread Ken nashua

Folks,

I have my tapestry script oriented now and rendering beautiful javascript 
from within my @Head derivative (custom head component). I am pleased with 
these framework features.


One of the methods in my custom head is header (ie. getHeader()) and this is 
just a background image placed in the top portion of the page utilizing app 
fuses css-framework (header, content, footer) I am just populating those 
div's with imagery.


But I have a problem with populating this header image. On condition it is 
smaller than the content box it does not stretch and I am not about to 
oversize it for automatic reduced scaling.


So now I use JSON and Tapestry Script.

Here is my problem...
PROBLEM: During the render cycle I need to determine what the actual width 
of the content box is and populate that to my javascript in order to resize 
my image to that content box width.


Here is my question...
QUESTION: Which interface method should I override and which part of the 
request cycle (if any) should I attempt to interrogate in order to properly 
gather the correct content box dimensions that the response will render?


I am also curious about which of these I should attempt to exercise and what 
their content may be.


Customhead.JAVA (renders nice now... I need real time scaling)
public abstract IRender getDelegate();
public abstract IRender getAjaxDelegate();

@Override
public void renderComponent(IJSONWriter writer, IRequestCycle cycle)

@Override
protected void renderComponent(IMarkupWriter writer, IRequestCycle 
cycle)

Any direction here is appreciated.

thanks

Below is my current proto for SCRIPT.

Customhead.script


http://jakarta.apache.org/tapestry/dtd/Script_4_0.dtd";>



required="no"/>



dojo.require("tapestry.widget.Widget");
dojo.require("dojo.widget.*");
dojo.require("dojo.html");



function scaleHeader() {
var elementId = 'header';
var headerElement = document.getElementById(elementId);

var cb = dojo.html.getContentBox(headerElement);
var cb = dojo.html.getPaddingBox(headerElement);
var bb = dojo.html.getBorderBox(headerElement);
var mb = dojo.html.getMarginBox(headerElement);
}



window.onload = scaleHeader();



_
Share your special parenting moments! 
http://www.reallivemoms.com?ocid=TXT_TAGHM&loc=us



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



Re: A experimental JPA Module/Service

Dears,

The use is simple!
But I remember is a experimental service, and contributors is welcome! In
begin the project is hosted on PDTec, but if anybody want create for us in
other place is welcome.

well, go to the explanation about use in
http://www.cejug.org/display/~delfino/How+to+use+Tapestry-JPA, the page is
in construction

Thanks.



2007/9/5, Nick Westgate <[EMAIL PROTECTED]>:
> There is a CVS repository:
> https://pdtec.dev.java.net/source/browse/pdtec/
>
> Cheers,
> Nick.
>
>
> Joshua Jackson wrote:
> > Can you also upload the source so we can study it?
> >
> > Thanks in advance.
> >
> > On 9/5/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
wrote:
> >> Hi all!
> >>
> >> I create one new Service for Tapestry, for use with JPA.
> >>
> >> The Service is like Tapestry-Hibernate, and I call Tapestry-JPA.
> >>
> >> For first release go to
> >> http://pdtec.dev.java.net/dist/tapestry-jpa-0.0.2.jar
> >>
> >> Thanks;
> >>
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
--
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)


Re: A experimental JPA Module/Service

but how can we use it? do you have any example?
i'm very interested on it, but i never used Tapestry-Hibernate and don't
have any idea how can i use your service

Thanks in advance!

Em 05/09/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
escreveu:
>
> Source code in CVS:
> https://pdtec.dev.java.net/source/browse/pdtec/Tapestry5/Tapestry-JPA/
>
> You can login on Java.net and request a Observer role or Programmer role
> if
> you want contribute, on project PDTec, and download CVS SubModule:
> pdtec/Tapestry5/Tapestry-JPA
>
> Thanks.
>
>
> 2007/9/5, Joshua Jackson <[EMAIL PROTECTED]>:
> >
> > Can you also upload the source so we can study it?
> >
> > Thanks in advance.
> >
> > On 9/5/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
> > wrote:
> > > Hi all!
> > >
> > > I create one new Service for Tapestry, for use with JPA.
> > >
> > > The Service is like Tapestry-Hibernate, and I call Tapestry-JPA.
> > >
> > > For first release go to
> > > http://pdtec.dev.java.net/dist/tapestry-jpa-0.0.2.jar
> > >
> > > Thanks;
> > >
> >
> >
> > --
> > It's not just about coding, it's a matter of fulfilling your core being
> >
> > YM!: thejavafreak
> > Blog: http://joshuajava.wordpress.com/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Carlos Delfino
> Desenvolvimento de Softwares e Projetos
> TSM Project Leader
> SGAP Project Leader
> PDTec Project Champion
> --
> Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
> visível. Ele é o Clemente, o Misericordioso!
> Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a
> Paz,
> o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
> acima dos que os homens Lhe associam!
> Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
> belos" (59, 22-24)
>



-- 
Atenciosamente,
Marcelo Lotif


Re: A experimental JPA Module/Service

Source code in CVS:
https://pdtec.dev.java.net/source/browse/pdtec/Tapestry5/Tapestry-JPA/

You can login on Java.net and request a Observer role or Programmer role if
you want contribute, on project PDTec, and download CVS SubModule:
pdtec/Tapestry5/Tapestry-JPA

Thanks.


2007/9/5, Joshua Jackson <[EMAIL PROTECTED]>:
>
> Can you also upload the source so we can study it?
>
> Thanks in advance.
>
> On 9/5/07, Carlos Delfino Carvalho Pinheiro <[EMAIL PROTECTED]>
> wrote:
> > Hi all!
> >
> > I create one new Service for Tapestry, for use with JPA.
> >
> > The Service is like Tapestry-Hibernate, and I call Tapestry-JPA.
> >
> > For first release go to
> > http://pdtec.dev.java.net/dist/tapestry-jpa-0.0.2.jar
> >
> > Thanks;
> >
>
>
> --
> It's not just about coding, it's a matter of fulfilling your core being
>
> YM!: thejavafreak
> Blog: http://joshuajava.wordpress.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Carlos Delfino
Desenvolvimento de Softwares e Projetos
TSM Project Leader
SGAP Project Leader
PDTec Project Champion
--
Ele é Deus e não há outro deus senão Ele, Que conhece o invisível e o
visível. Ele é o Clemente, o Misericordioso!
Ele é Deus e não há outro deus senão ele. Ele é o Soberano, o Santo, a Paz,
o Fiel, o Vigilante, o Poderoso, o Forte, o Grande! Que Deus seja louvado
acima dos que os homens Lhe associam!
Ele é Deus, o Criador, o Inovador, o Formador! Para ele os epítetos mais
belos" (59, 22-24)


Re: [T5] SelectObject component added to the Wiki

2007/9/5, Davor Hrg <[EMAIL PROTECTED]>:
>
> I've created a simpler version, this is as simple as I could make it
> without requiring changes to select component.


http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects


a saw and found it interesting, good solution

I belive that having objects in the list is a common case enough
> so simplifying a task like this should be a goal later on in
> development


i hope so :)

Davor Hrg
>
>
> On 9/5/07, Marcelo lotif <[EMAIL PROTECTED]> wrote:
> >
> > ok! thanks! works fine, i will update the wiki
> >
> > 2007/8/31, Davor Hrg <[EMAIL PROTECTED]>:
> > >
> > > If you like digging into tapestry I suggest you start
> > > by removing beanutils dependancy and adding:
> > > @Inject
> > > private PropertyAccess propertyAccess;
> > >
> > > into SelectObject.java
> > > after that use propertyAccess instead of beanutils...
> > > 
> > >
> > > I'm currently building a version that doesn't need
> > > SelectObject component, but uses normal select component.
> > > The code is more complicated than it should be, so I suppose
> > > I might post an enhancement ticket for the Select component.
> >
> >
> > for sure, this solution is way more complicated than it should be, but
> > tapestry limit us too much in this point(as it does in the DatePicker
> > too)... i hope there will be some better solution on the next release.
> >
> > ...
> > > if you like to start with working code ...
> > > here's the changed version that works for me ...
> > >
> > >
> > >
> > >
> > >
> > 
> 
> ---
> > > package test.tapestry;
> > >
> > >
> > > import java.lang.reflect.InvocationTargetException;
> > > import java.util.ArrayList;
> > > import java.util.List;
> > >
> > > import org.apache.tapestry.OptionGroupModel;
> > > import org.apache.tapestry.OptionModel;
> > > import org.apache.tapestry.internal.OptionModelImpl;
> > > import org.apache.tapestry.ioc.services.PropertyAccess;
> > > import org.apache.tapestry.ioc.services.PropertyAdapter;
> > > import org.apache.tapestry.util.AbstractSelectModel;
> > >
> > > /**
> > > * @author jued
> > > *
> > > * @param 
> > > */
> > > public class GenericSelectionModel extends AbstractSelectModel {
> > >
> > > private String labelField;
> > >
> > > private List list;
> > >
> > > private final PropertyAccess adapter;
> > >
> > > public GenericSelectionModel(List list, String labelField,
> > > PropertyAccess adapter) {
> > > this.labelField = labelField;
> > > this.list = list;
> > > this.adapter = adapter;
> > > }
> > >
> > > public List getOptionGroups() {
> > > return null;
> > > }
> > >
> > > public List getOptions() {
> > > List optionModelList = new
> > > ArrayList();
> > > for (T obj : list) {
> > > if (labelField == null) {
> > > optionModelList.add(new
> > > OptionModelImpl(obj
> > > + "", false, obj, new String[0]));
> > > } else {
> > > optionModelList.add(new
> OptionModelImpl(
> > > adapter.get(obj,
> > > labelField)+"", false, obj, new String[0]));
> > > }
> > > }
> > > return optionModelList;
> > > }
> > > }
> > >
> > >
> > 
> 
> ---
> > >
> > >
> > >
> > >
> > 
> 
> ---
> > > package test.tapestry;
> > >
> > > import java.lang.reflect.InvocationTargetException;
> > > import java.util.List;
> > >
> > > import org.apache.tapestry.ValueEncoder;
> > > import org.apache.tapestry.ioc.services.PropertyAccess;
> > > import org.apache.tapestry.ioc.services.PropertyAdapter;
> > >
> > > public class GenericValueEncoder implements ValueEncoder {
> > >
> > > private List list;
> > > private final PropertyAccess access;
> > > private final String fieldName;
> > >
> > > public GenericValueEncoder(List list, String fieldName,
> > > PropertyAccess propertyAccess) {
> > > this.list = list;
> > > this.fieldName = fieldName;
> > > this.access = propertyAccess;
> > > }
> > >
> > > public String toClient(T obj) {
> > > if (fieldName == null) {
> > > return obj + "";
> > > } else {
> > > return access.get(obj,fieldName)+"";
> > > }
> > > }
> > >
> > > public T toValu

Re: [T5] SelectObject component added to the Wiki

oh,
I see you've already changed wiki and linked the pages,

we could discuss this issue further... and write up an enhancement request
ticket.

Davor Hrg

On 9/5/07, Davor Hrg <[EMAIL PROTECTED]> wrote:
>
> I've created a simpler version, this is as simple as I could make it
> without requiring changes to select component.
>
> http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects
>
> I belive that having objects in the list is a common case enough
> so simplifying a task like this should be a goal later on in
> development
>
>
> Davor Hrg
>
>
> On 9/5/07, Marcelo lotif <[EMAIL PROTECTED]> wrote:
> >
> > ok! thanks! works fine, i will update the wiki
> >
> > 2007/8/31, Davor Hrg <[EMAIL PROTECTED]>:
> > >
> > > If you like digging into tapestry I suggest you start
> > > by removing beanutils dependancy and adding:
> > > @Inject
> > > private PropertyAccess propertyAccess;
> > >
> > > into SelectObject.java
> > > after that use propertyAccess instead of beanutils...
> > > 
> > >
> > > I'm currently building a version that doesn't need
> > > SelectObject component, but uses normal select component.
> > > The code is more complicated than it should be, so I suppose
> > > I might post an enhancement ticket for the Select component.
> >
> >
> > for sure, this solution is way more complicated than it should be, but
> > tapestry limit us too much in this point(as it does in the DatePicker
> > too)... i hope there will be some better solution on the next release.
> >
> > ...
> > > if you like to start with working code ...
> > > here's the changed version that works for me ...
> > >
> > >
> > >
> > >
> > >
> > ---
> > > package test.tapestry;
> > >
> > >
> > > import java.lang.reflect.InvocationTargetException;
> > > import java.util.ArrayList;
> > > import java.util.List;
> > >
> > > import org.apache.tapestry.OptionGroupModel;
> > > import org.apache.tapestry.OptionModel ;
> > > import org.apache.tapestry.internal.OptionModelImpl;
> > > import org.apache.tapestry.ioc.services.PropertyAccess;
> > > import org.apache.tapestry.ioc.services.PropertyAdapter;
> > > import org.apache.tapestry.util.AbstractSelectModel ;
> > >
> > > /**
> > > * @author jued
> > > *
> > > * @param 
> > > */
> > > public class GenericSelectionModel extends AbstractSelectModel {
> > >
> > > private String labelField;
> > >
> > > private List list;
> > >
> > > private final PropertyAccess adapter;
> > >
> > > public GenericSelectionModel(List list, String labelField,
> > > PropertyAccess adapter) {
> > > this.labelField = labelField;
> > > this.list = list;
> > > this.adapter = adapter;
> > > }
> > >
> > > public List getOptionGroups() {
> > > return null;
> > > }
> > >
> > > public List getOptions() {
> > > List optionModelList = new
> > > ArrayList();
> > > for (T obj : list) {
> > > if (labelField == null) {
> > > optionModelList.add(new
> > > OptionModelImpl(obj
> > > + "", false, obj, new String[0]));
> > > } else {
> > > optionModelList.add(new
> > OptionModelImpl(
> > > adapter.get(obj,
> > > labelField)+"", false, obj, new String[0]));
> > > }
> > > }
> > > return optionModelList;
> > > }
> > > }
> > >
> > >
> > ---
> >
> > >
> > >
> > >
> > >
> > ---
> > > package test.tapestry;
> > >
> > > import java.lang.reflect.InvocationTargetException;
> > > import java.util.List;
> > >
> > > import org.apache.tapestry.ValueEncoder;
> > > import org.apache.tapestry.ioc.services.PropertyAccess;
> > > import org.apache.tapestry.ioc.services.PropertyAdapter ;
> > >
> > > public class GenericValueEncoder implements ValueEncoder {
> > >
> > > private List list;
> > > private final PropertyAccess access;
> > > private final String fieldName;
> > >
> > > public GenericValueEncoder(List list, String fieldName,
> > > PropertyAccess propertyAccess) {
> > > this.list = list;
> > > this.fieldName = fieldName;
> > > this.access = propertyAccess;
> > > }
> > >
> > > public String toClient(T obj) {
> > > if (fieldName == null) {
> > > return obj + "";
> > > } else {
> > > return acce

Re: [T5] SelectObject component added to the Wiki

I've created a simpler version, this is as simple as I could make it
without requiring changes to select component.

http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects

I belive that having objects in the list is a common case enough
so simplifying a task like this should be a goal later on in development


Davor Hrg


On 9/5/07, Marcelo lotif <[EMAIL PROTECTED]> wrote:
>
> ok! thanks! works fine, i will update the wiki
>
> 2007/8/31, Davor Hrg <[EMAIL PROTECTED]>:
> >
> > If you like digging into tapestry I suggest you start
> > by removing beanutils dependancy and adding:
> > @Inject
> > private PropertyAccess propertyAccess;
> >
> > into SelectObject.java
> > after that use propertyAccess instead of beanutils...
> > 
> >
> > I'm currently building a version that doesn't need
> > SelectObject component, but uses normal select component.
> > The code is more complicated than it should be, so I suppose
> > I might post an enhancement ticket for the Select component.
>
>
> for sure, this solution is way more complicated than it should be, but
> tapestry limit us too much in this point(as it does in the DatePicker
> too)... i hope there will be some better solution on the next release.
>
> ...
> > if you like to start with working code ...
> > here's the changed version that works for me ...
> >
> >
> >
> >
> >
> ---
> > package test.tapestry;
> >
> >
> > import java.lang.reflect.InvocationTargetException;
> > import java.util.ArrayList;
> > import java.util.List;
> >
> > import org.apache.tapestry.OptionGroupModel;
> > import org.apache.tapestry.OptionModel;
> > import org.apache.tapestry.internal.OptionModelImpl;
> > import org.apache.tapestry.ioc.services.PropertyAccess;
> > import org.apache.tapestry.ioc.services.PropertyAdapter;
> > import org.apache.tapestry.util.AbstractSelectModel;
> >
> > /**
> > * @author jued
> > *
> > * @param 
> > */
> > public class GenericSelectionModel extends AbstractSelectModel {
> >
> > private String labelField;
> >
> > private List list;
> >
> > private final PropertyAccess adapter;
> >
> > public GenericSelectionModel(List list, String labelField,
> > PropertyAccess adapter) {
> > this.labelField = labelField;
> > this.list = list;
> > this.adapter = adapter;
> > }
> >
> > public List getOptionGroups() {
> > return null;
> > }
> >
> > public List getOptions() {
> > List optionModelList = new
> > ArrayList();
> > for (T obj : list) {
> > if (labelField == null) {
> > optionModelList.add(new
> > OptionModelImpl(obj
> > + "", false, obj, new String[0]));
> > } else {
> > optionModelList.add(new OptionModelImpl(
> > adapter.get(obj,
> > labelField)+"", false, obj, new String[0]));
> > }
> > }
> > return optionModelList;
> > }
> > }
> >
> >
> ---
> >
> >
> >
> >
> ---
> > package test.tapestry;
> >
> > import java.lang.reflect.InvocationTargetException;
> > import java.util.List;
> >
> > import org.apache.tapestry.ValueEncoder;
> > import org.apache.tapestry.ioc.services.PropertyAccess;
> > import org.apache.tapestry.ioc.services.PropertyAdapter;
> >
> > public class GenericValueEncoder implements ValueEncoder {
> >
> > private List list;
> > private final PropertyAccess access;
> > private final String fieldName;
> >
> > public GenericValueEncoder(List list, String fieldName,
> > PropertyAccess propertyAccess) {
> > this.list = list;
> > this.fieldName = fieldName;
> > this.access = propertyAccess;
> > }
> >
> > public String toClient(T obj) {
> > if (fieldName == null) {
> > return obj + "";
> > } else {
> > return access.get(obj,fieldName)+"";
> > }
> > }
> >
> > public T toValue(String string) {
> > for (T obj : list) {
> > if (fieldName == null) {
> > if ((obj + "").equals(string)) {
> > return obj;
> > }
> > } else {
> > if (access.get(obj,
> > fieldName).equals(s

Re: [T5] SelectObject component added to the Wiki

ok! thanks! works fine, i will update the wiki

2007/8/31, Davor Hrg <[EMAIL PROTECTED]>:
>
> If you like digging into tapestry I suggest you start
> by removing beanutils dependancy and adding:
> @Inject
> private PropertyAccess propertyAccess;
>
> into SelectObject.java
> after that use propertyAccess instead of beanutils...
> 
>
> I'm currently building a version that doesn't need
> SelectObject component, but uses normal select component.
> The code is more complicated than it should be, so I suppose
> I might post an enhancement ticket for the Select component.


for sure, this solution is way more complicated than it should be, but
tapestry limit us too much in this point(as it does in the DatePicker
too)... i hope there will be some better solution on the next release.

...
> if you like to start with working code ...
> here's the changed version that works for me ...
>
>
>
>
> ---
> package test.tapestry;
>
>
> import java.lang.reflect.InvocationTargetException;
> import java.util.ArrayList;
> import java.util.List;
>
> import org.apache.tapestry.OptionGroupModel;
> import org.apache.tapestry.OptionModel;
> import org.apache.tapestry.internal.OptionModelImpl;
> import org.apache.tapestry.ioc.services.PropertyAccess;
> import org.apache.tapestry.ioc.services.PropertyAdapter;
> import org.apache.tapestry.util.AbstractSelectModel;
>
> /**
> * @author jued
> *
> * @param 
> */
> public class GenericSelectionModel extends AbstractSelectModel {
>
> private String labelField;
>
> private List list;
>
> private final PropertyAccess adapter;
>
> public GenericSelectionModel(List list, String labelField,
> PropertyAccess adapter) {
> this.labelField = labelField;
> this.list = list;
> this.adapter = adapter;
> }
>
> public List getOptionGroups() {
> return null;
> }
>
> public List getOptions() {
> List optionModelList = new
> ArrayList();
> for (T obj : list) {
> if (labelField == null) {
> optionModelList.add(new
> OptionModelImpl(obj
> + "", false, obj, new String[0]));
> } else {
> optionModelList.add(new OptionModelImpl(
> adapter.get(obj,
> labelField)+"", false, obj, new String[0]));
> }
> }
> return optionModelList;
> }
> }
>
> ---
>
>
>
> ---
> package test.tapestry;
>
> import java.lang.reflect.InvocationTargetException;
> import java.util.List;
>
> import org.apache.tapestry.ValueEncoder;
> import org.apache.tapestry.ioc.services.PropertyAccess;
> import org.apache.tapestry.ioc.services.PropertyAdapter;
>
> public class GenericValueEncoder implements ValueEncoder {
>
> private List list;
> private final PropertyAccess access;
> private final String fieldName;
>
> public GenericValueEncoder(List list, String fieldName,
> PropertyAccess propertyAccess) {
> this.list = list;
> this.fieldName = fieldName;
> this.access = propertyAccess;
> }
>
> public String toClient(T obj) {
> if (fieldName == null) {
> return obj + "";
> } else {
> return access.get(obj,fieldName)+"";
> }
> }
>
> public T toValue(String string) {
> for (T obj : list) {
> if (fieldName == null) {
> if ((obj + "").equals(string)) {
> return obj;
> }
> } else {
> if (access.get(obj,
> fieldName).equals(string)) {
> return obj;
> }
> }
> }
> return null;
> }
> }
>
> ---
>
>
>
>
> ---
> package test.tapestry.components;
>
> import java.util.List;
> import java.util.Locale;
>
> import org.apache.tapestry.Binding;
> import org.apache.tapestry.Componen

Re: [T5] PageLink cannot be disabled?

On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
> It does render its body, not nothing, if that's what you mean.

Yeah, my mistake :)

> I would prefer that it output a span with any informals (class etc)
> too but the purists don't - had to write my own component for that.

 with an optional class wouldn't kill
anyone? Makes things a lot easier from the designers pov.

-- 
regards,
Robin

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



Re: [T5] PageLink cannot be disabled?


It does render its body, not nothing, if that's what you mean.

I would prefer that it output a span with any informals (class etc)
too but the purists don't - had to write my own component for that.

Cheers,
Nick.


Kolesnikov, Alexander GNI wrote:

Well, this is exactly what it was doing in T4, wasn't it?

-Original Message-
From: Robin Helgelin [mailto:[EMAIL PROTECTED] 
Sent: 05 September 2007 10:51

To: Tapestry users
Subject: Re: [T5] PageLink cannot be disabled?


On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
Put this in your components directory and it will override Tapestry's 
PageLink component unless your classes import the corelib type.


[component snipped]

Semi-OT question :)
Wouldn't a disable PageLink component be better of to render the
link-text without the  instead of not render anything?



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



RE: [T5] PageLink cannot be disabled?

Well, this is exactly what it was doing in T4, wasn't it?

-Original Message-
From: Robin Helgelin [mailto:[EMAIL PROTECTED] 
Sent: 05 September 2007 10:51
To: Tapestry users
Subject: Re: [T5] PageLink cannot be disabled?


On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
> Put this in your components directory and it will override Tapestry's 
> PageLink component unless your classes import the corelib type.

[component snipped]

Semi-OT question :)
Wouldn't a disable PageLink component be better of to render the
link-text without the  instead of not render anything?

-- 
regards,
Robin

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



Re: [T5] PageLink cannot be disabled?

On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
> Put this in your components directory and it will override Tapestry's
> PageLink component unless your classes import the corelib type.

[component snipped]

Semi-OT question :)
Wouldn't a disable PageLink component be better of to render the
link-text without the  instead of not render anything?

-- 
regards,
Robin

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



RE: [T5] PageLink cannot be disabled?

Thanks a lot guys!

-Original Message-
From: Nick Westgate [mailto:[EMAIL PROTECTED] 
Sent: 05 September 2007 10:37
To: Tapestry users
Subject: Re: [T5] PageLink cannot be disabled?


Put this in your components directory and it will override Tapestry's
PageLink component unless your classes import the corelib type.

(I'll submit a JIRA.)

Cheers,
Nick.


// Copyright 2007 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.

package yourapp.components;

import java.util.List;

import org.apache.tapestry.ClientElement;
import org.apache.tapestry.ComponentResources;
import org.apache.tapestry.Link;
import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.PageRenderSupport;
import org.apache.tapestry.annotations.Environmental;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.annotations.SupportsInformalParameters;

/**
  * Generates a render request link to some other page in the
application. If an activation
  * context is supplied (as the context parameter), then the context
values will be encoded into
  * the URL. If no context is supplied, then the target page itself will
supply the context via a
  * passivate event.
  * 
  * Pages are not required to have an activation context. When a page
does have an activation
  * context, the value typically represents the identity of some object
displayed or otherwise
  * manipulated by the page.
  */
@SupportsInformalParameters
public class PageLink implements ClientElement
{
 /** The logical name of the page to link to. */
 @Parameter(required = true, defaultPrefix = "literal")
 private String _page;

 @Inject
 private ComponentResources _resources;

 @Environmental
 private PageRenderSupport _support;

 /**
  * If true, then then no link element is rendered (and no informal
parameters as well). The
  * body is, however, still rendered.
  */
 @Parameter("false")
 private boolean _disabled;

 private String _clientId;

 /**
  * If provided, this is the activation context for the target page
(the information will be
  * encoded into the URL). If not provided, then the target page
will provide its own
  * activation context.
  */
 @Parameter
 private List _context;

 private final Object[] _emptyContext = new Object[0];

 void beginRender(MarkupWriter writer)
 {
 if (_disabled) return;

 _clientId = _support.allocateClientId(_resources.getId());

 Object[] activationContext = _context != null ?
_context.toArray() : _emptyContext;

 Link link = _resources.createPageLink(_page,
_resources.isBound("context"),
 activationContext);

 writer.element("a", "href", link, "id", _clientId);

 _resources.renderInformalParameters(writer);
 }

 void afterRender(MarkupWriter writer)
 {
 if (_disabled) return;

 writer.end(); // 
 }

 public String getClientId()
 {
 return _clientId;
 }
}


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



Re: [T5] PageLink cannot be disabled?


Put this in your components directory and it will override Tapestry's
PageLink component unless your classes import the corelib type.

(I'll submit a JIRA.)

Cheers,
Nick.


// Copyright 2007 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.

package yourapp.components;

import java.util.List;

import org.apache.tapestry.ClientElement;
import org.apache.tapestry.ComponentResources;
import org.apache.tapestry.Link;
import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.PageRenderSupport;
import org.apache.tapestry.annotations.Environmental;
import org.apache.tapestry.annotations.Inject;
import org.apache.tapestry.annotations.Parameter;
import org.apache.tapestry.annotations.SupportsInformalParameters;

/**
 * Generates a render request link to some other page in the application. If an 
activation
 * context is supplied (as the context parameter), then the context values will 
be encoded into
 * the URL. If no context is supplied, then the target page itself will supply 
the context via a
 * passivate event.
 * 
 * Pages are not required to have an activation context. When a page does have 
an activation
 * context, the value typically represents the identity of some object 
displayed or otherwise
 * manipulated by the page.
 */
@SupportsInformalParameters
public class PageLink implements ClientElement
{
/** The logical name of the page to link to. */
@Parameter(required = true, defaultPrefix = "literal")
private String _page;

@Inject
private ComponentResources _resources;

@Environmental
private PageRenderSupport _support;

/**
 * If true, then then no link element is rendered (and no informal 
parameters as well). The
 * body is, however, still rendered.
 */
@Parameter("false")
private boolean _disabled;

private String _clientId;

/**
 * If provided, this is the activation context for the target page (the 
information will be
 * encoded into the URL). If not provided, then the target page will 
provide its own
 * activation context.
 */
@Parameter
private List _context;

private final Object[] _emptyContext = new Object[0];

void beginRender(MarkupWriter writer)
{
if (_disabled) return;

_clientId = _support.allocateClientId(_resources.getId());

Object[] activationContext = _context != null ? _context.toArray() : 
_emptyContext;

Link link = _resources.createPageLink(_page, 
_resources.isBound("context"),
activationContext);

writer.element("a", "href", link, "id", _clientId);

_resources.renderInformalParameters(writer);
}

void afterRender(MarkupWriter writer)
{
if (_disabled) return;

writer.end(); // 
}

public String getClientId()
{
return _clientId;
}
}


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



Re: [T5] PageLink cannot be disabled?

write a mixin that is able to render a pagelink that is disabled and 
attach it to your pagelink component.






"Robin Helgelin" <[EMAIL PROTECTED]> 
05.09.2007 11:14
Bitte antworten an
"Tapestry users" 


An
"Tapestry users" 
Kopie

Thema
Re: [T5] PageLink cannot be disabled?






On 9/5/07, Kolesnikov, Alexander  GNI
<[EMAIL PROTECTED]> wrote:
> Just discovered that PageLink doesn't have a disabled parameter. That's
> a pity. Any ideas how to deal wit this?

Edit the source and provide your solution to the community :)

-- 
regards,
Robin

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




Re: [T5] PageLink cannot be disabled?

On 9/5/07, Kolesnikov, Alexander  GNI
<[EMAIL PROTECTED]> wrote:
> Just discovered that PageLink doesn't have a disabled parameter. That's
> a pity. Any ideas how to deal wit this?

Edit the source and provide your solution to the community :)

-- 
regards,
Robin

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



Re: HandyTapestry 1.2.1 with Flash demos

http://handyedit.com/handytapestry.html

On 9/5/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:
>
> Alexei Orishchenko a écrit :
> > The Flash demos are available:
> > - create component with HandyTapestry (create and edit its class and
> > template)
> > - HandyTapestry configuration
> >
> > The plugin update includes fixes in the configuration and page
> specification
> > handling.
> >
> Some links please ?
>
> thanks
> cyrille
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[T5] PageLink cannot be disabled?

Just discovered that PageLink doesn't have a disabled parameter. That's
a pity. Any ideas how to deal wit this?

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


Re: HandyTapestry 1.2.1 with Flash demos


Alexei Orishchenko a écrit :

The Flash demos are available:
- create component with HandyTapestry (create and edit its class and
template)
- HandyTapestry configuration

The plugin update includes fixes in the configuration and page specification
handling.
  

Some links please ?

thanks
cyrille


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



HandyTapestry 1.2.1 with Flash demos


The Flash demos are available:
- create component with HandyTapestry (create and edit its class and
template)
- HandyTapestry configuration

The plugin update includes fixes in the configuration and page specification
handling.
-- 
View this message in context: 
http://www.nabble.com/HandyTapestry-1.2.1-with-Flash-demos-tf4382876.html#a12494264
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: Editing a db persisted object with BeanEditForm

I think this solution would work, but I don't like the
idea of storing the bean in the session. This
significantly limits the things that user can do:
1) It is not possible to edit 2 beans in 2 windows at
the same time.
2) It breaks back button - if user edits a bean, then
opens other bean for editing and presses Back, he does
not get the previous bean editor. And if the page was
cached then even worse things happen when the form is
submitted, since session already contains different bean.

Imants

Quoting Ned Jackson Lovely <[EMAIL PROTECTED]>:
> On Fri, Aug 31, 2007 at 06:24:58PM +0300, Imants
Firsts wrote:
> > How do I correctly set up a BeanEditForm for editing a
> > hibernate entity?
> 
> I don't think I'm even close to writing idiomatic
Tapestry 5 (if such a
> thing even exists), but here is the pattern I've been
using:
> 
> EditMyBean.java
> ---
> public class EditMyBean {
> 
>   @ApplicationState
>   private MyDBClass _theBean;
> 
>   public MyDBClass getTheBean(){return _theBean;}
> 
>   public void onActivate(long id){
>   _theBean = getDAO().getById(id);
>   }
>   public long onPassivate(){
>   return _theBean.getId();
>   }
> 
> @Component(id = "beanEditForm")
> private BeanEditForm _beanEditForm;
> 
> 
>   public void onValidate(){
>   //Validate the changes. Add errors to the form using
>   //_beanEditForm.recordError(String). This will
automagically
>   //cause the page to redisplay.
>   }
> 
>   public void onSuccess(){
>   getDAO().saveOrUpdate(_theBean);
>   }
> }
> ---
> 
> EditMyBean.html
> ---
> http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
> EditMyBean
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> ---
> 
> 
> -- 
> njl


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



Re: T3: CheckBox


You can write your own selection model, or of course use what others have
already written to address this problem.

Check out this thread:
http://www.nabble.com/Multiple-Select-tf144431.html#a400648

Since you are using a list it's easiest to use Robert's 
ListPropertySelectionModel.
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SListPropertySelectionModel

Cheers,
Nick.


Nazmul Bhuiyan wrote:

Hi Nick,

Is there any method that I can use to create a ObjectPropertySelectionModel
model instead of StringPropertySelectionModel as below?

public static final IPropertySelectionModel theModel = 
new StringPropertySelectionModel(new String[] {"a", "b", "c"}); 


My page displays a list of objects and I want select some of these objects
and do something about it.


Thanks

Naz


Nick Westgate wrote:

You'll want to use the MultiplePropertySelection component:
http://tapestry.apache.org/tapestry3/doc/api/org/apache/tapestry/contrib/form/MultiplePropertySelection.html

If you need to change the rendering style you can just grab
the source for the default renderer (which generates a table)
and change it to output things differently.

Cheers,
Nick.


Nick Westgate wrote:

It depends how T3's method matching works, but you might need:
public void formSubmit(IRequestCycle cycle)

Note the I in IRequestCycle.

Cheers,
Nick.


Nazmul Bhuiyan wrote:

Hello,

I’ve a list of objects displayed in a page. I want to collect ids of
selected object by adding a check box for each of these objects. Then 
I’ll

use another action event to do something with this collection of ids.

But I’m getting the following error message:

Unable to resolve expression 'formSubmit' for
[EMAIL PROTECTED] 


binding:ExpressionBinding[InfringementsMaint formSubmit]
location:context:/InfringementsMaint.html, line 10

Can any one please help me out on this?

My code below:

.html


Infringement List

Inf Type
Tran Type
Name
Address
Offence
Reminder
Edit/Delete
Add to Batch










selected="ognl:addToBatch"/>






.page
persistent="yes"/>


.java
public abstract boolean isAddToBatch();
public abstract void setAddToBatch(boolean value);

public void formSubmit(RequestCycle cycle) {
if (isAddToBatch()) {
   //Get all the infringement Id to add into Batch and add 
them into

a collection
}
}


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



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







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



[Tap4.1.2-Ognl2.7]OGNL error


Hello

I come on a strange stuff. An ognl expression is well working but I see 
a Hivemind exception in log.


In a html file I affect a value to a property :
value="ognl:currentlocaleCode=page.engine.locale.language"/>


The property is defined in the specification page :


The result works: if I display the value of "currentlocaleCode" I well 
get the current locale language code



So all stuffs seems ok. But while I'm looking at log (in Eclipse 
console) I can see that the expression evaluation throw a exception :


22953 [http-8080-2] ERROR 
org.apache.tapestry.services.impl.HiveMindExpressionCompiler  - Error 
generating OGNL statements for expression currentlocaleCode = 
page.engine.locale.language with root 
[EMAIL PROTECTED]/$Util$LocaleSelectionFlags]
org.apache.hivemind.ApplicationRuntimeException: Unable to add method 
void set(ognl.OgnlContext, java.lang.Object, java.lang.Object) to class 
$ASTAssign_11491e63e30: [source error] ; is missing
  at 
org.apache.tapestry.enhance.ClassFabImpl.addMethod(ClassFabImpl.java:278)
  at 
org.apache.tapestry.services.impl.HiveMindExpressionCompiler.compileExpression(HiveMindExpressionCompiler.java:214) 


  at ognl.OgnlRuntime.compileExpression(OgnlRuntime.java:498)
  at ognl.Ognl.compileExpression(Ognl.java:141)
  at 
org.apache.tapestry.services.impl.ExpressionCacheImpl.parse(ExpressionCacheImpl.java:152) 

  at 
org.apache.tapestry.services.impl.ExpressionCacheImpl.getCompiledExpression(ExpressionCacheImpl.java:115) 

  at 
$ExpressionCache_11491e63db9.getCompiledExpression($ExpressionCache_11491e63db9.java) 

  at 
org.apache.tapestry.binding.ExpressionBinding.resolveExpression(ExpressionBinding.java:134) 

  at 
org.apache.tapestry.binding.ExpressionBinding.getObject(ExpressionBinding.java:125) 

  at 
org.apache.tapestry.AbstractComponent.renderInformalParameters(AbstractComponent.java:290) 


  at org.apache.tapestry.components.Any.renderComponent(Any.java:38)

Any Idea ?
Why the page and property value are well render without a exception page ?

In a previous post Marcus Schulte told me that "The OGNL 
Expression-Compiler falls back from the new, byte-code
generating mode to the old, interpreting mode when an error occurs." and 
to try with Ognl v2.7.

But I'm using Tap4.1.2 which already comes with ognl 2.7.

Cyrille

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



Re: T5 on JDK 1.6 or newer

On 9/5/07, Stephan Schwab <[EMAIL PROTECTED]> wrote:

> Although this is really not a good way to investigate a bug (lack of time), I
> still want to report that our application has been running fine since
> upgrading to "JVM 6 update 2". So it seems that it was the JVM bug Howard
> mentioned before and it is indeed fixed. If it shows up again, I'll post
> about it.

Thanks for this follow up, very much appreciated.

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

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



Re: T5: How to use org.apache.tapestry.corelib.components.Select ?

Daniel Jue started the interest and created nice examples...

I've played arround with examples from the wiki and created a simplified
SelectModel
without BeanUtils dependancy

http://wiki.apache.org/tapestry/Tapestry5HowtoSelectWithObjects


the catch is that you still need to inject PropertyAccess service into your
page
to supply it to this SelectModel implementation which is from my point of
view more than user should know about tapestry for doing such a simple task
(of course if example @inject is provided in the doc for the model ... thna
it's ok I guess...)

Davor Hrg

On 9/5/07, Joshua Jackson < [EMAIL PROTECTED]> wrote:
>
> Again,
>
> Thanks very much Nick.
>
> I'm interested with the code from here:
> http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+5+GenericSelectionModel
>
>
> I think it would be great if it is bundled in T5 core. :)
>
> Thanks in advance
>
> On 9/5/07, Nick Westgate <[EMAIL PROTECTED]> wrote:
> > Even if you supply a ValueEncode you might run into a bug in T5.0.5.
> > https://issues.apache.org/jira/browse/TAPESTRY-1597
> > (This was just fixed in SVN.)
> >
> > Anyway, your first stop for questions like this should be:
> > http://wiki.apache.org/tapestry/Tapestry5HowTos
> >
> > Cheers,
> > Nick.
> >
> >
> > Joshua Jackson wrote:
> > > Dear all,
> > >
> > > I had a problem using the Select component.
> > >
> > > I have a List of Members that I want to populate into the Select
> component.
> > >
> > > Here is my html template:
> > > 
> > >
> > > And here's my Page class:
> > > @Inject @Parameter Member member;
> > > private List members;
> > >
> > > But I get this exception:
> > > No adapter from type com.taxandtech.projexion.entities.Member to type
> > > org.apache.tapestry.services.ValueEncoderFactory is available
> > > (registered types are java.lang.Enum, java.lang.String).
> > >
> > > I've tried adding a ValueEncoder, although it hasn't worked yet but it
> > > seems to be a long way to register the Member entity to the value
> > > encoder. Is there an easier way to use the Select component?
> > >
> > > Thanks in advance.
> > >
> > > :)
> > >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> It's not just about coding, it's a matter of fulfilling your core being
>
> YM!: thejavafreak
> Blog: http://joshuajava.wordpress.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>