Hi,
I can see that JSon is implemented in Tapestry4.1.x
(IJSONRender,ResponseBuilder)
Today I use JSon for communicate between Java Applet and WebApp, I've go
a Servlet that make the bridge from JSon call to the WebApp via some
Spring Beans.
Perhaps I can stop to use this Servlet and
Hi,
I'm not sure I understand what you want to do.
What do you mean by Inside BaseEngine's setLocale method.
Do you have your own implementation of the IEngine interface or do you
extend BaseEngine?
In both cases you have to tell tapestry to use your class. For that purpose
you have the
Hi,
in tapestry JSON is used to render the asynchronous response to the client.
Lets say you have an ajax component which has some javascript.
The component provides needed data for its javascript via JSON.
I'm not sure whether it is your scenario but you could have a look at:
Igor Drobiazko a écrit :
Hi,
in tapestry JSON is used to render the asynchronous response to the
client.
Lets say you have an ajax component which has some javascript.
The component provides needed data for its javascript via JSON.
I'm not sure whether it is your scenario but you could have
Hi all,
I want to use the Grid component to display a list of questions and answers:
since there are many questions, I don't want the user to see them all at
once, but instead show them conditionally as needed. For example, when
clicking yes (answer), it will show some subsequent questions
Hi,
I think it miss some documentation about @Radio and @FieldLabel in a
@For loop.
While reading the T4 documentation I could not make working those
component together.
I've finally found the solution here :
Radio button labels
#Cyrille37# a écrit :
Hi,
I think it miss some documentation about @Radio and @FieldLabel in a
@For loop.
While reading the T4 documentation I could not make working those
component together.
I've finally found the solution here :
Radio button labels
Yes. BaseEngine is extended and the methods are overwritten.
en.domain.com should be English and fr.domain.com should be French for example.
However, as getInfrastructur() sometimes returns null, this is not working that
way.
Original-Nachricht
Datum: Mon, 2 Jul 2007
Digging through the code I notice there is a PageTemplateLocator
interface which seems like the appropriate service to override. What I
have tried is to add the following method to my AppModule class
public static void bind(ServiceBinder binder) {
ServiceBindingOptions options =
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 the Interface is no longer sufficient to identifiy the service
binder.bind(PageTemplateLocator.class,
Yes!!!
That was true.
I have relocated all my HTML pages in src/main/webapp/WEB-INF, but not
in main/resources (somehow there are still weird behaviour if put them
here)
And all *.html were saved... I use local SVN server :p
Thanks for your reply,
Love u very much,
Eko SW
hi all,
i would like to have an optional css for each of my components. optional,
because depending on component's parameter i would like/wouldn't like to
include its css link. Lets imagine edit box with calendar for example -
depending on parameter provided in template file, calendar's css file
On Fri, 2007-06-29 at 11:57 -0700, Howard Lewis Ship wrote:
This is an unimplemented feature; currently Tapestry isn't smart
enough to output well-formed markup just because the template
specified an XML doctype. Please check JIRA and add an issue if not
present.
I couldn't find an appropriate
Dear community,
Is there else clause in t:if construct ???
I've try (but maybe not hard), but can not find it.
That is, is there an else if you use t:if ???
* I imagine it to be like this :
t:if test=ifSummaryActive
t:if else
/t:if
Currently, to give the same behaviour I create a
Hi,
I'd like to set some component paramameters (disabled for
inputs) from within my page classes. As far as I've seen so far
the usual way to do this would be to put a name=${prop:value}
attribute into my template. Can this also be done by using a
simple setter in my Java code? This would
Hi Eko,
t:if test=myObjectExists
Whatever
t:parameter name=elsePlease select an object first!/t:parameter
/t:if
Cheers
Erik
On 7/2/07, Eko S.W. [EMAIL PROTECTED] wrote:
Dear community,
Is there else clause in t:if construct ???
I've try (but maybe not hard), but can not find
Hi Janko,
In your html template, you could use:
t:if test=includeCalendar
Include css file
t:parameter name=else
do something else
/t:parameter
/t:if
Cheers
Erik
On 7/2/07, Janko Muzykant [EMAIL PROTECTED] wrote:
hi all,
i would like to have an optional css for each
Has anyone got an example of how to use the tapestry.InfrastructureOverrides
hook?
I would like to overwrite the Locale and in order to do so also inject the
tapestry.globals.WebContext to such a service (and then overwrite the Locale
depending on the WebContext).
Thanks!
hi Erik,
thank you for your answer, but it seems not to be so easy. all style links
should be placed in the head section and if i try to use following:
t:if test=includeCalendar
*link* rel=stylesheet href=arkusz.*css* type=text/*css* /
/t:if
css link will be printed out exactly in place where
What would be the most reliable way to overwrite the Locale for the Component
and Page messages inside an extended BaseEngine?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, 02 Jul 2007 13:05:39 +0200, munich wrote
What would be the most reliable way to overwrite the Locale for the
Component and Page messages inside an extended BaseEngine?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hi Janko,
You could try:
@Inject
@Path(context:assets/css/layout.css)
private Asset _layoutCss;
public Asset getLayoutCss() {
if (yourCondition)
return _layoutCss;
else
return ;
}
head
link href=${layoutCss} rel=stylesheet type=text/css/
/head
Marcus
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 the Interface is no longer sufficient to
Hi,
Is there any way to override the banner message displayed above the errors?
(t:errors/ component)
The default value is You must correct the following errors before you may
continue..
I have tried in Application Message Catalog (WEB-INF/app.properties), but
:-(
default-banner=Other Message
hi Marcus,
this solution is perfect provided i have a htmlhead/head/html
template defined separately for each page. but usually this is written once
in some Border or Layout component's template. In such a case I cannot
predict how many css links will be placed inside head section because
Create a directory org/apache/tapestry/corelib/components/ in your
source directory and place an Errors.properties file there. If you also
want to override the default validation messages place a
ValidationMessages.properties file in org/apache/tapestry/corelib/internal/.
Uli
Marcus schrieb:
you can add additional HTML nodes to your document whenever you
want. all you need is the MarkupWriter:
Element e = writer.getDocument().getRootElement().find(head);
e.element(link,) // adds new element
you could also contribute a css helper class that implements
PageRenderCommand
to the
On 7/2/07, Martin Dietze [EMAIL PROTECTED] wrote:
Hi,
I'd like to set some component paramameters (disabled for
inputs) from within my page classes. As far as I've seen so far
the usual way to do this would be to put a name=${prop:value}
attribute into my template. Can this also be done by
Martin Dietze wrote:
Hi,
I'd like to set some component paramameters (disabled for
inputs) from within my page classes. As far as I've seen so far
the usual way to do this would be to put a name=${prop:value}
attribute into my template. Can this also be done by using a
simple setter in my Java
On Mon, July 02, 2007, Massimo Lusetti wrote:
I'd like to set some component paramameters (disabled for
inputs) from within my page classes. As far as I've seen so far
the usual way to do this would be to put a name=${prop:value}
attribute into my template. Can this also be done by using a
Hi,
My Selenium tests that worked with T4.1.1 now fail with T4.1.2. They
still work just fine with Selenium IDE but not in Selenium TestRunner
which runs the whole suite in an IFRAME.
It looks like client-side validation, which used to work, is now dead
in TestRunner. Could this be the
Hi,
In order for T4.1.1 to operate properly on OC4J, I had to 'tweak' some
hivemind stuff in 1.1.1
That's the reason why I am now asking which T4.1.2 libraries in the
distribution have actually been changed.
Only the tapestry-[]-4.1.2.jar and ognl-2.7.jar ones?
Thanks,
-J.
Does anyone know how to access ThreadLocale (in order to change it)
inside a BaseEngine class (a class extending BaseEngine) ?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On Mon, July 02, 2007, Francois Armand wrote:
I'm not sure I have correctly understood your concern, so excuse me if I
answer to something else ;)
When you have a component with parameter, you have two way to specify it
the actual parameter value :
- in the template, with
hmm. This seems like a very clean way of doing it for more well-defined
instances but I think it might be a little too much overhead other
situations. For instance, I'll often want to define a block within a
template and then just get the values from within the block but having
to define an
service implementations contributed to the alias service will
override the other service implementations. this is also true for
implementations originally provided by tapestry
the additional id is to distinguish multiple implementations of the
same interface. in your case you should only need it
Martin Dietze wrote:
Yes, this is how I found it in the documentation. However I'd
like to be able to do something like:
| @Component(id=myInput)
| private TextField _myInput;
[...]
| _myInput.setDisabled(true);
You can use parameter expansion in Java code :
8---
On Mon, 2007-07-02 at 16:06 +0200, Kristian Marinkovic wrote:
service implementations contributed to the alias service will
override the other service implementations. this is also true for
implementations originally provided by tapestry
the additional id is to distinguish multiple
Hi,
Moving from 4.1.1 to 4.1.2 I noticed that css background images are broken.
For example:
#logo {
float: left;
padding-top: 15px;
padding-left: 200px;
padding-bottom: 40px;
background: url(../images/logo.gif) no-repeat;
background-position: 5% 50%
}
background:url Worked
On Mon, July 02, 2007, Francois Armand wrote:
@Component(parameters=disabled=prop:isdisabled)
private TextField textField;
public boolean getIsdisabled() {
return disabled;
}
@SetupRender
void setup() {
if(should de disabled) {
disabled = true;
Is the Grid component really an appropriate choice for this? I
imagine you want the questions going one per row, with an answer
column.
When a condition is met so that a new question should be shown, your
page could rebuild the list of questions (append new question to the
end) .
The
Hi,
I have some questions in addition to the issue with non-well-formed XML
generation. In order to be XHTML strict compliant, some standard components
also need to be changed in tapestry 5, I think.
Should I open bug reports for all problems I find? Or is XHTML strict
conformance not
I am beating my head against a brick wall.
I am trying to get Acegi working (using Spring to configure it). I
have it working to the point where a secured page (secured in the xml
files, not using any annotations for securing classes) redirects me to
a login page.
If I type in a login/password
Hi,
After hard work and neuronal sport, I come to the moment where I to
implement a real database access and replace my fake data objects.
So I can see there is 2 Hibernate/Tapestry4 integration project.
Have you got some comments to help me make the choice ?
Thanks
Cyrille.
Dear List,
I'm sorry, I think I found my problem, and it was a stupid one. It
took a 3rd cup of coffee to make it appear.
I wasn't prefixing my Authority strings with ROLE_
i.e. my DB had ADMIN stored in a field instead of ROLE_ADMIN
This still doesn't explain why I wasn't redirected
Hey Jesse - saw you had marked
http://jira.opensymphony.com/browse/OGNL-97as resolved so I assumed
the fix might be in the latest snapshot
ognl-2.7.1-20070630.205921-4 posted later but there were no changes as far
as I could notice. Certainly don't want to sound impatient as you are doing
superb
Hi.
This thread is bit old, but I've just gotten back on to this.
I implemented the mapping you showed here, and it works enough to allow Tap to
serve the doctype to the user, and not raise any exceptions. But the entities
still don't work. In fact, character references don't work either:
Another option is to use the negate parameter.
Then you only need the one logic method,
and you can have the if's wherever you want:
t:if test=ifSummaryActive
...
/t:if
...
t:if test=ifSummaryActive negate=true
...
/t:if
Cheers,
Nick.
Erik Vullings wrote:
Hi Eko,
t:if
That's an internal error thrown by the mozilla dom implementation.
nsiDOMEventListener is the class and handleEvent is the method
NS_ERROR_XPC.blahblah is just some constant and the hex-y looking string
is probably the current op code in the current pseudo js vm context...(i
think?)
Other
http://tapestry.apache.org/tapestry4.1/tapestry-framework/dependencies.html
On 7/2/07, Jan Vissers [EMAIL PROTECTED] wrote:
Hi,
In order for T4.1.1 to operate properly on OC4J, I had to 'tweak' some
hivemind stuff in 1.1.1
That's the reason why I am now asking which T4.1.2 libraries in the
Tapestry doesn't process your css files or the images it
referencesunless for some reason your relative context image path is
somehow setup to match an asset Tapestry is managing it should be handled by
your servlet container.
Is that not the case here?
On 7/2/07, Jan Vissers [EMAIL
That looks like the right one to me. The code you provided in the test
case was re-produced / fixed. You did mention something about
object[linkProperty] not working before you provided a code example but
I'm assuming the code example was what was intended to be fixed
Does the same test
The unit test doesn't succeed for me (and neither does the real world
example, which is slightly different, but I assume the unit test would cover
for it). Well, if you say the unit test should pass now, I'll double-check I
have the right version and get back to you.
Kalle
On 7/2/07, Jesse
Hi,
I've upgraded to 4.1.2 from 4.1.1 and am getting the following when I
try to load one of my Dojo Dialogs (async).
It seems tapestry is trying to call getPage with a null page name, but
I'm not sure why formSubmit is being called at all (unless it's part of
a rewind?)
The trigger is
Components implementing IFormComponent that are targeted with an
@EventListener do now have their surrounding forms submitted automatically
as part of the async request. If there is something in your logic that
doesn't need/want this to happen you can set the autoSubmit = false
parameter in the
55 matches
Mail list logo