Re: [T5] Grid totals

2007-07-30 Thread Daniel Jue
Joost, How did you add a row for the totals while keeping that row
from being sortable?
I don't want to add it outside of the grid's table structure, because
I want the columns to align.  I did this in T4 using code like this:










value








 


Perhaps I will need to "break open" Grid to get the same effect.


As for your more specific issue, I am guessing you need to tap into
the pager model to determine what indicies in your list are being
displayed.  Maybe there is a way to implement your own pager that
exposes the indice range that it will display, and then when rendering
your totals row, you can tap back into your model and do calculations
based on those indicies only.

On 7/6/07, Joost Schouten <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I just started to use tapestry and enjoy the ease of use. We use T5 and I am
> currently developing some pages showing statistics information. I would like
> to have a totals row at the bottom showing the sum of the columns shown. I
> can easily add a row showing the totals for the whole table, but taking the
> paginator into account makes it a bit more difficult.
>
> Is this feature available, or has anyone done this before?
>
> Thanks,
> Joost
>
>
>
>
>
> -
> 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 get form name

2007-07-30 Thread Nick Westgate

The id and name of a form are the same, so:

@Environmental
private FormSupport _formSupport;

...

String name = _formSupport.getClientId();

Cheers,
Nick.


Shing Hing Man wrote:

I have a component that subclass  AbstractField.
In the beginRender method of my component, how do
I get the name of the enclosing form ?

Thanks in advance for any assistance !

Shing  
 


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



  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 


-
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.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-30 Thread Nick Westgate

Hi Shing.

By inheriting from AbstractField you are using these mixins:

@SuppressWarnings("unused")
@Mixin
private RenderInformals _renderInformals;

@SuppressWarnings("unused")
@Mixin
private RenderDisabled _renderDisabled;

RenderInformals is rendering the informal parameters.

Cheers,
Nick.


Shing Hing Man wrote:

 

The informal parameter  size"3" is rendered if I 
do the following changes to my ColorPicker.java

(without using  mixins).

1) Remove @SupportsInformalParameters and 
resources.renderInformalParameters(writer)


2) In the beginRender method, only 
render the  tag (but not closing

it).

3) Add an  afterRender method to closed the 
 tag and render the color picker icon.



Shing 


PS I have not tried the mixin way yet.


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



[T5] Binding messages to assets

2007-07-30 Thread Steve Kondik
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Is there any way to bind messages into assets (JS or CSS)?  This works
great with inline scripts (message prefix), but obviously not with
context resources.

Since assets are cached anyway, it seems like it should be simple to
implement, but I'm not sure where to get started.
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGrqMiMrBfzfMVwMcRApQbAJsFlIQOhDtkkjieX/6tv8ux7XAxmQCgmw4c
kfmT7kI04TvY0Lv2CZVGXpM=
=RTze
-END PGP SIGNATURE-

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



Re: T5 Component Info Passing

2007-07-30 Thread Todd Orr
BTW _resources.getComponentModel().getEmbeddedComponentIds() would be
really really useful if it didn't return an empty list every time
during my testing. Is there any way for a component to know what it
contains?

On 7/30/07, Todd Orr <[EMAIL PROTECTED]> wrote:
> I've found out how to pass data between components so long as it's
> downstream. Is there a way to pass data from a component (B) that is
> physically below another component (A) to component A?
>
> I've found that performing any data passing (per situation above)
> during the RenderSetup, etc. methods using either ComponentResources
> or Environment is useless since the previous components have already
> finished rendering.
>

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



RE: T4.1 List of pages

2007-07-30 Thread Craig Spry
Hello,

I tried to do getNamespace().getPageNames() and all I got was the name of the 
current page.  Then I tried this:
List pages = new Vector();
for ( Object id : getNamespace().getChildIds() )
{
INamespace lib = getNamespace().getChildNamespace( id.toString() );
pages.addAll(lib.getPageNames());
}

This gave me a list of components.  Is there anything eles that I need to do?

Craig

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 25 July 2007 4:16 PM
To: users@tapestry.apache.org
Subject: RE: T4.1 List of pages

getNamespace().getPageNames()

/Marcus

> -Original Message-
> From: Craig Spry [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 25, 2007 8:01 AM
> To: Tapestry users
> Subject: T4.1 List of pages
>
> Hello All,
>
> I'm currently adding user permissions to my application, this
> is going to be done on a per page basis.  I was wondering if
> it is possible to get tapestry to give me a list of pages so
> I can build the permissions page dynamically to save me
> having to manually up date this every time a new page is added.
>
> TIA,
> Craig
>
> -
> 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]



T5 Component Info Passing

2007-07-30 Thread Todd Orr
I've found out how to pass data between components so long as it's
downstream. Is there a way to pass data from a component (B) that is
physically below another component (A) to component A?

I've found that performing any data passing (per situation above)
during the RenderSetup, etc. methods using either ComponentResources
or Environment is useless since the previous components have already
finished rendering.

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



Re: [T5] Select, palette, multiselect

2007-07-30 Thread Howard Lewis Ship
For Select, a default encoder can be generated from the type of property
bound to the value parameter of the Select.

For Palette, what's bound is a List ... due to type erasure, even List
looks like List, and there is no effective way to determine the underying
element type, so you are forced to provide that information to Tapestry.

On 7/27/07, Thiago H de Paula Figueiredo <[EMAIL PROTECTED]> wrote:
>
> Hi!
>
> Why is encoder a required parameter for the Palette component and isn't
> for Select? Looking ate the Select source code, we can see that it uses de
> ValueEncoderSource service to find a default ValueEncoder when the encoder
> parameter is not set.
>
> And has anyone implemented a Select-like component for multiple option
> selection? It would be very nice to have both multiselect and palette, as
> T4 has.
>
> Thiago
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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


Re: Is T5.0.6 in progress

2007-07-30 Thread 小司
Yes adasal,you are great.I'm a terminal user.I am unable to do what
one hopes to do
until now.I  only learned how to use form in T5.

2007/7/31, adasal <[EMAIL PROTECTED]>:
> I think this is a question from moonfly2004.
> The way to help, I think, would be to work up examples in the wiki and as
> you hit features that aren't implemented, suggest implementations and
> workarounds. This will flesh out the functionality of T5 and provide
> starting points for committers. You may then take part in the discussion as
> to how the feature should be implemented. There is a more formal Apache
> process for this too, I think. But, if so it would be up to others to
> clarify.
> Adam
>
> On 27/07/07, 小司 <[EMAIL PROTECTED]> wrote:
> >
> > All of us help him??
> > Thanks Howard
> >
> >
> > 2007/7/27, Nick Westgate <[EMAIL PROTECTED]>:
> > > We all want it to reach production quality soon, but what it is
> > > now took Howard a couple of months working full-time to achieve.
> > > Now he is working to pay the rent, so we must be patient.
> > >
> > > But it's certainly not dead, or even standing still ...
> > >
> > > (1) Dan Adams has been voted as a new committer - he will focus on T5.
> > > (2) Howard logged a JIRA issue for AJAX. I expect to be waiting for
> > > quite some time, and then I expect some big commits to appear. ;-)
> > >
> > > Cheers,
> > > Nick.
> > >
> > >
> > > 蝈蝈龙 wrote:
> > > > Everyday I update the tp5 from svn trunk, but it seems few codes or no
> > > > codes
> > > > was committed recently.
> > > > I'm too anxious to see the tp5 release.
> > > > Now I'm developing a typical web2.0 application use T5 just for prove
> > > > tp5 is
> > > > enough strong , convenient and simple .
> > > > But using current preview release , I have to implement the many
> > validator,
> > > > valueencoder, many basic components , and stand some tiny error.
> > > >
> > > > I love t5. I hope tp5 become a mature and stable web framework as
> > early as
> > > > possible.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > 得与失都是生活
> >
>


-- 
得与失都是生活


T5 How to get form name

2007-07-30 Thread Shing Hing Man
I have a component that subclass  AbstractField.
In the beginRender method of my component, how do
I get the name of the enclosing form ?

Thanks in advance for any assistance !

Shing  
 

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



  ___ 
Yahoo! Mail is the world's favourite email. Don't settle for less, sign up for
your free account today 
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html 

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



Re: T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-30 Thread Shing Hing Man
 

The informal parameter  size"3" is rendered if I 
do the following changes to my ColorPicker.java
(without using  mixins).

1) Remove @SupportsInformalParameters and 
resources.renderInformalParameters(writer)

2) In the beginRender method, only 
render the  tag (but not closing
it).

3) Add an  afterRender method to closed the 
 tag and render the color picker icon.


Shing 

PS I have not tried the mixin way yet.

--- Nick Westgate <[EMAIL PROTECTED]> wrote:

> Hi Shing.
> 
> Nice to see you getting into T5. ;-)
> 
> Not sure why your
> resources.renderInformalParameters(writer)
> fails, but it's likely a clash with the
> RenderInformals mixin
> in AbstractField. You should read the docs about
> rendering
> multiple tags:
>
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/mixins/RenderInformals.html
> 
> I can confirm that writing a tag in beginRender and
> closing it
> in afterRender (without calling
> renderInformalParameters) works
> fine with informals because of AbstractField's
> RenderInformals.
> 
> Also, you don't need to add
> @SupportsInformalParameters.
> 
> Cheers,
> Nick.
> 
> 
> Shing Hing Man wrote:
> > I have subclassed AbstractField  to make a colour
> > picker component,
> > which is essentially a read only text field with a
> > clickable  icon next to it.
> > The component is working, but it does not render
> the
> > informal parameters.
> > With
> > 
> >  
> > 
> > I expect the rendered text field to have  an
> attribute
> > of size="3".
> > 
> > The following is the code of my component.
> > Any assistance is appreciated!
> > 
> > Shing
> > 
> > @SupportsInformalParameters
> > public class ColorPicker extends AbstractField {
> > //private String clientId;
> > 
> > @Parameter(required = true, principal = true)
> > private String color;
> > 
> > @Inject
> > private Request request;
> > 
> > @Inject
> > private ComponentResources resources;
> > 
> > @Environmental
> > private PageRenderSupport support;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/AnchorPosition.js")
> > private Asset anchorScript;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/ColorPicker2.js")
> > private Asset colorPicker2Script;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/PopupWindow.js")
> > private Asset popupWindowScript;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/colorPicker.gif")
> > private Asset icon;
> > 
> > 
> > 
> > void beginRender(MarkupWriter writer) {
> > 
> > String name=getElementName();
> > 
> > String pickerName = name + "_pick";
> > String pickerColor = name + "_color";
> > 
> > // need to find out how to gte the form name
> > String formName = "form";
> > String targetField = "document." + formName +
> "." +
> > pickerColor;
> > 
> > String color = getColor();
> > if (color == null) {
> > color = "#FF"; // white
> > }
> > 
> > String style = "background:" + color + ";color:"
> +
> > color + ";";
> > 
> > writer.element("input", "type", "text", "name",
> > pickerColor,
> > "onFocus", "blur()", "style", style, "value",
> > color);
> > resources.renderInformalParameters(writer);
> > 
> > writer.end(); // end of input
> > 
> > 
> > writer.element("a", "href",
> "javascript:void(null)",
> > "name",
> > pickerName, "id", pickerName, "onclick",
> > "select_color("
> > + targetField + "," + "'" + 
> > pickerName + "'"
> +
> > ")");
> > 
> > 
> > writer.element("img", "src", icon.toClientURL(),
> > "border", 0, "align",
> > "top");
> > 
> > writer.end(); // end of 
> > writer.end(); // end of 
> > 
> > support.addScriptLink(anchorScript);
> > support.addScriptLink(popupWindowScript);
> > support.addScriptLink(colorPicker2Script);
> > 
> > }
> > 
> > 
> > public String getColor() {
> > return color;
> > }
> > 
> > public void setColor(String color) {
> > this.color = color;
> > }
> > 
> > 
> > @Override
> > protected void processSubmission(FormSupport
> > formSupport, String elementName) {
> > 
> > color = request.getParameter(elementName +
> > "_color");
> > }
> > 
> > }
> > 
> > Home page : http://www.lombok.demon.co.uk/
> > 
> > 
> > 
> >  
>
___
> 
> > Yahoo! Mail is the world's favourite email. Don't
> settle for less, sign up for
> > your free acc

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua
To summarize... using a contrib component parameter may not be that straight 
forward.


I had to open up the usage by specifying a binding.

Then the property...



Best regards
Ken in nashua

_
Need a brain boost? Recharge with a stimulating game. Play now!  
http://club.live.com/home.aspx?icid=club_hotmailtextlink1



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



Re: T5: Grid component - available properties

2007-07-30 Thread Daniel Jue
Joost, thanks for the code snippet --I think it got me on the right track.

Can I define this snippet in Java code somehow?


${myRow.yourUnknowBeanProperty.somethingPresentable}


I want tapestry to automatically know how to display the property.
How can I provide that knowledge?

I hope this will allow Grid to sort by comparing
yourUnknowBeanProperty, NOT
yourUnknowBeanProperty.somethingPresentable.  (i.e. You may want Dates
to sort from oldest to newest, but you want the Year printed at the
end of the Date string.)







On 7/18/07, Joost Schouten <[EMAIL PROTECTED]> wrote:
> Thomas,
>
> You can explicitly add your column to the BeanModel like:
>
> @Inject
> private BeanModelSource bms;
>
> @Inject
> private ComponentResources resources;
>
> private BeanModel model;
>
> private YourRowObject myRow;
>
> @SetupRender
> void initialize(){
> model = bms.create(YourRowObject.class, false, resources);
> model.add("yourUnknowBeanProperty")
> .order(columnOrder)
> .label("My great new column");
> }
>
> ... getters and setters ...
>
> In your html:
>
> 
> 
> ${myRow.yourUnknowBeanProperty.somethingPresentable}
> 
> 
>
> I build a component around myRow.yourUnknowBeanProperty to properly display
> it. In the same way I print dates in my table.
>
> Regards,
> Joost
>
> -Original Message-
> From: Thomas Beckmann [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 13, 2007 12:50 AM
> To: Tapestry users
> Subject: T5: Grid component - available properties
>
> Hi,
>
> I followed the discussion about Grid component and Date.
> I had the same problem and tryed to solve it by using t:parameter and
> t:output
> but it didn't work since my date column was not available.
> Only columns with supported types are available.
>
> Wouldn't it be better to just not render those types that are not supported
> or
> even throw an exception so the user has to exclude them explicitly?
> Because even if date will be supported in the future, the problem remains
> for
> other types.
> I can not provide a custom component as described in screencast 5 if the
> type
> of the row is not supported.
>
> 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]
>
>

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



Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua

Ok, it seems I needed one of these...



in an auxillary page that operated one of my intermediary persistence 
oriented templates.


Best regards
Ken in nashua

_
Need a brain boost? Recharge with a stimulating game. Play now!  
http://club.live.com/home.aspx?icid=club_hotmailtextlink1



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



Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua

I did get the column parameter to operater correctly.

Index could not be that different could it?

Still shaking my head...

Best regards
Ken in nashua

_
http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07


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



Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua

Maybe this will help

https://issues.apache.org/jira/secure/ManageAttachments.jspa?id=12374984

How much science could there be to operating a parameter ?

Best regards
Ken in nashua

_
http://im.live.com/messenger/im/home/?source=hmtextlinkjuly07


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



Re: maven build from source is not working.

2007-07-30 Thread Hans Jörg Hessmann
I remember I had same problem once when I tried to compile some 5.0.5 snapshot
from subversion using maven 2.0.7. I think I solved this by modifiying the
tapestry-project/pom.xml like this:

 
org.apache.tapestry
tapestry-test
${project.version}

  

This problem disappeared in the 5.0.6 snapshots. Please try the most current
version from svn.


Hans Jörg Hessmann


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



Re: T4: DropDownDatePicker

2007-07-30 Thread Andrea Chiumenti
sorry, it was a bug in my js code.

On 7/30/07, Marcus Schulte <[EMAIL PROTECTED]> wrote:
>
> dont' know. I use dddp extensively without any unwanted submissions
> (just double-checked). Are you sure you don't have any EventListeners
> or stuff wired to them?
>
> 2007/7/30, Andrea Chiumenti <[EMAIL PROTECTED]>:
> > Hello, I've just seen a strange behaviour when selecting a date from
> > DorpDownDatePicker, because this component performs a submit.
> > Is it a bug ?
> >
>
>
> --
> Marcus Schulte
> http://marcus-schulte.blogspot.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: [T5] Eclipse WTP - conflict between class reloading and context reloading

2007-07-30 Thread Martin Grotzke
Hi,

you should set up your environment as it's described in the tutorial
(http://tapestry.apache.org/tapestry5/tutorial1/env.html).

AFAIK T5 class reloading does work with jetty 5 + jetty launcher only.

Cheers,
Martin


On Mon, 2007-07-30 at 11:42 -0700, entelechon wrote:
> I am using Eclipse WTP and Tomcat 5.5 to develop with Tapestry 5. Changes to
> page classes are supposedly picked up by Tapestry, via an inspection of the
> class path. 
> 
> Now, when I change a page class, Tomcat notices the changed file and reloads
> the whole context - effectively resetting the application state and taking
> ages to re-initialize everything.
> 
> I can change the context to be non-reloadable (in server.xml, specifying
> reloadable="false"). However, then nothing happens: Neither does Tomcat
> reload the context (expected), nor does Tapestry load the changed page class
> (unexpected).
> 
> Any help?
> 
> Thanks,
>Markus



signature.asc
Description: This is a digitally signed message part


Re: [T5] Select, palette, multiselect

2007-07-30 Thread Thiago H de Paula Figueiredo
On Mon, 30 Jul 2007 17:13:07 -0300, Martin Grotzke  
<[EMAIL PROTECTED]> wrote:



On Fri, 2007-07-27 at 17:37 -0300, Thiago H de Paula Figueiredo wrote:

And has anyone implemented a Select-like component for multiple option
selection? It would be very nice to have both multiselect and palette,  
as

T4 has.



Take a look at this thread, it's really easy to implement multiselect
with T5:
http://www.nabble.com/T5%3A-select-component-with-support-for-attribute-%22multiple%22-tf3880056.html#a10996038


Thank you!

As almost anything in T5, it's easy to implement. :)
I sent that message in the hope the T5 committers add one multiselection  
implementation to the T5 core library. Maybe I should post a JIRA (unless  
it stills throws a NPE when posting a new one). The framework itself must  
provide in its final version (yes, I know T5 is pre-alpha) all the trivial  
components, otherwise potential new users will take a look and think  
something like "there's no multiselect (or any other simple component)!!!  
How could I work with a framework that makes me write code for such a  
simple thing?". ;)


Thiago

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



Re: [T5] Select, palette, multiselect

2007-07-30 Thread Martin Grotzke
On Fri, 2007-07-27 at 17:37 -0300, Thiago H de Paula Figueiredo wrote:
> And has anyone implemented a Select-like component for multiple option  
> selection? It would be very nice to have both multiselect and palette, as  
> T4 has.
Take a look at this thread, it's really easy to implement multiselect
with T5:
http://www.nabble.com/T5%3A-select-component-with-support-for-attribute-%22multiple%22-tf3880056.html#a10996038

Cheers,
Martin


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



signature.asc
Description: This is a digitally signed message part


Re: Is T5.0.6 in progress

2007-07-30 Thread adasal
I think this is a question from moonfly2004.
The way to help, I think, would be to work up examples in the wiki and as
you hit features that aren't implemented, suggest implementations and
workarounds. This will flesh out the functionality of T5 and provide
starting points for committers. You may then take part in the discussion as
to how the feature should be implemented. There is a more formal Apache
process for this too, I think. But, if so it would be up to others to
clarify.
Adam

On 27/07/07, 小司 <[EMAIL PROTECTED]> wrote:
>
> All of us help him??
> Thanks Howard
>
>
> 2007/7/27, Nick Westgate <[EMAIL PROTECTED]>:
> > We all want it to reach production quality soon, but what it is
> > now took Howard a couple of months working full-time to achieve.
> > Now he is working to pay the rent, so we must be patient.
> >
> > But it's certainly not dead, or even standing still ...
> >
> > (1) Dan Adams has been voted as a new committer - he will focus on T5.
> > (2) Howard logged a JIRA issue for AJAX. I expect to be waiting for
> > quite some time, and then I expect some big commits to appear. ;-)
> >
> > Cheers,
> > Nick.
> >
> >
> > 蝈蝈龙 wrote:
> > > Everyday I update the tp5 from svn trunk, but it seems few codes or no
> > > codes
> > > was committed recently.
> > > I'm too anxious to see the tp5 release.
> > > Now I'm developing a typical web2.0 application use T5 just for prove
> > > tp5 is
> > > enough strong , convenient and simple .
> > > But using current preview release , I have to implement the many
> validator,
> > > valueencoder, many basic components , and stand some tiny error.
> > >
> > > I love t5. I hope tp5 become a mature and stable web framework as
> early as
> > > possible.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> 得与失都是生活
>


Editing complex beans with BeanEditForm component.

2007-07-30 Thread Imants Firsts
Hi!

Is it possible to use BeanEditForm component for
editing complex beans?

I have the following classes (getters and some
irrelevant things are stripped, which might make
classes slightly odd, but they have to be this way in
my case).

public class Item {
private String name;
private Money price;
private ItemDetails details;
}

public class Money {
private double amount;
private Currency currency;
}

public abstract class ItemDetails {
private int weight;
}

public class SizedItemDetails extends ItemDetails {
private int size;
}

public class ColoredItemDetails extends ItemDetails {
private Color color
}

public class Color {
private int red, green, blue;
}

I would like to use BeanEditForm for editing objects of
type Item.
For some items it should look like this:
Name: _
Price:  \/
Weight: ___
Color: 

And for some like this (depending on runtime type of
details field):
Name: _
Price:  \/
Weight: ___
Red: 
Green: __
Blue: ___


Seems that currently there are 2 limitations:
1) BeanModelSource does not parse details of the
complex types. It works for the name field, I can make
Money field work by contributing PropertyEditBlock for
Money, which displays a TextField and a ComboBox. But
for more complex types it does not work, since I can
not nest one BeanEditForm into another. I believe that
by changing BeanModelSource it would be possible to
make it look deeper in the hierarchy and display flat
list of all basic fields.

2) BeanModelSource creates bean model by parsing static
class hierarchy of object parameter type instead of the
actual runtime classes. This causes problem
with my details field, because BeanModelSource
always treats it as ItemDetails and thus sees only
weight field. And the problem is that it can not be
fixed by overriding BeanModelSource implementation,
because create method in BeanModelSource interface only
takes Class parameter. Since new BeanModel is created
for each request, it should not be a big overhead to
look at runtime class hierarchy.

Any thoughts on how to achieve the functionality I
need? Are there any plans to add something like that to
the existing BeanEditForm component?

Thanks in advance,
Imants

Advertisement:

WWW.GAMES.INBOX.LV – Looti daudz speeeles!!! Vairak par 10 !!!


Re: T4: DropDownDatePicker

2007-07-30 Thread Marcus Schulte
dont' know. I use dddp extensively without any unwanted submissions
(just double-checked). Are you sure you don't have any EventListeners
or stuff wired to them?

2007/7/30, Andrea Chiumenti <[EMAIL PROTECTED]>:
> Hello, I've just seen a strange behaviour when selecting a date from
> DorpDownDatePicker, because this component performs a submit.
> Is it a bug ?
>


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

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



Re: T5.0.5 Informal parameters not rendered in a descendant of AbstractField.

2007-07-30 Thread Shing Hing Man
Thanks for the pointer Nick!
I will try again.

Shing 



--- Nick Westgate <[EMAIL PROTECTED]> wrote:

> Hi Shing.
> 
> Nice to see you getting into T5. ;-)
> 
> Not sure why your
> resources.renderInformalParameters(writer)
> fails, but it's likely a clash with the
> RenderInformals mixin
> in AbstractField. You should read the docs about
> rendering
> multiple tags:
>
http://tapestry.apache.org/tapestry5/tapestry-core/apidocs/org/apache/tapestry/corelib/mixins/RenderInformals.html
> 
> I can confirm that writing a tag in beginRender and
> closing it
> in afterRender (without calling
> renderInformalParameters) works
> fine with informals because of AbstractField's
> RenderInformals.
> 
> Also, you don't need to add
> @SupportsInformalParameters.
> 
> Cheers,
> Nick.
> 
> 
> Shing Hing Man wrote:
> > I have subclassed AbstractField  to make a colour
> > picker component,
> > which is essentially a read only text field with a
> > clickable  icon next to it.
> > The component is working, but it does not render
> the
> > informal parameters.
> > With
> > 
> >  
> > 
> > I expect the rendered text field to have  an
> attribute
> > of size="3".
> > 
> > The following is the code of my component.
> > Any assistance is appreciated!
> > 
> > Shing
> > 
> > @SupportsInformalParameters
> > public class ColorPicker extends AbstractField {
> > //private String clientId;
> > 
> > @Parameter(required = true, principal = true)
> > private String color;
> > 
> > @Inject
> > private Request request;
> > 
> > @Inject
> > private ComponentResources resources;
> > 
> > @Environmental
> > private PageRenderSupport support;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/AnchorPosition.js")
> > private Asset anchorScript;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/ColorPicker2.js")
> > private Asset colorPicker2Script;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/PopupWindow.js")
> > private Asset popupWindowScript;
> > 
> > @Inject
> > 
> >
>
@Path("classpath:/org/man/tapestry5/components/colorPicker.gif")
> > private Asset icon;
> > 
> > 
> > 
> > void beginRender(MarkupWriter writer) {
> > 
> > String name=getElementName();
> > 
> > String pickerName = name + "_pick";
> > String pickerColor = name + "_color";
> > 
> > // need to find out how to gte the form name
> > String formName = "form";
> > String targetField = "document." + formName +
> "." +
> > pickerColor;
> > 
> > String color = getColor();
> > if (color == null) {
> > color = "#FF"; // white
> > }
> > 
> > String style = "background:" + color + ";color:"
> +
> > color + ";";
> > 
> > writer.element("input", "type", "text", "name",
> > pickerColor,
> > "onFocus", "blur()", "style", style, "value",
> > color);
> > resources.renderInformalParameters(writer);
> > 
> > writer.end(); // end of input
> > 
> > 
> > writer.element("a", "href",
> "javascript:void(null)",
> > "name",
> > pickerName, "id", pickerName, "onclick",
> > "select_color("
> > + targetField + "," + "'" + 
> > pickerName + "'"
> +
> > ")");
> > 
> > 
> > writer.element("img", "src", icon.toClientURL(),
> > "border", 0, "align",
> > "top");
> > 
> > writer.end(); // end of 
> > writer.end(); // end of 
> > 
> > support.addScriptLink(anchorScript);
> > support.addScriptLink(popupWindowScript);
> > support.addScriptLink(colorPicker2Script);
> > 
> > }
> > 
> > 
> > public String getColor() {
> > return color;
> > }
> > 
> > public void setColor(String color) {
> > this.color = color;
> > }
> > 
> > 
> > @Override
> > protected void processSubmission(FormSupport
> > formSupport, String elementName) {
> > 
> > color = request.getParameter(elementName +
> > "_color");
> > }
> > 
> > }
> > 
> > Home page : http://www.lombok.demon.co.uk/
> > 
> > 
> > 
> >  
>
___
> 
> > Yahoo! Mail is the world's favourite email. Don't
> settle for less, sign up for
> > your free account today
>
http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html
> 
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> > 
> 
>
-

Re: Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Marcus Schulte
2007/7/30, Ken nashua <[EMAIL PROTECTED]>:
> Hi Folks,
>
> I am trying to operate the index parameter as documented in the
> contrib:table docs.
>
> Can someone help clarify this for me?
>
> Here is the documentary...
>
> INDEX: If provided, the parameter is updated with the index of the loop on
> each iteration.
>
> Can someone elaborate on what the definition of 'If Provided" means?
>

it means "if the parameter is bound".
I cannnot comment on your example below, because I cannot see from it
what you're trying to achieve exactly.

> So far I have tried this...
>
> MyTable.jwc
> 
>
> MyTable.java
> @Parameter(required = false, cache = true)
> public abstract Object getIndex();
> public abstract void setIndex(Object index);
>
> Then I tried this...
>
> MyTable.jwc
> 
> index
>
> MyTable.java
> @Parameter(required = false, cache = true)
> public abstract Object getIndex();
> public abstract void setIndex(Object index);
>
> I tried mixing/matching but still no luck.
>
> If anyone could elaborate on this usage I would appreciate.
>
> Best regards
> Ken in nashua
>
> _
> Don't get caught with egg on your face. Play Chicktionary!
> http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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

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



[T5] Eclipse WTP - conflict between class reloading and context reloading

2007-07-30 Thread entelechon

I am using Eclipse WTP and Tomcat 5.5 to develop with Tapestry 5. Changes to
page classes are supposedly picked up by Tapestry, via an inspection of the
class path. 

Now, when I change a page class, Tomcat notices the changed file and reloads
the whole context - effectively resetting the application state and taking
ages to re-initialize everything.

I can change the context to be non-reloadable (in server.xml, specifying
reloadable="false"). However, then nothing happens: Neither does Tomcat
reload the context (expected), nor does Tapestry load the changed page class
(unexpected).

Any help?

Thanks,
   Markus
-- 
View this message in context: 
http://www.nabble.com/-T5--Eclipse-WTP---conflict-between-class-reloading-and-context-reloading-tf4178263.html#a11880890
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Tapestry-4.1.2 Documentation Clarification ... please

2007-07-30 Thread Ken nashua

Hi Folks,

I am trying to operate the index parameter as documented in the 
contrib:table docs.


Can someone help clarify this for me?

Here is the documentary...

INDEX: If provided, the parameter is updated with the index of the loop on 
each iteration.


Can someone elaborate on what the definition of 'If Provided" means?

So far I have tried this...

   MyTable.jwc


   MyTable.java
@Parameter(required = false, cache = true)
public abstract Object getIndex();
public abstract void setIndex(Object index);

Then I tried this...

   MyTable.jwc

index

   MyTable.java
@Parameter(required = false, cache = true)
public abstract Object getIndex();
public abstract void setIndex(Object index);

I tried mixing/matching but still no luck.

If anyone could elaborate on this usage I would appreciate.

Best regards
Ken in nashua

_
Don't get caught with egg on your face. Play Chicktionary!  
http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2



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



Re: createReadOnlyBindingException help!

2007-07-30 Thread Martino Piccinato
Posted one for the parameter issue

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

and another one for the Dialog component:

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

I didn't do it first because I was trying to investigate myself but I
really have no time to do this now.

Ciao

Martino

On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> Well, I try to investigate into this, meanwhile if you could be so kind to
> post a jira...
>
> ciao,
> kiuma
>
> On 7/30/07, Martino Piccinato <[EMAIL PROTECTED]> wrote:
> >
> > Well, I'm having a very similar behaviour with Dialog component that
> > by default has a true parameter for optional parameter "hidden".
> >
> > 
> >
> > It seems that if you set a constant value ("ognl:0" or "true") to a
> > parameter then the parameter itself is regarded as "Invariant" by
> > AbstractBinding that will refuse you to use any setter on it (it does
> > not have a reference to a method but to a... constant) and throw the
> > exception.
> > I don't have the exception if I just "override" the constant default
> > value with an ognl reference to a couple of setters/getters method
> > (returning the default value in case the property is not initialized).
> >
> > In my opinion this is a bug with "parameter" but I haven't been able
> > to investigate more and I'm quite surprised nobody stepped into this
> > problem before, see my neglected Dialog mails  of some days ago :-)
> >
> >
> >
> > On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> > > this is the stack trace
> > >
> > >
> > org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> > (
> > > AbstractBinding.java:115)
> > > org.apache.tapestry.binding.ExpressionBinding.setObject(
> > > ExpressionBinding.java:196)
> > > $EditTable_16.setStartRow($EditTable_16.java)
> > > org.jfly.web.components.edittable.EditTable.rewindFormComponent(
> > > EditTable.java:541)
> > >
> > > On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> > > >
> > > > Hello!
> > > > I'm having this exception (
> > > >
> > org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> > > > (AbstractBinding.java:115)) when I call into my rewindFormComponent
> > method
> > > > this code:
> > > >
> > > > setStartRow(sliderValue);
> > > >
> > > > and I set into jwc file:
> > > >  > > > default-value="ognl:0"/>
> > > >
> > > >
> > > > Who can help me please ?
> > > >
> > > > Thx, kiuma
> > > >
> > >
> >
> > -
> > 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: T4: Problem with my own Date Validator

2007-07-30 Thread César Augusto Mateus
Thanks very much Martino,

an fool fault!, but it did not know clearly so that was the method
getAcceptsNull(), seemed to me very similar to isRequired() and I supposed
that they had the same function.

In the end, i think in extend the class

org.apache.tapestry.form.validator.Required

and it work, but it´s clear now that the solution was but simple, thanks.



On 7/30/07, Martino Piccinato <[EMAIL PROTECTED]> wrote:
>
> you made getAcceptsNull as "false" so you'll never receive a null to
> validate...
>
> On 7/30/07, César Augusto Mateus <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > I did a Validator with the purpose of not to allow that a user entered a
> > date before of today.
> > That validation work fine, but not yet i can to do that this validator
> is
> > obligatory, because when i enter a null value, the validator was not
> call.
> > My Validator code here, thanks
> >
> > package co.org.amv.rupm.tapestry.models;
> >
> > import java.util.Date;
> >
> > import org.apache.tapestry.IMarkupWriter;
> > import org.apache.tapestry.IRequestCycle;
> > import org.apache.tapestry.form.FormComponentContributorContext;
> > import org.apache.tapestry.form.IFormComponent;
> > import org.apache.tapestry.form.ValidationMessages;
> > import org.apache.tapestry.form.validator.BaseValidator;
> > import org.apache.tapestry.form.validator.Validator;
> > import org.apache.tapestry.valid.ValidationConstants;
> > import org.apache.tapestry.valid.ValidatorException;
> >
> > public class ValidatorFecAntesHoyRequired extends BaseValidator
> implements
> > Validator  {
> >
> >
> > public void validate(
> > IFormComponent field, ValidationMessages messages, Object
> > object)
> > throws ValidatorException {
> > Date fecha = (Date) object;
> > //   IF THE USER ENTER A NULL VALUE, NEVER PAINT THIS
> > System.out.println(""+fecha);
> > //  THEN NEVER THROW THIS EXCEPTION
> > if( fecha == null ){
> > throw new ValidatorException( field.getDisplayName() + ":
> Debe
> > ingresar un valor", null );
> > }
> > Date hoy = new Date();
> > if( fecha.after( hoy ) ){
> > throw new ValidatorException(
> > field.getDisplayName() + ": La fecha no puede ser
> > posterior a la fecha actual", null );
> > }
> > }
> >
> > public boolean getAcceptsNull() {
> > return false;
> > }
> >
> > public boolean isRequired() {
> > return true;
> > }
> >
> > public void renderContribution(
> > IMarkupWriter arg0, IRequestCycle cycle,
> > FormComponentContributorContext context, IFormComponent
> field) {
> > }
> >
> > }
> >
> > Thanks for your help, Which is my error???
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: T4: Problem with my own Date Validator

2007-07-30 Thread Martino Piccinato
you made getAcceptsNull as "false" so you'll never receive a null to validate...

On 7/30/07, César Augusto Mateus <[EMAIL PROTECTED]> wrote:
> Hi all,
> I did a Validator with the purpose of not to allow that a user entered a
> date before of today.
> That validation work fine, but not yet i can to do that this validator is
> obligatory, because when i enter a null value, the validator was not call.
> My Validator code here, thanks
>
> package co.org.amv.rupm.tapestry.models;
>
> import java.util.Date;
>
> import org.apache.tapestry.IMarkupWriter;
> import org.apache.tapestry.IRequestCycle;
> import org.apache.tapestry.form.FormComponentContributorContext;
> import org.apache.tapestry.form.IFormComponent;
> import org.apache.tapestry.form.ValidationMessages;
> import org.apache.tapestry.form.validator.BaseValidator;
> import org.apache.tapestry.form.validator.Validator;
> import org.apache.tapestry.valid.ValidationConstants;
> import org.apache.tapestry.valid.ValidatorException;
>
> public class ValidatorFecAntesHoyRequired extends BaseValidator implements
> Validator  {
>
>
> public void validate(
> IFormComponent field, ValidationMessages messages, Object
> object)
> throws ValidatorException {
> Date fecha = (Date) object;
> //   IF THE USER ENTER A NULL VALUE, NEVER PAINT THIS
> System.out.println(""+fecha);
> //  THEN NEVER THROW THIS EXCEPTION
> if( fecha == null ){
> throw new ValidatorException( field.getDisplayName() + ": Debe
> ingresar un valor", null );
> }
> Date hoy = new Date();
> if( fecha.after( hoy ) ){
> throw new ValidatorException(
> field.getDisplayName() + ": La fecha no puede ser
> posterior a la fecha actual", null );
> }
> }
>
> public boolean getAcceptsNull() {
> return false;
> }
>
> public boolean isRequired() {
> return true;
> }
>
> public void renderContribution(
> IMarkupWriter arg0, IRequestCycle cycle,
> FormComponentContributorContext context, IFormComponent field) {
> }
>
> }
>
> Thanks for your help, Which is my error???
>

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



T4: Problem with my own Date Validator

2007-07-30 Thread César Augusto Mateus
Hi all,
I did a Validator with the purpose of not to allow that a user entered a
date before of today.
That validation work fine, but not yet i can to do that this validator is
obligatory, because when i enter a null value, the validator was not call.
My Validator code here, thanks

package co.org.amv.rupm.tapestry.models;

import java.util.Date;

import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.form.FormComponentContributorContext;
import org.apache.tapestry.form.IFormComponent;
import org.apache.tapestry.form.ValidationMessages;
import org.apache.tapestry.form.validator.BaseValidator;
import org.apache.tapestry.form.validator.Validator;
import org.apache.tapestry.valid.ValidationConstants;
import org.apache.tapestry.valid.ValidatorException;

public class ValidatorFecAntesHoyRequired extends BaseValidator implements
Validator  {


public void validate(
IFormComponent field, ValidationMessages messages, Object
object)
throws ValidatorException {
Date fecha = (Date) object;
//   IF THE USER ENTER A NULL VALUE, NEVER PAINT THIS
System.out.println(""+fecha);
//  THEN NEVER THROW THIS EXCEPTION
if( fecha == null ){
throw new ValidatorException( field.getDisplayName() + ": Debe
ingresar un valor", null );
}
Date hoy = new Date();
if( fecha.after( hoy ) ){
throw new ValidatorException(
field.getDisplayName() + ": La fecha no puede ser
posterior a la fecha actual", null );
}
}

public boolean getAcceptsNull() {
return false;
}

public boolean isRequired() {
return true;
}

public void renderContribution(
IMarkupWriter arg0, IRequestCycle cycle,
FormComponentContributorContext context, IFormComponent field) {
}

}

Thanks for your help, Which is my error???


Re: createReadOnlyBindingException help!

2007-07-30 Thread Andrea Chiumenti
Well, I try to investigate into this, meanwhile if you could be so kind to
post a jira...

ciao,
kiuma

On 7/30/07, Martino Piccinato <[EMAIL PROTECTED]> wrote:
>
> Well, I'm having a very similar behaviour with Dialog component that
> by default has a true parameter for optional parameter "hidden".
>
> 
>
> It seems that if you set a constant value ("ognl:0" or "true") to a
> parameter then the parameter itself is regarded as "Invariant" by
> AbstractBinding that will refuse you to use any setter on it (it does
> not have a reference to a method but to a... constant) and throw the
> exception.
> I don't have the exception if I just "override" the constant default
> value with an ognl reference to a couple of setters/getters method
> (returning the default value in case the property is not initialized).
>
> In my opinion this is a bug with "parameter" but I haven't been able
> to investigate more and I'm quite surprised nobody stepped into this
> problem before, see my neglected Dialog mails  of some days ago :-)
>
>
>
> On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> > this is the stack trace
> >
> >
> org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> (
> > AbstractBinding.java:115)
> > org.apache.tapestry.binding.ExpressionBinding.setObject(
> > ExpressionBinding.java:196)
> > $EditTable_16.setStartRow($EditTable_16.java)
> > org.jfly.web.components.edittable.EditTable.rewindFormComponent(
> > EditTable.java:541)
> >
> > On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> > >
> > > Hello!
> > > I'm having this exception (
> > >
> org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> > > (AbstractBinding.java:115)) when I call into my rewindFormComponent
> method
> > > this code:
> > >
> > > setStartRow(sliderValue);
> > >
> > > and I set into jwc file:
> > >  > > default-value="ognl:0"/>
> > >
> > >
> > > Who can help me please ?
> > >
> > > Thx, kiuma
> > >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: createReadOnlyBindingException help!

2007-07-30 Thread Martino Piccinato
Well, I'm having a very similar behaviour with Dialog component that
by default has a true parameter for optional parameter "hidden".



It seems that if you set a constant value ("ognl:0" or "true") to a
parameter then the parameter itself is regarded as "Invariant" by
AbstractBinding that will refuse you to use any setter on it (it does
not have a reference to a method but to a... constant) and throw the
exception.
I don't have the exception if I just "override" the constant default
value with an ognl reference to a couple of setters/getters method
(returning the default value in case the property is not initialized).

In my opinion this is a bug with "parameter" but I haven't been able
to investigate more and I'm quite surprised nobody stepped into this
problem before, see my neglected Dialog mails  of some days ago :-)



On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> this is the stack trace
>
> org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException(
> AbstractBinding.java:115)
> org.apache.tapestry.binding.ExpressionBinding.setObject(
> ExpressionBinding.java:196)
> $EditTable_16.setStartRow($EditTable_16.java)
> org.jfly.web.components.edittable.EditTable.rewindFormComponent(
> EditTable.java:541)
>
> On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> >
> > Hello!
> > I'm having this exception (
> > org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> > (AbstractBinding.java:115)) when I call into my rewindFormComponent method
> > this code:
> >
> > setStartRow(sliderValue);
> >
> > and I set into jwc file:
> >  > default-value="ognl:0"/>
> >
> >
> > Who can help me please ?
> >
> > Thx, kiuma
> >
>

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



Re: createReadOnlyBindingException help!

2007-07-30 Thread Andrea Chiumenti
this is the stack trace

org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException(
AbstractBinding.java:115)
org.apache.tapestry.binding.ExpressionBinding.setObject(
ExpressionBinding.java:196)
$EditTable_16.setStartRow($EditTable_16.java)
org.jfly.web.components.edittable.EditTable.rewindFormComponent(
EditTable.java:541)

On 7/30/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
>
> Hello!
> I'm having this exception (
> org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException
> (AbstractBinding.java:115)) when I call into my rewindFormComponent method
> this code:
>
> setStartRow(sliderValue);
>
> and I set into jwc file:
>  default-value="ognl:0"/>
>
>
> Who can help me please ?
>
> Thx, kiuma
>


createReadOnlyBindingException help!

2007-07-30 Thread Andrea Chiumenti
Hello!
I'm having this exception (
org.apache.tapestry.binding.AbstractBinding.createReadOnlyBindingException(
AbstractBinding.java:115)) when I call into my rewindFormComponent method
this code:

setStartRow(sliderValue);

and I set into jwc file:



Who can help me please ?

Thx, kiuma


Re: maven build from source is not working.

2007-07-30 Thread Alex Shneyderman
the errors are of this type:
/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[89,12]
cannot find symbol
symbol  : class Server
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[17,33]
package org.openqa.selenium.server does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[18,17]
package org.testng does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[19,29]
package org.testng.annotations does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[20,29]
package org.testng.annotations does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[22,32]
package com.thoughtworks.selenium does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[23,32]
package com.thoughtworks.selenium does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[24,32]
package com.thoughtworks.selenium does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[25,32]
package com.thoughtworks.selenium does not exist

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[42,59]
cannot find symbol
symbol: class Assert
public abstract class AbstractIntegrationTestSuite extends Assert
implements Selenium

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[42,77]
cannot find symbol
symbol: class Selenium
public abstract class AbstractIntegrationTestSuite extends Assert
implements Selenium

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[64,12]
cannot find symbol
symbol  : class Selenium
location: class org.apache.tapestry.test.AbstractIntegrationTestSuite

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[66,12]
cannot find symbol
symbol  : class SeleniumServer
location: class org.apache.tapestry.test.AbstractIntegrationTestSuite

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[164,5]
cannot find symbol
symbol  : class AfterClass
location: class org.apache.tapestry.test.AbstractIntegrationTestSuite

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[177,5]
cannot find symbol
symbol  : class BeforeClass
location: class org.apache.tapestry.test.AbstractIntegrationTestSuite

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/RandomDataSource.java:[38,29]
cannot find symbol
symbol  : variable LogFactory
location: class org.apache.tapestry.test.RandomDataSource

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[93,12]
cannot find symbol
symbol  : class Server
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[93,32]
cannot find symbol
symbol  : class Server
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[95,12]
cannot find symbol
symbol  : class SocketListener
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[95,48]
cannot find symbol
symbol  : class SocketListener
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[99,12]
cannot find symbol
symbol  : class NCSARequestLog
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[99,37]
cannot find symbol
symbol  : class NCSARequestLog
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/JettyRunner.java:[102,12]
cannot find symbol
symbol  : class WebApplicationContext
location: class org.apache.tapestry.test.JettyRunner

/home/alex/sources/tapestry5/tapestry-test/src/main/java/org/apache/tapestry/test/AbstractIntegrationTestSuite.java:[145,8]
cannot find symbol
symbol  : method assertEquals(java.lang.String,java.lang.String)
location: class org.apache.

maven build from source is not working.

2007-07-30 Thread Alex Shneyderman
Am I too naive to expect maven build to just build without problems?

I checked the source I go to the root directory (above all the modules)
and I do "mvn clean package" I get errors. That classes are can not be
compiled. Some missing deps.

Any clue? Any guidance on how to successfully build tapestry from source?

-- 
Thanks,
Alex.

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



Re: [T4]Handling Nulls in OGNL expressions

2007-07-30 Thread Martino Piccinato
Hi,

please take my words with a grain of salt because I've never used this
in production but in my opiinon this should be the way to proceed:

have a look at this tapestry configuration point:

http://tapestry.apache.org/tapestry4.1/tapestry-framework/hivedoc/config/tapestry.ognl.PropertyAccessors.html

here you can configure your OGNL PropertyAccessor that returns null on nulls.

This is the interface you have to implement, even though you can just
override the get method of the default implementation for objects.

http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/PropertyAccessor.html



On 7/30/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> I wouldn't mind implementing a hivemind service if I could solve the problem
> this way, but I don't know how to implement the behaviour that I want. I
> want exactly what you discribe happens in WebObjets: if at any point in the
> ognl chain a null object is invoked, the hole expression evaluates to null
> (or "").
>
> Could anyone help me on doing this?
>
> I have a hivemind service that captures null using interface NullHandler,
> but now I'm stuck!
>
> Thanks!
>
> Marcos
>
> On 7/29/07, Damien Uern <[EMAIL PROTECTED]> wrote:
> >
> > (Sorry for top posting, but everybody else seems to do it on this list)
> >
> > Anyway, the null pointer exception in a long property access chain was
> > one of the issues I had with OGNL a while ago and have basically just
> > learned to live with it. It is highly annoying. One of the things I
> > preferred with Apple's WebObjects (which used NSKeyValueCoding for
> > property access expressions) was that if any object in the chain was
> > null, it just returned null. So if you have the expression:
> >
> > a.b.c.d
> >
> > where c is null, the entire expression would evaluate to null. Having to
> > implement some sort of hivemind null pointer handling service just to
> > get this sort of behaviour just screams "over designed" to me.
> >
> > (Not that I'm knocking OGNL/Tapestry in general, I still prefer using it
> > over WebObjects for a variety of reasons).
> >
> > Damien
> >
> > Martino Piccinato wrote:
> > > In my opinion is all that you want is not having NullPointerException it
> > > would be better to implement MethodAccessor and/or PropertyAccessor,
> > that
> > > would return null if the target object is null, then you could simply
> > check
> > > expressions returning nulls and returning your message, or maybe have a
> > > special component doing this.
> > >
> > > Tapestry has configuration point also for default Method/Property
> > accessors.
> > >
> > >
> > > On 7/26/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> > >> Responding to my own mail...
> > >>
> > >> I found an old Andreas mail to the lis (
> > >>
> > http://mail-archives.apache.org/mod_mbox/tapestry-dev/200606.mbox/[EMAIL 
> > PROTECTED]
> > >> )
> > >>
> > >> that explained how to do this.
> > >>
> > >> I'll sumarize my ideas so that I can check if they are correct and
> > maybe
> > >> it
> > >> will result usefull to the next person that wants to do this.
> > >>
> > >> The idea is to define a class that implements NullHandler (
> > >> http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/NullHandler.html).
> > >> That class job is to handle null's when an specific class access to
> > >> property
> > >> returns null.
> > >> To make tapestry use your NullHandler you define something like this in
> > >> your hivemind configuration file:
> > >>
> > >> 
> > >>  > >> object="instance:classToCaptureNulls"/>
> > >> 
> > >>
> > >> where classToCaptureNulls represents the name of the class who's nulls
> > you
> > >>
> > >> want to handle and classThatImplementsNullHandler represents the class
> > >> that
> > >> knows how to deal with nulls in classToCaptureNulls.
> > >>
> > >> Now that I have this working I would like to know how to use it :D
> > >>
> > >> I mean, if I have a long ognl expression like obj1.obj2.obj3.obj4 and
> > >> access
> > >> to obj2 in obj1 return null, I would like to show an "obj2 not
> > available"
> > >> message on screen.
> > >>
> > >> Can anyone help me on how to use this service?
> > >>
> > >> Thanks!
> > >>
> > >> Marcos
> > >>
> > >> On 7/26/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> > >>> Hi Andreas!
> > >>> When I emailed to Tapestry's list I was prototyping a project. Now I'm
> > >>> actually developing it and I'm very interested in getting this service
> > >>> working.
> > >>>
> > >>> Did you find some code where you used this feature?
> > >>>
> > >>> Thanks!
> > >>>
> > >>> Marcos
> > >>>
> > >>> On 6/29/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> >  Thanks Andreas.
> >  I have to do some more reading then.
> > 
> >  I you have some code that I can use as an example I would be really
> >  grateful.
> > 
> >  Thanks!
> > 
> >  Marcos
> > 
> >  On 6/29/07, Andreas Andreou < [EMAIL PROTECTED]> wrote:
> > > O/H Marcos Chicote έγραψε:
> > >> Thanks 

Re: [T 4.1.2] overriding default exception page

2007-07-30 Thread Mahmut Izci

Hi,

please use

instead of


Mahmut

ccmail schrieb:

Hi all,

I've tried to override default Tapestry as described here 
(http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html). 
Unfortunately after adding






to my hivemodule.xml file I am getting an exception like this:

org.apache.hivemind.ApplicationRuntimeException: Error at 
context:/WEB-INF/hivemodule.xml, line 25, column 66: Infrastructure 
contribution for property 'exceptionPageName' (mode 'null') conflicts 
with a prior contribution (at 
jar:file:/T:/_data/id128.m2.repo/org/apache/tapestry/tapestry-framework/4.1.2/tapestry-framework-4.1.2.jar!/META-INF/tapestry.error.xml, 
line 110, column 59) and has been ignored. 
[context:/WEB-INF/hivemodule.xml, line 25, column 66]
org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39) 


org.apache.hivemind.impl.ErrorLogImpl.error(ErrorLogImpl.java:40)
org.apache.tapestry.services.impl.InfrastructureImpl.buildMapFromContributions(InfrastructureImpl.java:334) 


...


What am I doing wrong?

Thanks in advance for any assistance.
Wojtek


---
Ten konkurs jest dla Ciebie ... Sprawd1/4 >> http://link.interia.pl/f1b27



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



[T 4.1.2] overriding default exception page

2007-07-30 Thread ccmail

Hi all,

I've tried to override default Tapestry as described here 
(http://tapestry.apache.org/tapestry4.1/developmentguide/exceptionpages.html). 
Unfortunately after adding



 


to my hivemodule.xml file I am getting an exception like this:

org.apache.hivemind.ApplicationRuntimeException: Error at 
context:/WEB-INF/hivemodule.xml, line 25, column 66: Infrastructure 
contribution for property 'exceptionPageName' (mode 'null') conflicts with a 
prior contribution (at 
jar:file:/T:/_data/id128.m2.repo/org/apache/tapestry/tapestry-framework/4.1.2/tapestry-framework-4.1.2.jar!/META-INF/tapestry.error.xml,
 line 110, column 59) and has been ignored. [context:/WEB-INF/hivemodule.xml, 
line 25, column 66]

org.apache.hivemind.impl.StrictErrorHandler.error(StrictErrorHandler.java:39)
org.apache.hivemind.impl.ErrorLogImpl.error(ErrorLogImpl.java:40)

org.apache.tapestry.services.impl.InfrastructureImpl.buildMapFromContributions(InfrastructureImpl.java:334)
   ...


What am I doing wrong?

Thanks in advance for any assistance.
Wojtek


---
Ten konkurs jest dla Ciebie ... 
Sprawd¼ >>  http://link.interia.pl/f1b27




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



Re: [T4]Handling Nulls in OGNL expressions

2007-07-30 Thread Marcos Chicote
I wouldn't mind implementing a hivemind service if I could solve the problem
this way, but I don't know how to implement the behaviour that I want. I
want exactly what you discribe happens in WebObjets: if at any point in the
ognl chain a null object is invoked, the hole expression evaluates to null
(or "").

Could anyone help me on doing this?

I have a hivemind service that captures null using interface NullHandler,
but now I'm stuck!

Thanks!

Marcos

On 7/29/07, Damien Uern <[EMAIL PROTECTED]> wrote:
>
> (Sorry for top posting, but everybody else seems to do it on this list)
>
> Anyway, the null pointer exception in a long property access chain was
> one of the issues I had with OGNL a while ago and have basically just
> learned to live with it. It is highly annoying. One of the things I
> preferred with Apple's WebObjects (which used NSKeyValueCoding for
> property access expressions) was that if any object in the chain was
> null, it just returned null. So if you have the expression:
>
> a.b.c.d
>
> where c is null, the entire expression would evaluate to null. Having to
> implement some sort of hivemind null pointer handling service just to
> get this sort of behaviour just screams "over designed" to me.
>
> (Not that I'm knocking OGNL/Tapestry in general, I still prefer using it
> over WebObjects for a variety of reasons).
>
> Damien
>
> Martino Piccinato wrote:
> > In my opinion is all that you want is not having NullPointerException it
> > would be better to implement MethodAccessor and/or PropertyAccessor,
> that
> > would return null if the target object is null, then you could simply
> check
> > expressions returning nulls and returning your message, or maybe have a
> > special component doing this.
> >
> > Tapestry has configuration point also for default Method/Property
> accessors.
> >
> >
> > On 7/26/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> >> Responding to my own mail...
> >>
> >> I found an old Andreas mail to the lis (
> >>
> http://mail-archives.apache.org/mod_mbox/tapestry-dev/200606.mbox/[EMAIL 
> PROTECTED]
> >> )
> >>
> >> that explained how to do this.
> >>
> >> I'll sumarize my ideas so that I can check if they are correct and
> maybe
> >> it
> >> will result usefull to the next person that wants to do this.
> >>
> >> The idea is to define a class that implements NullHandler (
> >> http://www.ognl.org/2.6.9/Documentation/javadoc/ognl/NullHandler.html).
> >> That class job is to handle null's when an specific class access to
> >> property
> >> returns null.
> >> To make tapestry use your NullHandler you define something like this in
> >> your hivemind configuration file:
> >>
> >> 
> >>  >> object="instance:classToCaptureNulls"/>
> >> 
> >>
> >> where classToCaptureNulls represents the name of the class who's nulls
> you
> >>
> >> want to handle and classThatImplementsNullHandler represents the class
> >> that
> >> knows how to deal with nulls in classToCaptureNulls.
> >>
> >> Now that I have this working I would like to know how to use it :D
> >>
> >> I mean, if I have a long ognl expression like obj1.obj2.obj3.obj4 and
> >> access
> >> to obj2 in obj1 return null, I would like to show an "obj2 not
> available"
> >> message on screen.
> >>
> >> Can anyone help me on how to use this service?
> >>
> >> Thanks!
> >>
> >> Marcos
> >>
> >> On 7/26/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> >>> Hi Andreas!
> >>> When I emailed to Tapestry's list I was prototyping a project. Now I'm
> >>> actually developing it and I'm very interested in getting this service
> >>> working.
> >>>
> >>> Did you find some code where you used this feature?
> >>>
> >>> Thanks!
> >>>
> >>> Marcos
> >>>
> >>> On 6/29/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
>  Thanks Andreas.
>  I have to do some more reading then.
> 
>  I you have some code that I can use as an example I would be really
>  grateful.
> 
>  Thanks!
> 
>  Marcos
> 
>  On 6/29/07, Andreas Andreou < [EMAIL PROTECTED]> wrote:
> > O/H Marcos Chicote έγραψε:
> >> Thanks Andreas.
> >> Before mailing to this list, I tried looking at the ognl
> > documentation
> >> and I
> >> found the NullHandler interface but I wasn't sure how it worked
> >> with
> >> Tapestry or if it was possible to do it another way without
> >> altering
> > the
> >> BOs.
> >>
> >> Correct me if I'm wrong but what I understand is that Tapestry
> > already
> >> implements a Hivemind service that does the null handling. All I
> > have
> >> to do
> >> is make my BOs implement NullHandler interface. Am I right?
> > Hmmm, not really... Tapestry simply provides that point so that your
> > have a global
> > way of registring handlers - so, making your BOs implement
> >> NullHandler
> > is not enough
> >
> > Also, i'm not sure if that's the correct approach - seems it polutes
> > your BOs
> >
> > I think

radio in a grid table - null pointer

2007-07-30 Thread Jan Laníček

Hi all,

  I would like have a table, where on every row will be radio select, I
was trying code below, and rendering was ok, but after submit form tapestry
5 throw null pointer.

Any ideas, please
Thanks
John

HTML:




  
  
  





JAVA:

private String radioSelectedValue;

@Component
private Form _form;

@InjectPage
private ViewValueDetail _viewValueDetail;

@OnEvent(component = "viewValueDetail")
Object makeLoad()
{
_viewValueDetail.setSelectedValueName(radioSelectedValue);
return _viewValueDetail;
}

public String getRadioSelectedValue()
{
  return radioSelectedValue;
}

public void setRadioSelectedValue(String value)
{
  radioSelectedValue = value;
}

...other required getter and setters...

ERR MESSAGE:

An unexpected application exception has occurred.

* org.apache.tapestry.ioc.internal.util.TapestryException
  Failure reading parameter source of component
ManageValues:grid.columns.loop: Failure reading parameter model of component
ManageValues:grid: java.lang.NullPointerException
* org.apache.tapestry.ioc.internal.util.TapestryException
  Failure reading parameter source of component
ManageValues:grid.columns.loop: Failure reading parameter model of component
ManageValues:grid: java.lang.NullPointerException

  location
  classpath:org/apache/tapestry/corelib/components/GridColumns.html,
line 3, column 116
  1 http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
  2 
  3 
  4  ${columnModel.label} 
  5 
  6  
  7  ${icon} 
  8  

* java.lang.NullPointerException (on line 3)

  Stack trace
  o
org.apache.tapestry.corelib.components.Grid$1.get(Grid.java:158)
  o
org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:204)
  o
org.apache.tapestry.corelib.components.Grid._$read_parameter_model(Grid.java)
  o
org.apache.tapestry.corelib.components.Grid.getDataModel(Grid.java:228)
  o
org.apache.tapestry.corelib.components.GridColumns.getColumnNames(GridColumns.java:116)
  o
org.apache.tapestry.internal.bindings.PropBinding.get(PropBinding.java:54)
  o
org.apache.tapestry.internal.structure.InternalComponentResourcesImpl.readParameter(InternalComponentResourcesImpl.java:204)
  o
org.apache.tapestry.corelib.components.Loop._$read_parameter_source(Loop.java)
  o
org.apache.tapestry.corelib.components.Loop.setupForVolatile(Loop.java:265)
  o
org.apache.tapestry.corelib.components.Loop.access$100(Loop.java:46)
  o
org.apache.tapestry.corelib.components.Loop$2.execute(Loop.java:69)
  o
org.apache.tapestry.corelib.components.Loop$2.execute(Loop.java:70)
  o
org.apache.tapestry.corelib.components.Form.onAction(Form.java:364)
  o
org.apache.tapestry.corelib.components.Form.handleComponentEvent(Form.java)
  o
org.apache.tapestry.internal.structure.ComponentPageElementImpl.handleEvent(ComponentPageElementImpl.java:893)
  o
org.apache.tapestry.internal.structure.ComponentPageElementImpl.triggerEvent(ComponentPageElementImpl.java:998)
  o
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:100)
  o
org.apache.tapestry.internal.services.ActionLinkHandlerImpl.handle(ActionLinkHandlerImpl.java:53)
  o
org.apache.tapestry.internal.services.ComponentActionDispatcher.dispatch(ComponentActionDispatcher.java:115)
  o
org.apache.tapestry.services.TapestryModule$12.service(TapestryModule.java:1067)
  o
cz.ibm.mv.vis.esb.adminclient.services.Nsvis_adminclientModule$1.service(Nsvis_adminclientModule.java:71)
  o
cz.ibm.mv.vis.esb.adminclient.services.Nsvis_adminclientModule$2.service(Nsvis_adminclientModule.java:106)
  o
org.apache.tapestry.internal.services.LocalizationFilter.service(LocalizationFilter.java:43)
  o
org.apache.tapestry.services.TapestryModule$3.service(TapestryModule.java:667)
  o
org.apache.tapestry.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:63)
  o
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:91)
  o
org.apache.tapestry.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:82)
  o
org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:77)
  o
org.apache.tapestry.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:104)
  o
org.apache.tapestry.services.TapestryModule$11.service(TapestryModule.java:1045)
  o
org.apache.tapestry.TapestryFilter.doFilter(TapestryFilter.java:135)
  

AW: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Kay.Thielmann
Thanks so far. In my freemarker-templates I wrote the links as if they would 
have been renderered by DirectLink. Now Tapestry uses the trigger() Methode of 
the Direct Interface. No real nice solution, but it works.

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 30. Juli 2007 10:08
An: users@tapestry.apache.org
Betreff: RE: T4: Adding a listener to a link that has not been rendered
in tapestry


depends on how much control over the "external links" you do have.
If you can control their generation, you can do anything ;).
hard to say, without a more concrete knowledge of what these links should do,
why they cannot be generated by tapestry and what they may be allowed to know
about tapestry.
DirectService, as all services has a method to generate links to call it. So, 
if you can
call this, you're fine

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 30, 2007 9:09 AM
> To: users@tapestry.apache.org
> Subject: RE: T4: Adding a listener to a link that has not 
> been rendered in tapestry
> 
> We are using Tapestry 4.02 in a portal environment. So using 
> AJAX or javascript (even so it may not be barrier-free) is 
> not so easy. I thought about something like writing my own 
> service or subclassing DirectService, or something like that...
> 
> Any suggestions?
> 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 30. Juli 2007 08:54
> An: users@tapestry.apache.org
> Betreff: RE: T4: Adding a listener to a link that has not 
> been rendered in tapestry
> 
> 
> you could use the EventListener mechanism to intercept the 
> clicks, see 
> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> If you know the link-id's in advance, it's particularly easy.
> If you don't have control over the "external" links, you'll 
> have to come up with some javascript delegating the onclick 
> events to a single element controlled by tapestry which you 
> can then intercept.
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Monday, July 30, 2007 8:03 AM
> > To: users@tapestry.apache.org
> > Subject: T4: Adding a listener to a link that has not been 
> rendered in 
> > tapestry
> > 
> > I wrote a component which shows some html from an external source. 
> > This html may contain some links. If one of this links is clicked I 
> > need to call a listener to set some parameters, but I don't 
> know how 
> > to trigger the listener in this case.
> > 
> > Please help.
> > 
> > Kay Thielmann
> > Mitarbeiter / BC Government Themen
> > Business Unit Information
> > __
> > MATERNA GmbH Information & Communications Voßkuhle 37 * 
> 44141 Dortmund 
> > * Deutschland
> > Tel.: +49 231 5599-8297>
> > [EMAIL PROTECTED] * www.materna.de Hauptsitz der 
> MATERNA GmbH: 
> > Voßkuhle 37, 44141 Dortmund
> > Geschäftsführer: Dr. Winfried Materna, Helmut an de Meulen, Ralph 
> > Hartwig Amtsgericht Dortmund HRB 5839
> > 
> > 
> > 
> -
> > 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]


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



T4: DropDownDatePicker

2007-07-30 Thread Andrea Chiumenti
Hello, I've just seen a strange behaviour when selecting a date from
DorpDownDatePicker, because this component performs a submit.
Is it a bug ?


RE: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Marcus.Schulte
depends on how much control over the "external links" you do have.
If you can control their generation, you can do anything ;).
hard to say, without a more concrete knowledge of what these links should do,
why they cannot be generated by tapestry and what they may be allowed to know
about tapestry.
DirectService, as all services has a method to generate links to call it. So, 
if you can
call this, you're fine

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 30, 2007 9:09 AM
> To: users@tapestry.apache.org
> Subject: RE: T4: Adding a listener to a link that has not 
> been rendered in tapestry
> 
> We are using Tapestry 4.02 in a portal environment. So using 
> AJAX or javascript (even so it may not be barrier-free) is 
> not so easy. I thought about something like writing my own 
> service or subclassing DirectService, or something like that...
> 
> Any suggestions?
> 
> -Ursprüngliche Nachricht-
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 30. Juli 2007 08:54
> An: users@tapestry.apache.org
> Betreff: RE: T4: Adding a listener to a link that has not 
> been rendered in tapestry
> 
> 
> you could use the EventListener mechanism to intercept the 
> clicks, see 
> http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
> If you know the link-id's in advance, it's particularly easy.
> If you don't have control over the "external" links, you'll 
> have to come up with some javascript delegating the onclick 
> events to a single element controlled by tapestry which you 
> can then intercept.
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Sent: Monday, July 30, 2007 8:03 AM
> > To: users@tapestry.apache.org
> > Subject: T4: Adding a listener to a link that has not been 
> rendered in 
> > tapestry
> > 
> > I wrote a component which shows some html from an external source. 
> > This html may contain some links. If one of this links is clicked I 
> > need to call a listener to set some parameters, but I don't 
> know how 
> > to trigger the listener in this case.
> > 
> > Please help.
> > 
> > Kay Thielmann
> > Mitarbeiter / BC Government Themen
> > Business Unit Information
> > __
> > MATERNA GmbH Information & Communications Voßkuhle 37 * 
> 44141 Dortmund 
> > * Deutschland
> > Tel.: +49 231 5599-8297>
> > [EMAIL PROTECTED] * www.materna.de Hauptsitz der 
> MATERNA GmbH: 
> > Voßkuhle 37, 44141 Dortmund
> > Geschäftsführer: Dr. Winfried Materna, Helmut an de Meulen, Ralph 
> > Hartwig Amtsgericht Dortmund HRB 5839
> > 
> > 
> > 
> -
> > 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: T4: Adding a listener to a link that has not been rendered in tapestry

2007-07-30 Thread Kay.Thielmann
We are using Tapestry 4.02 in a portal environment. So using AJAX or javascript 
(even so it may not be barrier-free) is not so easy. I thought about something 
like writing my own service or subclassing DirectService, or something like 
that...

Any suggestions?

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 30. Juli 2007 08:54
An: users@tapestry.apache.org
Betreff: RE: T4: Adding a listener to a link that has not been rendered
in tapestry


you could use the EventListener mechanism to intercept the clicks, 
see http://tapestry.apache.org/tapestry4.1/ajax/eventlistener.html
If you know the link-id's in advance, it's particularly easy.
If you don't have control over the "external" links, you'll have to
come up with some javascript delegating the onclick events to a single
element controlled by tapestry which you can then intercept.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Sent: Monday, July 30, 2007 8:03 AM
> To: users@tapestry.apache.org
> Subject: T4: Adding a listener to a link that has not been 
> rendered in tapestry
> 
> I wrote a component which shows some html from an external 
> source. This html may contain some links. If one of this 
> links is clicked I need to call a listener to set some 
> parameters, but I don't know how to trigger the listener in this case.
> 
> Please help.
> 
> Kay Thielmann
> Mitarbeiter / BC Government Themen
> Business Unit Information
> __
> MATERNA GmbH Information & Communications Voßkuhle 37 * 44141 
> Dortmund * Deutschland
> Tel.: +49 231 5599-8297>
> [EMAIL PROTECTED] * www.materna.de Hauptsitz der 
> MATERNA GmbH: Voßkuhle 37, 44141 Dortmund
> Geschäftsführer: Dr. Winfried Materna, Helmut an de Meulen, 
> Ralph Hartwig Amtsgericht Dortmund HRB 5839
> 
> 
> -
> 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]