Re: t5components/TabSet

2009-05-06 Thread Fernanda C. Carmo

Thank you, Thiago!!! You solved my problem. I'm going to study more about
binding parameters ;)


Thiago H. de Paula Figueiredo wrote:
> 
> Em Wed, 06 May 2009 15:56:59 -0300, Fernanda C. Carmo  
>  escreveu:
>> tml: panelIds="listPanelIds"
> 
> Try panelIds="prop:listPanelIds". That will probably solve the problem.
> Looking at the component source, I find this:
> 
> @Parameter(required = true, defaultPrefix = "list")
> private List panelIds;
> 
> The defaultPrefix attribute defines that the panelIds attribute has the  
> default binding of "list", so writing panelIds="listPanelIds" is the same  
> as panelIds="list:listPanelIds". But you can always override the default  
> binding by writing it explicitly: panelIds="prop:listPanelIds". ;)
> 
> Has it solved your problem?
> 
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java consultant, developer, and instructor
> http://www.arsmachina.com.br/thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 


-
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/t5components-TabSet-tp23413228p23413791.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



t5components/TabSet

2009-05-06 Thread Fernanda C. Carmo

Hi,
Given t5components/TabSet:

  
http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/TabSet.html

In the example, we have panelIds="list:'stuff1','stuff2','stuff3'". But I'm
trying to do the TabSet with dynamic "panelIds" parameter. 

The "panelIds" parameter's type is a List. So I tried to do this way:

tml: panelIds="listPanelIds"

java:
public List getListPanelIds() {
  // return some ArrayList
}

But it didn't work :(

Can anyone help me?

Thanks!
Fernanda.
   

-
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/t5components-TabSet-tp23413228p23413228.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: T5 - app.properties using charset "iso-8859-1"

2009-04-09 Thread Fernanda C. Carmo

Roberto, 

Thanks for the reply. 

Fernanda.

Tapestry Infodea wrote:
> 
> I believe that it's not possible. You can resolve as follows:
> 
> http://wiki.apache.org/tapestry/Tapestry5HowToOverrideTheDefaultErrorMessageBanner
> 
> and converting the original Errors_xx.properties to UTF-8.
> 
> Roberto.
> 
> 
> Fernanda C. Carmo ha scritto:
>> It´s possible to tell Tapestry (5.0.18) to use a diferent charset
>> (especifically "iso-8859-1") when reading the properties file? How i do
>> it? 
>> I put 
>> 
>> configuration.add(SymbolConstants.CHARSET, "iso-8859-1");
>> 
>> in the contributeApplicationDefaults(MappedConfiguration
>> configuration) method and I created a app_pt.properties but none of these
>> worked.
>> 
>> Thanks!
>> 
>> -
>> Fernanda Cristina do Carmo
>> System Analyst and Java Developer
>> MSN/GoogleTalk: fernanda.ca...@gmail.com
>> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 


-
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/T5---app.properties-using-charset-%22iso-8859-1%22-tp22970164p22977847.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



T5 - app.properties using charset "iso-8859-1"

2009-04-09 Thread Fernanda C. Carmo

It´s possible to tell Tapestry (5.0.18) to use a diferent charset
(especifically "iso-8859-1") when reading the properties file? How i do it? 
I put 

configuration.add(SymbolConstants.CHARSET, "iso-8859-1");

in the contributeApplicationDefaults(MappedConfiguration
configuration) method and I created a app_pt.properties but none of these
worked.

Thanks!

-
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/T5---app.properties-using-charset-%22iso-8859-1%22-tp22970164p22970164.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: multiple context values

2009-04-02 Thread Fernanda C. Carmo

Thiago and Filip, thank you very much!

Actually, I have an object ProjectVersion with the composite primary key. 
So in ListProjectVersionPage I would like to go to EditProjectVersionPage
this way:

public Object onActionFromEditProjectVersion(EventContext context) {

Integer proCodigo = context.get(Integer.class, 0);
Integer vprCodigo = context.get(Integer.class, 1);
projectVersion =
projectVersionService.getProjectVersionFromPK(proCodigo, vprCodigo);

editProjectVersionPage.setProjectVersion(projectVersion);
return editProjectVersionPage;
}

It works fine! But maybe it's not the best way.

Is there any other way to have only one parameter ProjectVersion like this?

public Object onActionFromEditProjectVersion(ProjectVersion
projectVersion) {

editProjectVersionPage.setProjectVersion(projectVersion);
return editProjectVersionPage;
}

Thanks again!


Thiago H. de Paula Figueiredo wrote:
> 
> On Wed, Apr 1, 2009 at 7:45 PM, Filip S. Adamsen  wrote:
>> What about contributing a ValueEncoder that converts between a ProductId
>> and a String? I haven't needed to work with composite primary keys, so I
>> can't say if it'd work, but it's worth a shot.
> 
> This is a more reusable solution than the one I've suggested before,
> so that's the one I recommend. ;)
> 
> -- 
> Thiago
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 
> 
> 


-
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/multiple-context-values-tp16941976p22849424.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Re: multiple context values

2009-04-01 Thread Fernanda C. Carmo

I have an object Product and it has a composite primary key (ProductId).

How can I put this object Product in actionlink's context value?

Thank's!!!


Geoff Callender-2 wrote:
> 
> You need the "list" binding prefix so you can do this:   
> t:context="list:p.productId, p.categoryId".  It's available 2 ways  
> that I know of:
> 
> 1. You can add it to your project by hand from
> http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix
> 2. You can get it for free by including the t5components in your  
> project: http://code.google.com/p/tapestry5-components/
> 
> Cheers,
> 
> Geoff
> http://files.doublenegative.com.au/jumpstart/
> 
> On 29/04/2008, at 3:09 AM, Marcelo Lotif wrote:
> 
>> I was just caught by this problem some time ago, and in the tapestry
>> site they recommend this:
>>
>> public Object[] getAccountContext()
>> {
>>return new Object[] { account.companyId, account.id };
>> }
>>
>> Object onActionFromDelete(long companyId, long accountId){
>> //...
>> }
>>
>> 
>> [delete> t:actionlink>
>> 
>>
>> see:
>> http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/ActionLink.html
>>
>>
>> 2008/4/28 Manuel Corrales :
>>> I think you can separate the values with commas like this:
>>>
>>> t:context="p.productId, p.categoryId"
>>>
>>> Good luck!
>>>
>>>
>>>
>>>
>>> On Mon, Apr 28, 2008 at 12:53 PM, Leon Derks  
>>>  wrote:
>>>
 How can I add multiple context values to an actionlink?

 For example a productId and a categoryId?





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


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


-
Fernanda Cristina do Carmo
System Analyst and Java Developer
MSN/GoogleTalk: fernanda.ca...@gmail.com

-- 
View this message in context: 
http://www.nabble.com/multiple-context-values-tp16941976p22834770.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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