Decoupling a Template From its Component Class
On Mon, 2007-07-02 at 11:03 +0200, Kristian Marinkovic wrote:
hi martin,
if you use the ServiceBinder to contribute a class that implements an
already
contributed interface you have to assign an id for your class by
invoking withId,
because
it should work as you've tried could you post the code from
your AppModule where you return your service?
Tina Umlandt [EMAIL PROTECTED]
26.06.2007 17:56
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry users users@tapestry.apache.org
Kopie
Thema
Messages and
Kopie
Thema
Re: Antwort: Messages and @inject
Hej,
I didn't add anything to my AppModule. Do I have to? Which method do you
mean?
Thx,
Tina
Kristian Marinkovic wrote:
it should work as you've tried could you post the code from
your AppModule where you return your service
hi all,
how can i get a list of assigned mixins from a component?
I've tried from within a mixin but getMixinClasses returns always
an empty list:
@InjectComponent private Component _component;
@Environmental private JavascriptApi _jsAPI;
public void afterRender() {
ComponentResources
you could contribute an own BindingFactory for messagedb:...
g
kris
Tina Umlandt [EMAIL PROTECTED]
20.06.2007 15:27
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
users@tapestry.apache.org
Kopie
Thema
t5: i18 messages without different locale files
Hi,
I have the
hi tina, in your Module Class (AppModule, or WebappnameModule) you can contributeyour own BindingFactory with following method:public static void contributeBindingSource( MappedConfigurationString, BindingFactory configuration,) { configuration.add("messagedb", new
just a guess.
inject property=aso type=state object=sessionASO/
is within you .page file and not within your .html?
Jonathan Barker [EMAIL PROTECTED]
14.06.2007 05:16
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
'Tapestry users' users@tapestry.apache.org
Kopie
Thema
Hi,
can someone help me to obtain a Link or InvocationTarget
instance from a specific Component (ActionLink, PageLink).
I'm trying to delegate this information to a service that generates
the necessary javascript for my asynchronous invocations.
First i thought the ComponentInvocationMap were
Hi Erik,
in T5 its very easy to create a tab component.
Just create a component for every tab you have.
Then add a Delegate to the page that should
display the tab and bind the to parameter of
the Delegate to a method. This method then returns
the respective tab component
example code:
i think you have to deploy the jar (make it available in the classpath)
and add the new package path to the tapestry.app-package
parameter in web.xml
g
kris
Allen Guo [EMAIL PROTECTED]
08.06.2007 12:47
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry users
Kopie
Thema
Re: How to use the third-party T5 Component in another T5 project
But I can only a tapestry.app-package in web.xml
And another question is ,
if the component have the same name with the component in my project, what
should I do?
2007/6/8, Kristian Marinkovic [EMAIL PROTECTED]:
i
: FlatImg, Layout, core/ActionLink, core/Any,
core/BeanEditForm, core/Checkbo
2007/6/8, Kristian Marinkovic [EMAIL PROTECTED]:
just forget what i said before
you can use a LibraryMapping to add other component libraries.
therefore you have to contribute your library
hi,
is there any reason for the ActionLink component to call
resources.renderInformalParameters(writer)
although it has the RenderInformals Mixin attached?
g,
kris
i assume you have used the tapestry archetype :)
with the SubModule annotation you can have other module classes
loaded with the AppModule without putting them into the manifest.
as an alternative you can put your module into your manifest as
well (comma separated)
plugin
hi all,
wouldn't it be nice to have a java api in tapestry that could
be used to add certain javascript functionality to a page?
preferable independent from a javascript library?
like:
jsApi.addEventListener(Page page, Component comp, String eventType);
or:
jsApi.addAsynchronousLink(Page
hi martin,
instead of resolving the path to your resource manually you can
use the asset service (useful when thinking of portlets)
i wrote a stylesheet component myself that works like your
script component :) ... and i enjoyed writing it.
public class Script {
@Inject
private
i did some partial page rendering (PPR) myself ... but i don't
know it is the tapestry 5 way of doing it...
rendering a component from any page
@Inject
private RequestPageCache _cache;
@Inject
private MarkupWriterFactory mwf;
@Inject
private PageRenderInitializer initializer;
public
users users@tapestry.apache.org
Kopie
Thema
RE: T5 Script component [WAS: Re: T5 page lifecycle]
On Tue, 2007-05-29 at 09:36 +0200, Kristian Marinkovic wrote:
instead of resolving the path to your resource manually you can
use the asset service (useful when thinking of portlets)
What
hi,
i created a stylesheet component that does not allow informal
parameters. i include my stylesheet component by using invisible
instrumentation with t:id like below:
link t:id=stylesheet href=style.css /
Because T5 converts this to an Any component (see documentation)
it tries to evaluate
a thought)
g,
kris
Massimo Lusetti [EMAIL PROTECTED]
21.05.2007 10:37
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry users users@tapestry.apache.org
Kopie
Thema
Re: [T5] Question about invisible instrumentation with t:id
On 5/21/07, Kristian Marinkovic [EMAIL
Thema
Re: [T5] Question about invisible instrumentation with t:id
On 5/21/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
it does work with literal: but i'd like to avoid that designers
know more about Tapestry than t:id :). especially when they
want to preview the template with a real
hi sabine,
have you tried to clean install everything?
from the stack you can see it is trying to call the
OnEventWorker.extractComponentIds method
that does not exist anymore (since 13.3.2007). The
correct name now would be extractComponentId.
I suppose at least your Tapestry Core library is
hi,
i pushed an own helper class (ParentHelper) into the Environment instance
to make it usable in one of my nested components using @Environmental.
But instead i got the following exception although i used the correct
class:
No object of type
hi,
you could use Hivemind 2 ... uses Annotations too!
And there is the Spring JavaConfig project that provides
Spring annotations (never used myself)
the problem you face when using Tapestry IoC or
Hivemind 2 is that you will not find the rich integration
with other frameworks nor the
hi michael,
it should work with just @Inject. You can take a look at the
BeanEditForm component... it uses a bunch of @Injects.
(T5.0.4)
g,
kris
Michael Maier [EMAIL PROTECTED]
04.05.2007 11:37
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry users
in classes without a template.
On 5/3/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
hi,
does anyone know how to render a Tapestry 5 component that itself
contains a component with the @Component annotation?
What i did so far is to define a template for the first component that
contains
did you use the target/ directories to configure jetty?the target directory is refreshed only after a new build. make sure jetty points to src/main/webapp/ and not tptarget/webapp...-bjornharvold [EMAIL PROTECTED] schrieb: -An: users@tapestry.apache.orgVon: bjornharvold [EMAIL
hi,
found my problem... in order to have a service that does not have an
interface
you have to use the ServiceBinder.
Shouldn't it be possible to have these kind of services returned by a
builder
method as well? IMHO this way it'd feel more consistent
g,
kris
Kristian Marinkovic
t:comp is not supported anymore. now its t:loop...
t:component_type
look into the Tapestry 5 tutorial pdf... examples there are
up to date :)
g,kris
winlaw [EMAIL PROTECTED]
30.04.2007 14:54
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
users@tapestry.apache.org
Kopie
hi bjorn,it works fine for me... where did you put your templates?do you get any exceptions? Have you tried the tutorial?you can put your templates into the WEB-INF/ folder or into the respective package... eg. my directory structure
hi all,
when i try to return a service in my module that does not have an
interface
i get a No service implements the interface... exception. The recent
blog
entry suggests that it should work now ..
http://tapestryjava.blogspot.com/2007/04/pleasing-crowds-improving-ioc-extending.html
My
the loop component provides an index parameter that contains
the current iteration...
t:loop source=1..16 index=row_count
tr
t:loop source=1..4 index=column_count
td${value}/td
/t:loop
/tr
/t:loop
public Object getValue() {
return
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
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 users@tapestry.apache.org
An
users@tapestry.apache.org
Kopie
Thema
T5: StackMapTable format error: bad
hi diego,
the EventListener is transfering the id of the surrounding div
because the event does not reference the checkbox directly.
it could be that the user clicked on a label element with a for
attribute... technically the label element would trigger the event
and not the checkbox thus
hi,
could someone help me to apply a T5 Loop with the
@Component annotation? The following code does
not work all the necessary getter/setter methods are
in place (modification of T5 tutorial).
... or maybe the Loop is not meant to be used this way :)
g,
kris
span t:id=looping
a
hi all,
sorry for my previous post of course it works!!
my failure was that i had the Loop as public property
without a getter method... if you do so you get an Error
message in your log you should read :)
g,
kris
Kristian Marinkovic [EMAIL PROTECTED]
13.04.2007 12:09
Bitte antworten
hi,
the JVM uses the PermGenSpace to store the classes meta-information
(eg. needed for reflection). Current JVMs do not support gc of the
PermGenSpace.
Everytime Tapestry enhances a class (filling the abstract classes and
methods with life:)) a new class is generated and thus its
hi,
this happens because you access the Person object before
it is instantiated. the easiest thing is to add a if before your
input to check whether the object is null
in tapestry 4.1 theres is the InjectStateFlag annotation
that returns true if your ASO is instantiated
or you can instantiate
to instantiate your object implement the PageBeginRenderListener
interface and invoke the abstract method that returns the ASO (Person)
and it will be created :)
g,
kris
ps.: i think there was some talk about eager loading ASOs some weeks
or month ago i'm not sure
Kristian Marinkovic
i think a better strategy is to reduce the sesion-timeout in the
web.xml to lets say 2mins and to implement a javascript function
that issues periodic keep-alive requests every 1.5mins or so.
thus preventing the session from expiring...
and when someone closes his browser the session will not
use the jetty plugin; its a small servlet container that starts VERY
quickly!
my startup times dropped from 15sec to 2sec!!
Bruno Mignoni [EMAIL PROTECTED]
12.03.2007 13:55
Bitte antworten an
Tapestry users users@tapestry.apache.org
An
Tapestry users users@tapestry.apache.org
Kopie
Thema
or Jetty 6 ?
;-)
Bruno Mignoni
On 3/12/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
use the jetty plugin; its a small servlet container that starts VERY
quickly!
my startup times dropped from 15sec to 2sec!!
Bruno Mignoni [EMAIL PROTECTED]
12.03.2007 13:55
Bitte antworten an
Tapestry
Isn't the name of a listener known by the very definition? I mean,
when ~don't~ you know the name of it?
On 2/19/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
hi all,
is there a way to obtain the method name of a listener?
I need it to generate a javascript
hi,
how do i render an empty ajax response?
i'm sending an ajax request to synchronize
the model with the view but i do not need
any information back except an acknowledgement
that my request was received and processed.
g,
kris
hi all,
when i try to send data via tapestry.bind to my Tapestry page from
a page with a dojo editor (editor2) i get following javascript exception:
[exception]
DEBUG: [Exception... Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIXMLHttpRequest.open] nsresult: 0x80004005
will be called after any ajax resoibse has been received
dojo.event.connect(tapestry,load,function(e) {
alert(loaded);}
);
g,
kris
Alexander
hi marcos,
in case you use the EventListener with the elements attribute (dom nodes)
kind of [EMAIL PROTECTED](events={onclick},elements=domNode)
you can see that the dom node has an event listener attached for onclick.
using dojo it is possible to add a function to this dom node that gets
hi all,
i'm not able to include a static javascript file into
my page. could someone point me the right way
how can i include a static javascript file into my page
when using the @Body and @Shell component?
thats what i have so far:
.script file located at WEB-INF/web:
script
include-script
Hi all,
maybe a dumb question... but how do i force
an AbstractComponent to render the injected
script?
I could not figure out how to obtain the instances
required to call getScript.execute(..objects?..).
this is what i have so far:
@InjectScript(CompWithScript.script)
public abstract IScript
, this);
Map symbols = new HashMap();
symbols.put(colorPicker, this);
_script.execute(cycle, pageRenderSupport,
symbols);
Shing
--- Kristian Marinkovic
[EMAIL PROTECTED] wrote:
Hi all,
maybe a dumb question
hi all,
is there a way to obtain the method name of a listener?
I need it to generate a javascript function with the same
name. calling this js function will trigger an asynchronous XHR
call (Tapestry.bind) that triggers the corresponding listener.
The js method also accepts parameters that get
hi all,
is it possible to add some custom data to a call
produced by a @EventListener so it appears in
the map of the BrowserEvent class?
or the other way around :)... does anyone else
consider this an useful feature?
so why do i need it:
i have some drag-n-drop elements in two lists that
can
registered for it.
In the mean time you might use directly the js function provided by
tapestry linkOnClick which does the job very well.
I think you can find an example of how to use it in the autocompleter
component.
Alex
On 2/16/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
hi all
hi diego,
the simplest way is to add an EventListener to the parent node of the
checkboxes
add to take advantage of the javascript event model (event bubbling, event
delegation).
... lets say you are enclosing your checkboxes with a DIV tag
div id=checkboxes
//for loop for checkboxes
/div
=[EMAIL PROTECTED]
div id=checkboxes
SPAN jwcid=@For source=ognl:listCheckBoxes value=ognl:checkId
input jwcid=@Checkbox id=ognl:'checkboxes_'+checkId
value=ognl:checkboxValue/
/SPAN
/div
/span
Regards,
Diego
On 2/13/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
hi diego
hi tobias,
is there any reason you create the DomainManager with model=threaded?
Have you thought of creating an ASO (session) where you inject your
DomainSource object?
g,
kris
Tobias Marx
Sounds like a possible bug.
As with all issues, creating a JIRA issue is the best hope anyone has
of having something fixed.
On 1/23/07, Kristian Marinkovic [EMAIL PROTECTED] wrote
={searchFieldValue} / (it
should work)
So, i feel that TAPESTRY-1240 is invalid
Kristian Marinkovic wrote:
hi all,
i just noticed that if an LinkSubmit component with a parameters binding
to a TextField causes an exception (on submit) if that input field
remains
empty (null). The reason
a (validated) TextField,
and a LinkSubmit for that form, why use a parameter?
Kristian Marinkovic wrote:
i will try as you propose :)
but what bothers me is that i have a validator applied to the TextField.
Shouldn't Tapestry check the validators before it proceeds to execute
the listeners?
I'm must
/LocaleList.htm
Maybe there is something different for you?
JIRA .
On 1/24/07, Kristian Marinkovic [EMAIL PROTECTED] wrote:
[update]
i just discovered that the Javascript code gets generated
again for every iteration of the For component... but the
event reaches the java class at most twice
[update]
i created a jira entry with a maven2 project to reproduce the bug
https://issues.apache.org/jira/browse/TAPESTRY-1241
i hope this problem gets resolved soon as it poses a severe
problem of the @EventListener
g,
kris
I met Oliver Tigges on a german java conference in 2006. He told me
he has a Tapestry 3 + XTiles application with several hundred concurrent
users runnig. This applications is internal for a bank.
He works at BV Risk Solutions i think ... you could contact him for more
details
or
Hi,
the DIV element within the For component has an @EventListener
attached. When i click on it my listener method SOMETIMES gets invoked
more than once!!! (twice)
This happens in 4.1.1 and 4.1.2-SNAPSHOT (20070121).
From the generated HTML page i can see that the Javascript code
for attaching
hi tapestry user,
there is a poll by a german java magazine to determine the usage
of certain web frameworks in current projects (http://www.javamagazin.de
in the middle of the page).
Maybe you could vote too :)
g,
kris
-
hi konstantin,IMHO portlets are going to get more and more important. if you lookat the new portlets 2.0 spec you will see AJAX defined to reload portletcontent, an event mechanism to notify one or more portlets, a new interportlet communication protocol, central session handling aso. With this
Hi,
you could generated a CSS with a @Import statement that depends on language
and style
kind of:
main.css:
/* all default rules that apply to all styles */
/* if lang=en */
@IMPORT url(lang_en.css);
/* else */
@IMPORT url(lang_default.css)
/*end */
lang_en.css:
/* just the rules that are
of course you could move this @Import statement into your HTML template :)
Kristian
Marinkovic
Hi,
could you post the exception.
Is there a object with a object.setDataSource(javax.sql.DataSource ds)
method?
if so hivemind won't be able to resolve the right object because there are
3 objects with
the same interface available. you will have to specify the desired pool by
its
Hi,
if you look for some good references for ui in general,
web design (html, css), design and best practices (for html)
you could take a look at: www.alistapart.com
the ui of a web app doesn't have anything to do with tapestry.
tapestry allows you to design your templates as you want it.
g,
.
Martin
On Tue, 08 Aug 2006 11:24:36 +0200, Kristian Marinkovic
[EMAIL PROTECTED] wrote:
hi,
is it possible to inject the Hivemind Registry into a service?
I have several users from different partners (in different
countries). I want to have a factory (service obtained by
Hivemind) that, when
hi,
you could try to check your html templates by using the HTML Validator
add-on for Firefox. It will show you exactly where the unclosed tags are.
i know it's not exactly what you are looking for :) but it could help
reduce
the number of hours you spend on correcting your templates. maybe you
if you use HTML 4.01 or XHTML 1.0 Transitional you could define a target
attribute
a target=_blank/a
pure html :)
g,
kris
zqzuk
-
From: Kristian Marinkovic [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 6:28 AM
To: Tapestry users
Subject: Hivemind: creating a pooled service
hi,
could someone tell me howto configure hivemind to get me a
object with a pooled lifecycle which, if the pool is empty, uses
a own
know when to release
stuff if you don't clean up your current thread.
-Original Message-
From: Kristian Marinkovic [mailto:[EMAIL PROTECTED]
Sent: Friday, July 28, 2006 8:09 AM
To: Tapestry users
Subject: RE: RE: Hivemind: creating a pooled service
hi james,
the error message does
if you declare a service as model=threaded a new instance
will be created for every request of a new thread. so every thread
has its individual instance. i think model=singleton (default model)
is what you are looking for.
you could also define a application state object with application scope:
Hi,
can somebody explain to me the difference between
invoke-factory and create-instance? Is there any
difference in behaviour as long as the class referenced
by invoke-factory does not implement
ServiceImplementationFactory?
Or am i completely wrong :) I'm not sure how to use them.
Thanks in
: Kristian Marinkovic [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 10:44 AM
To: Tapestry users
Subject: Hivemind: Difference between invoke-factory and
create-instance
Hi,
can somebody explain to me the difference between
invoke-factory and create-instance? Is there any
difference
hi,
that's true... but it's only the template... it is more important how
your generated page looks like. the spans disappear in the
generated page.
g,
kries
Blackwings
this could help:
http://www.nabble.com/Dynamic-translators-tf1229928.html#a3255867
define your formatter as a bean and define the pattern using
message:date_pattern
greetings,
kris
Shing Hing Man
i found it :)
span jwicd=assessorRows
should be
span jwcid=assessorRows
kris
Chris Chiappone
[EMAIL PROTECTED]
it when not in
doubt, too.
Cheers,
Paul
On May 29, 2006, at 2:11 AM, Kristian Marinkovic wrote:
hi,
to use XHTML it is NOT necessary to rename the .html file
to .xhtml. all
you
have to do is to add the dtd and the ?xml. the
only reason i
could
i think this link might help:
http://people.apache.org/~cliffs/3party.html
regards,
kris
Norbert Sándor
[EMAIL PROTECTED]
401 - 483 of 483 matches
Mail list logo