Tapesrty UI Developer Needed near SF

2007-04-18 Thread Lithium Tapestry

Greetings Tapestry Developers,



Interested in joining an exciting, well-established (6 years and
profitable), SF Bay Area startup where you could exercise your Tapestry and
JavaScript skills to develop cutting edge community based web applications?
Lithium Technologies is seeking an experienced Tapestry developer to assist
in a complete UI overhaul of our current web based application.  We will be
working with the bleeding edge version of Tapestry (we just built
5.0.4today so we could have Doctype support!) to port our current
system off of
JSP and Velocity templates.



Valued skills:

  - Tapestry 4 or 5
  - Clean, concise, semantically correct HTML
  - Clever CSS, tables for tabular data not layout, image replacement,
  rounded corners, fun!
  - Knowledge of prototypical JavaScript development and JSON (if you
  know who Douglas Crawford is without having to look it up then you are
  fine).  Experience with JavaScript libraries a plus (Scriptaculous,
  Prototype, Dojo, YUI, Ext, etc).
  - Experience with integration testing and unit testing (Selenium,
  jUnit, TestNg, etc)
  - Java experience to boot?  If you are developing Tapestry apps you
  will need to be writing the component and page classes and have the ability
  to at least talk intelligently with our back end developers!
  - Solid documentation skills (no brainier)

If you're passionate about software development and making a slick Web UI
work for the millions of users on our customers' sites, and prefer a small
company with minimal bureaucracy, this may be the job for you.



Lithium Technologies: http://lithium.com

Complete Job Description: http://docs.google.com/Doc?id=dcs6tdgn_0swmj58



Interested, please send inquiries and resumes to [EMAIL PROTECTED]
*.



Regards,

Adam Ayres


Re: Does tapestry5 don't support jdk1.4

2007-04-18 Thread Todd Orr

I don't personally use Hibernate annotations, I prefer the XML syntax.
However, I had to comment that your post has some truth in it and it
runs contrary to your very same post: "Data outlasts programs". Odds
are you'll abandon your program before your schema changes in a
significant way. So, if you have annotations that specify ORM metadata
you are likely to not have to worry about changing it that often at
all once you go live. (previous statement is totally dependent on a
multitude of external factors)

To the overall point: I must disagree that annotations are a bad
smell. Almost all configuration is code of one form or another in that
it manipulates your application. Just because you're not "programming"
doesn't mean you're not "coding". Just because you have configurations
in XML does not inherently make your application more decoupled
either. You still have to be aware of configuration metadata wherever
it lies. In the case of XML it is actually further away from the code
that it configures than annotations. That's a big advantage for
annotations - you can see the code and the configuration of that code
without have to juggle various XML files. Also, in the case of passing
in enumerations to the annotations you get a level of native compile
time safety that you can't get with XML. You'll know immediately if
you have a syntax error or, in some cases, invalid argument types.

As noted previously, with both XML and Annotations you're going to
perform a build (depending on your build tool semantics may vary) and
deploy. Even on large projects this is not the end of the world. If
you follow best practices you should be able to compile, test, and
deploy discrete modules of your project without forcing an entire
rebuild of all dependent modules. And even if you do have to, that's
an even stronger argument for annotations since you get compiler
warnings on syntax errors while you do not typically get this with
XML. This will save you valuable time vs. chasing down a runtime error
because you misspelled an xml attribute value that is only used in x
scenario on y days.

Having said all that there are times I prefer XML. For example,
Spring's XML syntax is very powerful and probably could not be
expressed as elegantly via annotations. Additionally, the context XML
file fits nicely with the philosophy that you're wiring an application
together out of various, potentially unrelated, modules. It's nice to
do this declaratively via an XML file, IMHO. Contrast that with
Tapestry where you are instrumenting individual components/pages in
your UI layer (I know Tapestry does other things - no flames - just
pointing out the typical use case). In this case I find it much more
convenient to have the configuration close to the particular piece of
code I am working on.

I would say this boils down to personal preference / best tool for the
job rather than a blanket statement like "it smells bad".

- my $0.02

On 4/18/07, Patrick Moore <[EMAIL PROTECTED]> wrote:

jdk 1.4 3+ years old, annotations are great for tapestry I don't have a
single .jwc file anywhere

But personally, I think the hibernate people are smoking crack to use
annotations. Data outlasts programs and to have your data definitions
blended with your code WTF are they thinking. But for tapestry? come on!

Hey they are working on jdk 1.7  at some point Sun is going to EOL
1.4like they did
1.3 catch up with the rest of the world!

-Pat

On 4/18/07, li li <[EMAIL PROTECTED]> wrote:
>
> Annotation is a bad small. I mean that it is a bad thing. You have to
> compile all java code if you change any annotations. But if you use xml
> config file,there is no problem.
>
>
>
>
> *离人网*
>



Re: T5: html templates & "fragments"

2007-04-18 Thread Robert Zeigler

Hi Ki,

The pattern used in tapestry is to create a "layout" type of  
component, and include that in all of your pages.
So instead of thinking of things as a single page with a set of  
content that goes in the middle, you think of the layout as a  
component which is included in all of your pages.  So  
SiteDesignTemplate.html would be a component template, and you could  
then do:



  


On your pages.

Robert

On Apr 18, 2007, at 4/184:32 PM , Ki Alam wrote:

I'm beginning to work with Tapestry 5 and I'd ideally like to have  
one page
design (created by Dreamweaver) shared between all my pages.  Let's  
call
that SiteDesignTemplate.html.  This would have s or eve s   
into
which I'd like to insert my Start.html and other Tapestry pages as  
required
for each step in my application.  I've looked at the component code  
in the
tapestry 5.0.3 source, but I'm having trouble determining the  
control flow.


Are there any examples of this available for tapestry 5?

Thanks,
Ki



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



Re: How to get a full url from an IActionListener

2007-04-18 Thread Jesse Kuhnert

It's easier if you do it the same way the DirectLink component does it :

IEngineService directService = somehowGetDirectService();
String url = directService.getLink(false, new
DirectServiceParameter(parameters n stuff ...) ).getUrl();

On 4/18/07, Alexander Lamb <[EMAIL PROTECTED]> wrote:


Hello again.

I found another way to get a listener URL. I simply put a DirectLink
component hidden in my component:

link

source is simply a parameter with the name of the function.

In my component I then recuperate the url in:

protected void prepareForRender(IRequestCycle cycle)
{
super.prepareForRender(cycle);
setFullURL((DirectLink)getComponents().get("data_link")).getLink
(cycle).getAbsoluteURL());
}

With that fullURL, I will be able to answer the first question of my
previous post about integrating a flex chart in an HTML page
generated by Tapestry (I hope:-)

Alexander

Le Apr 18, 2007 à 6:18 PM, Alexander Lamb a écrit :

> Hello list,
>
> Imagine in a component I fetch:
>
> IActionListener action = super.getPage().getListeners().getListener
> ("myListenerFunction");
>
> From this, I would like to get the full url in order to pass it to
> a flash movie (which will then call that url to populate a chart)...
>
> I am maybe getting something wrong here but I am stuck!
>
> Thanks,
>
> Alex
> --
> Alexander Lamb
> Founding Associate
> RODANOTECH Sàrl
>
> 26 ch des Tattes
> 1222 Vésenaz
> Switzerland
>
> Fax: 022 855 06 14
>
> http://www.rodanotech.ch
>
>

--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz
Switzerland

Fax: 022 855 06 14

http://www.rodanotech.ch






--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: [T4.1.x] Dojo Fisheye without Tacos?

2007-04-18 Thread Jesse Kuhnert

I did it with tacos but never used it anywhere other than the demo (until it
broke because of drag & drop api changes.)

So yes it's been done but long since died off a little whimpering lonely
death.

On 4/18/07, Daniel Jue <[EMAIL PROTECTED]> wrote:


Has anyone written a Tap 4.1 app that used the Dojo Fisheye without Tacos?
(I've never dealt with tacos besides reading a few blurbs about it.)

Is Fisheye a widget that has yet to be integrated?  (Or is it left to the
public as an exercise)

Daniel Jue





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: @Hidden can't refresh like @TextField

2007-04-18 Thread Jesse Kuhnert

Probably something in tacos isn't transferring all element property
attributes properly when updating a node. I only refined methods for doing
this fairly recently so it's no surprise it's still possibly b0rken in
tacos. (since I wrote it)

On 4/18/07, Yohan Yudanara <[EMAIL PROTECTED]> wrote:


Dear all,

I have a tacos:AjaxDirectLink component which render partial page.
The partial part contains this code: (html file)

   
  


and the controller contains this code: (page file)





Let's say the paymentPrice contains 300. After the tacos:ajaxDirectLink
clicked, the paymentPrice become 200 and it displays correcly on the
screen.

When the orderForm being submitted, I was expecting that calling
getPaymentPrice() on Java class will return 200.
But it's still return 300, unless I change the @Hidden component to
@TextField.

When I change @Hidden to @TextField,

become

calling getPaymentPrice() on Java class returned 200 (correct)

Why is this happening?
I'm using Tapestry 4.0.1 and Tacos 4.0.1..

Could somebody explain?
Thanks a lot








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





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: Advice Needed ASAP - Tapestry 4.1.2 Autocompleter

2007-04-18 Thread Jesse Kuhnert

I'm not sure what it is that you wanted to be able to do and can't but it's
pretty easy to override bits and pieces of widgets.

http://trac.dojotoolkit.org/browser/trunk/src/widget/Select.js
http://trac.dojotoolkit.org/browser/trunk/src/widget/ComboBox.js

overriding would probably look something like:

dojo.require("dojo.widget.ComboBox");

dojo.lang.extend(dojo.widget.ComboBox,

setValue:function(value) {
   // do something different with value
 }
);

If you don't really want to force all object definitions of ComboBox to use
your new enhancement but only one specific
instance you can do some (real) mix-ins :

dojo.lang.mixin(dojo.widget.byId("myComboBox"), new
MyCustomBehavorObject());

On 4/17/07, Daniel Leffel <[EMAIL PROTECTED]> wrote:


I've invested countless hours into this project and now need advice.

My prevailing assumption had been that I could use the forceValid option
with the Autocompleter and the subsequently be able to access the input
string to create new values on Form submit. It sounds from my prior email
that this isn't going to work well. I absolutely need this functionality
though.

My presumption is that I can't use Tacos with 4.1.2. I can't revert to
4.0because I've already extensively implemented functionality using
the
EventListener.

What should I do?





--
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com


Re: T5: html templates & "fragments"

2007-04-18 Thread Howard Lewis Ship

It's a class of component we call a "layout" or a "border".  I.e.


 My page specific content



An the Layout component's template:


 
  ...



 ...


On 4/18/07, Ki Alam <[EMAIL PROTECTED]> wrote:


I'm beginning to work with Tapestry 5 and I'd ideally like to have one
page
design (created by Dreamweaver) shared between all my pages.  Let's call
that SiteDesignTemplate.html.  This would have s or eve s  into
which I'd like to insert my Start.html and other Tapestry pages as
required
for each step in my application.  I've looked at the component code in the
tapestry 5.0.3 source, but I'm having trouble determining the control
flow.

Are there any examples of this available for tapestry 5?

Thanks,
Ki





--
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: Invoke a page listener from a component template

2007-04-18 Thread Markus Kramer

Great!
ognl:page.listeners.doClick did the job. I wasn't aware that you could
also use a ognl expression instead of a listener expression.

Injecting an ASO into a component worked as well. Somehow I thought
this wasn't possible.
Thanks for the quick help.

Bye
Markus



2007/4/19, Ben Dotte <[EMAIL PROTECTED]>:

Hi Markus,

Is there any reason you can't inject the ASO into your component class?

@InjectState("nameofASO")
public abstract MyASO getMyASO();

Otherwise if you really want to access the listener on the page I wonder
if listener:page.listeners.doClick would work instead.

HTH

Ben

-Original Message-
From: Markus Kramer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 5:22 PM
To: users@tapestry.apache.org
Subject: Invoke a page listener from a component template

Hi everyone,
I've got a DirectLink in a component template. But when this link is
clicked I don't want to call a listener method of that component, but
a listener method of the page that contains the component.
I tried it like this, but it didn't work:

xyz

The reason is that I need access to an application state object.

Alternatively I'm thinking about to have my component write out the
HTML code directly, and not to use a template. The component could
then print a hyperlink without using the DirectLink component. But I
don't know how such a 'static' link might look like, since Tapestry's
URLs don't have a parameter which tells it what listener method is
supposed to be invoked.

Any ideas would be appreciated!

 - Markus

-
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: Invoke a page listener from a component template

2007-04-18 Thread Andreas Andreou

Also, a component can always accept a listener as a parameter!

In this way, users of that component can specify their own action to be
invoked
when the component does something

On 4/19/07, Ben Dotte <[EMAIL PROTECTED]> wrote:


Sorry, I meant ognl:page.listeners.doClick

-Original Message-
From: Ben Dotte [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 5:28 PM
To: Tapestry users
Subject: RE: Invoke a page listener from a component template

Hi Markus,

Is there any reason you can't inject the ASO into your component class?

@InjectState("nameofASO")
public abstract MyASO getMyASO();

Otherwise if you really want to access the listener on the page I wonder
if listener:page.listeners.doClick would work instead.

HTH

Ben

-Original Message-
From: Markus Kramer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 5:22 PM
To: users@tapestry.apache.org
Subject: Invoke a page listener from a component template

Hi everyone,
I've got a DirectLink in a component template. But when this link is
clicked I don't want to call a listener method of that component, but
a listener method of the page that contains the component.
I tried it like this, but it didn't work:

xyz

The reason is that I need access to an application state object.

Alternatively I'm thinking about to have my component write out the
HTML code directly, and not to use a template. The component could
then print a hyperlink without using the DirectLink component. But I
don't know how such a 'static' link might look like, since Tapestry's
URLs don't have a parameter which tells it what listener method is
supposed to be invoked.

Any ideas would be appreciated!

- Markus

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






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


RE: Invoke a page listener from a component template

2007-04-18 Thread Ben Dotte
Sorry, I meant ognl:page.listeners.doClick

-Original Message-
From: Ben Dotte [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 5:28 PM
To: Tapestry users
Subject: RE: Invoke a page listener from a component template

Hi Markus,

Is there any reason you can't inject the ASO into your component class?

@InjectState("nameofASO")
public abstract MyASO getMyASO();

Otherwise if you really want to access the listener on the page I wonder
if listener:page.listeners.doClick would work instead.

HTH

Ben

-Original Message-
From: Markus Kramer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 5:22 PM
To: users@tapestry.apache.org
Subject: Invoke a page listener from a component template

Hi everyone,
I've got a DirectLink in a component template. But when this link is
clicked I don't want to call a listener method of that component, but
a listener method of the page that contains the component.
I tried it like this, but it didn't work:

xyz

The reason is that I need access to an application state object.

Alternatively I'm thinking about to have my component write out the
HTML code directly, and not to use a template. The component could
then print a hyperlink without using the DirectLink component. But I
don't know how such a 'static' link might look like, since Tapestry's
URLs don't have a parameter which tells it what listener method is
supposed to be invoked.

Any ideas would be appreciated!

 - Markus

-
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: Invoke a page listener from a component template

2007-04-18 Thread Ben Dotte
Hi Markus,

Is there any reason you can't inject the ASO into your component class?

@InjectState("nameofASO")
public abstract MyASO getMyASO();

Otherwise if you really want to access the listener on the page I wonder
if listener:page.listeners.doClick would work instead.

HTH

Ben

-Original Message-
From: Markus Kramer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 18, 2007 5:22 PM
To: users@tapestry.apache.org
Subject: Invoke a page listener from a component template

Hi everyone,
I've got a DirectLink in a component template. But when this link is
clicked I don't want to call a listener method of that component, but
a listener method of the page that contains the component.
I tried it like this, but it didn't work:

xyz

The reason is that I need access to an application state object.

Alternatively I'm thinking about to have my component write out the
HTML code directly, and not to use a template. The component could
then print a hyperlink without using the DirectLink component. But I
don't know how such a 'static' link might look like, since Tapestry's
URLs don't have a parameter which tells it what listener method is
supposed to be invoked.

Any ideas would be appreciated!

 - Markus

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



Invoke a page listener from a component template

2007-04-18 Thread Markus Kramer

Hi everyone,
I've got a DirectLink in a component template. But when this link is
clicked I don't want to call a listener method of that component, but
a listener method of the page that contains the component.
I tried it like this, but it didn't work:

xyz

The reason is that I need access to an application state object.

Alternatively I'm thinking about to have my component write out the
HTML code directly, and not to use a template. The component could
then print a hyperlink without using the DirectLink component. But I
don't know how such a 'static' link might look like, since Tapestry's
URLs don't have a parameter which tells it what listener method is
supposed to be invoked.

Any ideas would be appreciated!

- Markus

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



T5: html templates & "fragments"

2007-04-18 Thread Ki Alam

I'm beginning to work with Tapestry 5 and I'd ideally like to have one page
design (created by Dreamweaver) shared between all my pages.  Let's call
that SiteDesignTemplate.html.  This would have s or eve s  into
which I'd like to insert my Start.html and other Tapestry pages as required
for each step in my application.  I've looked at the component code in the
tapestry 5.0.3 source, but I'm having trouble determining the control flow.

Are there any examples of this available for tapestry 5?

Thanks,
Ki


Specify where to find the HTML templates

2007-04-18 Thread mateamargo

I 'm using Tapestry without problems. But I need to hide the HTML templates.
Actually they are inside src/main/webapp, but I need them to be inside
src/main/webapp/WEB-INF/pages. Where do I tell Tapestry that the templates
are going to be there.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Specify-where-to-find-the-HTML-templates-tf3603234.html#a10066444
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Anybody have the FCKEditor working in IE7?

2007-04-18 Thread jake123

Hi,
we have currently FCKEditor version 2.3.2 in our tapestry application and
that does not work in IE7.
Where the toolbar and the textarea are supposed to be displayed there is
only a big white space and we don't see any javascript errors anybody
have this working? We tried to update to FCKEditor version 2.4.2 but the
result is the same.

It works fine in Firefox...

Thanks
Jacob
-- 
View this message in context: 
http://www.nabble.com/Anybody-have-the-FCKEditor-working-in-IE7--tf3603233.html#a10066441
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: Creating a tapestry/flex component with HTTPService?

2007-04-18 Thread Alexander Lamb

Thanks Matt !

I replied to another post of mine which gives already half of the  
answer. I will try what you suggest for the other half and then poste  
the component (if it works).


Alexander

Le Apr 18, 2007 à 7:03 PM, Matt Kerr a écrit :


Hey Alexander Lamb -


First message to this list... getting back to development after some
time (previously NeXT / WebObjects :-).


[ah, yes.  the gold old days :-]




1) figure out what url to give


In the calling (~generated) .html - the link to the flash goes  
something like ..


http://mahost/mycharting.swf?url=/blahcontext/app? 
service=page&page=MyChartXML&id=6654321


(The flash/swf just grabs the "url" arg from the querystring in the  
ActionScript code, and performs ~GET to request the xml.)





2) figure how to return XML data instead of HTML


I think the key is to implement this on MyChartXML.java

public ContentType getResponseContentType() {
return new ContentType("text/xml");
}   



The  MyChartXML.html file .. is vanilla:




...



MyChartXML.page is ordinary too.


Cheers,
-Matt

On Wednesday, April 18, 2007, at 03:24AM, "Alexander Lamb"  
<[EMAIL PROTECTED]> wrote:

Hello list,

First message to this list... getting back to development after some
time (previously NeXT / WebObjects :-).

I am currently developping a Tapestry 4.1 / Cayenne app. Works fine.

Now, I would like to add some Flex components to my HTML page. The
first attempt is to add charting to my app.

The ideal would be to create a Tapestry component which integrates my
swf chart. The problem I have is:

- if my chart is getting populated by a HTTPService with XML data, I
need to:

1) figure out what url to give
2) figure how to return XML data instead of HTML

For point 2, in the target function being called, in WebObjects I
would have overriden "appendToResponse". I am not certain how to do
this in Tapestry.
For point 1, I don't really know what url to pass to the Flex
component in order to be certain I am staying in my session (visit)
and calling the correct function in my tapestry component.

Are there some examples somewhere?

Thanks,

Alex
--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz

Fax: 022 855 06 14

www.rodanotech.ch





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



--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz
Switzerland

Fax: 022 855 06 14

http://www.rodanotech.ch




Re: How to get a full url from an IActionListener

2007-04-18 Thread Alexander Lamb

Hello again.

I found another way to get a listener URL. I simply put a DirectLink  
component hidden in my component:


link

source is simply a parameter with the name of the function.

In my component I then recuperate the url in:

protected void prepareForRender(IRequestCycle cycle)
{
super.prepareForRender(cycle);
	setFullURL((DirectLink)getComponents().get("data_link")).getLink 
(cycle).getAbsoluteURL());

}

With that fullURL, I will be able to answer the first question of my  
previous post about integrating a flex chart in an HTML page  
generated by Tapestry (I hope:-)


Alexander

Le Apr 18, 2007 à 6:18 PM, Alexander Lamb a écrit :


Hello list,

Imagine in a component I fetch:

IActionListener action = super.getPage().getListeners().getListener 
("myListenerFunction");


From this, I would like to get the full url in order to pass it to  
a flash movie (which will then call that url to populate a chart)...


I am maybe getting something wrong here but I am stuck!

Thanks,

Alex
--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz
Switzerland

Fax: 022 855 06 14

http://www.rodanotech.ch




--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz
Switzerland

Fax: 022 855 06 14

http://www.rodanotech.ch




Re: Tapestry RTE Component

2007-04-18 Thread Andreas Andreou

BTW, This has been on tacos for 2 months now
http://svn.sourceforge.net/viewvc/tacos/tacos-4.1/trunk/tacos-core/src/java/net/sf/tacos/components/dojo/form/
and
http://tacos.sourceforge.net/tacos4.1/tacos-core/quick-start/downloading.html


On 4/18/07, Steve Shucker <[EMAIL PROTECTED]> wrote:


My company needs one too.  We wrapped the dojo Editor2 component.  I
helped someone get a quick demo of this working a few weeks ago, but I
don't know if it's 100%.  If you're using version 4.1.1, you're welcome
to use this.

-Steve

DojoEditor.java:

import java.util.HashMap;
import java.util.Map;

import org.apache.tapestry.form.AbstractFormComponent;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.IScript;
import org.apache.tapestry.PageRenderSupport;
import org.apache.tapestry.TapestryUtils;
import org.apache.tapestry.annotations.ComponentClass;
import org.apache.tapestry.annotations.InjectScript;
import org.apache.tapestry.annotations.Parameter;

@ComponentClass(allowBody=true)
public abstract class DojoEditor extends AbstractFormComponent {

@Parameter(required=true)
public abstract String getValue();
public abstract void setValue(String value) ;

@InjectScript("DojoEditor.script")
public abstract IScript getScript();

/**
 * @see
org.apache.tapestry.form.AbstractFormComponent#renderFormComponent(
org.apache.tapestry.IMarkupWriter,
 *  org.apache.tapestry.IRequestCycle)
 */
protected void renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle) {
PageRenderSupport pageRenderSupport =
TapestryUtils.getPageRenderSupport(cycle, this);

Map symbols = new HashMap();
symbols.put("id", getClientId());
symbols.put("formId", getForm().getClientId());
getScript().execute(this, cycle, pageRenderSupport, symbols);

renderDelegatePrefix(writer, cycle);

writer.begin("textArea");
writer.attribute("style","width:700px; height:200px");
renderIdAttribute(writer, cycle);
writer.attribute("name", getName());
renderInformalParameters(writer, cycle);
renderBody(writer, cycle);
writer.printRaw(getValue());
writer.end();
renderDelegateSuffix(writer, cycle);
}

/**
 * @see
org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent(
org.apache.tapestry.IMarkupWriter,
 *  org.apache.tapestry.IRequestCycle)
 */
protected void rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle) {
setValue(cycle.getParameter(getName()));
}

}

DojoEditor.script:



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






dojo.require("dojo.widget.Editor2");
dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
dojo.require("dojo.widget.Editor2Plugin.ColorPicker");



dojo.widget.createWidget("Editor2", {id: "${id}_widget"},
dojo.byId('${id}'));
dojo.event.connect(dojo.byId('${formId}'), "onsubmit", function ()
{
dojo.byId('${id}').value =
dojo.widget.getWidgetById("${id}_widget").getEditorContent()
})





Nick Westgate wrote:
> Hi James.
>
> I haven't used it, but perhaps:
>
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea
>
>
> There are also several for T4 on Tassel.
>
> Cheers,
> Nick.
>
>
> James Sherwood wrote:
>> Hello,
>>
>> I am looking for a Rich Text Editor component for tapestry that is
>> compatable with (or maybe i could modify) Tapestry 3 and all large
>> browsers.
>>
>> If someone could point me in the right direction that would be great.
>>
>> I have tried creating my own and have been successfull in everything
>> except getting the information from the RTE to come out in the form
>> submit, it is always null.
>>
>> Any help would be greatly appreciated.
>>
>> --James
>>
>> -
>> 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]





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


[T4.1.x] Dojo Fisheye without Tacos?

2007-04-18 Thread Daniel Jue

Has anyone written a Tap 4.1 app that used the Dojo Fisheye without Tacos?
(I've never dealt with tacos besides reading a few blurbs about it.)

Is Fisheye a widget that has yet to be integrated?  (Or is it left to the
public as an exercise)

Daniel Jue


Re: Does tapestry5 don't support jdk1.4

2007-04-18 Thread Patrick Moore

jdk 1.4 3+ years old, annotations are great for tapestry I don't have a
single .jwc file anywhere

But personally, I think the hibernate people are smoking crack to use
annotations. Data outlasts programs and to have your data definitions
blended with your code WTF are they thinking. But for tapestry? come on!

Hey they are working on jdk 1.7  at some point Sun is going to EOL
1.4like they did
1.3 catch up with the rest of the world!

-Pat

On 4/18/07, li li <[EMAIL PROTECTED]> wrote:


Annotation is a bad small. I mean that it is a bad thing. You have to
compile all java code if you change any annotations. But if you use xml
config file,there is no problem.




*离人网*



Re: Tapestry RTE Component

2007-04-18 Thread Robert Zeigler
so several for T4 on Tassel.

Cheers,
Nick.


James Sherwood wrote:

Hello,

I am looking for a Rich Text Editor component for tapestry that  
is compatable with (or maybe i could modify) Tapestry 3 and all  
large browsers.


If someone could point me in the right direction that would be  
great.


I have tried creating my own and have been successfull in  
everything except getting the information from the RTE to come  
out in the form submit, it is always null.


Any help would be greatly appreciated.

--James

--- 
--

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]


__ NOD32 2202 (20070418) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.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: Creating a tapestry/flex component with HTTPService?

2007-04-18 Thread Matt Kerr
Hey Alexander Lamb -

>First message to this list... getting back to development after some  
>time (previously NeXT / WebObjects :-).

[ah, yes.  the gold old days :-]



>   1) figure out what url to give

In the calling (~generated) .html - the link to the flash goes something like ..


http://mahost/mycharting.swf?url=/blahcontext/app?service=page&page=MyChartXML&id=6654321

(The flash/swf just grabs the "url" arg from the querystring in the 
ActionScript code, and performs ~GET to request the xml.)



>   2) figure how to return XML data instead of HTML

I think the key is to implement this on MyChartXML.java

public ContentType getResponseContentType() {
return new ContentType("text/xml");
}   



The  MyChartXML.html file .. is vanilla:




...



MyChartXML.page is ordinary too.


Cheers,
-Matt

On Wednesday, April 18, 2007, at 03:24AM, "Alexander Lamb" <[EMAIL PROTECTED]> 
wrote:
>Hello list,
>
>First message to this list... getting back to development after some  
>time (previously NeXT / WebObjects :-).
>
>I am currently developping a Tapestry 4.1 / Cayenne app. Works fine.
>
>Now, I would like to add some Flex components to my HTML page. The  
>first attempt is to add charting to my app.
>
>The ideal would be to create a Tapestry component which integrates my  
>swf chart. The problem I have is:
>
>- if my chart is getting populated by a HTTPService with XML data, I  
>need to:
>
>   1) figure out what url to give
>   2) figure how to return XML data instead of HTML
>
>For point 2, in the target function being called, in WebObjects I  
>would have overriden "appendToResponse". I am not certain how to do  
>this in Tapestry.
>For point 1, I don't really know what url to pass to the Flex  
>component in order to be certain I am staying in my session (visit)  
>and calling the correct function in my tapestry component.
>
>Are there some examples somewhere?
>
>Thanks,
>
>Alex
>--
>Alexander Lamb
>Founding Associate
>RODANOTECH Sàrl
>
>26 ch des Tattes
>1222 Vésenaz
>
>Fax: 022 855 06 14
>
>www.rodanotech.ch
>
>
>

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



Re: Tapestry RTE Component

2007-04-18 Thread James Sherwood

Thanks for the reply,

I actually just got Wizzywig working as a component in tapestry, i had 
messed up the code just slightly enough  not to work so i started from 
scratch again and it worked.


I am going to try fckeditor next, it is the most advanced one I have found


--James

- Original Message - 
From: "Steve Shucker" <[EMAIL PROTECTED]>

To: "Tapestry users" 
Sent: Wednesday, April 18, 2007 1:55 PM
Subject: Re: Tapestry RTE Component


My company needs one too.  We wrapped the dojo Editor2 component.  I 
helped someone get a quick demo of this working a few weeks ago, but I 
don't know if it's 100%.  If you're using version 4.1.1, you're welcome to 
use this.


-Steve

DojoEditor.java:

import java.util.HashMap;
import java.util.Map;

import org.apache.tapestry.form.AbstractFormComponent;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.IScript;
import org.apache.tapestry.PageRenderSupport;
import org.apache.tapestry.TapestryUtils;
import org.apache.tapestry.annotations.ComponentClass;
import org.apache.tapestry.annotations.InjectScript;
import org.apache.tapestry.annotations.Parameter;

@ComponentClass(allowBody=true)
public abstract class DojoEditor extends AbstractFormComponent {
  @Parameter(required=true)
   public abstract String getValue();
   public abstract void setValue(String value) ;
  @InjectScript("DojoEditor.script")
   public abstract IScript getScript();
  /**
* @see 
org.apache.tapestry.form.AbstractFormComponent#renderFormComponent(org.apache.tapestry.IMarkupWriter,

*  org.apache.tapestry.IRequestCycle)
*/
   protected void renderFormComponent(IMarkupWriter writer, IRequestCycle 
cycle) {
   PageRenderSupport pageRenderSupport = 
TapestryUtils.getPageRenderSupport(cycle, this);


   Map symbols = new HashMap();
   symbols.put("id", getClientId());
   symbols.put("formId", getForm().getClientId());
   getScript().execute(this, cycle, pageRenderSupport, symbols);

   renderDelegatePrefix(writer, cycle);

   writer.begin("textArea");
   writer.attribute("style","width:700px; height:200px");
   renderIdAttribute(writer, cycle);
   writer.attribute("name", getName());
   renderInformalParameters(writer, cycle);
   renderBody(writer, cycle);
   writer.printRaw(getValue());
   writer.end();
   renderDelegateSuffix(writer, cycle);
   }

   /**
* @see 
org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent(org.apache.tapestry.IMarkupWriter,

*  org.apache.tapestry.IRequestCycle)
*/
   protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle 
cycle) {

   setValue(cycle.getParameter(getName()));
   }

}

DojoEditor.script:



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


   <input-symbol key="id" class="java.lang.String" required="yes"/>
   <input-symbol key="formId" class="java.lang.String" required="yes"/>
   <body>
   <unique>
   dojo.require("dojo.widget.Editor2");
   dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
   dojo.require("dojo.widget.Editor2Plugin.ColorPicker");
   </unique>
   </body>
   <initialization>
</pre><tt>   dojo.widget.createWidget("Editor2", {id: "${id}_widget"}, 
</tt><tt>dojo.byId('${id}'));
</tt><tt>   dojo.event.connect(dojo.byId('${formId}'), "onsubmit", function () 
</tt><tt>{
</tt><tt>   dojo.byId('${id}').value = 
</tt><tt>dojo.widget.getWidgetById("${id}_widget").getEditorContent()
</tt><pre style="margin: 0em;">
   })
   </initialization>




Nick Westgate wrote:

Hi James.

I haven't used it, but perhaps:
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea

There are also several for T4 on Tassel.

Cheers,
Nick.


James Sherwood wrote:

Hello,

I am looking for a Rich Text Editor component for tapestry that is 
compatable with (or maybe i could modify) Tapestry 3 and all large 
browsers.


If someone could point me in the right direction that would be great.

I have tried creating my own and have been successfull in everything 
except getting the information from the RTE to come out in the form 
submit, it is always null.


Any help would be greatly appreciated.

--James

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







Re: Tapestry RTE Component

2007-04-18 Thread Steve Shucker
My company needs one too.  We wrapped the dojo Editor2 component.  I 
helped someone get a quick demo of this working a few weeks ago, but I 
don't know if it's 100%.  If you're using version 4.1.1, you're welcome 
to use this.


-Steve

DojoEditor.java:

import java.util.HashMap;
import java.util.Map;

import org.apache.tapestry.form.AbstractFormComponent;
import org.apache.tapestry.IMarkupWriter;
import org.apache.tapestry.IRequestCycle;
import org.apache.tapestry.IScript;
import org.apache.tapestry.PageRenderSupport;
import org.apache.tapestry.TapestryUtils;
import org.apache.tapestry.annotations.ComponentClass;
import org.apache.tapestry.annotations.InjectScript;
import org.apache.tapestry.annotations.Parameter;

@ComponentClass(allowBody=true)
public abstract class DojoEditor extends AbstractFormComponent {
  
   @Parameter(required=true)

   public abstract String getValue();
   public abstract void setValue(String value) ;
  
   @InjectScript("DojoEditor.script")

   public abstract IScript getScript();
  
   /**
* @see 
org.apache.tapestry.form.AbstractFormComponent#renderFormComponent(org.apache.tapestry.IMarkupWriter,

*  org.apache.tapestry.IRequestCycle)
*/
   protected void renderFormComponent(IMarkupWriter writer, 
IRequestCycle cycle) {
   PageRenderSupport pageRenderSupport = 
TapestryUtils.getPageRenderSupport(cycle, this);


   Map symbols = new HashMap();
   symbols.put("id", getClientId());
   symbols.put("formId", getForm().getClientId());
   getScript().execute(this, cycle, pageRenderSupport, symbols);

   renderDelegatePrefix(writer, cycle);

   writer.begin("textArea");
   writer.attribute("style","width:700px; height:200px");
   renderIdAttribute(writer, cycle);
   writer.attribute("name", getName());
   renderInformalParameters(writer, cycle);
   renderBody(writer, cycle);
   writer.printRaw(getValue());
   writer.end();
   renderDelegateSuffix(writer, cycle);
   }

   /**
* @see 
org.apache.tapestry.form.AbstractFormComponent#rewindFormComponent(org.apache.tapestry.IMarkupWriter,

*  org.apache.tapestry.IRequestCycle)
*/
   protected void rewindFormComponent(IMarkupWriter writer, 
IRequestCycle cycle) {

   setValue(cycle.getParameter(getName()));
   }

}

DojoEditor.script:



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


   
   
   
   
   dojo.require("dojo.widget.Editor2");
   dojo.require("dojo.widget.Editor2Plugin.DialogCommands");
   dojo.require("dojo.widget.Editor2Plugin.ColorPicker");
   
   
   
dojo.widget.createWidget("Editor2", {id: "${id}_widget"}, dojo.byId('${id}'));
   dojo.event.connect(dojo.byId('${formId}'), "onsubmit", function () {
dojo.byId('${id}').value = dojo.widget.getWidgetById("${id}_widget").getEditorContent()
   })
   




Nick Westgate wrote:

Hi James.

I haven't used it, but perhaps:
http://www.tapestrycomponents.org/Tassel/app?service=external/ViewComponent&sp=SHtmlArea 



There are also several for T4 on Tassel.

Cheers,
Nick.


James Sherwood wrote:

Hello,

I am looking for a Rich Text Editor component for tapestry that is 
compatable with (or maybe i could modify) Tapestry 3 and all large 
browsers.


If someone could point me in the right direction that would be great.

I have tried creating my own and have been successfull in everything 
except getting the information from the RTE to come out in the form 
submit, it is always null.


Any help would be greatly appreciated.

--James

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



How to get a full url from an IActionListener

2007-04-18 Thread Alexander Lamb

Hello list,

Imagine in a component I fetch:

IActionListener action = super.getPage().getListeners().getListener 
("myListenerFunction");


From this, I would like to get the full url in order to pass it to a  
flash movie (which will then call that url to populate a chart)...


I am maybe getting something wrong here but I am stuck!

Thanks,

Alex
--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz
Switzerland

Fax: 022 855 06 14

http://www.rodanotech.ch




Re: Does tapestry5 don't support jdk1.4

2007-04-18 Thread Daniel Jue

You should download JDK 1.5 and try it out.  The annotations and generics
are quite nice, especially with an IDE that supports them (i.e. Eclipse 3+)
You might enjoy it! :-)

I think one of the goals of Tapestry 5 is to get away from using XML files.
J2EE applications usually deploy as .war or .ear files, so if you modify an
XML file, you have to repackage the application anyway.

Recompiling is not that big a deal.  Eclipse has a "build automatically"
option:

Project->Build Automatically

I can see the need for XML in hooking up web services that are independent
of each other.  But within a single application, XML is just another thing
to worry about.

And for future reference, "bad small" does not have any meaning.  I think
you meant to say "bad thing".

Daniel Jue

On 4/18/07, li li <[EMAIL PROTECTED]> wrote:


There is no framework support only jdk1.5! All most all framework support
jdk1.4. Annotation is a bad small!  It write all xml config content to
java code,So if you change any annotation,you have to compile and package
java class every time ! again and again!
If you write these config content to xml,You don't need have to compile
java code,except change a bit xml only.



*离人网 *

--
From: *"D&J Gredler" <[EMAIL PROTECTED]>*
Reply-To: *"Tapestry users" *
To: *"Tapestry users" *
Subject: *Re: Does tapestry5 don't support jdk1.4*
Date: *Tue, 17 Apr 2007 09:37:51 -0400*
>Nope, one of the results being that configuration can be done in
>Java code,
>as opposed to XML.
>
>Two big thumbs up from me ;-)
>
>
>On 4/17/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>Does tapestry5 don't support jdk1.4?! *thumbs down*
>>
>>


--
使用 MSN Messenger  与联机的朋友进行交流
- To
unsubscribe, e-mail: [EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]


Re: Does tapestry5 don't support jdk1.4

2007-04-18 Thread Chris Chiappone

Tapestry 5 is a new framework developed to make use of java 5.  You
could always use tapestry 4 if you need java 1.4 and want xml
configuration.

On 4/18/07, li li <[EMAIL PROTECTED]> wrote:



There is no framework support only jdk1.5! All most all framework support
jdk1.4. Annotation is a bad small!  It write all xml config content to java
code,So if you change any annotation,you have to compile and package java
class every time ! again and again!
If you write these config content to xml,You don't need have to compile java
code,except change a bit xml only.




离人网
 
 From: "D&J Gredler" <[EMAIL PROTECTED]>
Reply-To: "Tapestry users" 
To: "Tapestry users" 
Subject: Re: Does tapestry5 don't support jdk1.4
Date: Tue, 17 Apr 2007 09:37:51 -0400

>Nope, one of the results being that configuration can be done in
>Java code,
>as opposed to XML.
>
>Two big thumbs up from me ;-)
>
>
>On 4/17/07, li li <[EMAIL PROTECTED]> wrote:
>>
>>Does tapestry5 don't support jdk1.4?! *thumbs down*
>>
>>


使用 MSN Messenger 与联机的朋友进行交流
-
To unsubscribe, e-mail:
[EMAIL PROTECTED] For additional
commands, e-mail: [EMAIL PROTECTED]



--
~chris


Re: Does tapestry5 don't support jdk1.4

2007-04-18 Thread li li
There is no framework support only 
jdk1.5! All most all framework support jdk1.4. Annotation is a bad 
small!  It write all xml config content to java code,So if you change 
any annotation,you have to compile and package java class every time ! 
again and again!If you write these config content to xml,You don't need 
have to compile java code,except change a bit xml only.
离人网



From: "D&J Gredler" <[EMAIL PROTECTED]>Reply-To: 
"Tapestry users" To: 
"Tapestry users" Subject: 
Re: Does tapestry5 don't support jdk1.4Date: Tue, 17 Apr 2007 
09:37:51 -0400>Nope, one of the results being that configuration 
can be done in >Java code,>as opposed to 
XML.>>Two big thumbs up from me ;-)>>>On 
4/17/07, li li <[EMAIL PROTECTED]> 
wrote:Does tapestry5 don't support jdk1.4?! *thumbs 
down*使用  MSN Messenger  与联机的朋友进行交流 

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



Re: Does tapestry5 don't support jdk1.4

2007-04-18 Thread li li
Annotation is a bad small. I mean 
that it is a bad thing. You have to compile all java code if you change any 
annotations. But if you use xml config file,there is no 
problem.
离人网



From: "Bill Holloway" <[EMAIL PROTECTED]>Reply-To: 
"Tapestry users" To: 
"Tapestry users" Subject: 
Re: Does tapestry5 don't support jdk1.4Date: Tue, 17 Apr 2007 
12:05:21 -0500>Tapestry 5 makes use of generics and annotations 
to facilitate >development.>>bill>>On 
4/17/07, D&J Gredler <[EMAIL PROTECTED]> 
wrote:>>Nope, one of the results being that configuration can be 
done in >>Java code,>>as opposed to 
XML.Two big thumbs up from me 
;-)>>On 4/17/07, li li 
<[EMAIL PROTECTED]> wrote:>> >>> > 
Does tapestry5 don't support jdk1.4?! *thumbs down*>> 
>>> >>-->"The 
future is here. It's just not evenly distributed yet.">> -- 
Traditional>>->To 
unsubscribe, e-mail: [EMAIL PROTECTED]>For 
additional commands, e-mail: 
[EMAIL PROTECTED]>免费下载  MSN Explorer  

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



Re: Starting with Maven

2007-04-18 Thread Marcos Chicote
Thanks Kalle

I finally got it working without sysdeo (using Run As Server...) and now I
want to configure a repository for my network.

In http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ says that to
change configuration I have to look for maven xml config file. When
following a link on how to configure maven linked in the codehaus page, I
find that maven xml config file could be in my local repository location or
in my maven installation directory.

As I had only installed codehaus plugin I had no maven installation
directory so I looked for the xml file in my local repository. I found no
such file anywhere.

My next idea was to install maven standalone. But how do I link my maven
standalone installation with the plugin installation? (I need to know this
if I can't configure the plugin to use the network repository, of course)

Sory for all this talk exclusively about maven.

Thanks!
Marcos


- Original Message - 
From: "Kalle Korhonen" <[EMAIL PROTECTED]>
To: "Tapestry users" 
Sent: Tuesday, April 17, 2007 6:09 PM
Subject: Re: Starting with Maven


> If using sysdeo, make sure you install the devloader, which needs to be
> manually unpacked. Then make sure you have added the libs to the classpath
> and verify that they are loaded by devloader at the start-up. For
> beginners,  Merve (http://merve.sourceforge.net/) is an easier option to
run
> Tomcat from Eclipse, works just like Jetty launcher. Sysdeo has more
> functionality, but has it's own oddities.
>
> Kalle
>
> On 4/17/07, Marcos Chicote <[EMAIL PROTECTED]> wrote:
> >
> > Hello World!
> >
> > I've just started using Maven2 with Tapestry 4.0.2 and I can't get it to
> > work with tomcat.
> >
> > I've followed the instructions in
> >
http://mail-archives.apache.org/mod_mbox/maven-users/200608.mbox/[EMAIL 
PROTECTED]
> >
> > But is still get
> > java.lang.ClassNotFoundException: org.apache.tapestry.RedirectFilter
> >
> > when starting tomcat.
> >
> > Can this be realted to how I start tomcat? I'm using sysdeo plugin.
> > Tomcat version is 5.
> >
> > Can anyone help me? O give me another link with more information on how
to
> > solve this problem?
> >
> > Thanks!
> >
> > Marcos
> >
>


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



Re: Help with jsessionid

2007-04-18 Thread Andrea Chiumenti

I've just developed another component that I will commit to JFly this
evening. It measures the rendering time (RenderTimeTracker) of a page.

So I could verify that the rendering time is the same. The before attribute
seems not to enhance performances

On 4/18/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:


Thanks Andreas,
it works!, but could you tell me why


is faster then the same filter without before ?

At least it seems to me!

On 4/18/07, Andreas Andreou <[EMAIL PROTECTED]> wrote:
>
> For this, better use
> 
http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/services/ServletRequestServicerFilter.html
>
>
>
> On 4/18/07, Andrea Chiumenti <[EMAIL PROTECTED]> wrote:
> >
> > As suggested by Andreas I've added this filter (
> > http://randomcoder.com/articles/jsessionid-considered-harmful) to the
> demo
> > app, and  now it's working.
> >
> > So I've decided to implement this solution in a more Tapestry fashion
> and
> > wrote the following class:
> >
> >
> 
---
> >
> > public class DisableUrlSessionFilter implements
> WebRequestServicerFilter{
> > private HttpServletResponse response;
> > private HttpServletRequest request;
> >
> > public void service(WebRequest webRequest, WebResponse
> webResponse,
> > WebRequestServicer webRequestServicer) throws IOException {
> > HttpServletResponseWrapper wrappedResponse = new
> > HttpServletResponseWrapper(response) {
> >
> > public String encodeRedirectUrl(String url) {
> > return url;
> > }
> > public String encodeRedirectURL(String url) {
> > return url;
> > }
> > public String encodeUrl(String url) {
> > return url;
> > }
> > public String encodeURL(String url) {
> > return url;
> > }
> > };
> >
> > ServletWebResponse newResponse = new
> > ServletWebResponse(wrappedResponse);
> > webRequestServicer.service (webRequest, newResponse);
> > }
> >
> > public HttpServletRequest getRequest() {
> > return request;
> > }
> >
> > public void setRequest(HttpServletRequest request) {
> > this.request = request;
> > }
> >
> > public HttpServletResponse getResponse() {
> > return response;
> > }
> >
> > public void setResponse(HttpServletResponse response) {
> > this.response = response;
> > }
> > }
> >
> > -
> > Then I added to hive module the following lines:
> > 
> > 
> > 
> >
> > The problem is that it doesn't work as the filter because the
> jsessionid
> > problem remains, so the HttpServletResponseWrapper encodeURL is never
> > called.
> >
> > Why my WebRequestServicerFilter doesn't work ?
> >
>
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / JEE Consulting
>




RE: T5: StackMapTable format error: bad class index

2007-04-18 Thread Kristian Marinkovic
found my mistake  the name of my home page is "start" and not "home"
... force of habit

g
kris




Kristian Marinkovic <[EMAIL PROTECTED]> 
18.04.2007 11:14
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
T5: StackMapTable format error: bad class index






hi all,

i get the above error message when i link from my home
page to another page with exactly one component. i have 
no clue what's missing... (i'm using the latest classes from 
SVN)

g,
kris


Home Page:
public class Start {
   @InjectPage("guess")
   private Guess guessPage;

   public Object onAction() {
   return guessPage;
   } 
}


Target Page:
public class Guess {
@Component(parameters={"page=home"},id="startPage") 
private PageLink startPage;

public PageLink getStartPage() {
return startPage;
}
}

target template:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Guess


 
Go back ...


T5: StackMapTable format error: bad class index

2007-04-18 Thread Kristian Marinkovic
hi all,

i get the above error message when i link from my home
page to another page with exactly one component. i have 
no clue what's missing... (i'm using the latest classes from 
SVN)

g,
kris


Home Page:
public class Start {
   @InjectPage("guess")
   private Guess guessPage;

   public Object onAction() {
   return guessPage;
   } 
}


Target Page:
public class Guess {
@Component(parameters={"page=home"},id="startPage") 
private PageLink startPage;

public PageLink getStartPage() {
return startPage;
}
}

target template:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Guess


 
Go back ...

Re: T5: How to acces to an array from loop?

2007-04-18 Thread Massimo Lusetti

On 4/18/07, Sabine K. <[EMAIL PROTECTED]> wrote:



In the class there is an array: _information[4][16]. How can i get the
values out of the array in the right rows and columns?


Look at the index Loop's parameter

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

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



Antwort: T5: How to acces to an array from loop?

2007-04-18 Thread Kristian Marinkovic
the loop component provides an "index" parameter that contains
the current iteration...


 
 
 
 ${value}
 
 
 

public Object getValue() {
  return _information[row_count][column_count];
}


g,
kris





"Sabine K." <[EMAIL PROTECTED]> 
18.04.2007 10:40
Bitte antworten an
"Tapestry users" 


An
users@tapestry.apache.org
Kopie

Thema
T5: How to acces to an array from loop?







Hello, 

i have this: 



 
 
 
 ${column}  ${row}
 
 
 



In the class there is an array: _information[4][16]. How can i get the
values out of the array in the right rows and columns?

Best regards, Sabine


-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-acces-to-an-array-from-loop--tf3599642.html#a10054552

Sent from the Tapestry - User mailing list archive at Nabble.com.


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




@Hidden can't refresh like @TextField

2007-04-18 Thread Yohan Yudanara

Dear all,

I have a tacos:AjaxDirectLink component which render partial page.
The partial part contains this code: (html file)

   
  



and the controller contains this code: (page file)

   
   


Let's say the paymentPrice contains 300. After the tacos:ajaxDirectLink 
clicked, the paymentPrice become 200 and it displays correcly on the screen.


When the orderForm being submitted, I was expecting that calling 
getPaymentPrice() on Java class will return 200.
But it's still return 300, unless I change the @Hidden component to 
@TextField.


When I change @Hidden to @TextField,

become

calling getPaymentPrice() on Java class returned 200 (correct)

Why is this happening?
I'm using Tapestry 4.0.1 and Tacos 4.0.1..

Could somebody explain?
Thanks a lot








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




T5: How to acces to an array from loop?

2007-04-18 Thread Sabine K.

Hello, 

i have this: 






${column}  ${row}






In the class there is an array: _information[4][16]. How can i get the
values out of the array in the right rows and columns?

Best regards, Sabine


-- 
View this message in context: 
http://www.nabble.com/T5%3A-How-to-acces-to-an-array-from-loop--tf3599642.html#a10054552
Sent from the Tapestry - User mailing list archive at Nabble.com.


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



Please read this: Tapestry Bug 961 Large XTile responses cut off

2007-04-18 Thread Bastian Voigt
Hi *,
please someone have a look into this. The JIRA Bugreport is here:

http://issues.apache.org/jira/browse/TAPESTRY-961


On Tuesday 17 April 2007 18:58, Bastian Voigt wrote:

> Hi,
> I have a question regarding bug #961. Jesse said the bug won't be fixed in
> tapestry because the "client side XHR" api can be used as an alternative.
>
> I did not really understand this comment, since with XTile in version 4.0.3
> it is not possible to use this client side XHR api. Rather, the XTile
> component itself needs to be modified to use this XHR api, if I'm not
> completely mistaken.
>
> So how can I get around this bug?

-- 
Bastian Voigt
Neumünstersche Straße 4
20251 Hamburg
telefon 040/67957171
mobil   0179/4826359

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



Creating a tapestry/flex component with HTTPService?

2007-04-18 Thread Alexander Lamb

Hello list,

First message to this list... getting back to development after some  
time (previously NeXT / WebObjects :-).


I am currently developping a Tapestry 4.1 / Cayenne app. Works fine.

Now, I would like to add some Flex components to my HTML page. The  
first attempt is to add charting to my app.


The ideal would be to create a Tapestry component which integrates my  
swf chart. The problem I have is:


- if my chart is getting populated by a HTTPService with XML data, I  
need to:


1) figure out what url to give
2) figure how to return XML data instead of HTML

For point 2, in the target function being called, in WebObjects I  
would have overriden "appendToResponse". I am not certain how to do  
this in Tapestry.
For point 1, I don't really know what url to pass to the Flex  
component in order to be certain I am staying in my session (visit)  
and calling the correct function in my tapestry component.


Are there some examples somewhere?

Thanks,

Alex
--
Alexander Lamb
Founding Associate
RODANOTECH Sàrl

26 ch des Tattes
1222 Vésenaz

Fax: 022 855 06 14

www.rodanotech.ch