RE: Temporary objects in OGNL

2007-12-31 Thread Marcus.Schulte
Have a look at

http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/varref.html

I tend to use complex ognl for rapid view development (dynamic reload).
After that, I move complex expressions into Java-code.

 -Original Message-
 From: Kaspar Fischer [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, December 29, 2007 2:53 PM
 To: Tapestry users
 Subject: Temporary objects in OGNL
 
 Hi!
 
 My Tapestry markup quite often contains repetitions like this:
 
   span jwcid=@If  
 condition=ognl:components.table.tableRow.getProperty('title')! 
 =nullcomponents.table.tableRow.getProperty('title').length()0
span jwcid=@Insert  
 value=ognl:components.table.tableRow.getProperty('title')/span
   /span
   span jwcid=@Else key=untitled-document/
 
 Is there an easy way to assign the result of a complicated 
 (and potentially
 expensive) OGNL expression to a temporary object and reuse this later?
 
 Something like:
 
span jwcid=@Remember  
 value=ognl:components.table.tableRow.getProperty('title') 
 name=that
  span jwcid=@If condition=ognl:that!=nullthat.length()0
...
 
 Or is there another trick I've overseen?
 
 Thanks,
 Kaspar
 
 
 -
 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 change validation messages for others locales and langs ?

2007-12-31 Thread Mohammad Shamsi
Hi friends,

where can i found validations messages catalog ?.
i want to add persian validation messages.


-- 
sincerely yours
M. H. Shamsi


[t5] need for integer and float number validation ?

2007-12-31 Thread Mohammad Shamsi
Hi All,

i now that with regexp validation i can validate integer and float numbers.
but for simpler use, adding integer and float validators is a good idea.

is there any plan to adding validations like this ?

-- 
sincerely yours
M. H. Shamsi


Re: [T5] how to change validation messages for others locales and langs ?

2007-12-31 Thread Massimo Lusetti
On Dec 31, 2007 11:11 AM, Mohammad Shamsi [EMAIL PROTECTED] wrote:
 Hi friends,

 where can i found validations messages catalog ?.

Into the source tree, src/main/resources...

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

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



Re: HAPPY CHRISTMAS,

2007-12-31 Thread Chris Lewis

And best wishes to you!

Mohammad Shamsi wrote:

HAPPY CHRISTMAS,

let pray for peace and better world in new year.

with the best wishes in new year for all my friends in tapestry mailing
list.
  



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



Re: [T5] how to change validation messages for others locales and langs ?

2007-12-31 Thread Lauri Benno

Take a look at
http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner


dalahoo wrote:
 
 Hi friends,
 
 where can i found validations messages catalog ?.
 i want to add persian validation messages.
 
 
 -- 
 sincerely yours
 M. H. Shamsi
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--how-to-change-validation-messages-for-others-locales-and-langs---tp14556003p14556372.html
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: event onChange for select component

2007-12-31 Thread dwi ardi irawan
it works but in the Object onSuccessFromPlayerForm() method.
so it will mess the delete process from checkbox
any idea ? i'm stuck with it ^_^


--
PlayerGrid.tml
form t:type=Form t:id=playerForm
table
tr
td
div class=buttons
a t:type=pagelink 
page=admin/PlayerForm
class=positiveNew/a
button 
type=submit class=negativeDelete/button  
/div  
/td
td align=right  

select 
t:type=select model='First Name, Last Name, Club
Name, Position' value=prop:searchField
onchange=this.form.submit()/
input 
t:type=TextField value=keyword class=searchForm/
input 
t:type=Submit t:id=searchSubmit class=search
value=Search/
/td
/tr
tr
td colspan=2nbsp;/td
/tr
tr
td colspan=2
table t:type=grid 
rowsPerPage=5 pagerPosition=top
source=playerList row=player model=playerModel remove=idPlayer
reorder=actions
t:parameter 
name=actionsCell
input 
t:type=Checkbox t:id=delete value=delete/
a 
t:type=PageLink t:id=update page=admin/PlayerForm
context=player.idPlayer

img t:type=Image src=images/edit.gif//a
/t:parameter  

/table

/td
/tr
tr
td colspan=2nbsp;/td
/tr
/table

-
PlayerGrid.java
public class PlayerGrid extends SecureBasePage{
@Inject
private IPlayerDao playerDao;
private ListPlayer playerList;
private Player player;

@Retain
private BeanModel playerModel;
@Inject
private BeanModelSource beanModelSource;
@Inject
private ComponentResources resources;


@Persist(flash)
private String searchField;
private String keyword;
private boolean delete;
private ListString deletedList;


public Player getPlayer() {
return player;
}
public void setPlayer(Player player) {
this.player = player;
}
public IPlayerDao getPlayerDao() {
return playerDao;
}




public String getSearchField() {
return searchField;
}
public void setSearchField(String searchField) {
this.searchField = searchField;
}
public String getKeyword() {
return keyword;
}
public void setKeyword(String keyword) {
this.keyword = keyword;
}
public boolean isDelete() {
return delete;
}

public void setDelete(boolean delete) {
if(delete){
getDeletedList().add(getPlayer().getIdPlayer());
}
this.delete = delete;
}


public ListString getDeletedList() {
if(deletedList == null){
deletedList = new ArrayListString();
}
return deletedList;
}
public ListPlayer getPlayerList() {
if(playerList == null){
playerList = new ArrayListPlayer();
playerList = getPlayerDao().queryForList(, );
}
return 

Re: [T5] how to change validation messages for others locales and langs ?

2007-12-31 Thread Mohammad Shamsi
Thanks Lauri,

according to the wiki page, i create a ValidationMessage_fa.properties in
org.apache.tapestry.internal package. in its work fine.

but, is there any better location to place this file instead of
org.apache.tapestry.internal ?

On Dec 31, 2007 2:33 PM, Lauri Benno [EMAIL PROTECTED] wrote:


 Take a look at

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


 dalahoo wrote:
 
  Hi friends,
 
  where can i found validations messages catalog ?.
  i want to add persian validation messages.
 
 
  --
  sincerely yours
  M. H. Shamsi
 
 

 --
 View this message in context:
 http://www.nabble.com/-T5--how-to-change-validation-messages-for-others-locales-and-langs---tp14556003p14556372.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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




-- 
sincerely yours
M. H. Shamsi


RE: T-4.1.3 build failure...mojo descriptors found in plugin

2007-12-31 Thread Ken in nashua

Jesse,
 
I regard your attention on this... and yes it is unreasonable to update all the 
tags.
 
It would be nice if 4.1.3 could be updated though. It is on a close enough 
boundary to warrant that. 
 
I anticipate some time opening up for 2008 to provide limited assistance and 
happy to help out where I can. If someone wants to authorize checkin priv's for 
me please advise. Thanks
 
Best regards
 
Ken in nashua
_
i’m is proud to present Cause Effect, a series about real people making a 
difference.
http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect

Re: [T5] how to change validation messages for others locales and langs ?

2007-12-31 Thread Lauri Benno

No, it has to be in this catalog. But if you are using Maven you can place
the messages file in resources catalog instead of sources catalog. Just
create in your project catalog a new catalog
/src/main/resources/org/apache/tapestry/internal and place
ValidationMessage_fa.properties in it. 

Lauri


dalahoo wrote:
 
 Thanks Lauri,
 
 according to the wiki page, i create a ValidationMessage_fa.properties in
 org.apache.tapestry.internal package. in its work fine.
 
 but, is there any better location to place this file instead of
 org.apache.tapestry.internal ?
 
 On Dec 31, 2007 2:33 PM, Lauri Benno [EMAIL PROTECTED] wrote:
 

 Take a look at

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


 dalahoo wrote:
 
  Hi friends,
 
  where can i found validations messages catalog ?.
  i want to add persian validation messages.
 
 
  --
  sincerely yours
  M. H. Shamsi
 
 

 --
 View this message in context:
 http://www.nabble.com/-T5--how-to-change-validation-messages-for-others-locales-and-langs---tp14556003p14556372.html
 Sent from the Tapestry - User mailing list archive at Nabble.com.


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


 
 
 -- 
 sincerely yours
 M. H. Shamsi
 
 

-- 
View this message in context: 
http://www.nabble.com/-T5--how-to-change-validation-messages-for-others-locales-and-langs---tp14556003p14557039.html
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: Displaying form data in Tapestry 5

2007-12-31 Thread Howard Lewis Ship
I believe this is covered in the tutorial.

It is important that data that must survive from one request to
another be stored in a field marked with @Persist.  Tapestry manages
the HttpSession for you, triggered by the @Pesist annotation (and a
few others).  Tapestry 5, like Portlets, uses seperate requests for
actions (such as a form submission) and rendering responses.

On Dec 26, 2007 1:35 AM, Yeeswara Nadapana (HCL Financial Services)
[EMAIL PROTECTED] wrote:

 Hi,

 I am using Tapestry 5. When I submit a form, how do I display the form's
 data on a freshly injected page? Please help


 Thanks,
 Yeeswar.

 DISCLAIMER:
 ---

 The contents of this e-mail and any attachment(s) are confidential and 
 intended for the named recipient(s) only.
 It shall not attach any liability on the originator or HCL or its affiliates. 
 Any views or opinions presented in
 this email are solely those of the author and may not necessarily reflect the 
 opinions of HCL or its affiliates.
 Any form of reproduction, dissemination, copying, disclosure, modification, 
 distribution and / or publication of
 this message without the prior written consent of the author of this e-mail 
 is strictly prohibited. If you have
 received this email in error please delete it and notify the sender 
 immediately. Before opening any mail and
 attachments please check them for viruses and defect.

 ---

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





-- 
Howard M. Lewis Ship

Creator Apache Tapestry and Apache HiveMind

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



Re: [T5] how to change validation messages for others locales and langs ?

2007-12-31 Thread Josh Canfield
I have only used this with validators that I've created, but you could try
adding a new configuration source in your AppModule.

public void contributeValidationMessagesSource(ConfigurationString
configuration) {
configuration.add
(com/thedailytube/ui/tapestry/validator/Messages.properties);
}
Josh

On Dec 31, 2007 3:46 AM, Mohammad Shamsi [EMAIL PROTECTED] wrote:

 Thanks Lauri,

 according to the wiki page, i create a ValidationMessage_fa.properties in
 org.apache.tapestry.internal package. in its work fine.

 but, is there any better location to place this file instead of
 org.apache.tapestry.internal ?

 On Dec 31, 2007 2:33 PM, Lauri Benno [EMAIL PROTECTED] wrote:

 
  Take a look at
 
 
 http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
 
 
  dalahoo wrote:
  
   Hi friends,
  
   where can i found validations messages catalog ?.
   i want to add persian validation messages.
  
  
   --
   sincerely yours
   M. H. Shamsi
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/-T5--how-to-change-validation-messages-for-others-locales-and-langs---tp14556003p14556372.html
  Sent from the Tapestry - User mailing list archive at 
  Nabble.comhttp://nabble.com/
 .
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 sincerely yours
 M. H. Shamsi




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


ApplicationState example

2007-12-31 Thread Adhitya Chittur
Hi,

I'm new to Tapestry 5 and am having some problems using the ApplicationState
annotation, and the available official documentation isn't sufficient for me
to figure out what I'm doing wrong.  Does anybody know of some canonical
examples floating around, I can't seem to find any?

Cheers,
~asc


Tapestry Shopping Cart?

2007-12-31 Thread Mike Leonardo
I have a project that I'd like to do with Tapestry 4 - but it requires
the use of a shopping cart. Anyone have any good tips on possible
solutions? 

Most shopping cart packages are written in Perl or PHP and I'd rather
not have some mutant merge of them with my elegant tapestry templates.

I'd love if I could find a tapestry compatible shopping cart... I was
also looking at the Paypal shopping cart (off-site shopping cart), but
it has practically no flexibility (can't view cart items on your own
site, etc).

Any ideas out there?

- Mike


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



T5.0.7+ NoClassDefFoundError

2007-12-31 Thread Daniel Jue
Hi, I finally took the plunge and I am migrating from 5.0.5 to 5.0.7.
(I also tried 5.0.8-Snapshot with the same issue)
I am using Tapestry Hibernate as well, but I don't think it's a problem.
After following the instructions on Migrating from 5.0.5 to 5.0.6, I
am running into a problem on a page that has many levels of nested
components.
On some pages with nested components, the application works as
expected.  The components that are causing failure are extending an
abstract base class that exists in a base/ directory.

I am running this with Tomcat.
There are a couple of bubble up Tapestry Exceptions before this, but
they don't really add to the issue.

#  org.apache.tapestry.internal.services.TransformationException
com/mycompany/myapp/wui/tapestry/components/setup/SelectDatabase

transformation

InternalClassTransformation[
public com.mycompany.myapp.wui.tapestry.components.setup.SelectSessionLevel
extends java.lang.Object
  implements org.apache.tapestry.runtime.Component,
org.apache.tapestry.runtime.RenderCommand

add default method: public void postRenderCleanup()
default

add default method: public void
setupRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
beginRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
beforeRenderTemplate(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
afterRenderTemplate(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
beforeRenderBody(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
afterRenderBody(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
afterRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public void
cleanupRender(org.apache.tapestry.MarkupWriter $1,
org.apache.tapestry.runtime.Event $2)
default

add default method: public boolean
handleComponentEvent(org.apache.tapestry.runtime.ComponentEvent $1)
default

add default method: public org.apache.tapestry.ComponentResources
getComponentResources()
default

add default method: public void containingPageDidLoad()
default

add default method: public void containingPageDidDetach()
default

add default method: public void containingPageDidAttach()
default

add field: protected final
org.apache.tapestry.internal.InternalComponentResources _$resources;

replace method: public final
org.apache.tapestry.ComponentResources getComponentResources()
return _$resources;

add field: protected final
org.apache.tapestry.services.ApplicationStateManager
_$applicationStateManager;

add field: protected final java.lang.Class _$setupRP_type;

add method: private
com.mycompany.myapp.model.reporting.util.ReportPreferences
_$read_setupRP()
return (com.mycompany.myapp.model.reporting.util.ReportPreferences)
_$applicationStateManager.get(_$setupRP_type);

replace read setupRP: _$read_setupRP();

add method: private void
_$write_setupRP(com.mycompany.myapp.model.reporting.util.ReportPreferences
$1)
_$applicationStateManager.set(_$setupRP_type, $1);

replace write setupRP: _$write_setupRP();

remove field setupRP;

add method: private boolean _$read_setupRPExists()
return _$applicationStateManager.exists(_$setupRP_type);

replace read setupRPExists: _$read_setupRPExists();

add method: private void _$write_setupRPExists(boolean $1)
throw new java.lang.RuntimeException(Field
com.mycompany.myapp.wui.tapestry.components.setup.SelectSessionLevel.setupRPExists
is read-only.);

replace write setupRPExists: _$write_setupRPExists();

remove field setupRPExists;

add field: protected final java.lang.Class _$user_type;

add method: private
com.mycompany.myapp.accounts.util.security.CustomUser _$read_user()
return (com.mycompany.myapp.accounts.util.security.CustomUser)
_$applicationStateManager.get(_$user_type);

replace read user: _$read_user();

add method: private void
_$write_user(com.mycompany.myapp.accounts.util.security.CustomUser $1)
_$applicationStateManager.set(_$user_type, $1);

replace write user: _$write_user();

remove field user;

add method: private boolean _$read_userExists()
return _$applicationStateManager.exists(_$user_type);

replace read userExists: _$read_userExists();

add method: private void _$write_userExists(boolean $1)
throw new java.lang.RuntimeException(Field
com.mycompany.myapp.wui.tapestry.components.setup.SelectSessionLevel.userExists
is read-only.);

replace write userExists: 

Re: Tapestry Shopping Cart?

2007-12-31 Thread Andreas Andreou
Perhaps take a look at http://freebookie.org/app (
http://code.google.com/p/bookie/ )

The way they handle bet selection is really like a shopping cart and since the
source is available it might give you some ideas.

On Dec 31, 2007 11:15 PM, Mike Leonardo [EMAIL PROTECTED] wrote:
 I have a project that I'd like to do with Tapestry 4 - but it requires
 the use of a shopping cart. Anyone have any good tips on possible
 solutions?

 Most shopping cart packages are written in Perl or PHP and I'd rather
 not have some mutant merge of them with my elegant tapestry templates.

 I'd love if I could find a tapestry compatible shopping cart... I was
 also looking at the Paypal shopping cart (off-site shopping cart), but
 it has practically no flexibility (can't view cart items on your own
 site, etc).

 Any ideas out there?

 - Mike


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





-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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



T5 : pop up windows and refesh parent

2007-12-31 Thread dwi ardi irawan
hi..i've got another problem here

i try shing man component :
PageLinkPopup (from tassel)

and tried this :
[PlayerGrid.tml]
a href=# t:type=man/pagelinkPopup t:page=admin/PlayerSearch
   windowName=literal:Sum

features=literal:'resizable,scrollbars,top=100,left=200,height=250,width=300'Search/a

code above is display the search page...
in the seach page pop up,
when i enter the keywords and submit it, i called onclick=
opener.location.reload(true); in the submit button.

the data in the PlayerGrid.tml changed only if i push the submit button
twice

here's the code in the PlayerSearch.java
void onSuccessFromSearchPlayerForm(){
List playerList = getPlayerDao().queryForList(\FIRST_NAME\= '+
getSearchFirstName()+' ,);
playerGrid.setPlayerList(playerList);
}

does anybody know what is going on with my code or tapestry treat onClick
differently ?

-- 
http://dwiardiirawan.blogspot.com
cos everyone could be extraordinary...lighten up !


Re: [T5] how to change validation messages for others locales and langs ?

2007-12-31 Thread Mohammad Shamsi
Hi Josh

thanks, it work with tapestry built in validators messages too.

i just add this method to my AppModule :

public void contributeValidationMessagesSource(ConfigurationString
 configuration) {
 configuration.add
 (org/shams/phonebook/ValidationMessages.properties);
 }



On Dec 31, 2007 11:45 PM, Josh Canfield [EMAIL PROTECTED] wrote:

 I have only used this with validators that I've created, but you could try
 adding a new configuration source in your AppModule.

public void contributeValidationMessagesSource(ConfigurationString
 configuration) {
configuration.add
 (com/thedailytube/ui/tapestry/validator/Messages.properties);
}
 Josh

 On Dec 31, 2007 3:46 AM, Mohammad Shamsi [EMAIL PROTECTED] wrote:

  Thanks Lauri,
 
  according to the wiki page, i create a ValidationMessage_fa.properties
 in
  org.apache.tapestry.internal package. in its work fine.
 
  but, is there any better location to place this file instead of
  org.apache.tapestry.internal ?
 
  On Dec 31, 2007 2:33 PM, Lauri Benno [EMAIL PROTECTED] wrote:
 
  
   Take a look at
  
  
 
 http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
  
  
   dalahoo wrote:
   
Hi friends,
   
where can i found validations messages catalog ?.
i want to add persian validation messages.
   
   
--
sincerely yours
M. H. Shamsi
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/-T5--how-to-change-validation-messages-for-others-locales-and-langs---tp14556003p14556372.html
   Sent from the Tapestry - User mailing list archive at Nabble.com
 http://nabble.com/
  .
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  sincerely yours
  M. H. Shamsi
 



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




-- 
sincerely yours
M. H. Shamsi