On Sat, 26 Apr 2014 15:29:39 -0300, Boris Horvat
wrote:
I guess in my mind it is like creating 5 instance of the same component
and then each instance will have their own version of the property that
is
persisted. But this appears to be my wrong interpretation
Yeah, that's a wrong inter
m in the iteration.
> @Persist is basically reading and writing to an HttpSession attributed
> named [fully qualified page name]:[field name], when it's in a page, or
> [fully qualified page name].[full component id]:[field name].
I guess in my mind it is like creating 5 instance of the
7;s in a
page, or [fully qualified page name].[full component id]:[field name].
I will try to pass the client zone id to the context and to use it back
to refresh the proper zone (I did come up with same idea but I was
thinking
that it is wrong path to follow)
Actually, that's the
;> public String getZoneImageUploadId() {
>> if (zoneImageUploadId == null)
>> zoneImageUploadId =
>> javascriptSupport.allocateClientId(resources);
>> return zoneImageUploadId;
>> }
>>
>
> I see no point in persisting the zon
uploads the zone.
In addition, what you're calling component id isn't the component id,
t:id, but the HTML, client-side id, and they're different things that may
or may not have the same value.
--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and
Hi,
I believe that I am doing something wrong but just wanted to confirm if
that is the case.
I have a component that I pass in the loop.
Inside that I component I have a a zone and ajaxUpload component (from
jquery but I dont think that plays any role here)
Now the idea is that once someone
Am 08.10.13 15:19, schrieb Eugen:
Hi,
post Your Index.tml file,
do You have something like
start guessing
in Your page?
Thanks, i just saw, that this might be missing.
--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484
> /**
> * Start page of application TapestryWeb.
> */
> public class Index {
>
> [...]
>
> void onActionFromStart() {
> }
> }
>
> After adding the method onActionFromStart() i got this error:
>
> An unexpected application exception has occurred.
>
&
application exception has occurred.
Method de.aeits.tapestryweb.pages.Index.onActionFromStart() references
component id 'Start' which does not exist.
--
ae | Andreas Ernst | IT Spektrum
Postfach 5, 65612 Beselich
Schupbacher Str. 32, 65614 Beselich, Germany
Tel: +49-6484-91002 Fax: +49-64
View this message in context:
> http://tapestry.1045711.n5.nabble.com/Error-references-component-id-ABC-which-does-not-exist-tp5718353p5718354.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
If you provide a small snippet of code that's failing and an exception stack
trace you are more likely to get help with this.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Error-references-component-id-ABC-which-does-not-exist-tp5718353p5718354.html
Sent fro
When I run the same project in
-- Jetty 7
-- Java 7
IT WORKS !
But when I build the war file and move it to
-- Tomcat 7
-- Java 7
It gives the error
---Error references component id
Any idea why this is happening?
--
View this message in context:
http://tapestry.1045711.n5.nabble.com
/Custom-Component-Id-Other-than-Class-Name-tp5716882p5716884.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h
ework and as such I
> have requirements for class names. These names are not what I would like to
> use for the component ID and I've searched everywhere for a way to customize
> the ID.
>
> I assume the answer I'm looking for will be "no it's not possible"
e not what I would like to use for
the component ID and I've searched everywhere for a way to customize the ID.
I assume the answer I'm looking for will be "no it's not possible" or "yes,
here's a simple solution" but have been unable to find that answer
Maybe try
integer=your error message
or field specific:
valueNumeric-integer=your error message
Did not test them though
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Change-the-label-of-component-id-tp5713562p5713572.html
Sent from the Tapestry - User mailing list
an I resolve it? Thanks in advance
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Change-the-label-of-component-id-tp5713562p5713569.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To
I
> want to change %s text
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Change-the-label-of-component-id-tp5713562.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
;integer-format-exception=You must provide an integer value for %s." .. I
want to change %s text
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Change-the-label-of-component-id-tp5713562.html
Sent from the Tapestry - User mailing list a
On Fri, 03 Dec 2010 11:05:31 -0200, Christian Koller
wrote:
Yes that's exactly what I face. What I would need is more than one
instance of the component and each instance with his own session value,
independent from the other instances.
But I guess this isn't possible.
You only need to
Hi all
Thank you for your answers.
I don't mean any client id related stuff. I mean the id of the component.
> The explanation is not correct. You have a single TimeSlot component instance
> in your template which is rendered n times. Instead of relying in @Persist
> inside the component, pass
for:
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
Cheers,
Joost
On 3/12/10 12:54 PM, Christian Koller wrote:
I have the following template:
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
But Tapestry calls out:
Component id 'pr
On Fri, 03 Dec 2010 09:54:54 -0200, Christian Koller
wrote:
Any ideas how to solve this?
Tapestry components ids are static, period. HTML ids are dynamic.
If I use a literal as the id, then it works, but then all the generated
timeSlot components within the loop will have the same id.
If
Datum: 03.12.2010 12:57
Betreff:Re: dynamic component id?
I believe he didn't misunderstood... the real problem is "which approach
should he get to work with dynamic components?".
Actually, I didn't need to use this yet but always wondered too.
___
gt; Joost
>
>
>
>
> On 3/12/10 12:54 PM, Christian Koller wrote:
>
>> I have the following template:
>>
>> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
>>
>>
>>
>>
>>
>> But Tapestry
e:
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
But Tapestry calls out:
Component id 'prop:index' is not valid; component ids must be valid Java
identifiers: start with a letter, and consist of letters, numbers and
underscores.
Is it not
I have the following template:
http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
But Tapestry calls out:
Component id 'prop:index' is not valid; component ids must be valid Java
identifiers: start with a letter, and consist of le
is the number 120f2926924? how do I get this number from the
>> client
>> > side, for example if I need to set the value of this input field
>> through
>> > javascript, I would like to do something like:
>> >
ield through
> > javascript, I would like to do something like:
> > $('text1').value = "new value";
> > but how do I know the id of this element after it is rendered?
> >
> > Thanks
> > --
> > View this message in context:
&g
thing like:
> $('text1').value = "new value";
> but how do I know the id of this element after it is rendered?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/-t%3A5.0.18--tapestry-component-id-attribute-value-format-tp23296
like:
$('text1').value = "new value";
but how do I know the id of this element after it is rendered?
Thanks
--
View this message in context:
http://www.nabble.com/-t%3A5.0.18--tapestry-component-id-attribute-value-format-tp23296131p23296131.html
Sent from the Tapestry - User
Em Fri, 13 Mar 2009 16:59:36 -0300, Peter Kanze
escreveu:
Hello,
Hi!
I want to add some blocks with a generated id. like this:
Why exactly do you want blocks? Your example doesn't give any hints.
Couldn't you just use s instead?
How can I give my block an id based on the current th
Hello,
I want to add some blocks with a generated id. like this:
But I get the following error message:
Block id 'image${thumbIndex}' is not valid; block ids must be valid Java
identifiers: start with a letter, and consist of letters, numbers and
underscores.
How can
Sorry about typing error. so don't worry about page class name.
Thanks
Tuan wrote:
Hi all,
I have some problems when dealing with the Zone component.
- We don't use prop binding in t:id parameter. However I see that
t:id parameter of the component is defined in source code like as
other
Hi all,
I have some problems when dealing with the Zone component.
- We don't use prop binding in t:id parameter. However I see that
t:id parameter of the component is defined in source code like as other
parameters. so how to code to get t:id (or any parameter field) is not
used with "pr
xtfield.
Now my problem is that the regexp-validator looks for a
"textfield-regexp"-message in my message-catalog. I would want it to look
for a "username-regexp" and "password-regexp" message instead, but the
validator only uses the component-Id, which I can'
if the component does not have an id
you can olso do follwing:
in the mixin... add an arbitrary hidden element before the component
set id for that element and use:
var anchor = document.getElementById("idOfElement");
var compDomNode = anchor.nextSibling;
you can do that also by putting an elemen
The goal
-
To create a mixin that will attach a client-side javascript object to
the mixing component. This mixin should not know anything about the
component and remain completely genereic, needing only a DOM id to
provide to the JS object.
Requirements
-
Nicholas,
I'm not looking at the T5 source at the moment, but I can tell you that
you don't need to do what you're doing. Textarea, like all form field
components (I think), implements ClientElement
(http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/ClientElement.html)
and explicitl
trying to get something similar.
This works for me with @Inject PageRenderSupport
${document}
works for rendering... but I'd prefer to be able to use t:textarea and
specify the id (?)
_and since its late, how do get back the value? what is the method sig /
annotation to call Requst.getPara
Arg. Yeah that can kind of get me there, but it still too uncertain.
That would catch 'id' passed as an informal, but there still would be no
guarantee that the component didn't write /something/ as the resulting
element's 'id' parameter. I think I'm asking for functionality that
doesn't exist: for
Hi Peter,
This isn't my situation. I'm not writing a component, I'm writing a
generic mixin that attaches an instance of a JS object, defined in an
accompanying JS file, simply by knowing the DOM id of the HTML element
resulting from the component. If I were writing a component I'd be ok,
because
Ah, id with no t: is just a parameter like any other. Try this mixin:
import org.apache.tapestry.MarkupWriter;
import org.apache.tapestry.annotations.Parameter;
public class Title {
@Parameter(defaultPrefix="literal")
private String _id;
void beginRender(MarkupWriter writer)
Hi Chris,
This may not be the proper way of doing things, but I needed to get the
client Id of one of my components, so I did this:
@Inject
private PageRenderSupport _pageRenderSupport;
private String _clientId;
void beginRender()
{
_clientId = _pageRenderSupport.allocateClientId(_resources
Hi Josh,
Indeed t:id does work, but apart from the fact that I'm not entirely
sure what T5 does with that value as opposed to the un-namespaced
version (id), it doesn't fully work. The reason is because the Any
component, like many in the core lib, do not explicitly write a DOM id
in the HTML of t
Hey Chris,
t:id="my_div" seems to do what you want. I haven't looked closely at
un-namespaced id works in Tapestry, I've just always used the t:id
variety...
Josh
On Thu, Apr 10, 2008 at 5:36 AM, Chris Lewis <[EMAIL PROTECTED]> wrote:
> Dear list,
>
> I decided to throw together an app detailing
Dear list,
I decided to throw together an app detailing how JS works with T5 (how
to connect behavior from a component or mixin, the important inner
workings, etc). I created a mixin that attaches behavior (mouse overs)
to an HTML element (and doing this requires the DOM id of that element).
For a
Jesse Kuhnert a écrit :
Look at the "How client ids are generated" section here:
http://tapestry.apache.org/tapestry4.1/ajax/basics.html
It's all covered in excruciating detail. The gist of it is that you do
this:
public void renderSomething(){
super.renderIdAttribute(writer, cycle);
}
an
Look at the "How client ids are generated" section here:
http://tapestry.apache.org/tapestry4.1/ajax/basics.html
It's all covered in excruciating detail. The gist of it is that you do
this:
public void renderSomething(){
super.renderIdAttribute(writer, cycle);
}
and everything else gets ha
Igor Drobiazko a écrit :
Well, your component looks somehow strange to me. I don't see what it
should
do.
However id="checkbox" is written when your contained checkbox is
rendered.
That's expected behavior. Your own component does nothing except
registering
to the group. So why do you expect
Well, your component looks somehow strange to me. I don't see what it should
do.
However id="checkbox" is written when your contained checkbox is rendered.
That's expected behavior. Your own component does nothing except registering
to the group. So why do you expect id="ckL1"?
On 7/25/07, #Cyril
Igor Drobiazko a écrit :
It is inpossible to help you without having a look into your
GroupableCheckbox.java and GroupableCheckbox.html
Please post it.
Ha! That's another story, a more complex problem ;-)
After relearned Ids concept, I can talk to you about the component
GroupableCheckbox which
ps there are not same ids : clientId <> tapestryId ? Is that
>> right ?
>>
>> cyrille
>>
>> >
>> > Hope this helps.
>> >
>> > kiuma
>> >
>> > On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:
>> >>
are not same ids : clientId <> tapestryId ? Is that
right ?
cyrille
>
> Hope this helps.
>
> kiuma
>
> On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:
>>
>> Hello
>> I'm writing my first "complex" component : GroupableCheckbox (
cyrille
>
> Hope this helps.
>
> kiuma
>
> On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:
>>
>> Hello
>> I'm writing my first "complex" component : GroupableCheckbox (not same
>> behaviors as CheckboxGroup).
>>
>> The que
;
> kiuma
>
> On 7/25/07, #Cyrille37# <[EMAIL PROTECTED]> wrote:
>>
>> Hello
>> I'm writing my first "complex" component : GroupableCheckbox (not same
>> behaviors as CheckboxGroup).
>>
>> The question is about the componen
bleCheckbox (not same
behaviors as CheckboxGroup).
The question is about the component id. To define the id of the
component I think to use the text before the @ in the jwcid but it does
work, I had to add an id attribute :
does not write my defined id :
render is :
does works :
ng my first "complex" component : GroupableCheckbox (not same
behaviors as CheckboxGroup).
The question is about the component id. To define the id of the
component I think to use the text before the @ in the jwcid but it does
work, I had to add an id attribute :
does not write my defin
Hello
I'm writing my first "complex" component : GroupableCheckbox (not same
behaviors as CheckboxGroup).
The question is about the component id. To define the id of the
component I think to use the text before the @ in the jwcid but it does
work, I had to add an id attribu
> >
> > > > /Malin - I'm a she btw ;)
> > > >
> > > >
> > > >
> > > > On 7/6/07, Andreas Andreou <[EMAIL PROTECTED] > wrote:
> > > > >
> > > > > But he can set the id parameter to whatever he li
data
> > > >
> > > > On 7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > As there are no dynamic component instances in Tapestry, there
are
> > no
> > > > > dynamic component-ids. What you are
D] > wrote:
> > >
> > > But he can set the id parameter to whatever he likes, i.e.
> > > data
> > >
> > > On 7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > >
> > > > As there are no dynamic component in
gt; dynamic component-ids. What you are seeing (loopContacts_i, i=1 ...)
> > are
> > > multiple clientId's (Element id's on the client side) rendere by one
> > and
> > > the same component instance, whose id, the component-id on the
server,
> >
> &
7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > As there are no dynamic component instances in Tapestry, there are no
> > dynamic component-ids. What you are seeing (loopContacts_i, i=1 ...)
> are
> > multiple clientId's (Element id's on the clien
ement id's on the client side) rendere by one and
> the same component instance, whose id, the component-id on the server,
> is "loopContacts". So, tapestry wouldn't recognise loopContact_0 as a
> valid component-id anyway.
>
> So, I'd just try to refre
;s (Element id's on the client side) rendere by one and
the same component instance, whose id, the component-id on the server,
is "loopContacts". So, tapestry wouldn't recognise loopContact_0 as a
valid component-id anyway.
So, I'd just try to refresh "loopContacts"
As there are no dynamic component instances in Tapestry, there are no
dynamic component-ids. What you are seeing (loopContacts_i, i=1 ...) are
multiple clientId's (Element id's on the client side) rendere by one and
the same component instance, whose id, the component-id on the
I have a loop - a component of type="For", displaying contacts.
I'd like to have a component inside the loop with component id equals
something with the database key in it, the contact ID. Is that possible?
Or is there a smarter way to solve my issue?
The reason I want it this way
problem is that (1) can easily lead to a case where multiple
components specify the same component id for their children, because
the component writer has no knowledge of what other components may
be placed in the page, and in order to keep the component id simple
we don't want to require the comp
components
in order to construct unique identifiers.
The problem is that (1) can easily lead to a case where multiple
components specify the same component id for their children, because
the component writer has no knowledge of what other components may
be placed in the page, and in order to keep the
you towards this kind of solution?
On 3/23/07, Doug Hauge <[EMAIL PROTECTED]> wrote:
Is there a way to customize the generation of a unique client id from a
component id? We would like to generate the unique id in such a way that
it would not change across most modifications to a page,
Is there a way to customize the generation of a unique client id from a
component id? We would like to generate the unique id in such a way that
it would not change across most modifications to a page, mainly so
Selenium tests can be written that will work across page redesign. The
current method
Hi,
http://tapestry.apache.org/tapestry4.1/usersguide/bindings.html
see the clientId binding
Andrea Chiumenti wrote:
Hi,
I'm trying to get a component id:
The component is:
and I try to bind its id to another component
The component is rendere
Hi,
I'm trying to get a component id:
The component is:
and I try to bind its id to another component
The component is rendere into the page with id="Submit_0"
I wonder why it is rendered capitalized and why components.submit.id value
i
Jesse Kuhnert a écrit :
Just add a BrowserEvent parameter to your method and it will be
automatically populated for you. Once added you should be able to do
something along the lines of this to figure out which component fired
the event (maybe I should enhance this part to provide a more direct
r
Just add a BrowserEvent parameter to your method and it will be
automatically populated for you. Once added you should be able to do
something along the lines of this to figure out which component fired
the event (maybe I should enhance this part to provide a more direct
route):
void someButtonCl
I would like to have multiple targets hooked into a single EventListener,
but I cannot figure out how to distinguish which component fired the event
within the listener itself.
For example, if I have an event listener:
@EventListener(targets = {"button1","button2","button3","button4"}, events=
Great! Thanks a lot!
Mike Snare wrote:
thanks!
-Mike
On 5/30/06, Nick Westgate <[EMAIL PROTECTED]> wrote:
A tip: note that you don't need the element attribute for components
that default it to templateTag (check the .jwc file). DRY ;-)
So just
is fine.
Cheers,
Nick.
Mike Snare wrote:
thanks!
-Mike
On 5/30/06, Nick Westgate <[EMAIL PROTECTED]> wrote:
A tip: note that you don't need the element attribute for components
that default it to templateTag (check the .jwc file). DRY ;-)
So just
is fine.
Cheers,
Nick.
Mike Snare wrote:
> Right. You have to use jwcid otherwise i
A tip: note that you don't need the element attribute for components
that default it to templateTag (check the .jwc file). DRY ;-)
So just
is fine.
Cheers,
Nick.
Mike Snare wrote:
Right. You have to use jwcid otherwise it's not a tapestry component.
Keep using jwcid, but also use plain old
Right. You have to use jwcid otherwise it's not a tapestry component.
Keep using jwcid, but also use plain old id. For an implicit
component, it would look something like this:
-Mike
On 5/30/06, Andreas Bulling <[EMAIL PROTECTED]> wrote:
On 30. Mai 2006 - 16:19:37, Pratibha Gopalam wrote:
|
On 30. Mai 2006 - 16:19:37, Pratibha Gopalam wrote:
| Thanks for the reply.
|
| In the template (.html) we normally use the jwcid to give a id and tell
| tapestry what type of component to instantiate. How do I do the same
| thing with id?
|
| -- -- this works, but the id
| 'someid' is stat
.
Give it a shot.
On 5/30/06, Pratibha Gopalam <[EMAIL PROTECTED]> wrote:
Hello,
Is there a way of dynamically assigning a component id at runtime? For
example if I creating components in a for loop and I want to assign the
component ids at runtime, is that possible?
Tapestery doesn
ut I don't know.
Give it a shot.
On 5/30/06, Pratibha Gopalam <[EMAIL PROTECTED]> wrote:
Hello,
Is there a way of dynamically assigning a component id at runtime? For
example if I creating components in a for loop and I want to assign the
component ids at runtime, is that possibl
Hello,
Is there a way of dynamically assigning a component id at runtime? For
example if I creating components in a for loop and I want to assign the
component ids at runtime, is that possible?
Tapestery doesn't allow me to use a ognl expression for jwcid like
jwcid="ognl:category
85 matches
Mail list logo