Re: Component that displays additional "containing Page" markup

2012-12-15 Thread bogdan_cm
Grid is much more powerful than I knew. Thank you guys for nudge in the right
direction. 
I will be sticking with my component for this particular page, but I am
replacing allot of other code with Grid.  

 did the trick and works like a charm. Cannot believe I didn't see
it earlier. 

Thanks again,
Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718742.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...@tapestry.apache.org



Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
The other limiting thing I remember about the Grid component was that I could
only display one "Object' per row. 

I could not do: 
  Object1.Name   Object2.NameObject3.NameObject4.Name
  Object5.Name   Object6.NameObject7.NameObject8.Name

As you can tell, I did not look at the Grid component for a long time now.
I'm at work and cannot test it out. Can't wait to get home :))). 

Believe it or not, I am working on a "legacy" Struts application for a
client. Painful stuff. XML is hell!





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718693.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...@tapestry.apache.org



Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
I will have a closer look at the Grid component. Thanks very much for the
reply. 

Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718688.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...@tapestry.apache.org




Re: Component that displays additional "containing Page" markup

2012-12-13 Thread bogdan_cm
Pagination is the reason for not using the Grid component. I want to paginate
my results without holding anything in memory (session). For Grid I will
select the entire set, @Persist it and then display portions on the page.
What I am doing is a bit different. I always select the (number of tokens I
need to display) +1 by using SQL Limit A,B. If I have
NumberOfTokensToDisplay +1 in the list it means there is another page, if
not, well not :). 
The only thing I need to compute is nextPage number, which I put as context
to Next eventLink. Much cleaner in terms or resources then holding an entire
list of results in memory, and no cleanup required when I'm done. 

Thank you Lance, I'll have a look at your demo. 

Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718682.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...@tapestry.apache.org



Re: Component that displays additional "containing Page" markup

2012-12-12 Thread bogdan_cm
Thank you both for replying. 

Now that I read it after a day, my question is not very clear. Here is a
more to the point explanation. 

My custom component will take care of pagination. This means I need my
component to wrap around a Loop in the main page. The Loop will be iterating
over a List of results. 

The code I am hoping for is: 

http://tapestry.apache.org/schema/tapestry_5_3.xsd";>  -->
tapestry Page 


   
   html that displays list entries 
   



 


I will explore the  suggestion. 

Thanks very much,
Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622p5718645.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...@tapestry.apache.org



Component that displays additional "containing Page" markup

2012-12-11 Thread bogdan_cm
Hello everyone, 
   How can I allow "Page" information to be part of the component markup
output? Take for example the zone component: 
   --> component 
  this is the time on day ${timeOfDay}  -> this value comes from the Page
containing the component


When I write my own component, how can I pass additional "data" to be
included in the rendering of this component?

I would like to write:

  maybe a loop here that would read a list in the Page containing the
component, and display it. 



Thank you, 
Bogdan. 









--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Component-that-displays-additional-containing-Page-markup-tp5718622.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...@tapestry.apache.org



Re: Tapestry 5 book : some minor typos in Chapter 2

2012-08-27 Thread bogdan_cm
A couple more: 

Tapestry shares any single page instance between all threads -> should be
"shares every single page".

Storing only few values of persistent fields the session instead of entire
page's structure ->

The most part of Tapestry framework get along well without using HttpSession

Tapestry also provides you with features that allow you to avoid using
session -> using sessions?

Tapestry will search or a template file with the same name
writer.end() written twice


Finally, we will see how to prevent the rendering of a page, if its state
couldn't restored
properly, and send an alternative response
This is why why the annotation, unlike
@ActivationRequestParameter

You may assign values to fields of a page without to care about
thread-safety
This means that values of page' mutable fields are lost unless the field is
a persistent property.
As you can see, the page looks still same
Tapestry monitors the changes to a persistent property and stores the value
into a storage as soon as it is modified

concentrate on you business logic without to bother about the details
Fortunately Tapestry takes over the most of the steps   
These data can be read by accessing the properties of the User instance
The name attribute of field tells which group
The Select component has to required parameters
In the modern world almost all data are related to dates
This data are written to local temporary file
The most of the components covered in this section
I'll show you some more advanced component  
variable number of fields without to pollute your templates with if-else
constructs  
other object that is capable to do that
Finally, the report data are streamed to the client
So will explore the AjaxFormLoop
Will we use this component inside a form in order to add or remove from
fields dynamically. 2 errors
Consider you want to create plugin for Tlog
This is what the TriggerFragment mixin is applied to the
shipToAnotherAddress checkbox
components they are applied on with new functionality
The method takes a ISO 4217 currency code and returns a Calendar(Currency
instance) instance for given code
Currently Tapestry provides following built-in encoders, which cover a
plenty of use
Tapestry provide a set of built-in validators
A validator is associated with a type it is able to validate instances of
Needles to say, duplicating code should be avoided as far as possible
For most validator this method returns false.
In order to be more useful, the component take a name to be greeted
In listing 9.8 the component's parameter is named css, even though the(
parameter is named class, not css)
The may be void, return null or a boolean value
Based on that convention Tapestry will recognized the method

Based on that convention Tapestry will recognized the method
Note that the second argument is an varargs whose

Thanks, 
Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-book-some-minor-typos-in-Chapter-2-tp5715402p5715821.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...@tapestry.apache.org



Re: Update other zones on zonerefresh event

2012-08-15 Thread bogdan_cm
Found it. The method name is Object onRefresh() {}




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431p5715459.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...@tapestry.apache.org



Re: Update other zones on zonerefresh event

2012-08-15 Thread bogdan_cm
Thanks very much for your reply. The missing part for me is the method which
will capture the server side "zonerefresh" event. What is this method
called? :))

There are three solutions for me:

1) a method similar to -> onZoneRefresh() { invoked when zonerefresh does
it's XHR request. I would use this method to update all other zones in the
page.  }  --> This would be my preferred way. 

2. zonerefresh mixin will contain an expansion like: ${message} which will
invoke the server side 
getMessage() { and do the refresh of all pages zones here} 

3. intercept the request early in the process tree, verify if it is XHR and
maybe some context info from zonerefresh mixin and if the correct page
update all zones. --> least preferred way 

Given the awesome flexibility on Tapestry i would assume there is a method
name ( like onActionFromZoneRefresh or onZoneRefresh ) that will be called
server side when the mixin refreshes. Similar in nature to the method
"onEvenName()" linked to an EventLink component. Trouble is, I cannot seem
to find this method name :). 

Thanks, 
Bogdan. 




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431p5715444.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...@tapestry.apache.org



Update other zones on zonerefresh event

2012-08-14 Thread bogdan_cm
What I want to achieve is a "self refreshing cluster of zones" for a
notification mechanism driven by the autorefresh event of a zonerefresh
mixin. 

To simplify, a multiZoneUpdate that is triggered by a zonerefresh event from
the mixin. 

How do I capture the "zonerefresh" event from the mixin inside a tapestry
method where I could call AjaxResponseRederer and update all the other zones
on the page. Is this even possible, given that all the other zones, which
are not self refreshing, will not have an event that links them to the
request?


Thanks very much, 
Bogdan.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Update-other-zones-on-zonerefresh-event-tp5715431.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...@tapestry.apache.org



Re: Tapestry CheckList not displaying inside radiogroup

2012-08-14 Thread bogdan_cm
Finally solved by using Form fragments. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying-inside-radiogroup-tp5714471p5715430.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...@tapestry.apache.org



Re: Tapestry CheckList not displaying inside radiogroup

2012-07-16 Thread bogdan_cm
Please ignore. I believe this problem is related to the fact that I am
initially hiding the div containing the checklist. If I test the radiogroup
and checklist in isolation they work well. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying-inside-radiogroup-tp5714471p5714484.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...@tapestry.apache.org



Tapestry CheckList not displaying inside radiogroup

2012-07-15 Thread bogdan_cm
Hello everyone, 
  I have a radiogroup that will open/close a div when clicked. This div
contains a t:checklist component. The checklist will render itself correctly
when outside the radiogroup, but will not do so inside the redio group. 
Any idea how I can convince the checklist component to display itself inside
the rediogroup?

Sample code:


 
...

   ...
   
   ...
   



Thanks very much. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-CheckList-not-displaying-inside-radiogroup-tp5714471.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...@tapestry.apache.org



Re: JSON request construct in Tapestry

2012-06-26 Thread bogdan_cm
Thank you for the reply. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/JSON-request-construct-in-Tapestry-tp5714075p5714095.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...@tapestry.apache.org



JSON request construct in Tapestry

2012-06-25 Thread bogdan_cm
I am trying to open Jira tickets directly from my application using
atlassian's REST api. For this I need to create a JSON request and submit it
to some Jira handled URL. Can I construct such a request in Tapestry? It's
somewhat backword in that Tapestry becomes a client to the request.  

Assume here that I will be using some third party library to construct the
JSON request, I just need Tapestry to submit it. If not, I will be falling
back to java's own http api. 

More concrete: I want to submit string -> {"fields": {"project": {"key":
"PC"},"summary": "My remote created task", "description": "Creating of an
issue using project keys and issue type names using the REST API",
"issuetype": {"name": "Task"}  } }

to some URL that accepts JSON :). 

Thanks, 
Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/JSON-request-construct-in-Tapestry-tp5714075.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...@tapestry.apache.org



Re: InjectPage into a service

2012-06-17 Thread bogdan_cm
Understood. Thanks for the reply. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/InjectPage-into-a-service-tp5713950p5713956.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...@tapestry.apache.org



InjectPage into a service

2012-06-16 Thread bogdan_cm
Hi everyone, 
   Is there a way to inject a page into a service via InjectPage annotation?

I am trying the following and does not seem to work:

package com.myapp.services;
public class MyServiceImpl implements MyService
{

@InjectPage
private Login loginPage;

  public Object consumer()
{
  loginPage.getLoginForm().recordError("too-soon-change-email");
  return loginPage;
}
...
}


So, myPage get's MyService injected and calls consumer() method. When
consumer() tries to  getLoginForm() is throws null pointer. 
===
I also tried passing to the service consumer() method a loginPage instance
injected in "myPage" as an argument, like this:

public MyPage
{
@InjectPage
private Login loginPage;

@Inject
private MyService worker;

onActivate()
{
  worker.consume(workToBeDone, loginPage);
}

}

In this case I get a more "exotic" error. 


Any ideas how I could make use of a page in a service? 


Thanks very much, 
Bogdan. 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/InjectPage-into-a-service-tp5713950.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...@tapestry.apache.org



Re: Tapestry.ZONE_UPDATED_EVENT issue

2012-05-16 Thread bogdan_cm
Thank you both for the reply. "bind" was my first try and I eventually tried
with "on". I'll try the Prototype version as well. 
Funky problem :). 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-ZONE-UPDATED-EVENT-issue-tp5708402p5711203.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...@tapestry.apache.org



Tapestry.ZONE_UPDATED_EVENT issue

2012-05-13 Thread bogdan_cm
Hello everyone, 
  I have this nagging little problem handling the zone updated event. I
tried all that I could find on this forum and still cannot solve it. 

My TML zone: 



Some other code here.   




my jquery event handler sitting in the .js file and imported into the page:

$jq("mediaZone").on("Tapestry.ZONE_UPDATED_EVENT", function(){
alert("EVENT TRIGGERED");
});

The above does not work when the zone is updated. 

Is there a working example posted anywhere? I can only find bits and pieces
of examples that do not work when put together. 

Thanks very much, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-ZONE-UPDATED-EVENT-issue-tp5708402.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...@tapestry.apache.org



Re: HttpSessionListener interface implementation by Tapestry5 component

2012-03-16 Thread bogdan_cm
Thank you both very much for replying. It solved my problem. 

Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/HttpSessionListener-interface-implementation-by-Tapestry5-component-tp5572413p5572656.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...@tapestry.apache.org



HttpSessionListener interface implementation by Tapestry5 component

2012-03-16 Thread bogdan_cm
Hi everyone, 
  When a user logs out I want to remove it from my online_table. This can
happen in two ways:
1. The user clicks LOGOUT link and I remove him from the online_table and
invalidate his session. 
2. The users simply closes the browser, in which case I am unaware that he
left and the session will be invalidated by the container after a certain
interval. 

In case 2 however, when the container disposes of the session I want to
capture it and based on it's attribute, remove the user from the
online_table. I'm using Tomcat so I do this by implementing the
HttpSessionListener interface in one of my components. This component is a
Layout component that I use to wrap around my pages. 

When the container kills the session it correctly invokes my method:

@Inject
private OnlineUsersControler onlineUsersControler;

@Override
public void sessionDestroyed(HttpSessionEvent arg0) {
   onlineUsersControler.removeUser(//get user credentials
here); -> it throws NULL POINTER because the onlineUserControler has not
been instantiates by the @Inject annotation

}

As you can see the OnlineUserControler is a Tap5 service. It looks like when
Tomcat invokes my sessionDestroy method, Tap5 does not also fulfill the
@Inject contract. I guess it happens because the page get's called by Tomcat
and not Tap. 

Is there a way for me to force Tap to inject my service? Any other work
around idea is welcomed. I have even went so far as to putting a finalize
method in the User object to be removed and calling System.gc() on
sessionDestroy ( i know ridiculous ). 

Thank you, 
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/HttpSessionListener-interface-implementation-by-Tapestry5-component-tp5572413p5572413.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...@tapestry.apache.org



Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Ha, one of the issues that come with not using Maven to refresh your
repository :). 

Thanks very much for the reply's. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017815.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...@tapestry.apache.org



Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Yes, I'm using 5.3: tapestry-core-5.3.0.jar

http://tapestry.1045711.n5.nabble.com/file/n5017803/1.jpg 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017803.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...@tapestry.apache.org



Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Sadly no, 


My test: ${text}


Failure creating embedded component 'zone' of
com.example.tutorial.pages.Page: Unable to resolve 'zonerefresh' to a mixin
class name.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017774.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...@tapestry.apache.org



Re: TAP5-746: Zone Refresher

2011-11-23 Thread bogdan_cm
Hi Taha, 
  Now that the ZoneRefresh component is included in Tap-core, is there a
working example anywhere?

I have this in my .tml:


My test: ${text}


and when I run it i get: 
Failure creating embedded component 'zone' of
com.example.tutorial.pages.Page: Unable to resolve 'tawus/zonerefresh' to a
mixin class name

Thanks, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/TAP5-746-Zone-Refresher-tp4529253p5017521.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...@tapestry.apache.org



Re: Tapestry5.3 javax.inject.Named exception

2011-11-14 Thread bogdan_cm
Thank you for the reply. 

I am not using Maven to download. I just picked up the jars manually from:
https://repository.apache.org/content/groups/staging/org/apache/tapestry/

I am using JRE 6 but the problem persists. Also, the jsr250 is now included:

*ProjectClassLoader: entry=D:\jars\Tapestry5.3\jsr250-api-1.0.jar*
Starting scanner at interval of 5 seconds.
2011-11-14 11:52:45.442:INFO::jetty-6.1.26
2011-11-14 11:52:45.910:WARN::failed app: java.lang.NoClassDefFoundError:
javax/inject/Named
2011-11-14 11:52:45.925:WARN::failed
org.mortbay.jetty.webapp.WebAppContext@fedfb6{/App_Name,WebContent}:
java.lang.NoClassDefFoundError: javax/inject/Named
2011-11-14 11:52:45.925:WARN::Error starting handlers
java.lang.NoClassDefFoundError: javax/inject/Named
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.getServiceId(InternalUtils.java:1317)
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.addServiceDef(DefaultModuleDefImpl.java:392)
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.grind(DefaultModuleDefImpl.java:198)
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.(DefaultModuleDefImpl.java:122)
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)
at 
org.apache.tapestry5.ioc.RegistryBuilder.(RegistryBuilder.java:88)
at 
org.apache.tapestry5.ioc.RegistryBuilder.(RegistryBuilder.java:70)
at 
org.apache.tapestry5.ioc.RegistryBuilder.(RegistryBuilder.java:65)
at
org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:52)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:223)
2011-11-14 11:52:45.956:INFO::Started SelectChannelConnector@0.0.0.0:8080

I believe I'll wait until T5.3 is out and pick up the binaries then. Don;t
want to keep you guys from doing real work :)). 

Thanks again, 
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry5-3-javax-inject-Named-exception-tp4990969p4991652.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...@tapestry.apache.org



Tapestry5.3 javax.inject.Named exception

2011-11-14 Thread bogdan_cm
Hi everyone, 
  Is there are new dependency for Tap5.3 rc3 that we need to include? Since
downloading this release candidate I get:

2011-11-14 09:53:17.389:INFO::jetty-6.1.26
2011-11-14 09:53:17.857:WARN::failed app: java.lang.NoClassDefFoundError:
javax/inject/Named
2011-11-14 09:53:17.858:WARN::failed
org.mortbay.jetty.webapp.WebAppContext@771eb1{/App_Name,WebContent}:
java.lang.NoClassDefFoundError: javax/inject/Named
2011-11-14 09:53:17.858:WARN::Error starting handlers
java.lang.NoClassDefFoundError: javax/inject/Named
at
org.apache.tapestry5.ioc.internal.util.InternalUtils.getServiceId(InternalUtils.java:1317)
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.addServiceDef(DefaultModuleDefImpl.java:392)
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.grind(DefaultModuleDefImpl.java:198)
at
org.apache.tapestry5.ioc.internal.DefaultModuleDefImpl.(DefaultModuleDefImpl.java:122)
at 
org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:131)
at 
org.apache.tapestry5.ioc.RegistryBuilder.(RegistryBuilder.java:88)
at 
org.apache.tapestry5.ioc.RegistryBuilder.(RegistryBuilder.java:70)
at 
org.apache.tapestry5.ioc.RegistryBuilder.(RegistryBuilder.java:65)
at
org.apache.tapestry5.internal.TapestryAppInitializer.(TapestryAppInitializer.java:52)
at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103)
at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:97)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:713)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:224)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at runjettyrun.Bootstrap.main(Bootstrap.java:223)
2011-11-14 09:53:17.905:INFO::Started SelectChannelConnector@0.0.0.0:8080

Thanks, 
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry5-3-javax-inject-Named-exception-tp4990969p4990969.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...@tapestry.apache.org



EventLinks and their handlers

2011-11-09 Thread bogdan_cm
I am stuck on a rather silly operation. I have an eventLink in the tml and
it's event handler in the class like so:

tml ->< a t:id='postConversationLink'>click the link < / a >

class -> 

@Component(parameters = {"event=postConversationEvent"})
private EventLink postConversationLink;

  @OnEvent(value="postConversationEvent", 
component="postConversationLink")
  void valueChosen()
  {
System.out.println("annotated version");
  }
  
  void onPostConversationEventFromPostConversationLink()
  {
  System.out.println("convention version");  
  }


To me both the annotated version and the convetion version look correct.
However, for both i get the error: Request event 'postconversationevent' ...
was not handled. 
>From the message it looks like the link is actually generating the event,
but somehow it cannot be matched to any of the two handlers. 

Thank you, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/EventLinks-and-their-handlers-tp4979300p4979300.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...@tapestry.apache.org



Re: dynamically change the context information of an EventLink on the cliient side

2011-11-08 Thread bogdan_cm
Thank you both for the reply. Will investigate which method applies better to
my needs. 

Cheers, 
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4974985.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...@tapestry.apache.org



dynamically change the context information of an EventLink on the cliient side

2011-11-07 Thread bogdan_cm
Hi All, 
  I would appreciate your help with some ideas as I am trying to implement a
chat component and I want to use Tap for the server page. 

The user will add text to a text input and click a link or hit enter. At
this point I need to send what the user entered to the tapestry class. It
would be ideal if I could use a Zone with an EventLink to take advantage of
Tap built in Ajax Support. The problem with this though, is how do I add
what the user entered as text to the context of the link. How to make the
user entered text reach the EventLink's method parameter. 

Is this more workable than an 100% JQuery client that simply posts requests
to a Tap5 page?

Thanks very much, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/dynamically-change-the-context-information-of-an-EventLink-on-the-cliient-side-tp4972710p4972710.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...@tapestry.apache.org



Re: Importing a JQuery library stops Zones from responding to events from EventLink

2011-10-20 Thread bogdan_cm
Thanks very much for the reply. I'll give it a try :). 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Importing-a-JQuery-library-stops-Zones-from-responding-to-events-from-EventLink-tp4920064p4921664.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...@tapestry.apache.org



Importing a JQuery library stops Zones from responding to events from EventLink

2011-10-19 Thread bogdan_cm
Hi all, 
   I have a page in which I declare a zone:
@InjectComponent
private Zone tokenDetailsZone;  

an EventLink for updating the zone:
@Component(parameters = "event=updateContent","zone=tokenDetailsZone" })
 private EventLink updateContent;

and the event handler method:
  Object onUpdateContent(Integer packageId) {
 // perform logic
return tokenDetailsZone.getBody();
}

The TML has all the necessary content for the zone to be displayed. 

All this works fine. 

However, when I add a javaScript library to the page like so: 
 @Import(library={"context:js/jquery.min.js","context:js/fancyzoom.min.js"})
public class PageClass
{
... 
}

It stops working. By "stops working" I mean the EventLink in the template
get's displayed, but when I click it the Event Handler method
"onUpdateContent" no longer get's invoked. 

I have tried adding the javaScript library not by @Import but by using
"JavaScriptSupport", still the same problem. 

Anything I'm missing here? Why importing an additional JS library interferes
with the zone's update?

Thanks very much, 
Bogdan. 






--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Importing-a-JQuery-library-stops-Zones-from-responding-to-events-from-EventLink-tp4920064p4920064.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...@tapestry.apache.org



Re: Meap Tapestry 5 book cancelled?

2011-09-28 Thread bogdan_cm
There are many many users of Tapestry that are very excited about the book
but are not actively on the forums expressing it. I believe, like you said,
this is the best thing that could have happened.
I for one, cannot wait to get my hands on it. 

Good luck and "steady hand" :). 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Meap-Tapestry-5-book-cancelled-tp4830642p4849928.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...@tapestry.apache.org



Re: removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
I solved it another way:

Page X persists the session object. Page X also defines a method which
invokes componentResources.discardPersistentFieldChanges. 


I navigate to page Y. On page Y I @InjectPage X and, at the appropriate time
I invoke the method on 
page X that discards all persistent data and return a redirect link to page
X.

Being that the discard process removes session data for all subsequent
requests of page X, returning a Link from page Y will give me the exact
behavior that i need. 

Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592960.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...@tapestry.apache.org



Re: removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
Yep, it does not solve my problem. Being on another page than the one setting
the object in session, discarding will not remove my object of interest.
Still digging for a solution. I wonder if I could just cast the session back
to a Servlet HttpSession and just invoke removeAttribute from there. That
will be leaving Tap scope a bit, so i'm reluctant to do it that way. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592891.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...@tapestry.apache.org



Re: removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
I'll have a look. Thanks very much for the reply. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592862.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...@tapestry.apache.org



removing attributes from session from pages other than the one setting it

2011-07-15 Thread bogdan_cm
Hi again everyone, 
  I have hit another snag. 

Page X contains a session persistent field:
@Persist
private ArrayList paginatedResults;

I am navigating away from page X to page Y. On page Y I want to remove the
persisted object "paginatedResults" from the session. 

I am looking at the Tap Session Interface and it seems to be missing the
removeAttribute() method of HttpSession. 
If I were on page X, the one that actually persists the object, i would use
discardPersistentFieldChanges method from ComponentResources, but I am not. 

  What would be the solution for me to remove the persisted object from
session? 


Thanks very much,
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/removing-attributes-from-session-from-pages-other-than-the-one-setting-it-tp4592795p4592795.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...@tapestry.apache.org



Re: Javascript library not loaded into the page via @Import

2011-07-11 Thread bogdan_cm
Current configuration that works:

Layout Template sample (MemberPagesLayout.tml):


; 
http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>

Alternative Reality - your secret life














... 


-
Component Page tml:
MemberHome.tml 

http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>






...


--
Component Java extract:

public class MemberHome {

// SEARCH SUBMIT LOGIC
@Property
private String userNameToLookFor;

@Component
private Form searchForm;

@Inject
private PageRenderLinkSource searchLink;
// SEARCH SUBMIT LOGIC

// LAST SESSION PLAY
@Property
// private String lastSessionPlay = 
private String lastSessionPlay;
...



-
This configuration, having the javascript in the Layout component works, and
the java script does it's part in the page. 


When I move the script from MemberPagesLayout.tml to a js, put this file
under: Web-Content/assets/js/generic.js and annotate the MemberHome.java
with:
@Import(library="context:/assets/js/test.js") it stops working. 

I do believe i'm missing something very simple. 

Thanks all again for help.







--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Javascript-library-not-loaded-into-the-page-via-Import-tp4574599p4576319.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...@tapestry.apache.org



Re: Javascript library not loaded into the page via @Import

2011-07-11 Thread bogdan_cm
Thanks for the reply. 

The sure way of determining that my js is not making it into the page is
that i'm not seeing the side effect. My js will modify the width/height of
the jpg images on the page. 

Currently, to make it work I have copied the javascript into the header of
the Layout page. But i have a fair amount of js, and putting it in a library
is the way to go. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Javascript-library-not-loaded-into-the-page-via-Import-tp4574599p4576143.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...@tapestry.apache.org



Javascript library not loaded into the page via @Import

2011-07-11 Thread bogdan_cm
Hi all, 
  In my Tap app I have a simple js file which contains: 



This library resides under: Web-Content/assets/js/test.js

The page for which I want to import this library has the following
annotation above the class declaration:

@Import(library="context:/assets/js/test.js")
public class MemberHome {
...
}

If I change the library name, Tap5 complains the file does not exist, so I
assume it is indeed reading it when the name's match. 

However, after launching the app, when I look in the page source the library
does not exist. Somehow Tap is not complaining about not finding the file,
but it does not include it in the page. 

Is there something obvious that i'm missing here?

Thanks very much, 
Bogdan. 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Javascript-library-not-loaded-into-the-page-via-Import-tp4574599p4574599.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...@tapestry.apache.org



Re: expansions and expresion language

2011-06-11 Thread bogdan_cm
Thanks all very much for the replies. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/expansions-and-expresion-language-tp4474896p4479930.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...@tapestry.apache.org



expansions and expresion language

2011-06-09 Thread bogdan_cm
Hi everyone, 
  I know I found it someplace but for the life of me i cannot find it again.
There was a reference on how to use expansions, how to invoke methods from
templates, how to generate numeric intervals in the template  and a few
other things. Kind'a like an expression language for Tap. 

Anyone has a link to such a page?

Thanks very much, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/expansions-and-expresion-language-tp4474896p4474896.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...@tapestry.apache.org



Re: resource shared accross threads

2011-05-04 Thread bogdan_cm
Got it, noted, and never again. 

Thanks for the reply, 
Bogdan

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/resource-shared-accross-threads-tp4370064p4370272.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...@tapestry.apache.org



resource shared accross threads

2011-05-04 Thread bogdan_cm
Hi again,

   I have a Index class which declares another object as a private instance
variable:

 private User user = new User();

This object will hold some attributes of the user. It's constructor will
populate it with default values. 

Index template has the ability to update the attributes inside "user"
object. 

Issue is that all other threads will see the updated attributes, and not the
default ones i was expecting. It looks like the same instance of "user" is
shared across all application requests ( user constructor is invoked only
once). 
Shouldn't Tap clean all variables every time a new request is serviced?

Clearly I'm missing something here. 

Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/resource-shared-accross-threads-tp4370064p4370064.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...@tapestry.apache.org



Re: getter/setter for textfield component

2011-05-04 Thread bogdan_cm
Interesting. I just did not realize the class property will be assigned the
map keys one by one as I loop through them (the documentation clearly states
this ).  

Thanks for the reply, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/getter-setter-for-textfield-component-tp4369806p4369852.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...@tapestry.apache.org



getter/setter for textfield component

2011-05-04 Thread bogdan_cm
Hi all, 
   I have a textfield component inside a loop. The value of the text
component is set like this:
  

The entire loop is enclosed in a . When i try to submit the form, I
get the following error:

An exception has occurred: Failure writing parameter 'value' of component
Index:textfield: Expression 'getValueForKey(for_value)' for class
com.example.tutorial.pages.Index is read-only


My Java class does contain a setter method:

public String getValueForKey(String key) {
return arUser.getValueForKey(key);
}

public void setValueForKey(String key) {
System.out.println("DO NOTHING");
}

The only funny thing i'm doing here is that the java class does not have a
property "per se", only getter and setter methods. 

Thanks very much, 
Bogdan. 




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/getter-setter-for-textfield-component-tp4369806p4369806.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...@tapestry.apache.org



Re: Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-12 Thread bogdan_cm
Very useful stuff. Thanks very much for replies. 

Cheers, 
Bogdan. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4298913.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...@tapestry.apache.org



Re: Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-12 Thread bogdan_cm
Thank you very much for the responses. very useful stuff. 
Cheers. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4298887.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...@tapestry.apache.org



Using @Environmental and "JavaScriptSupport Object" to dynamically load css based on browser

2011-04-04 Thread bogdan_cm
 Hi, 
There is one post regarding this here: 
http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-quot-quot-td3827508.html#a3887176
http://tapestry.1045711.n5.nabble.com/Using-conditional-comments-with-Import-stylesheet-quot-quot-td3827508.html#a3887176
 

but I find myself unable to figure out how it's done. Is there a working
demo somewhere, or can anyone post a bare bones class-template example
please?

Thank you, 
Bogdan. 


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-Environmental-and-JavaScriptSupport-Object-to-dynamically-load-css-based-on-browser-tp4283102p4283102.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...@tapestry.apache.org



perthread or singleton

2011-03-18 Thread bogdan_cm
Hi, 
  I have a Tap5 service called QueryFactory. This service will include
dozens of methods for database interaction: selects, inserts, updates etc. 
This being an Web App, potentially multiple users ( threads ) will have the
service injected at the same time and "potentially" invoke the same method. 

Which path should I take: 
   - make the service perthread? -> not really a fan as the class could
become big and multiple instances can eat up memory. 
   - go with singleton and synchronize all the methods inside it?

As the methods return void and do not change any shared variable, they are
basically atomic operations even without the use of the synchronized
keyword. 

Any suggestions?

Thanks, 
Bogdan. 


   
   
   

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/perthread-or-singleton-tp3975921p3975921.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...@tapestry.apache.org



Re: Label not displaying it's body

2011-03-04 Thread bogdan_cm
The typos are intentional so that HTML is not rendered when i post. Was in a
hurry, sorry about that.
Managed to get passed by using: ${myValueHere} directly in tml ( as you
suggested ). 

Thanks all for the replies, 
Bogdan. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Label-not-displaying-it-s-body-tp3408519p3410363.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...@tapestry.apache.org



Label not displaying it's body

2011-03-03 Thread bogdan_cm
I have this piece of code(only relevant part included):

"t:label for=userName> LABEL BODY /t:label" 

"input type="text" t:id="userName" t:type="TextFieldd" t:value="userName"
t:validate="required"/"  


I would expect, when rendered, to have something like this:

   LABEL BODY: TEXTFIELD

instead, what I have is:

  User Name TEXTFIELD -> which is what the label displays if there is no
body

What am i doing wrong here? If I add the body to the app.properties file it
get's picked up and put in properly. Only when I provide the label body in
the .tml it's behaving unexpectedly, and it's the way I would like it to be
as I plan on changing it dynamically like this:
${myValueHere} 




Thanks,
Bogdan.


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Label-not-displaying-it-s-body-tp3408519p3408519.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...@tapestry.apache.org



Label not displaying it's body

2011-03-03 Thread bogdan_cm
I have this piece of code(only relevant part included):

LABEL BODY: 



I would expect, when rendered, to have something like this:

   LABEL BODY: TEXTFIELD

instead, what I have is:

  User Name TEXTFIELD -> which is what the label displays if there is no
body

What am i doing wrong here? If I add the body to the app.properties file it
get's picked up and put in properly. Only when I provide the label body in
the .tml it's behaving unexpectedly, and it's the way I would like it to be
as I plan on changing it dynamically like this: 
${myValueHere} 


Thanks, 
Bogdan. 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Label-not-displaying-it-s-body-tp3408502p3408502.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...@tapestry.apache.org