Re: T5.0.5 : How to specify a global meta key/value pair

2007-08-11 Thread Allen Guo

For Global value, can I use static variable ?

Shing Hing Man 写道:

It works using symbol. Thanks!
The following is what I have done.

Add the following to  AppModule.java :

  public static void contributeApplicationDefaults(
MappedConfiguration
configuration)
{  
configuration.add("tempDir",

"/tmp/tapestry5/");
}


In a Tapestry page, to retrieve the value for
'tempDir' :
 @Inject
 private SymbolSource symbolSource;

 symbolSource.expandSymbols("${tempDir}");


Shing 



--- Robert Zeigler <[EMAIL PROTECTED]> wrote:

  

how about contributing your key/value pair to the
application  
defaults, and resolving your meta information later

via symbols?

Robert

On Aug 11, 2007, at 6:14 AM, Shing Hing Man wrote:



In T4, I can use  tag in .application to
specify a global meta key/value pair.
How can this be done in T5 ?

Thanks in advance for any assistance!

Shing

Home page : http://www.lombok.demon.co.uk/



 
  

___
  

Yahoo! Answers - Got a question? Someone out there
  
knows the  


answer. Try it
now.
http://uk.answers.yahoo.com/


  

-
  

To unsubscribe, e-mail:
  

[EMAIL PROTECTED]


For additional commands, e-mail:
  

[EMAIL PROTECTED]





-
  

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






Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 


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


  



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



Re: t5 how to load messages

2007-08-11 Thread Nick Westgate (Work)

BTW, the page Shing referred you to covers the use-case you gave.
Look for the code passing a message to the border component:
.

(I realise you probably want to do more of the work from the layout though.)

Cheers,
Nick.



ra wrote:
> 
> Yes, of course, but that case is not described and I don't know t5
> internals
> I think I've to inject kind of message provider to get message bundle by
> page name
> 
> 
> 
> Shing Hing Man wrote:
>> 
>> Have you checked out 
>> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
>> ? 
>> Shing
>> 
>> --- ra <[EMAIL PROTECTED]> wrote:
>> 
>>> 
>>> how to load messages for the specific page in a
>>> component ?
>>> I've a kind of border component used by many pages
>>> and would like get for
>>> example page-label value which is defined for each
>>> page in its bundle
>>> -- 
>>> View this message in context:
>>>
>> http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12108897
>>> Sent from the Tapestry - User mailing list archive
>>> at Nabble.com.
>>> 
>>> 
>>>
>> -
>>> To unsubscribe, e-mail:
>>> [EMAIL PROTECTED]
>>> For additional commands, e-mail:
>>> [EMAIL PROTECTED]
>>> 
>>> 
>> 
>> 
>> Home page : http://www.lombok.demon.co.uk/
>> 
>> 
>> 
>>   ___
>> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
>> it
>> now.
>> http://uk.answers.yahoo.com/ 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12110628
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: [announce] BeanForm 0.4

2007-08-11 Thread Geoff Callender

Hi Daniel,

Have you thought about a "view" mode recently?  Instead of adding  
more parameters, how about checking if save and delete have been  
specified - if they haven't, then make all the properties output-only?


To me, the ability to get a bean displayed without fuss is as  
valuable to me as being able to edit it.


Geoff

On 14/09/2006, at 12:16 PM, D&J Gredler wrote:

I think the "exclude" parameter sounds like a good idea, it would  
probably
be very useful for prototyping or admin screens where you're more  
worried

about your time than property display order.

The edit vs view toggle I'm not so sure about, mainly because I  
want to make

sure the component stays relatively lean and the API doesn't get too
cluttered. For example, a user recently requested a way to make all
read-only properties use an Insert component, rather than the current
behavior of disabling the input component they receive. In the end,  
rather

than add a new parameter to BeanForm, I decided to make it easier to
override the input component used for specific properties, and to  
make the
Insert component one of the options. It's a little harder for his  
specific
needs, as he has to list his bean properties and assign Insert  
components to
the read-only properties, but it's a generic solution that's "easy  
enough"
for him and doesn't force other people to learn another corner case  
when
they're first grokking the BeanForm API. Of course, I may be  
underestimating
the usefulness of this feature, in which case it's not a "corner  
case" at

all :-)

My gut reaction is that the generic solution described above is  
also "good
enough" for edit vs view toggling. You would have to list the  
properties to

display, but you could say:

properties="literal:name=Insert,description=Insert,comment=Insert,date 
Created=Insert"

... />

In the same vein I can see the title feature being useful, but I  
would want
to make it optional, which means Yet Another Parameter (YAP?). Of  
course, a
more generic solution would be to allow the user to dynamically  
contribute
bindings to some or all of the property input components. Now  
*that* would

float my boat. But how?

Anyway, those are my [longish] thoughts. Feel free to disagree.

Daniel


PS - Martin, would you have time to send me a patch implementing the
"exclude" parameter? ;-) If not, I'll probably look at it eventually.


On 9/14/06, andyhot <[EMAIL PROTECTED]> wrote:


Martin Strand wrote:
> Thanks.
> I just added a few minor things, nothing big:
> - "exclude" parameter to exclude properties rather than specifying
> which ones should be included
> - toggle between "edit" mode and "view" mode (view mode = no form
> components)
Both look useful. Perhaps they could get included?


-
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: accessing component variable

2007-08-11 Thread Davor Hrg
component binding is meant only for retreiving a component,

you can add you own binding
http://wiki.apache.org/tapestry/Tapestry5HowToAddBindingPrefix

the impl that suites your need is probably this:


add to your app module:
public static void contributeBindingSource(
MappedConfiguration configuration,
BindingSource bindingSource)
{
configuration.add("cprop",new
ComponentPropBindingFactory(bindingSource));
}

create the binding factory: ComponentPropBindingFactory.java:

package test.tapestry.services;

import org.apache.tapestry.Binding;
import org.apache.tapestry.ComponentResources;
import org.apache.tapestry.TapestryConstants;
import org.apache.tapestry.ioc.Location;
import org.apache.tapestry.runtime.Component;
import org.apache.tapestry.services.BindingFactory;
import org.apache.tapestry.services.BindingSource;

/** The "cprop:" binding prefix, which allows access to a child component's
prop via
 * normal prop: expression prefixed with component id.*/
public class ComponentPropBindingFactory implements BindingFactory
{
private final BindingSource _propBindingFactory;

public ComponentPropBindingFactory(BindingSource bindingSource){
_propBindingFactory = bindingSource;
}

public Binding newBinding(String description, ComponentResources
container, ComponentResources component,
String expression, Location location)
{
int idx=expression.indexOf(".");
ComponentResources propSource = null;
if(idx == -1)
throw new RuntimeException("Invalid expression:
'"+expression+"'. You must provide component id ");
else{
String componentId = expression.substring(0,idx);
expression = expression.substring(idx+1);
Component embeddedComponent = container.getEmbeddedComponent
(componentId);
if(embeddedComponent == null) throw new
RuntimeException("Component "+componentId+" not found");
propSource = embeddedComponent.getComponentResources();
}
return _propBindingFactory.newBinding(description, propSource,
component, TapestryConstants.PROP_BINDING_PREFIX, expression, location);
}
}



test it:
page class: ${class}

  ${value}, loop class: ${cprop:loop.class}






On 8/11/07, Thomas Beckmann <[EMAIL PROTECTED]> wrote:
>
>
> Our customer should be able to place a component in any of the available
> page
> templates. He has no access to the Page classes. The component works as a
> loop component but instead of providing a list of elements to the
> component,
> the user has to provide a query string and the component uses an injected
> service to get the list. The customer will write the body part of the loop
> on
> his own but he needs a loop variable to access the properties of the
> elements.
>
> For example:
>
>  t:id="cheapestProducts"
> t:query="cheapest products"
> t:value="product">
>   
> 
>
> One solution is to implement a setProduct() and getProduct() in every page
> but
> I'm looking for a solution that is independent of the page.
>
> Thomas
>
> Am Samstag, 11. August 2007 22:34 schrieb Davor Hrg:
> > please elaborate your use case a bit more,
> > maybe an alternative will be sufficient.
> >
> > Davor Hrg
> >
> > On 8/11/07, Thomas Beckmann <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > I'm looking for a way to access a component variable the same way as a
> > > page
> > > variable.
> > > So for example when using a loop component I want to provide a  setter
> > > and getter of a component as the loop value instead of a setter and
> > > getter of the
> > > page.
> > > I want to implement a component that works as a loop but provides a
> list
> > > of
> > > elements on it's own. I want to use this component on any page without
> > > the need to implement a loop value on each page.
> > >
> > > I tried value="component:someComponent.someMethod" but got an error
> > > telling
> > > that there is no such component.
> > >
> > > Any ideas?
> > >
> > > Thanks
> > > Thomas
> > >
> > > -
> > > 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 load messages

2007-08-11 Thread Shing Hing Man
Have you tried the following ?

   @Inject
private ComponentResources resources;
resources.getMessages().get("keyInPropertiesFile")

I think Tapestry search the .properties file in the 
following order.
1) the component .properties
2) The page, which contains the component,
.properties.
3) The application .properties.

Shing 


--- ra <[EMAIL PROTECTED]> wrote:

> 
> Yes, of course, but that case is not described and I
> don't know t5 internals
> I think I've to inject kind of message provider to
> get message bundle by
> page name
> 
> 
> 
> Shing Hing Man wrote:
> > 
> > Have you checked out 
> >
>
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
> > ? 
> > Shing
> > 
> > --- ra <[EMAIL PROTECTED]> wrote:
> > 
> >> 
> >> how to load messages for the specific page in a
> >> component ?
> >> I've a kind of border component used by many
> pages
> >> and would like get for
> >> example page-label value which is defined for
> each
> >> page in its bundle
> >> -- 
> >> View this message in context:
> >>
> >
>
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12108897
> >> Sent from the Tapestry - User mailing list
> archive
> >> at Nabble.com.
> >> 
> >> 
> >>
> >
>
-
> >> To unsubscribe, e-mail:
> >> [EMAIL PROTECTED]
> >> For additional commands, e-mail:
> >> [EMAIL PROTECTED]
> >> 
> >> 
> > 
> > 
> > Home page : http://www.lombok.demon.co.uk/
> > 
> > 
> > 
> >  
>
___
> > Yahoo! Answers - Got a question? Someone out there
> knows the answer. Try
> > it
> > now.
> > http://uk.answers.yahoo.com/ 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> > 
> 
> -- 
> View this message in context:
>
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12109529
> Sent from the Tapestry - User mailing list archive
> at Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Re: Displaying validation errors in another page

2007-08-11 Thread Erik Vullings
Hi,

>From a security point of view, you shouldn't tell the user what was wrong,
as this is a security risk (e.g. a potential attacker now knows that a
certain username exists, and only needs to discover the password). You
could, however, before you redirect him, call a function in the normal login
page to set a flag that the user already tried once unsuccessfully.

E.g. the normal login page has something like:
@Persist("flash")
boolean failedLogin

void setFailedLogin(boolean login) { failedLogin=login)};

and the quick login page

Page normalLoginPage

if (loginFailed) {
  normalLoginPage.setFailedLogin(true);
  return normalLoginPage)
}

Cheers
Erik


On 8/11/07, Ovidiu Hurducas <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> I am trying to display form errors and highlighted fields in another form
> page then the initial form.
>
> More specific: I have a login form in the header component for "quick
> login"
> and if something wrong is happened there the user is directed to the main
> login page where the validation errors must be listed and the error input
> fields should be highlighted.
>
> What is the "elegant" way to do this?
>
> I've been trying without success to pass the ValidationDelegate bean from
> the first page to the next page and in pageBeginRender to record all the
> FieldTracking entries in the current ValidationDelegate bean.
>
> Something like:
>
> ValidationDelegate headerDelegate = getHeaderValidationDelegate();
> // copy the errors from the other page
> *if*(headerDelegate!=*null*) {
>   ValidationDelegate delegate = getDelegate();
>   List tracking = headerDelegate.getFieldTracking();
>   Iterator it = tracking.iterator();
>   *while*(it.hasNext()) {
> FieldTracking field = (FieldTracking)it.next();
>  delegate.setFormComponent((IFormComponent)getComponent(
>   field.getFieldName()));
>  delegate.record(field.getErrorRenderer(),
>   field.getConstraint());
>   }
> }
>
> Is not working, when I call delegate.record() method I got this:
> java.lang.NullPointerException Parameter fieldName must not be null.
>
>
>
> Any suggestions are greatly appreciated
>
> Cheers,
>
> --Ovidiu**
>


Re: t5 how to load messages

2007-08-11 Thread ra

Yes, of course, but that case is not described and I don't know t5 internals
I think I've to inject kind of message provider to get message bundle by
page name



Shing Hing Man wrote:
> 
> Have you checked out 
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
> ? 
> Shing
> 
> --- ra <[EMAIL PROTECTED]> wrote:
> 
>> 
>> how to load messages for the specific page in a
>> component ?
>> I've a kind of border component used by many pages
>> and would like get for
>> example page-label value which is defined for each
>> page in its bundle
>> -- 
>> View this message in context:
>>
> http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12108897
>> Sent from the Tapestry - User mailing list archive
>> at Nabble.com.
>> 
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> Home page : http://www.lombok.demon.co.uk/
> 
> 
> 
>   ___
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/ 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12109529
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: accessing component variable

2007-08-11 Thread Thomas Beckmann

Our customer should be able to place a component in any of the available page 
templates. He has no access to the Page classes. The component works as a 
loop component but instead of providing a list of elements to the component, 
the user has to provide a query string and the component uses an injected 
service to get the list. The customer will write the body part of the loop on 
his own but he needs a loop variable to access the properties of the 
elements.

For example:


  


One solution is to implement a setProduct() and getProduct() in every page but 
I'm looking for a solution that is independent of the page.

Thomas

Am Samstag, 11. August 2007 22:34 schrieb Davor Hrg:
> please elaborate your use case a bit more,
> maybe an alternative will be sufficient.
>
> Davor Hrg
>
> On 8/11/07, Thomas Beckmann <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I'm looking for a way to access a component variable the same way as a
> > page
> > variable.
> > So for example when using a loop component I want to provide a  setter
> > and getter of a component as the loop value instead of a setter and
> > getter of the
> > page.
> > I want to implement a component that works as a loop but provides a list
> > of
> > elements on it's own. I want to use this component on any page without
> > the need to implement a loop value on each page.
> >
> > I tried value="component:someComponent.someMethod" but got an error
> > telling
> > that there is no such component.
> >
> > Any ideas?
> >
> > Thanks
> > Thomas
> >
> > -
> > 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.0.5 : binder.bind passes service id to serivce class contructor

2007-08-11 Thread Shing Hing Man

I have tried to construct a service using binder.bind
: 
binder.bind(IGreeting.class,
DefaultGreeting.class).withId("myGreeting");


Here is the service interface and service  class:


public interface IGreeting {

public String getGreeting();
}

===

public class DefaultGreeting implements IGreeting {

private String greeting="Hello World";


public DefaultGreeting(){};

public DefaultGreeting(String msg)
{
greeting=msg;
}

public String getGreeting() {
return greeting;
}

public void setGreeting(String greeting) {
this.greeting = greeting;
}

}

=
When binder.bind is called, the contructor  
 public DefaultGreeting(String msg) 

is called with msg=myGreeting.
Is this the correct behavior ?  I was expecting the 
no argument contructor to be called.

Shing 




Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Re: t5 how to load messages

2007-08-11 Thread Shing Hing Man
Have you checked out 
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
? 
Shing

--- ra <[EMAIL PROTECTED]> wrote:

> 
> how to load messages for the specific page in a
> component ?
> I've a kind of border component used by many pages
> and would like get for
> example page-label value which is defined for each
> page in its bundle
> -- 
> View this message in context:
>
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12108897
> Sent from the Tapestry - User mailing list archive
> at Nabble.com.
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Re: T5.0.5 : How to specify a global meta key/value pair

2007-08-11 Thread Shing Hing Man
It works using symbol. Thanks!
The following is what I have done.

Add the following to  AppModule.java :

  public static void contributeApplicationDefaults(
MappedConfiguration
configuration)
{  
configuration.add("tempDir",
"/tmp/tapestry5/");
}


In a Tapestry page, to retrieve the value for
'tempDir' :
 @Inject
 private SymbolSource symbolSource;

 symbolSource.expandSymbols("${tempDir}");


Shing 


--- Robert Zeigler <[EMAIL PROTECTED]> wrote:

> how about contributing your key/value pair to the
> application  
> defaults, and resolving your meta information later
> via symbols?
> 
> Robert
> 
> On Aug 11, 2007, at 6:14 AM, Shing Hing Man wrote:
> 
> > In T4, I can use  tag in .application to
> > specify a global meta key/value pair.
> > How can this be done in T5 ?
> >
> > Thanks in advance for any assistance!
> >
> > Shing
> >
> > Home page : http://www.lombok.demon.co.uk/
> >
> >
> >
> >  
>
___
> > Yahoo! Answers - Got a question? Someone out there
> knows the  
> > answer. Try it
> > now.
> > http://uk.answers.yahoo.com/
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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



Displaying validation errors in another page

2007-08-11 Thread Ovidiu Hurducas
Hi!

I am trying to display form errors and highlighted fields in another form
page then the initial form.

More specific: I have a login form in the header component for "quick login"
and if something wrong is happened there the user is directed to the main
login page where the validation errors must be listed and the error input
fields should be highlighted.

What is the "elegant" way to do this?

I've been trying without success to pass the ValidationDelegate bean from
the first page to the next page and in pageBeginRender to record all the
FieldTracking entries in the current ValidationDelegate bean.

Something like:

ValidationDelegate headerDelegate = getHeaderValidationDelegate();
// copy the errors from the other page
*if*(headerDelegate!=*null*) {
  ValidationDelegate delegate = getDelegate();
  List tracking = headerDelegate.getFieldTracking();
  Iterator it = tracking.iterator();
  *while*(it.hasNext()) {
FieldTracking field = (FieldTracking)it.next();
 delegate.setFormComponent((IFormComponent)getComponent(
  field.getFieldName()));
 delegate.record(field.getErrorRenderer(),
  field.getConstraint());
  }
}

Is not working, when I call delegate.record() method I got this:
java.lang.NullPointerException Parameter fieldName must not be null.



Any suggestions are greatly appreciated

Cheers,

--Ovidiu**


t5 how to load messages

2007-08-11 Thread ra

how to load messages for the specific page in a component ?
I've a kind of border component used by many pages and would like get for
example page-label value which is defined for each page in its bundle
-- 
View this message in context: 
http://www.nabble.com/t5-how-to-load-messages-tf4254673.html#a12108897
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: accessing component variable

2007-08-11 Thread Davor Hrg
please elaborate your use case a bit more,
maybe an alternative will be sufficient.

Davor Hrg

On 8/11/07, Thomas Beckmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm looking for a way to access a component variable the same way as a
> page
> variable.
> So for example when using a loop component I want to provide a  setter and
> getter of a component as the loop value instead of a setter and getter of
> the
> page.
> I want to implement a component that works as a loop but provides a list
> of
> elements on it's own. I want to use this component on any page without the
> need to implement a loop value on each page.
>
> I tried value="component:someComponent.someMethod" but got an error
> telling
> that there is no such component.
>
> Any ideas?
>
> Thanks
> Thomas
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


EventListener

2007-08-11 Thread Frank
Hi,

When I make a simple EventListener I get this error :

FATAL exception raised: buildTargetProperties() Unknown target type:[object
HTMLSelectElement]
FATAL exception raised: Error: buildTargetProperties() Unknown target
type:[object HTMLSelectElement]

I just can't figure out what is wrong.

Tapestry 4.1.1 & 4.1.2

Java :

@EventListener( targets = "size",events = "onchange")
public void updatePaper()
{
System.out.println("update");
}

HTML:





Anyone having a hint ?

Cheers,

Frank


T5: accessing component variable

2007-08-11 Thread Thomas Beckmann
Hi,

I'm looking for a way to access a component variable the same way as a page 
variable.
So for example when using a loop component I want to provide a  setter and 
getter of a component as the loop value instead of a setter and getter of the 
page.
I want to implement a component that works as a loop but provides a list of 
elements on it's own. I want to use this component on any page without the 
need to implement a loop value on each page.

I tried value="component:someComponent.someMethod" but got an error telling 
that there is no such component.

Any ideas?

Thanks
Thomas

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



Re: T5.0.5 : How to specify a global meta key/value pair

2007-08-11 Thread Robert Zeigler
how about contributing your key/value pair to the application  
defaults, and resolving your meta information later via symbols?


Robert

On Aug 11, 2007, at 6:14 AM, Shing Hing Man wrote:


In T4, I can use  tag in .application to
specify a global meta key/value pair.
How can this be done in T5 ?

Thanks in advance for any assistance!

Shing

Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the  
answer. Try it

now.
http://uk.answers.yahoo.com/

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



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



Re: [ANN]T5 book: reviewers are needed

2007-08-11 Thread Adam Zimowski
When can we expect this book to hit the stores???

On 8/9/07, Kolesnikov, Alexander  GNI
<[EMAIL PROTECTED]> wrote:
> Sorry, Thiago, I don't think I should... I think the publisher has already 
> contacted them.
>
> -Original Message-
> From: Thiago H de Paula Figueiredo [mailto:[EMAIL PROTECTED]
> Sent: 09 August 2007 16:40
> To: Tapestry users
> Subject: Re: [ANN]T5 book: reviewers are needed
>
>
> On Thu, 09 Aug 2007 12:28:41 -0300, Kolesnikov, Alexander  GNI
> <[EMAIL PROTECTED]> wrote:
>
> > Phew... The publisher has actually contacted me a few days ago to tell
> > me that he's got many more reviewer volunteers than he ever expected,
> > and so he selected only three of them. But it will be an honor for
> > both me and them to have you as a reviewer. I will contact them now
> > and try to convince to increase the number of reviewers!
>
> Can you tell us who the chosen reviewers are? :)
>
> --
> 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]
>
>
>
> --
> 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]
>
>

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



Re: T5: component libraries

2007-08-11 Thread Adam Zimowski
Sorry, wrong thread. My apology.

On 8/11/07, Adam Zimowski <[EMAIL PROTECTED]> wrote:
> When can we expect this book to hit the stores???
>
> On 8/8/07, Ognen Ivanovski <[EMAIL PROTECTED]> wrote:
> >
> > On 2007-08-08, at 18:05, Chris Lewis wrote:
> >
> > > I've read it and am reading it again, but where did you read about
> > > that specific service?
> >
> > Ah, the service :)
> >
> > The sources. First thing I wanted to know is how to do component
> > libraries, so I dug around until I found it.
> >
> > --
> > Ognen Ivanovski | [EMAIL PROTECTED]
> > phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
> > Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk
> >
> >
> >
> >
> > -
> > 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: component libraries

2007-08-11 Thread Adam Zimowski
When can we expect this book to hit the stores???

On 8/8/07, Ognen Ivanovski <[EMAIL PROTECTED]> wrote:
>
> On 2007-08-08, at 18:05, Chris Lewis wrote:
>
> > I've read it and am reading it again, but where did you read about
> > that specific service?
>
> Ah, the service :)
>
> The sources. First thing I wanted to know is how to do component
> libraries, so I dug around until I found it.
>
> --
> Ognen Ivanovski | [EMAIL PROTECTED]
> phone +389 -2- 30 64 532 | fax +389 -2- 30 79 495
> Netcetera | 1000 Skopje | Macedonia | http://netcetera.com.mk
>
>
>
>
> -
> 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] Render ExceptionReport for emailing from custom ExceptionReport

2007-08-11 Thread Jonathan Barker
Hi all,

 

I want to email a copy of the default ExceptionReport wile displaying only a
friendly message to users.  I built up the email manually in T4, but I would
rather take advantage of the nice error reporting in T5.

 

I guess this is just a specific case of wanting to use a Tapestry Page as a
template.  For most emails, I would just use Velocity or Freemarker, but
that would be reinventing the wheel in this case.

 

Anyone know how to render another page to a String from within a page?

 

 

Jonathan



T5.0.5 : How to specify a global meta key/value pair

2007-08-11 Thread Shing Hing Man
In T4, I can use  tag in .application to 
specify a global meta key/value pair. 
How can this be done in T5 ?

Thanks in advance for any assistance!

Shing 

Home page : http://www.lombok.demon.co.uk/



  ___
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

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