Here is a short example:
TML (not tested)
key: ${key} - value: ${value}
JAVA (not tested)
private Map map;
public Collection getKeys(){
return map.keyset();
}
@Property
private String key;
public String getValue(){
return map.get(key);
}
Cheers,
Dragan Sahpaski
On Fri, Jul 15,
How about iterating over the entry set?
.java
@Property
private Map.Entry entry;
${entry.key}: ${entry.value}
Robert
On Jul 15, 2011, at 7/151:27 AM , dick_hu wrote:
> How can I Loop the Map?
> in the loop I can get the key and value.
> Can anyone share a part of code?
> Thanks a
How can I Loop the Map?
in the loop I can get the key and value.
Can anyone share a part of code?
Thanks a lot.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Loop-Map-tp4589569p4589569.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
---
Well, this is bit more advanced, but the fallback approach has the
same idea: http://valums.com/ajax-upload/ (tapestry5-jquery has an
upload component based on this, see
https://github.com/got5/tapestry5-jquery/issues/16).
Kalle
On Thu, Jul 14, 2011 at 7:56 PM, Ray Nicholus wrote:
> Hmm, I'm no
Hmm, I'm not sure I follow. Can you provide an example.
On Thu, Jul 14, 2011 at 4:32 PM, Kalle Korhonen
wrote:
> The typical way to do this is to put the upload on a separate iframe,
> displayed as a "field" on the parent form (ajax or not). There's some
> amount of coordination that needs to ha
Hi Nillehammer & Mark
I am waiting for a response from cloudbees.com. In case they don't
then I will be bothering one of you.
Thanks a lot
regards
Taha
On Fri, Jul 15, 2011 at 12:41 AM, nillehammer
wrote:
> Hi Taha,
>
> I am running a virtual root server to host my own T5 based site. I you wan
I can't seem to reproduce your problem. I'm using 5.2.5.
Here is my test components/classes. Can you produce something like
this that fails?
public class ParameterTest
{
@Parameter
private boolean value;
public boolean isValue()
{
return value;
}
}
http://tapestry
The typical way to do this is to put the upload on a separate iframe,
displayed as a "field" on the parent form (ajax or not). There's some
amount of coordination that needs to happen to make it all behave
nicely but it can be done.
Kalle
On Thu, Jul 14, 2011 at 2:25 PM, Ray Nicholus wrote:
> d
doh!
On Thu, Jul 14, 2011 at 4:16 PM, Thiago H. de Paula Figueiredo <
thiag...@gmail.com> wrote:
> On Thu, 14 Jul 2011 18:08:50 -0300, Ray Nicholus
> wrote:
>
> My upload component is not actually in a zone. Rather, it is in a form,
>> and the form has a zone parameter that points to a zone ou
On Thu, 14 Jul 2011 18:08:50 -0300, Ray Nicholus
wrote:
My upload component is not actually in a zone. Rather, it is in a form,
and the form has a zone parameter that points to a zone outside of the
form. Is this still the same issue?
Yes. Any AJAX form submission including file upload
My upload component is not actually in a zone. Rather, it is in a form, and
the form has a zone parameter that points to a zone outside of the form. Is
this still the same issue?
On Thu, Jul 14, 2011 at 4:06 PM, Robert Zeigler wrote:
> Hm, yes, upload in a zone won't work.
>
> There's a pendin
Hm, yes, upload in a zone won't work.
There's a pending spec for supporting uploads via XmlHttpRequest, and it's
supported by current versions of at least Safari, Chrome, and FF (IE, anyone?),
but the upload component doesn't support it.
That said, check out:
http://tawus.wordpress.com/2011/06/
It looks like there is some issue with the update component and zone updates
involving a form. When I comment out the upload component (which I am using
in my form), I can submit again.
On Thu, Jul 14, 2011 at 2:41 PM, Ray Nicholus wrote:
> This seems to prevent submission of the form though, d
I ran into a case where the whole tapestry web app fails to start if it is
unable to log into any database.I believe it should be resilient enough to be
able to at least catch the failure in a nice error page.Right now, if
EclipseLink fails to initialize, the whole web app, whether it relies on
Never meant to complain and definitely no intention to insult. If it's
perceived that way, my apologies.
In component search.dynamicAdvancedSearchForm (mentioned as
ABCAdvancedSearchForm previously) it's as
@Parameter
private boolean itemsFound;
In the containing component class AdvancedSe
Good point Thiago,
Thanks a lot for fast and great help.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587964.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
On Thu, 14 Jul 2011 16:33:19 -0300, fante wrote:
Hi Thiago,
the advice from Kalle actually solved my problem, but out of curiosity:
I am using the m2Eclipse plugin:
So why are you using eclipse:eclipse in the command-line when m2eclipse
sets up your project automatically???
disabling au
This seems to prevent submission of the form though, doesn't it? My success
handler is no longer called, & my zone is not refreshed.
...
...
On Thu, Jul 14, 2011 at 2:36 PM, Robert Zeigler wrote:
> So that Tapestry knows to re-route the normal f
So that Tapestry knows to re-route the normal form submission via ajax.
Robert
On Jul 14, 2011, at 7/142:33 PM , Ray Nicholus wrote:
> Why is tapestry adding this class to my form? It only seems to happen when
> add a zone param to the form.
---
Why is tapestry adding this class to my form? It only seems to happen when
add a zone param to the form.
Hi Thiago,
the advice from Kalle actually solved my problem, but out of curiosity:
I am using the m2Eclipse plugin:
disabling automatic reloading of contexts = disable scanner ?
Best Regards!
Fante
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-
Kalle - you are the man!
That solved my problems.
Thanks so much for that
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Automatic-loading-of-code-changes-not-working-tp4586675p4587894.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
--
2011-07-14 14:09, Support Geoplanning:
org.apache.tapestry5.ioc.internal.util.TapestryException: Parameter
'translate' of component admin/Tasks:taskedit.taskeditform.foreignid is
bound to null. This parameter is not allowed to be null. [at
classpath:com/marketip/geoplanning/web/components/admin/T
Hi Taha,
I am running a virtual root server to host my own T5 based site. I you want,
I can supply you with your own Tomcat 6 instance with 100MB heap.
Just send me a mail to my maillist account.
Cheers nillehammer
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Free-J2e
On Thu, 14 Jul 2011 15:55:28 -0300, fante wrote:
Hi Thiago,
Yes I am using maven.In the shell I run mvn eclipse:eclipse,
Why don't you use m2eclipse? Notice that m2eclipse configures the project
so it doesn't copy resource automatically. You need to change that in the
Eclipse project c
Disable scanner (that's the container feature to reload web app
context as something changes). You could also configure to load the
templates from src without copying (that's in Eclipse build setttings,
src/main/resources), see
http://tynamo.org/Developing+with+Tomcat+and+Eclipse for more info
(cop
Hi Thiago,
Yes I am using maven. In the shell I run mvn eclipse:eclipse,
Then I import the project in eclipse as "existing maven project".
In eclipe I check "build automatically" under "Project".
In run Configuration I have the following options :
WebApp dir target/myWebApp
Scan Internal Seconds
On Thu, 14 Jul 2011 10:44:36 -0300, fante wrote:
Hi all,
Hi!
I cant get Tapestry automatic code replacing to work without restarting
the entire webapp, which is slow and also renders a permgen, destroys
sessions etc...
Is anybody else experience this ?
I haven't. Are you using Maven?
Hi all,
I cant get Tapestry automatic code replacing to work without restarting the
entire webapp, which is slow and also renders a permgen, destroys sessions
etc...
Is anybody else experience this ?
Setting that may be of importance:
Im using Tapestry 5.2.5, Eclipse helios and Run-Jetty-Run 1.
> It's just an expression of frustration.
Sure, writing software can be frustrating. In life a person shouldn't
insult the people they want help from. Don't insult their wives, kids
or their favorite web framework. Even though "It's such a pain. This
is the latest error that drives me crazy." isn'
Hm. I can't say on 5.2.6, but I have a large Tapestry app running 5.2.5,
including validation, and it runs fine on IE7 and IE8, at least (that said, IE
7 is the minimum version of IE supported by the app... so I can't speak to IE
6).
Robert
On Jul 14, 2011, at 7/1411:31 AM , Taha Hafeez wrote:
If you have any version of IE you can enable debugging by unchecking
Tools->Advanced->Disable javascript debugging.
Then you will be able to see the error icon at the left side of the ie window.
In IE 8 you can press F12 to enable debugging.
The errors I encounter in ie are mostly 'object not def
On Thu, Jul 14, 2011 at 11:06 AM, Ray Nicholus wrote:
> I don't see how this is not a Tapestry issue. My code is pretty simple.
> Neither ajaxformloop nor loop sync values, for rows added after the form
> has rendered, back to the server. All rows created during execution of the
> loop are sync
I don't see how this is not a Tapestry issue. My code is pretty simple.
Neither ajaxformloop nor loop sync values, for rows added after the form
has rendered, back to the server. All rows created during execution of the
loop are synced. I'm using tapestry 5.2.6.
On Thu, Jul 14, 2011 at 10:57 A
On Thu, Jul 14, 2011 at 8:16 AM, Ray Nicholus wrote:
> It turns out that my encoder is not the problem. In fact, this appears to
> be an issue with Tapestry. I was not using the id from Hibernate and I
> verified beforehand that my encoder was properly coded. I had a couple
> other people look
This is very helpful information not just for this issue. Thanks.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Another-case-of-Block-parameters-are-only-allowed-directly-within-component-elements-tp4585262p4587195.html
Sent from the Tapestry - User mailing list archive a
It's just an expression of frustration. I already experienced quite a lot
issues in this migration (not trying to say it's Tapestry's fault ).
Anyway, thanks for respond to my post. I was able to by pass the original
issue and encounter another one.
Exception assembling embedded component 'abc
This is surprising to me. I have plenty of ajax form loop code that adds new
(even transient) objects and things work as expected.
What version of Tapestry are you using?
Robert
On Jul 14, 2011, at 7/148:16 AM , Ray Nicholus wrote:
> It turns out that my encoder is not the problem. In fact,
Hm. It looks like my problem runs a bit deeper. I added Taha's
tapestry.js to 5.2.6, but I'm still getting the same errors in my app.
Any other suggestions?
Mark
On Thu, Jul 14, 2011 at 8:54 AM, Kalle Korhonen
wrote:
> Is there an issue open for this? Seems this could be applied with
> little
Is there an issue open for this? Seems this could be applied with
little side effects.
Kalle
On Thu, Jul 14, 2011 at 6:43 AM, Taha Hafeez wrote:
> tapestry.js got blocked sending as txt
>
> On Thu, Jul 14, 2011 at 7:10 PM, Taha Hafeez wrote:
>> Hi Mark
>>
>> I have done a lot of work on this a
On Thu, 14 Jul 2011 07:43:05 -0300, rbkamal wrote:
Hi
Hi!
I would like to know how to include an Xform in Tapestry.
Just add it to the template. Tapestry won't change any element unless it's
or .
If XForms needs "text/xml", you need configure Tapestry to serve pages with
that MIME ty
I'm getting an error in red at the top of my page saying:
Exception invoking function Tapestry.Initializer.validate with
parameters [{ "firstNameOnCard
on a page that has some fields with validation when people are using
IE 6. I haven't had a chance to test it with other versions of IE
yet.
What version of tapestry?
On Jul 14, 2011 6:03 AM, "Support Geoplanning"
wrote:
> Hello List,
>
>
>
> Not easy to summarize this issue in the title … anyway.
>
>
>
> I am facing an irritating behavior with a pojo that I want to modify in a
> form.
>
> This pojo implements a generic interface that
It turns out that my encoder is not the problem. In fact, this appears to
be an issue with Tapestry. I was not using the id from Hibernate and I
verified beforehand that my encoder was properly coded. I had a couple
other people look into this as well, and it appears that Tapestry is not
able to
Hi
I would like to know how to include an Xform in Tapestry.
I haven't found any response in the Internet.
Can you help me ?
Thanks in advance
Regards
Kamalnath
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Xform-in-Tapestry-tp2393940p4586230.html
Sent from th
Hello List,
Not easy to summarize this issue in the title
anyway.
I am facing an irritating behavior with a pojo that I want to modify in a
form.
This pojo implements a generic interface that forces the implementation of a
getter and a setter.
If I try to link the value of a TextField t
On Thu, 14 Jul 2011 01:05:16 -0300, gs_tapestry
wrote:
Hello,
Hello!
I am migrating from T5.0 to T5.2. It's such a pain.
Please don't make this kind of bold statement without describing what the
causes of pain are. And don't forget that T5.0 release was a beta, so no
backward compat
yes. I actually sorted the problem. I had forgotten to include servet api as
a provided dependency in my pom.xml.
Thanks Mark.
Julien.
2011/7/14 Mark
> Do you actually have a page in com.cheetah.web.pages that is called
> CreateJobPosting that you can view in a web browser when the app is
> runn
48 matches
Mail list logo