Hi,
I know this is probably a small concern - but I don't like the red error
indicators in Eclipse. They popup whenever I have a .tml file. It says:
Attribute "xmlns:t" must be declared for element type "html".
Is there any way to suppress this error?
-J.
-
Howard,
Please stop throwing a dark blanket on me condemning me. Why not pick on the
points I made head on and defend yourself? Wel,
I'm not surprised you're not doing it because you are not destined to take
challenges head on.
Is it not true Tapestry's popularity has diminished over the last coup
I don't think there's any public API that you can use to get the list of
pages.
Still, i guess you can always copy what ComponentClassResolverImpl does.
That's the service that prints the list of all pages at startup.
Angelo Chen wrote:
> Hi,
>
> Is there a way to obtain a list of pages in the app
good idea.
HugoPalma wrote:
>
> I don't think there's any public API that you can use to get the list of
> pages.
> Still, i guess you can always copy what ComponentClassResolverImpl does.
> That's the service that prints the list of all pages at startup.
>
>
>
--
View this message in cont
Filip S. Adamsen-2 wrote:
>
> Sounds reasonable to me, is there a JIRA issue somewhere that I can vote
> on? :D
>
I thought about it but I didn't as nobody seemed to have the same problem
with this behavior. I think I will do this now.
--
Chris
--
View this message in context:
http://www.
As fas as I know T5 method build() in AppModule is static, so you need
make RequestGlobals static variable:
@Inject
private static RequestGlobals requestGlobals;
to pass it to constructor of mentioned service. When you try to get
something (eg HTTPServletRequesst ) from it after calling service y
Filip got it for me
the method is contributePersistenceStrategry (or something like that - from
TapestryModule)... just include the RequestGlobals interface (or Cookies, or
whatever) and its taken care of.
because its automatically injected into the method signature (no annotation
needed), it doe
Hi
--
View this message in context: http://www.nabble.com/.-tp16676937p16676937.html
Sent from the Tapestry - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
This is not hard to fix, you need to add a configuration for tml files
in properties/editors/file associations, if I recall you need to
associate the extension with the html editor.
Jan Vissers wrote:
Hi,
I know this is probably a small concern - but I don't like the red error
indicators in E
This actually sounds quite interesting! share pls.
nicholas Krul wrote:
Filip got it for me
the method is contributePersistenceStrategry (or something like that - from
TapestryModule)... just include the RequestGlobals interface (or Cookies, or
whatever) and its taken care of.
because its au
Thanks - I already did this.
I'm now able to edit .tml files as if they were .xml files - which is
just what I like. However when I add:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
to the top of my Layout.tml Eclipse complains about:
Attribute "xmlns:t" must be declared for element type
Hi All,
I'm new to Tapestry technology and to this mailing list, and I have a
question. I'd like to "dynamically" create .TMLs... So instead of having
static pages (Start.tml, Login.tml), I'd like to construct Tapestry pages on
the fly (by including page parts, which are other .tmls). I've been lo
Hi,
i would like to use the IncludeStylesheet in my page classes in order to
override some styles declared in components. In order for this to happen
the css declared in the page would have to show up in the rendered HTML
after the css declared by the component. As it turns out, the css are
gettin
Hi,
I have an embedded component which should render something different
depending on a component parameter of the component containing the
embedded component (wow - try to say that quickly ;-).
How can I do that?
-J.
-
To uns
I believe there is something mentioned on it on:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/parameters.html#Inherited%20Parameter%20Bindings
with inherit: binding - however this doesn't work for me.
-J.
On Mon, 2008-04-14 at 15:18 +0200, Jan Vissers wrote:
> Hi,
>
> I have an embed
Hi All,
this is solved :) sorry, I was too quick and forgot to search the mail
archives. Really, this is not an issue with tapestry. Page parts should be
components and then including them is this easy:
like for including a Footer component to show standard footer.
(And don't forget that the .
Hi Janos,
Could you elaborate a little bit more on what you wanna do?
Have a look at the basic principles of T5 [1], especially Principle #1
might be of interest for you.
Maybe you are just looking on how create dynamic layouts then go to the
mailing list with keywords dynamic and static [2]
Then I was to fast too! ;-)
Michael Gerzabek schrieb:
Hi Janos,
Could you elaborate a little bit more on what you wanna do?
Have a look at the basic principles of T5 [1], especially Principle #1
might be of interest for you.
Maybe you are just looking on how create dynamic layouts then go t
And please allow me to also mention that, not only are high profile Tapestry
users abandoning Tapestry, high profile sites which were using Tapestry are
also ditching Tapestry. An example is theserverside.com which whacked
Tapestry like a baseball from their servers and replaced it with another
web
We are using Tapestry 4.0 for over a year. Since, we were not able to
find a reliable (called on every request) and consistent (Information
from HttpServletRequest is available through RequestCycle at the time of
call) way to initialize and cleanup the pages to achieve behavior quoted
from the Use
Our resident troll is absolutely hilarious!
On 14/04/2008, at 8:41 PM, Rob Smeets wrote:
Howard,
Please stop throwing a dark blanket on me condemning me. Why not
pick on the
points I made head on and defend yourself? Wel,
I'm not surprised you're not doing it because you are not destined
Fantastic!Thanks a lot to both of you :D. I will give a try to them
2008/4/11, Thiago HP <[EMAIL PROTECTED]>:
>
> On 4/11/08, Marcelo Lotif <[EMAIL PROTECTED]> wrote:
> > There are two nice articles by Chris Lewis regarding this, and i think
> it's
> > the best approach out there. Maybe you shoul
> inherit: binding - however this doesn't work for me.
That should work.
With the inherit keyword you can forward parameters to sub-components,
like this example of a zebra Grid component:
public class MyGrid
{
@Parameter(required = true)
private GridDataSource source;
@
Glad to know I'm not alone. Vote away!
https://issues.apache.org/jira/browse/TAPESTRY-2354
On 14/04/2008, at 9:25 PM, Christian Köberl wrote:
Filip S. Adamsen-2 wrote:
Sounds reasonable to me, is there a JIRA issue somewhere that I can
vote
on? :D
I thought about it but I didn't as n
Yep, you're right!
Thanks for the example.
-J.
On Mon, 2008-04-14 at 16:09 +0200, Christian Koeberl wrote:
> > inherit: binding - however this doesn't work for me.
> That should work.
>
> With the inherit keyword you can forward parameters to sub-components,
> like this example of a zebra Grid
Again,
will you back up any of your claims with something technical,
and stop whining ?
you are not a wicket user and you know too little about it
to comapre it to tapestry.
Why do you keep bringinng wicket up again, and again ?
Why don't you reply to any user mail to help, or ask for help
like
What he said!
-Filip
On 2008-04-14 14:32, Peter Stavrinides wrote:
This actually sounds quite interesting! share pls.
nicholas Krul wrote:
Filip got it for me
the method is contributePersistenceStrategry (or something like that -
from
TapestryModule)... just include the RequestGlobals int
Yeah, that's really what I would expect as well.
You have my vote an a JIRA issue.
-Filip
On 2008-04-14 15:02, Hugo Palma wrote:
Hi,
i would like to use the IncludeStylesheet in my page classes in order to
override some styles declared in components. In order for this to happen
the css declar
I can see adding an attribute to the annotation to control which phase
the stylesheet is added; currently it is added in the BeginRender
phase (or maybe SetupRender, can't remember off the top of my head).
In any case, to get the behavior you want, it should be added in the
AfterRender phase (i.e.,
Have to jump in here; sorry Tomasz, wrong on all counts :-) But
thanks for trying to help out.
Filip is right, for services you don't use @Inject on fields; you gain
access to dependencies via your constructor. Tapestry doesn't
manipulate your service classes the way it does components, and
@Inj
Cool, thanks for the workaround.
I've create an issue for this
https://issues.apache.org/jira/browse/TAPESTRY-2356
Thanks.
Howard Lewis Ship wrote:
> I can see adding an attribute to the annotation to control which phase
> the stylesheet is added; currently it is added in the BeginRender
> phase
Thanks for the good user (developer) stories in this thread, will be
good to put them in the main tapestry web site, and thanks Rob "The
Grumpy Dwarf" that unintentionally help these stories to emerge, and
show the people behind this list.
César.
--
Hi,
I've got the following problem: I have a list of relatively complex
data objects that I need to edit, which leads to the following form:
So far so great, but I'm having real problems with the MyCons
>
>
> In fact, if I was doing the code again, module classes would not have
> instance methods, only static methods.
Please, please help. Howard, take your hands off that code, ok. You'll break
our current code base. You may do it in Tapestry 6. Because, again that
would be it's own beast- as usu
Our codebase? So, you do use T5 then Rob? Poor you, I sympathise with using
technology you dislike.
I'm really looking forward to your perfectly designed web framework where you
took the trouble to "Think and design before you code" though, avoiding
temptations and saving much misery and pain.
Yeah, well, you know, that's just, like, your opinion, man.
2008/4/11, Rob Smeets <[EMAIL PROTECTED]>:
> And especially, Howard himself recently participates in the answering of
> questions. Thanks to the stiff competition out there in the webframework
> space that has triggered this. His ego we
Is there an equivalent for state: binding in T5 and if so - how can I
use it.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Based on a simplified rules engine I'm determining what to render to screen.
For flexibility a want to be able to pull html-snippets from a database
(based on these rules) which can contain template expansions. (i.e:
${country.name}).
I want to know if it is possible (in for instance the setupR
Let me explain:
I have an ASO defined in a Base class which is extended by a page. This
page uses a component. This component should check whether the ASO has
is created. In T4 my component could lookup page properties and state:
binding properties very easily - somehow I'm unable to reproduce thi
Similarly - to be complete -
The component in T4 reference a page property via 'page.XYZ'
Would like to know how 'page.' is achieved in T5.
-J.
On Mon, 2008-04-14 at 19:09 +0200, Jan Vissers wrote:
> Let me explain:
>
> I have an ASO defined in a Base class which is extended by a page. Thi
Read here about the application state:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/appstate.html
On Mon, Apr 14, 2008 at 7:09 PM, Jan Vissers <[EMAIL PROTECTED]> wrote:
> Let me explain:
>
> I have an ASO defined in a Base class which is extended by a page. This
> page uses a compone
Yep I've read it - but to me it's unclear. I know I'm stupid :-)
Again this is my T4 case:
+ An ASO holds on to user identity
+ A base page declares this ASO as well as a ASO guard to circumvent
eager creation
+ A component 'queries' the ASO guard in order to render some dynamic
content.
+ Th
Try this in your component:
@ApplicationState
private YourASOClass object;
@ApplicationState
private boolean objectExists; // tells if your ASO objects has already
been created
As your login information is an application state, you don't need to
access it from the page, AFAIK.
--
Thiago
-
Is it the base page issue you are tripping over? The documentation is
pretty clear for the "standard" case. If you are extending base pages, then
you will need to create the getters and setters to access the ASO's in
derived pages.
For access from the component, why not just inject with the
@Ap
Hi,
Using
http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html I
have a setup where the layout component uses a couple of other
components. All of which have:
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
at the top - to keep a certain degree of previewability. However
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
On Mon, Apr 14, 2008 at 11:02 AM, Jan Vissers <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Using
> http://tapestry.apache.org/tapestry5/tapestry-core/guide/layout.html I
> have a setup where the layout component uses a couple of other
> component
The T4 state: binding was based on the fact that ASO's in T4 had
explicit, developer-assigned logical names.
In T5, ASOs are identified by their class name, not a
developer-assigned logical name.
You can define a field as an ASO.
If you place the @ApplicationState annotation on an additional boo
Excellent - thank you.
On Mon, 2008-04-14 at 11:13 -0700, Howard Lewis Ship wrote:
> The T4 state: binding was based on the fact that ASO's in T4 had
> explicit, developer-assigned logical names.
>
> In T5, ASOs are identified by their class name, not a
> developer-assigned logical name.
>
> You
Thanks Howard,
However this doesn't work for the Component templates. It does work for
the Layout component, though. My question is what to add to other
Components, in order to maintain previewability, but without extraneous
element at runtime.
-J.
On Mon, 2008-04-14 at 11:09 -0700, Howard Lew
I've been playing around with onActivate methods recently, that is with
multiple parameters and multiple methods. I don't understand its behaviour
- it does not seem to match up with the lore on the mailing lists (apologies
for the lack of references). I was wondering if anyone has recent experien
Hi Jan,
This was answered recently on the mailing list:
http://www.nabble.com/Re-%3A-Re-%3A-T5%3A-Layout-question-td16448904.html#a16448904
Peter Beshai
On Mon, Apr 14, 2008 at 2:25 PM, Jan Vissers <[EMAIL PROTECTED]> wrote:
> Thanks Howard,
>
> However this doesn't work for the Component templ
Hello
Rob, I asked for help... I got it. If you cant contribute, don't. I have no
respect for people who only seek to tear down and not to build.
And to everyone else
http://wiki.apache.org/tapestry/Tapestry5HowToUsePersistentFieldStrategy
:)
thanks
--nK
On Mon, Apr 14, 2008 at 5:35
For completeness, here is my Layout:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
${title}
I believe I have found a bug in RequestLocaleManagerImpl due to it
being a pooled service.
There is a member variable, _lastPersisted, which stores the last
Locale that was persisted (i.e., stored as a cookie). However, since
RequestLocaleManager is a pooled resource, that instance may be u
I can not reproduce your problem, but for the second one you can try:
Jan Vissers schrieb:
For completeness, here is my Layout:
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
http://www.w3.org/1999/xhtml";
xmlns:t="http://tapestry.apache.org/schema
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
Hi Angelo,
- get ContextClassLoader from current Thread
- get path of your pages package (org.exemplo.teste.pages) from ClassLoader
- get files on this path that ends with ".class", skiping inner classes.
I think this topic already has been discussed here.
Marcus.
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
there is also ClassNameLocator service
with methods to list classes in a package
On Mon, Apr 14, 2008 at 10:55 PM, Marcus <[EMAIL PROTECTED]> wrote:
> Hi Angelo,
>
> - get ContextClassLoader from current Thread
> - get path of your pages package (org.exemplo.teste.pages) from
> ClassLoader
> - ge
The problem with this approach is that it doesn't address any other page
packages that may have been added via other modules (in the same manner
that additional component packages can be added).
The idea of copying what ComponentClassResolverImpl does would be the
'correct' method, and an extension
You, good sir, rule.
Thanks for the code. :)
-Filip
On 2008-04-14 21:23, nicholas Krul wrote:
Hello
Rob, I asked for help... I got it. If you cant contribute, don't. I have no
respect for people who only seek to tear down and not to build.
And to everyone else
http://wiki.apache.org
Hi,
onActivate(Object[]) is always called first because it counts as a
method having an infinite amount of parameters, so to speak. At least
that's the way I see it.
-Filip
On 2008-04-14 20:40, Szemere Szemere wrote:
I've been playing around with onActivate methods recently, that is with
mu
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
but how do i return a binary stream, that generated at render phase.
2008/3/17, Josh Canfield <[EMAIL PROTECTED]>:
>
> You need to return a StreamResponse
>
>
> http://tapestry.apache.org/tapestry5/apidocs/org/apache/tapestry/StreamResponse.html
>
> Also, check out the following for an example.
>
On 4/14/08, Sven Homburg <[EMAIL PROTECTED]> wrote:
> but how do i return a binary stream, that generated at render phase.
Return your StreamResponse, just like in the wiki example cited
earlier, in an onActivate() method. ;)
--
Thiago
---
Why are you generating a binary stream during the render phase?
On Mon, Apr 14, 2008 at 3:55 PM, Sven Homburg <[EMAIL PROTECTED]> wrote:
> but how do i return a binary stream, that generated at render phase.
>
>
> 2008/3/17, Josh Canfield <[EMAIL PROTECTED]>:
>
> >
> > You need to return a StreamR
Chris is right, ComponentClassResolver is the service that "knows" the
pages, and could easily provide a list of pages.
I do have a concern that in the future, we may become a bit more
"dynamic" about what pages are available; i.e., pages with templates
but no Java class, or pages created from the
Just very busy with work and playing video games. (Tapestry has
improved my lifestyle in this area immensely )
I usually spend more time writing code and learning than communicating
with humans, so it's easy to get lost in that sometimes.
(sorry if you've felt ignored, I tend to delete your pr
Hi Denis,
Is it possible to provide a sample of your code. I need to invoke an Ajax
request to update specific fields in a form when selecting a checkbox and/or
RadioButton but I have no experience with Ajax or Javascripts.
Cheers,
Petros
Denis McCarthy-2 wrote:
>
> Not to worry,
> I've m
Hi,
I have tried to use a @Validate("regexp") to validate
a number field, the regexp used is:
numField-regexp=\\-*\\d*\\.*\\d*
However this doesnt work in T5 (5.0.9), the validation
is simply ignored, i have tested the regular
expression in Java correct. I wonder if T5 supports
all java.util.re
I am using t5 plus extjs(a javascript framwork)
some code fragment in *.tml
..
items: [{
fieldLabel: 'name',
name:'formValue',
value:'${formValue}'
}],
.
and some in page class
...
private String _formVa
It seems @Validate("regexp") only support fixed number
of matches such as \\d{4}, and doesnt support "one or
more" or "zero or more" matches(\\d* or \\d+).
Sige
--- Sige <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have tried to use a @Validate("regexp") to
> validate
> a number field, the regexp u
Sorry, I don't know much about extjs and I can't help.
Would you please show more complete code? Such as textfield segment in
template. Then anyone here can help you even though they are not familiar with
extjs.
And you can debug the TextField component in your IDE to check what's the value
subm
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
I'm kind of bogged down in Guitar Hero 3; Hard is just too hard. It
needs a level between medium and hard where you use the orange button
only occasionally, and just do more chords, hammer-ons and layoffs.
I thought while I was recovering last month (I had some minor elective
surgery) that I'd fi
75 matches
Mail list logo