Re: Dynamic OptionModel Implementation: How To?

2013-02-09 Thread sommeralex
i think i could solve what i wanted to do.

generating dynamically the t:selects with their appropriate selectModels.

TML



${baseFeature.key}




JAVA

@Property
private final ValueEncoder encoder = new
ValueEncoder()
{

@Override
public String toClient(BaseFeature value) {
return value.getKey();
}

@Override
public BaseFeature toValue(String clientValue) {
System.out.println(clientValue);
return featureService.findBaseFeatureByKey(clientValue);
}
};

if someone needs this approach, just ask, and you get my code. 

thx to all for helping!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875p5719911.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: Dynamic OptionModel Implementation: How To?

2013-02-09 Thread sommeralex
Hello again, 

I am still trying to implement my dynamic selectModel.

What i did so far is:

TML



JAVA

list: standardFeatureSelectModels is 

//this method gets the groups features and generates for them the
selectModels
public List getStandardProfileFeatureSelectModelsForGroup(Group
group){
   ArrayList  selectModelList = new ArrayList();

   BaseFeature bf;

//dont care about the groups features now, just take two features as
example:

  bf = featureService.findBaseFeatureByKey("Age");
  selectModelList.add(featureService.getSelectModelForBaseFeature(bf,
currentLocale));

  bf = featureService.findBaseFeatureByKey("Relationship");
  selectModelList.add(featureService.getSelectModelForBaseFeature(bf,
currentLocale));

  return selectModelList;
}

where getSelectModelForBaseFeature is just a method to generate a localized
select model (see at the bottom).

..and this works..  

but there are two things i still need to handle (and I have actually no
clear idea how i could do that)

the list is (should be) dynamic so i need to iterate through
standardFeatureSelectModels.get('0')"  to
standardFeatureSelectModels.get('n')" - i just need to use t:type="Loop" but
as its my first implemenation, i am happy with the
model="standardFeatureSelectModels.get('0')" approach.

things to handle:

i *need to store the selected values*. what i read in the docs is that the
valueEncoder is responsible for that. But, as my optionModel has already the
key, o = new OptionModelImpl(key); i would expect that i dont need a
valueEncoder, right?  all i want to do at the end (onFormSubmit) is to
collect all selected keys and store them. 

as the featureValues are dynamic

value="featureValue0"
value="featureValue1"
and so on

i need to store them into a list / but how can i do that?

is this the right approach?  i hope, that i am clear. 


getSelectModelForBaseFeature method:

public SelectModel getSelectModelForBaseFeature(BaseFeature bf, Locale
locale){
List list = bf.getBaseFeatureItemKeysAsList();
List optionModels = new ArrayList();

if (list != null && !list.isEmpty()){
for (int i = 0; i < list.size();i++){
String key = list.get(i);
OptionModel o;
if (locale != null){

BaseFeatureItem item = 
bf.getBaseFeatureItem(key);

String locKey = 
item.getLocalizedKey(locale.getLanguage());

if (locKey != null){
o = new OptionModelImpl(locKey, 
key);
}else{
o = new OptionModelImpl(key);
}


}else {
o = new OptionModelImpl(key);
}
optionModels.add(o);
}

return new SelectModelImpl(null, optionModels); 
}
return null;
}



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875p5719907.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: Dynamic OptionModel Implementation: How To?

2013-02-08 Thread sommeralex
thx

Am 08.02.2013 um 18:05 schrieb "Thiago H de Paula Figueiredo [via Tapestry]" 
:

> On Fri, 08 Feb 2013 14:19:06 -0200, sommeralex   
> <[hidden email]> wrote: 
> 
> > Thank you again for your answer. I guess my confusion with tapestry is   
> > that it does so many things (which I would never expect it to do but I   
> > am happy with) one the one hand.  On the other hand, other things - for   
> > sure - have to be implemented and cant be expected. Even to cache the   
> > selectModel. 
> 
> That's not something you should expect. Tapestry, specifically, Select, is   
> expected to just use the SelectModel you pass to it, nothing more than   
> that. You know when stuff should be cached, not Tapestry. 
> 
> > And another reason / i hope you forgive / is just this, left to my chair: 
> > http://www.learnclip.com/linda.jpg :-) 
> 
> Cute! :D 
> 
> -- 
> Thiago H. de Paula Figueiredo 
> 
> - 
> To unsubscribe, e-mail: [hidden email] 
> For additional commands, e-mail: [hidden email] 
> 
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875p5719890.html
> To unsubscribe from Dynamic OptionModel Implementation: How To?, click here.
> NAML




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875p5719891.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Dynamic OptionModel Implementation: How To?

2013-02-08 Thread sommeralex
also thanx!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875p5719886.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: Dynamic OptionModel Implementation: How To?

2013-02-08 Thread sommeralex
Hi Thiago, 

Thanx for the detailed answers! And sorry for being not clear. Sure, value,
option and selectModel are different, i just mixed them into "one thing" in
my questions. 

For getting the list-items to select, i need a selectModel. This selectModel
consists of optionModels, the optionModel just gives me the labels and
values. Hence, for linking the items to the DB entries (my server) the
valueEncoder translates the selected item to that item it actually
represents. (correct me if this is not true)

So, now i can correct my Q2, mixed up value and optionModel (which then ends
up not being a real question anymore, but still a misunderstanding):

I thought that it is possible to add the optionModel to the appModule
somehow that it is "static". 

If i am using non-static option models, each user will always 

request the list(s), e.g:

List colors = colorService.findAll(); //(taken from the example)

and the selectModelFactory will always have to create the selectModel from
scratch:

// create a SelectModel from my list of colors (taken from the example)
colorSelectModel = selectModelFactory.create(colors, "name");

the point is, that my - options for the optionModel are dynamic, but only
"slowly" increasing/changing and for that reason i thought that there may be
a more efficient way to "populate" the optionModel in a way "globally" and
that this global available option model has to be updated time by time for
staying accurate. 

sorry for the confusion & thanx again. 
alex







--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875p5719885.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



Dynamic OptionModel Implementation: How To?

2013-02-08 Thread sommeralex
Hello!

I have objects (Messages) and each message may have some "attributes"
associated with. Each attribute is part of one attribute family. 

Example: 

Attribute-Family Age has the attributes young, adult, old. 
Attribute-Family Relation has the attributes single, couple, family. 

Both the Attribute Families are dynamic as well as their attributes itself.
So they should be generated or manipulated at runtime. (in 99,9% of the
cases, i will only add attributes for attribute families and will only add
completely new attribute-families (so i wont change or delete attributes or
their families)

Each message may be associated with ONE attribute for each or some
attribute-families. 

Example:

Message m1 gets adult and single as attribute values. 
Message m2 gets young
Message m3 gets couple

For this, I need a dynamic approach with the OptionModel. 

There should be a list being populated with t:selects for each attribute
familiy with their corresponding attributes. 


loop through all attribute-families:

t:select1 should show young, adult, old 
t:select2 should show single, couple, family
and so on.. 

My current (non dynamic) implementation comes with enums, but what i really
need is a list implementation for the OptionModel. So my first look was
this;

http://tapestry.apache.org/using-select-with-a-list.html

this should direct me to the right solution. the point is, i need to program
this module efficiently. Therefore, i have three questions:


*Q1*
Contributing value encoders to app module wont help, due to the reason that
the value encoders are not really dynamic in my case (e.g. if iam creating a
new attribute-family, i would need to add a value encoder also for each
attribute family at runtime / but i guess this is not possible, is it?)

*Q2*
What i understood so far is that the added value encoders to app module will
populate the option model somehow static so that the model itself will be
only generated once

/Well, in short, this design allows you to avoid storing (via @Persist,
@SessionAttribute or @SessionState) the entire (potentially large) list of
objects in the session or rebuilding the whole list of objects again (though
only one is needed) when the form is submitted. /

but if it is only generated once, how then will the list get updated if i am
enhancing the list?

*Q3*
If I have thousands of users creating messages, and for each message the
optionModel would be generated again (for all attribute families which are
expected to increase), this would result in many "unnecessary" database
queries. 

I will probably cope with 20-500 families and each family will have a
growing list of attributes. 

Adding attributes or attributes-familiies is not time-critical. So another
approach would be to hold somewhere a static list of value encoders which
are updating themselves in a specific interval. Is this possible?

i guess that i have misunderstood some things, right?

alex

  









--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-OptionModel-Implementation-How-To-tp5719875.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: Keeping the session alive pattern?

2013-02-06 Thread sommeralex
thx!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-tp5719771p5719812.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: Keeping the session alive pattern?

2013-02-05 Thread sommeralex
lance, ipramak, thank you for the answers / helpful!




2013/2/5 lprimak [via Tapestry] 

> The FlowLogix library ( http://code.google.com/p/flowlogix/ ) has
> components to deal with the session timeout issues and Ajax.
>
> Take a look at these in particular:
>
> http://code.google.com/p/flowlogix/wiki/TLAJAXAnnotation
> http://code.google.com/p/flowlogix/wiki/TLSessionMonitor
>
>
> On Feb 5, 2013, at 6:28 AM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5719786&i=0>>
> wrote:
>
> > Hello!
> >
> > Is there a good "best practise" in tapestry/ (or webframeworks at all)
> for
> > keeping a session for a page alive OR handling session timeouts? Is
> keeping
> > a session alive an anti-pattern?
> >
> > I have two pages where some errors occur, if the user wants to do
> something
> > but the session is over. Both pages use javascript and have a callback
> to
> > the tapestry page via ajax.
> >
> > e.g. user wants to slide a slider, on slide end:
> > new Ajax.Request(urlSetGroupPositionAndSize, { onSuccess: updatePage,
> > parameters: 'lat='+ lat + '&lng=' + lon + '&scopeRadius=' +
> > Math.floor(scopeRadius)});
> >
> > but, if the session is over, i get various javascript/tapestry errors on
> top
> > of my page - I cant copy them because the error message appears "behind"
> my
> > page and it disappears after some seconds. But i could make a
> screenshot:
> >
> > http://www.learnclip.com/tapestry/bugs/timeout.png
> >
> >
> > what i have found so far:
> >
> >
> http://mail-archives.apache.org/mod_mbox/tapestry-users/200504.mbox/%3C20050407181906.GA9459@...%3E<http://mail-archives.apache.org/mod_mbox/tapestry-users/200504.mbox/%3c20050407181906.ga9...@jetpen.com%3E>
> >
> > which mentions to use httpSession.setMaxInactiveInterval or
> > http://comments.gmane.org/gmane.comp.java.tapestry.user/55982
> >
> > which says there could be a trick to set the timeout to 0 / which is not
> > recommended or to use javascript with a period updater / which is also
> not
> > recommended.
> >
> > *so, keeping the session alive is not the way*. right?
> >
> > BUT
> >
> > then I would need a "service", which is checking the session validity.
> > (
> http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/Session.html#isInvalidated())
>
> >
> > *would it be enough/ok to make JUST this on my java method* (which is
> called
> > from Javascript)?
> >
> > public void onSetGroupPosAndSize(){
> >
> > if (session.isInvalidated(){
> >
> > //return LoginPage.class;
> >
> > }else {
> >
> > //go on
> >
> > }
> >
> >
> >
> >
> >
> >
> > }
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-tp5719771.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5719786&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5719786&i=2>
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-tp5719771p5719786.html
>  To unsubscribe from Keeping the session alive pattern?, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5719771&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxOTc3MXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-tp5719771p5719788.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry Slider Component

2013-02-05 Thread sommeralex
thank you



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Slider-Component-tp5719736p5719773.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 Slider Component

2013-02-05 Thread sommeralex
thank you!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Slider-Component-tp5719736p5719772.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



Keeping the session alive pattern?

2013-02-05 Thread sommeralex
Hello!

Is there a good "best practise" in tapestry/ (or webframeworks at all) for
keeping a session for a page alive OR handling session timeouts? Is keeping
a session alive an anti-pattern?

I have two pages where some errors occur, if the user wants to do something
but the session is over. Both pages use javascript and have a callback to
the tapestry page via ajax. 

e.g. user wants to slide a slider, on slide end:
new Ajax.Request(urlSetGroupPositionAndSize, { onSuccess: updatePage,
parameters: 'lat='+ lat + '&lng=' + lon + '&scopeRadius=' +
Math.floor(scopeRadius)});

but, if the session is over, i get various javascript/tapestry errors on top
of my page - I cant copy them because the error message appears "behind" my
page and it disappears after some seconds. But i could make a screenshot:

http://www.learnclip.com/tapestry/bugs/timeout.png


what i have found so far: 

http://mail-archives.apache.org/mod_mbox/tapestry-users/200504.mbox/%3c20050407181906.ga9...@jetpen.com%3E

which mentions to use httpSession.setMaxInactiveInterval or
http://comments.gmane.org/gmane.comp.java.tapestry.user/55982

which says there could be a trick to set the timeout to 0 / which is not
recommended or to use javascript with a period updater / which is also not
recommended.   

*so, keeping the session alive is not the way*. right?

BUT

then I would need a "service", which is checking the session validity.
(http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/services/Session.html#isInvalidated())

*would it be enough/ok to make JUST this on my java method* (which is called
from Javascript)?

public void onSetGroupPosAndSize(){

if (session.isInvalidated(){

//return LoginPage.class;

}else {

//go on

}






}

 






--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Keeping-the-session-alive-pattern-tp5719771.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



getting the actual tapestry locale

2013-02-05 Thread sommeralex
Hi!

I need to get the (supported) tapestry locale of my page in my page java
class. So first, i have set the locales in my AppModule:

configuration.add("tapestry.supported-locales", "en, de");

then, i give the user the opportunity to switch

void onActionFromDe(){
persistentLocale.set(Locale.GERMAN);
}

void onActionFromEn(){
persistentLocale.set(Locale.ENGLISH);   
}

but as long he doesnt switch, the http-request locale is mapped
automatically from tapestry to de or en within a page;

http://tapestry.apache.org/localization.html

what i need is to get the current (tapestry supported locale) of a page -
even if the user did not select a language.


persistentLocale.get() is null, as long as the user did not select a
language. Request r.getLocale() would give me any locale the user currently
has (so even unsupported tapestry locales, right?)

so, how can i get the actual tapestry locale used within a page? the only
hack would be to force the persistentLocale to set for each page..?

thx
 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/getting-the-actual-tapestry-locale-tp5719764.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 Slider Component

2013-02-05 Thread sommeralex
Hi Rnicholus, 

Thx for the answer / the point is, tapestry uses prototype, and i cant find
much tapestry docs about how to handle different js implementations like
jQuery, while prototype is in the "background" of Tapestry. In my opinion,
it is a tapestry question. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Slider-Component-tp5719736p5719761.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 Slider Component

2013-02-02 Thread sommeralex
Hello!

I have a standard tapestry page working with javascript/google maps and have
implemented my own slider component with prototype. the problem> this
component does not work as expected on iPhones/ipads. Hence, it does not
work on IE 7 at all.

How can i enable query mobile on my page? If i enable it, google maps does
not work anymore. hence, wouldnt it be a good tapestry standard component?
(so, why is there no tapestry slider component?)

thx
alex 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Slider-Component-tp5719736.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: wired error / firewall depending? / javascript float number error

2013-01-31 Thread sommeralex
thank you i was blind for that difference. 

My page supports english and german. in german, the seperator is , and in
english .

the textbox is defined as

@Persist
@Property
private Double latitude;
@Persist
@Property
private Double longitude;

which causes the problem if the page is german and defined with ,

in my company, german is used, and at home, englisch (due to my OS settings) 


thank you!!





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/wired-error-firewall-depending-javascript-float-number-error-tp5719690p5719720.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



wired error / firewall depending? / javascript float number error

2013-01-30 Thread sommeralex
Hi!

I know that this error is not a (or at least it think it is not) a tapestry
related error. But it is an error which i cannot "categorize" and for that
reason i also dont know, where to ask.. so maybe someone knows the answer or
can direct me to the right "forum". 

My private project is a location based software, and it is possible to
create location based groups. Which is already working despite within my
firm (which is not a software company)

*The error*

Each location based group has a location. If i am creating the group at home
or at some friends browser, everything seems to work. Each group is getting
the right location values. lets say, longitude: 14.12123 latitude: 48.306904

*BUT*

If i am creating the group in my company, the float numbers (lng, lat)
decimal places are "moving".

lat 4830694.0 lng 1.42858332E16 instead of 
lat: 48.306904 lng: 14.12123


for rome:

instead of lng 12.46077370004 ;lat 41.90202516401622

these values appear:

lat 4.19015141E8 lng 1.246077370004E16


hm..





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/wired-error-firewall-depending-javascript-float-number-error-tp5719690.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: zone update ajaxResponseRenderer.addRender vs zone.getBody

2013-01-29 Thread sommeralex
thank you


2013/1/29 Howard Lewis Ship [via Tapestry] <
ml-node+s1045711n5719664...@n5.nabble.com>

> Also, you're seeing some evolution of the framework here, all at once.
>
> The Zone component was pretty early in Tapestry, but the ability to update
> multiple Zone's all in a single request came later.
>
> The deprecated MultiZoneUpdate object was the older way to update multiple
> zones, but it was tedious to use.
>
> The new AjaxResponseRenderer service makes it much easier to update zones
> and other things on the client in a sensible way.
>
> On Tue, Jan 29, 2013 at 1:27 PM, Muhammad Gelbana <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5719664&i=0>>wrote:
>
>
> > If I remember correctly, the first one returns the zone including the
> > enclosing tags, while the later returns only the zone's body !
> >
> > Like:
> >
> > 
> > ...body...
> > 
> >
> > so the later returns "...body...", while the first one returns the whole
> > structure:
> > 
> > ...body...
> > 
> >
> > So your zone eventually will be:
> >
> > 
> > 
> > ...body...
> > 
> > 
> >
> > Personally, I'd wait for someone to confirm that :D
> >
> > On Tue, Jan 29, 2013 at 10:08 PM, sommeralex <[hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5719664&i=1>
> > >wrote:
> >
> > > Hi,
> > >
> > > Whats is the difference between
> ajaxResponseRenderer.addRender("myZone",
> > > myZone);
> > >
> > > and
> > >
> > > return myZone.getBody();
> > >
> > >
> > > ?
> > >
> > > thx
> > >
> > >
> > >
> > > --
> > > View this message in context:
> > >
> >
> http://tapestry.1045711.n5.nabble.com/zone-update-ajaxResponseRenderer-addRender-vs-zone-getBody-tp5719659.html
> > > Sent from the Tapestry - User mailing list archive at Nabble.com.
> > >
> > > -
> > > To unsubscribe, e-mail: [hidden 
> > > email]<http://user/SendEmail.jtp?type=node&node=5719664&i=2>
> > > For additional commands, e-mail: [hidden 
> > > email]<http://user/SendEmail.jtp?type=node&node=5719664&i=3>
> > >
> > >
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator of Apache Tapestry
>
> The source for Tapestry training, mentoring and support. Contact me to
> learn how I can get you up and productive in Tapestry fast!
>
> (971) 678-5210
> http://howardlewisship.com
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/zone-update-ajaxResponseRenderer-addRender-vs-zone-getBody-tp5719659p5719664.html
>  To unsubscribe from zone update ajaxResponseRenderer.addRender vs
> zone.getBody, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5719659&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxOTY1OXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/zone-update-ajaxResponseRenderer-addRender-vs-zone-getBody-tp5719659p5719665.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

zone update ajaxResponseRenderer.addRender vs zone.getBody

2013-01-29 Thread sommeralex
Hi,

Whats is the difference between ajaxResponseRenderer.addRender("myZone",
myZone);

and 

return myZone.getBody();


?

thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/zone-update-ajaxResponseRenderer-addRender-vs-zone-getBody-tp5719659.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: parameter in tml page?

2013-01-29 Thread sommeralex
Hi Thiago!

The point is, i want to change my tml pages as quick and easy as possible. 

I have a method, which is giving me, what i  need. getObject(String key).

If TML would support parameters for functions, 

i could easily write 

${getObject(x)}

${getObject(y)}

and so on.

Otherwise, i have to write methods in my java page class:

getObjectX
getObjectY

and refere to them in my TML as

${getObjectX}
${getObjectY}

and so on.

sure, i should code in MVC Logic, and i do whereever this is possible. But
sometimes, - so in protyping - or rapid prototyping - such approach would be
- at least in my opinion - a nice feature. 

alex





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/parameter-in-tml-page-tp5719561p5719645.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: parameter in tml page?

2013-01-27 Thread sommeralex
i dont wont a page property, i want to define the parameter dynamically in
the TML page itself. 

but it seems that this is not possible.






--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/parameter-in-tml-page-tp5719561p5719574.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 is here

2013-01-27 Thread sommeralex
thx.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-book-is-here-tp5719513p5719560.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



Page Inheritance

2013-01-17 Thread sommeralex
Hi!

I have two questions concerning page inheritance:

1.
What is the best way to implement page inheritance? (Since page variables
may be protected too as a new feature.. this questions popped up..)

Should (abstract) page classes reside in the same folders as the page itself
or somewhere else? 

2.
What about the TML inheritance? (how) does it work? 

3.
Is there any document about using page inheritance? I couldnt find one. 

I could only find 
http://tapestry.apache.org/page-and-component-classes-faq.html

and
http://tapestry.apache.org/page-life-cycle.html

thx!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Page-Inheritance-tp5719356.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



zoneManager keeps being null

2013-01-11 Thread sommeralex
Hello, , 

I have a wired problem. My ZoneManager keeps being null:

JS:

function updatePage(response){
alert ("id: " + zoneId);
alert (urlSetMsgPositionAndSize);
var zoneManager = Tapestry.findZoneManagerForZone(zoneId); 

alert ("zone " + zoneManager);
zoneManager.updateFromURL(urlSetMsgPositionAndSize); 
}

alert zone gives "zone null", but urlSetMsgPositionAndSize is
/message/createmessage3:setmsgpositionandsize?t:ac=90

and alert of alert ("id: " + zoneId); is "[object HTMLdivelement]"

my js loader functions:

function initializeOnLoad(centerX, centerY, _scopeRadius,
_minMsgScopeInMeters, _maxMsgScopeInMeters, _urlSetMsgPositionAndSize,
_zoneId) {
google.maps.event.addDomListener(window, 'load', initialize(centerX,
centerY, _scopeRadius, _minMsgScopeInMeters, _maxMsgScopeInMeters,
_urlSetMsgPositionAndSize, _zoneId));   
}

function initialize(centerX, centerY, _scopeRadius, _minMsgScopeInMeters,
_maxMsgScopeInMeters, _urlSetMsgPositionAndSize, _zoneId) {
 
var mapOptions = {
zoom: 12,
center: new google.maps.LatLng(centerY, centerX),
mapTypeId: google.maps.MapTypeId.ROADMAP
  };
  
  map = new google.maps.Map(document.getElementById("map_canvas"),
mapOptions);
  urlSetMsgPositionAndSize = _urlSetMsgPositionAndSize;
  
  alert (urlSetMsgPositionAndSize);
  
  zoneId = _zoneId;
  
  scopeRadius = _scopeRadius;
  minMsgScopeInMeters = _minMsgScopeInMeters;
  maxMsgScopeInMeters = _maxMsgScopeInMeters;

  google.maps.event.addListener(map, 'dragend', onMapDragEnd); 
  
  google.maps.event.addListenerOnce(map, 'idle', function(){
  onSlide(scopeRadius);
});
  
  setMarker(map.getCenter());
}

my java class has a 

@InjectComponent
private Zone updateZone;

which is a parameter for my JS call:

Link linkSetMsgPosAndSize =
componentResources.createEventLink("setMsgPositionAndSize");
javaScriptSupport.addScript("initializeOnLoad(%s, %s, 
%s,%s,%s,'%s',
%s);", groupCenter.getCentroid().getX(), groupCenter.getCentroid().getY(),
group.getMessageRadius(), group.getMinMessageRadius(),
group.getMaxMessageRadius(), linkSetMsgPosAndSize.toURI(),
updateZone.getClientId());


i did the same for another page where it is working. but here it keeps
saying that the zoneManager is null. tge tapestry page itself shows the
error message:

updateZone does not have associated Tapestry.ZoneManager object.




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/zoneManager-keeps-being-null-tp5719262.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



page navigation

2012-12-26 Thread sommeralex
shouldnt it be a normal function of a tapestry page to know its predecessor?

they only thing i found to get the previous page is by passing the
predecessor into the context.

http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntopage1/abc





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/page-navigation-tp5718990.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: Deleting persitent Object within Page

2012-12-26 Thread sommeralex
the point is, that if i am showing the messages in a list, the user is able
to delete them from this list.



void onActionFromDelete(long messageId){
Message msg = messageService.getMessage(messageId);
messageService.deleteMessage(msg);
}


delete


but if one message is opend and show in the page, i can not delete it within
that page. another hack could be to clone the message. 

message = message.clone();
deleteMessage(message.getID);





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Deleting-persitent-Object-within-Page-tp5718987p5718989.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



Deleting persitent Object within Page

2012-12-26 Thread sommeralex
Hello!

My page is showing a message object, which should also be able being deleted
by user (within that page)

Object onActionFromDelete(){
messageService.deleteMessage(message);
message = null;

msgContainer.addMessage(DisplayMessage.AIRMESSAGE_DELETE_SUCCESS);
return
pageRenderLinkSource.createPageRenderLinkWithContext(EditMessages.class,
groupId);
}

this does not work due to a error message coming up that the session was
closed (or not initialised: lazy loading) - i believe that tapestry needs an
existing object - i have tried it also with message = null; before
messageService.deleteMessage(message) and instead i put just the ID in my
deleteService. But this did also not work. 

I guess the right approach is to "close" the page, and after that i can
delete the object the page is referring to. My first approach was putting a
delete flag in PageDetached -  but pageDeatached is depreachiated. 

Or is there just a simpler solution?







--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Deleting-persitent-Object-within-Page-tp5718987.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: t:grid: action on select row

2012-12-26 Thread sommeralex
thx!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t-grid-action-on-select-row-tp5718970p5718986.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 form validation: email bug?

2012-12-25 Thread sommeralex
ok thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-form-validation-email-bug-tp5718950p5718973.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



t:grid: action on select row

2012-12-25 Thread sommeralex
Hello!

i would like to implement a pageLink for the whole row instead for each cell
in the row. What i know so far is that i can overwrite the cell with 



${curGroup.name}



but then, the user has to select this item. instead, if he is just moving
his mouse somewhere within the row, it should be a link. 


thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/t-grid-action-on-select-row-tp5718970.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 form validation: email bug?

2012-12-25 Thread sommeralex
No, it should not but does!

Am 25.12.2012 um 09:43 schrieb "Muhammad Gelbana [via Tapestry]" 
:

> Are you saying it should accept "alexander.sommer@gmail" without the ".com" 
> part ? 
> 
> On Mon, Dec 24, 2012 at 3:02 PM, sommeralex <[hidden email]>wrote: 
> 
> > alexander.sommer@gmail 
> 
> 
> If you reply to this email, your message will be added to the discussion 
> below:
> http://tapestry.1045711.n5.nabble.com/tapestry-form-validation-email-bug-tp5718950p5718963.html
> To unsubscribe from tapestry form validation: email bug?, click here.
> NAML




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-form-validation-email-bug-tp5718950p5718965.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

tapestry form validation: email bug?

2012-12-24 Thread sommeralex



email with alexander.sommer@gmail ist accepted (instead of
alexander.som...@gmail.com)

?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-form-validation-email-bug-tp5718950.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 Release Notes: How to read it?

2012-11-06 Thread sommeralex
Hi Thiago!

Thank you for answering also "general" questions ;-)

ad Q3: it was not clear if a bug listed under "bugs" is fixed or not.
Therefore, it was also not clear if a bug e.g in release 2.4 is LISTED is
then fixed in release 2.5. 

If the release page would name the bug header as "fixed bugs" - it would be
much clearer. the language of programmers if often reduced and only
understandable in the context (of a programmer). so for one it is clear,
that under "bugs" fixed bugs are listed, and for the others, it seems that
those listed bugs are still ope bugs in this release. 

And, as i could see, e.g at http://tapestry.apache.org/release-notes-52.html
fixed bugs are also listed as fixed bugs ;-)

 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Release-Notes-How-to-read-it-tp5717713p5717725.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 Release Notes: How to read it?

2012-11-06 Thread sommeralex
How should one read the release notes? e.g
http://tapestry.apache.org/release-notes-535.html

Q1:
Does BUG mean, that the listed bugs were found in 5.3.5 

Q2:
If Q1 is yes, it is expected that this list could increase. So I should have
a look on it. 

Q3:
Are the listed bugs in a previous release fixed (which are also listed as
bug) fixes in the successor release note?

Q4:
What does Task mean? That still is under development in the release? And if
yes, is the task solved in the successor release if it is not visible under
task anymore?

It would be helpful if the headers bug and task would link to the JIRA
description / or understanding. 

thx
alex



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Release-Notes-How-to-read-it-tp5717713.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: @Inject Service in another Service: Service is null

2012-11-02 Thread sommeralex
thanx for the suggestions. but i already have / at least what I know /
"merged" tapestry with spring. 

I have another service, named messageService, 









and this messageService is injecting several other services successfully.
Therefore, they are not null. 

public class MessageService {
private MessageDAO messageDAO;
private MessageCommentDAO messageCommentDAO;
private MessageRatingDAO messageRatingDAO;
@SuppressWarnings("unused")
private GroupDAO groupDAO;
private UserDAO userDAO;

@Inject
private UserService userService;
@Inject
private EmailService emailService;
@Inject
private GroupService groupService;
@Inject
private GroupUserDAO subscriptionDao;
@Inject
private Configuration configuration;

and so on.. 

and all injected services work. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Inject-Service-in-another-Service-Service-is-null-tp5717598p5717605.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: @Inject Service in another Service: Service is null

2012-11-02 Thread sommeralex
service A instance is injected from everywhere i am using it.. 

in this case, InitDB is injecting @GroupService groupService. And within
groupService, i am injecting FeatureService / which is null. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Inject-Service-in-another-Service-Service-is-null-tp5717598p5717602.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



@Inject Service in another Service: Service is null

2012-11-02 Thread sommeralex
Hello!

I am using a Service A, which is using the services from another service B,
but the Service B is null if i am calling a method from my Service B within
the class of Service A. 

public class ServiceA {

@Inject 
ServiceB serviceB;

public void someMethod(){

  serviceB.doSomething();

  }
}

but tapestry reports a nullPointer exception. the debugger shows me, that
serviceB is null. But if I am using serviceB from a normal page class,
serviceB is not null / and useable. 

in my case, service A is the groupService, and service B the featureService.
I am declaring both Services in my ApplicationContext.xml












hm...



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Inject-Service-in-another-Service-Service-is-null-tp5717598.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: Dynamic Assets

2012-10-28 Thread sommeralex
works now with 

@Inject
private AssetSource assetSource;

assetSource.getExpandedAsset("context:/img/icon/star/starScore00.png").toClientURL();

thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354p5717361.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: Dynamic Assets

2012-10-28 Thread sommeralex
Hi!

Thx for your answer.

I tried to

@Inject

private AssetSourceImpl assetSource;

but it keeps saying that

No service implements the interface
org.apache.tapestry5.internal.services.AssetSourceImpl.

i thought AssetSourceIMPL is the implementation???!

2012/10/28 Dragan Sahpaski [via Tapestry] <
ml-node+s1045711n5717359...@n5.nabble.com>

> See the AssetSource service [1]. I use AssetSource.getExpandedAsset alot.
> Ex: assetSource.getExpandedAsset("classpath:/com/mycompany/logo.png");
>
>
> [1] AssetSource:
>
> http://tapestry.apache.org/5.3.5/apidocs/org/apache/tapestry5/services/AssetSource.html
>
> Cheers,
> Dragan Sahpaski
>
>
> On Sun, Oct 28, 2012 at 8:55 PM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5717359&i=0>>
> wrote:
>
> > Hello,
> >
> > Which is the best way for using dynamic assets?
> >
> > In one of my classes, i have too much asset declarations now..
> >
> > @Inject
> > @Path("context:/img/icon/star/starScore20.png")
> > private Asset star20Asset;
> >
> > What i would prefer is a method which directly is generating the asset
> > (dynamically) - because it happens that many of the defined assets and
> dont
> > need.
> >
> > e.g:
> >
> > if (rating == 0){
> > Asset asset = new Asset("context:/img/icon/star/starScore20.png")
> > return asset.toClientURL();
> > } else if (rating <= 0.5) { ... }
> >
> > ..but fore sure, new Asset(...) does not exist.
> >
> > any ideas?
> > thx
> > alex
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5717359&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5717359&i=2>
> >
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5717359&i=3>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5717359&i=4>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
> http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354p5717359.html
>  To unsubscribe from Dynamic Assets, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5717354&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNzM1NHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354p5717360.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Dynamic Assets

2012-10-28 Thread sommeralex
Hello, 

Which is the best way for using dynamic assets?

In one of my classes, i have too much asset declarations now.. 

@Inject
@Path("context:/img/icon/star/starScore20.png") 
private Asset star20Asset;

What i would prefer is a method which directly is generating the asset
(dynamically) - because it happens that many of the defined assets and dont
need. 

e.g:

if (rating == 0){
Asset asset = new Asset("context:/img/icon/star/starScore20.png")
return asset.toClientURL();
} else if (rating <= 0.5) { ... }

..but fore sure, new Asset(...) does not exist.

any ideas?
thx
alex



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354.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



Hibernate & springframework.security question

2012-10-24 Thread sommeralex
Hi!

I know that this is more a hibernate than a tapestry question, but i am not
sure if my question is really more hibernate specific, or a standard
problem. 

If i am logged in as User user with session x, but some values of my user
get changed from the outside of a session y my User user in my session x has
still the "old" values. If i am now persisting my User user from session x,
the new values from session y are overwritten and are therefore lost. I am
merging the object via DAO.merge - but it seems that hibernate does not know
which values are old, and new. 

So the question is, what do i have to do, to ensure that my user object
retrieved from my DB is always uptodate?

merge function:

public T merge(T detachedInstance) {
logger.debug("Merging " + detachedInstance + ".");
try {
Date now = new Date();
detachedInstance.setUpdatedAt(now);
T result = 
getHibernateTemplate().merge(detachedInstance);
return result;
} catch (RuntimeException re) {
logger.error("Merging " + detachedInstance + " 
failed.", re);
throw re;
}
}

This is the way i am getting my user object (but this object is never
updated if i am changing some values of the user directly in the DB - only
if i am login out and in again:

UserService.java

public User getCurrentUser() {
return authenticationHelper.getPrincipal();
}

AuthenticationHelper.java

public User getPrincipal() {
Authentication authentication =
SecurityContextHolder.getContext().getAuthentication();
User user = null;
if (authentication != null) { // is user logged in?
AirwritingUserDetails userDetail = (AirwritingUserDetails)
authentication.getPrincipal();
  user = userDetail.getUser();
}
return user;
}

AirwritingUserDetails.java

public abstract class AirwritingUserDetails extends
org.springframework.security.core.userdetails.User {

private User user;

public AirwritingUserDetails(User user, Collection authorities) {
super(user.getUsername(), user.getPassword(), user.getStatus() 
==
Status.ACTIVE, true, true, true,
authorities);
this.user = user;
}

public User getUser() {
return user;
}

}



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Hibernate-springframework-security-question-tp5717207.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



updating a zone from javascript

2012-09-21 Thread sommeralex
Hello!

I have a javascript function, 

function onGetLatLng(gLatLng){

if(gLatLng == null) {
alert("Sorry, we couldn't find this address.");
return false;
}

new Ajax.Request(urlGetGroupsOnLocation, { onSuccess: updatePage,
parameters: 'lat='+gLatLng.lat() + '&lng=' + gLatLng.lng() + 
'&radius=' +
5});
}

..which is calling urlGetGroupsOnLocation in my class:

public Object onGetGroupsOnLocation(){
System.out.println("onGetGroupsOnLocation");

if (request.getParameter("lat") != null && 
request.getParameter("lng") !=
null){
Double lat = Double.parseDouble( 
request.getParameter("lat") );
Double lng = Double.parseDouble( 
request.getParameter("lng") );
Double radiusInMeters = Double.parseDouble(
request.getParameter("radius") ) / 2;

Geometry location = GeometryService.getPolygon(new 
GeoPoint(lat, lng),
radiusInMeters.intValue());
groups = groupService.getGroupsOnLocation(location);

System.out.println("returnBody");   

return zone.getBody(); 
}
System.out.println("null");
return null;
}

but, .. i dont know how to update the zone now with tapestry. zone.getBody
does not work. The only thing i managed was a hard approach within JS:

window.location.reload();


my full class:


package com.airwriting.frontend.pages.group;

import java.util.ArrayList;

import java.util.Date;

import java.util.List;


import org.apache.tapestry5.ComponentResources;
import org.apache.tapestry5.Link;
import org.apache.tapestry5.annotations.Import;
import org.apache.tapestry5.annotations.InjectComponent;
import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.corelib.components.Zone;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.javascript.JavaScriptSupport;

import se.unbound.tapestry.breadcrumbs.BreadCrumb;

import com.airwriting.configuration.Configuration;
import com.airwriting.domain.GeoPoint;
import com.airwriting.domain.Group;
import com.airwriting.service.GeometryService;
import com.airwriting.service.data.GroupService;
import com.vividsolutions.jts.geom.Geometry;

@Import(library = {
"context:js/browselocalgroups.js" 
})
@BreadCrumb(titleKey="group/ListLocalGroups")
public class ListLocalGroups {

@Inject
private GroupService groupService;
@Inject
private JavaScriptSupport jsSupport;
@Inject
private Request request;
@Inject
private ComponentResources componentResources;
@Property
private Geometry location;


@Inject
private Configuration configuration;

@Property
private String googleMapsKey;

@Persist
@Property
private List groups;

@InjectComponent
private Zone zone;

@Property
private Group curGroup;

@Persist
private Date lastUpdate;

public void setupRender() {


if (request.getServerName().endsWith(".net")){
googleMapsKey = 
configuration.getString("googleMaps.key.net");
}else if (request.getServerName().endsWith(".de")){
googleMapsKey = 
configuration.getString("googleMaps.key.de");
}else if (request.getServerName().endsWith(".at")){
googleMapsKey = 
configuration.getString("googleMaps.key.at");
}
else {//.com
googleMapsKey = 
configuration.getString("googleMaps.key");  
}

System.out.println("setupRender");

if (groups == null || groups.size() == 0){

System.out.println("createEventLink");
Link linkGetGroupsOnLocation =
componentResources.createEventLink("getGroupsOnLocation");
groups = new ArrayList();

if (lastUpdate == null ){
updatePage(linkGetGroupsOnLocation);
 
}else if (minutesDiff(lastUpdate, new Date()) > 1){
updatePage(linkGetGroupsOnLocation);
 
}

}else {

}
}

Re: loading .js and in a specific order

2012-09-15 Thread sommeralex
thank you!!! is working.

package com.airwriting.frontend.components;

import org.apache.tapestry5.Asset;
import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.Import;
import org.apache.tapestry5.annotations.Path;
import org.apache.tapestry5.annotations.Property;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.services.Request;
import org.apache.tapestry5.services.javascript.JavaScriptSupport;

import com.airwriting.configuration.Configuration;

@Import(library = {"context:js/googlemaps3.js"})
public class GoogleMaps3 {
 @Inject
private Request request;

@Inject
private Configuration configuration;

@Property
private String googleMapsKey;
 @Inject
private JavaScriptSupport jsSupport;

@Inject
@Path("context:/js/omsmin.js")
private Asset asset;

void setupRender(MarkupWriter writer){
  //"
http://maps.googleapis.com/maps/api/js?libraries=geometry&key=${googleMapsKey}&sensor=false
"
 if (request.getServerName().endsWith(".net")){
googleMapsKey = configuration.getString("googleMaps.key.net");
}else if (request.getServerName().endsWith(".de")){
googleMapsKey = configuration.getString("googleMaps.key.de");
}else if (request.getServerName().endsWith(".at")){
googleMapsKey = configuration.getString("googleMaps.key.at");
}
else {//.com
googleMapsKey = configuration.getString("googleMaps.key");
}
 String src = "
http://maps.googleapis.com/maps/api/js?libraries=geometry&key="+
googleMapsKey + "&sensor=false";

writer.getDocument().getRootElement().find("head").elementAt(0, "script",
"type", "text/javascript", "src", asset.toString());
writer.getDocument().getRootElement().find("head").elementAt(0, "script",
"type", "text/javascript", "src", src);
 }

}




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716318.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: loading .js and in a specific order

2012-09-15 Thread sommeralex
thx.. but seems complicated, because my asset also is taking parameters:



Re: loading .js and in a specific order

2012-09-15 Thread sommeralex
tried this already

myPageClass:

@Import(library = {"context:/js/OverlappingMarkerSpiderfier.js"})

void afterRender(){

 }



myPageTML:


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










myGoogleMaps3.tml:


http://maps.googleapis.com/maps/api/js?libraries=geometry&amp;key=${googleMapsKey}&amp;sensor=false</a>
">



 alert ('google maps');






OverlappingMarkerSpiderfier.js:


first line is alert('OverlappingMarkerSpiderfier');




alert OverlappingMarkerSpiderfier is before  alert ('google maps');




2012/9/15 Dusko Jovanovski [via Tapestry] <
ml-node+s1045711n5716312...@n5.nabble.com>

> You can use the @Import annotation on render methods. Try this:
> @Import(library = {"context:js/OverlappingMarkerSpiderfier.js"})
> void afterRender(){}
>
> On Sat, Sep 15, 2012 at 7:12 PM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716312&i=0>>wrote:
>
>
> > Hi!
> >
> > I need to ensure that google maps api 3 is loaded before
> > OverlappingMarkerSpiderfier ( OverlappingMarkerSpiderfier is a js lib
> > helping to solve the multiple marker problem with same locations)
> >
> > The  OverlappingMarkerSpiderfier.js is in my ressources folder, and
> > normally
> > i would just inject it via @Import(library =
> > {"context:js/OverlappingMarkerSpiderfier.js",})
> >
> > the point is, that the overlapping marker is always loaded then BEFORE
> > google maps api loaded. how can i change the order, that
> > OverlappingMarkerSpiderfier.js is loaded after google maps, which is
> loaded
> > via the script tag:
> >
> >
> >
> > thx
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716312&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716312&i=2>
> >
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716312.html
>  To unsubscribe from loading .js and  in a specific order, click
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716309&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNjMwOXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309p5716313.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

loading .js and in a specific order

2012-09-15 Thread sommeralex
Hi!

I need to ensure that google maps api 3 is loaded before 
OverlappingMarkerSpiderfier ( OverlappingMarkerSpiderfier is a js lib
helping to solve the multiple marker problem with same locations)

The  OverlappingMarkerSpiderfier.js is in my ressources folder, and normally
i would just inject it via @Import(library =
{"context:js/OverlappingMarkerSpiderfier.js",})

the point is, that the overlapping marker is always loaded then BEFORE
google maps api loaded. how can i change the order, that
OverlappingMarkerSpiderfier.js is loaded after google maps, which is loaded
via the script tag:



thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/loading-js-and-scripts-in-a-specific-order-tp5716309.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: refreshing zone without highlighting it

2012-09-12 Thread sommeralex
thx

2012/9/12 Dragan Sahpaski [via Tapestry] <
ml-node+s1045711n5716224...@n5.nabble.com>

> Here you go:
>
> http://tapestry.apache.org/ajax-and-zones.html#AjaxandZones-ZoneEffectFunctions
>
> Cheers,
> Dragan Sahpaski
>
>
> On Wed, Sep 12, 2012 at 10:27 AM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716224&i=0>>
> wrote:
>
> > hi!
> >
> > does anybody know how i can use the periodic zone updater that way that
> the
> > zone is not being highlighted on each update with yellow?
> >
> > thx
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/refreshing-zone-without-highlighting-it-tp5716221.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716224&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716224&i=2>
> >
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716224&i=3>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716224&i=4>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/refreshing-zone-without-highlighting-it-tp5716221p5716224.html
>  To unsubscribe from refreshing zone without highlighting it, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716221&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNjIyMXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/refreshing-zone-without-highlighting-it-tp5716221p5716225.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

refreshing zone without highlighting it

2012-09-12 Thread sommeralex
hi!

does anybody know how i can use the periodic zone updater that way that the
zone is not being highlighted on each update with yellow?

thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/refreshing-zone-without-highlighting-it-tp5716221.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: updating from 5.3.1 to 5.3.5

2012-09-11 Thread sommeralex
thx...

2012/9/11 Kalle Korhonen-2 [via Tapestry] <
ml-node+s1045711n5716211...@n5.nabble.com>

> On Tue, Sep 11, 2012 at 10:31 AM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716211&i=0>>
> wrote:
> > and what does this mean?
> > tapestry core only exists as 5.3.4
> > http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-core
>
> It means that mvnrepository, a random third party tool, has not yet
> pulled the latest indexes from central.
> http://central.maven.org/maven2/org/apache/tapestry/tapestry-core/5.3.5/
>
> Kalle
>
> >
> > 2012/9/11 Kalle Korhonen-2 [via Tapestry] <
> > [hidden email] <http://user/SendEmail.jtp?type=node&node=5716211&i=1>>
> >
> >> On Tue, Sep 11, 2012 at 8:51 AM, Lance Java <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716208&i=0>>
> >> wrote:
> >> > Type the following at the command line to get a better idea of what's
> >> going
> >> > on:
> >> >> mvn dependency:tree
> >> > Most likely, you will find that one of your dependencies is bringing
> in
> >> the
> >> > old tapestry version. You might need to add an exclusion [1].
> >>
> >> You don't need an exclusion, you need to specify tapestry-core as a
> >> dependency in your own pom. Nearest version resolution. Just having a
> >> property called tapestry.version doesn't help.
> >>
> >> Kalle
> >>
> >>
> >> > [1]
> >> >
> >>
> http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
> >> >
> >> >
> >> >
> >> > --
> >> > View this message in context:
> >>
> http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716203.html
> >> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716208&i=1>
> >> > For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716208&i=2>
> >> >
> >>
> >> -
> >> To unsubscribe, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716208&i=3>
> >> For additional commands, e-mail: [hidden email]<
> http://user/SendEmail.jtp?type=node&node=5716208&i=4>
> >>
> >>
> >>
> >> --
> >>  If you reply to this email, your message will be added to the
> discussion
> >> below:
> >>
> >>
>
> >> .
> >> NAML<
> http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
> >>
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716209.html
>
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716211&i=2>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716211&i=3>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716211.html
>  To unsubscribe from updating from 5.3.1 to 5.3.5, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716200&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNjIwMHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716213.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: updating from 5.3.1 to 5.3.5

2012-09-11 Thread sommeralex
and what does this mean?

tapestry core only exists as 5.3.4

http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-core

2012/9/11 Kalle Korhonen-2 [via Tapestry] <
ml-node+s1045711n5716208...@n5.nabble.com>

> On Tue, Sep 11, 2012 at 8:51 AM, Lance Java <[hidden 
> email]>
> wrote:
> > Type the following at the command line to get a better idea of what's
> going
> > on:
> >> mvn dependency:tree
> > Most likely, you will find that one of your dependencies is bringing in
> the
> > old tapestry version. You might need to add an exclusion [1].
>
> You don't need an exclusion, you need to specify tapestry-core as a
> dependency in your own pom. Nearest version resolution. Just having a
> property called tapestry.version doesn't help.
>
> Kalle
>
>
> > [1]
> >
> http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716203.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716208.html
>  To unsubscribe from updating from 5.3.1 to 5.3.5, click 
> here
> .
> NAML
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716209.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: updating from 5.3.1 to 5.3.5

2012-09-11 Thread sommeralex
thx

se.unbound:tapestry-breadcrumbs:jar:1.9:compile



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200p5716207.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



updating from 5.3.1 to 5.3.5

2012-09-11 Thread sommeralex
Hello!

I have an error and wanted to debug it, but being in the debugging mode got
me another error which showd me that i am not running 5.3.5. The first thing
which is strange is that the VERSION which is being reported in the tapestry
error log in my browser is showing an OLD tapestry version. 5.3.1 - but i
have set 5.3.5 in my pom. I was cleaning the whole project, but still 5.3.1
is reported. If i am searching my project, 5.3.1 is only found in the
generated war. but not within my code (as 5.3.5 is set in the pom)

I was also cleaning the m2 5.3.1 folder, but then, if i am updating the
maven project, 5.3.1 is downloaded again. 

5.3.5
5.3.4

hm.. 








--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/updating-from-5-3-1-to-5-3-5-tp5716200.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



Localize grid "There is no data to display."

2012-09-08 Thread sommeralex
Hello!

Does anybody know how to localise the "There is no data to display."
message?

alex



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Localize-grid-There-is-no-data-to-display-tp5716137.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: getting the visible domain name

2012-09-08 Thread sommeralex
thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/getting-the-visible-domain-name-tp5716131p5716136.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



getting the visible domain name

2012-09-07 Thread sommeralex
Hello!

How can i get the domain name as shown in the browser?

Several domains are linking to the same IP, but sometimes it is useful to
get to know on which domain the user is. 

thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/getting-the-visible-domain-name-tp5716131.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: domain forwarding

2012-09-06 Thread sommeralex
i will updated soon! promise. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716115.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: domain forwarding

2012-09-06 Thread sommeralex
i was changing it yesterday so i guess this is the reason why for you
everything looked fine. 

but THX for checking.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716114.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: domain forwarding

2012-09-06 Thread sommeralex
thx, i could solve it by setting the 

@   188.40.34.137 

in the zone file editor. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105p5716113.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



domain forwarding

2012-09-06 Thread sommeralex
Hello!

I have several domains for my project, which runs at 188.40.34.137. one
domain is airwriting.de, the other domain is airwriting.com .com is on
godaddy, de on another domain provider. 

both domains are forwarding to 188.40.34.137. BUT if i move my mouse over
the links at www.airwriting.com, i can see 188.40.34.137/myPage as link in
the status bar. on airwriting.de, everything works fine, i dont see any
numbers.. 188.40.34.137. 

I contacted go daddy, but they say that they cant do anything.  -but why
then are different domain differently handled?! why do i say on the links
the name, but on the other the number if i am moving my mouse over links?
HENCE, what i could also see is that on www.airwriting.com, NO page links
are visible in the browser. It is always www.airwriting.com, but on .de or
.at the links are visible in the browser textfield. (which is also what i
want to be)

hm... 





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/domain-forwarding-tp5716105.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: periodic zone updater

2012-09-06 Thread sommeralex
GREAT. yes, a serverside push suits my needs. thx!

2012/9/6 Lance Java [via Tapestry] <
ml-node+s1045711n5716080...@n5.nabble.com>

> Hi Alex,
>
> What's your use case for needing a periodic refresh? Does a serverside
> push better suit your needs? If so, you might find tapestry-cometd [1] a
> better fit.
>
> https://github.com/uklance/tapestry-cometd
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716080.html
>  To unsubscribe from periodic zone updater, click 
> here
> .
> NAML
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716081.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: periodic zone updater

2012-09-05 Thread sommeralex
thx

2012/9/5 Dragan Sahpaski [via Tapestry] <
ml-node+s1045711n5716070...@n5.nabble.com>

> Here it is
>
> http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/mixins/ZoneRefresh.html
>
> Regarding the tapestry documentation. I guess it's not documented yet.
> You should probably open a JIRA for a documentation task regarding
> ZoneRefresh
>
> Cheers,
> Dragan Sahpaski
>
>
> On Wed, Sep 5, 2012 at 9:38 PM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716070&i=0>>
> wrote:
>
> > hello!
> >
> > I was looking for an example of a periodic zone update function and
> found
> > this:
> >
> http://tawus.wordpress.com/2011/07/01/a-periodic-zone-refresh-mixin-for-tapestry/#comment-501
> >
> > claiming that it is already part of the tapestry core but i did not find
> > something in the docs
> >
> > http://tapestry.apache.org/ajax-and-zones.html
> >
> >
> http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Zone.html
> >
> > thx
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716070&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5716070&i=2>
> >
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716070&i=3>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5716070&i=4>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716070.html
>  To unsubscribe from periodic zone updater, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5716068&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNjA2OHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068p5716074.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

periodic zone updater

2012-09-05 Thread sommeralex
hello!

I was looking for an example of a periodic zone update function and found
this:
http://tawus.wordpress.com/2011/07/01/a-periodic-zone-refresh-mixin-for-tapestry/#comment-501

claiming that it is already part of the tapestry core but i did not find
something in the docs

http://tapestry.apache.org/ajax-and-zones.html

http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/corelib/components/Zone.html

thx



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/periodic-zone-updater-tp5716068.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: @parameter Boolean not working?

2012-08-26 Thread sommeralex
thanx, could solve it, had nothing to do with the @parameter - was a bug in
my code.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/parameter-Boolean-not-working-tp5715807p5715808.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



@parameter Boolean not working?

2012-08-26 Thread sommeralex
Hello, 

I have a component, which is taking a userId and (should) take a boolean. My
component is implemented and already working with the userID - but not with
the boolean. checking subscribed == true or checking with subscribed != null
is never true. (so the boolean is always null)

the component: 

@Parameter
private Boolean subscribed;
@Parameter
private Long userId;
@Inject
private GroupService groupService;

@Property
private Group curGroup;
@Property(write = false)
private List groups;

public void setupRender() {
if (userId != null) {
if (subscribed == true){
this.groups = 
groupService.findBySubscriberId(userId);
}else{
this.groups = 
groupService.findByOwnerId(userId);   
}
} else {
this.groups = groupService.getAllGroups();
}
}

the call from my tml page:

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





the java page:


public class ListSubscribedGroups {

@Property(write=false)
private Long userId;

@Property(write=false)
private Boolean subscribed = true;

public void onActivate(Long userId){
this.userId = userId;
}

}




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/parameter-Boolean-not-working-tp5715807.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: macbook retina support

2012-08-15 Thread sommeralex
the window device ratio was the wrong example (due it is JS)

apple mentions two others ways, but it seems they are "CSS" solutions

header {
background: -webkit-image-set( url(images/header.jpg)1x,
   url(images/header_2x.jpg) 2x);
height: 150px; /* height in CSS pixels */
width: 800px; /* width in CSS pixels */
}

OR

header {
background-image: url(images/header.jpg);
background-size: cover;
height: 150px;
width: 800px;
}
/* ... more 1x CSS rules ... */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
header {
background-image: url(images/header_2x.jpg);
}
/* ... more 2x CSS rules ... */
}


i guess the simplest hack is just to use higher resolutions images but
forcing a fixed height and width. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/macbook-retina-support-tp5715342p5715434.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: macbook retina support

2012-08-14 Thread sommeralex

i would prefer to write a "binding" like src="${context:/img/my.png}" but as
some poster has mentioned before named "retina" so i can use it that way:
"${retinaContext:/img/my.png}"

the only thing this binding should do is

1. to check if the window.devicePixelRatio >= 2 and if, check if a my_2x.png
pic exists on the same location has the my.png - and if so, it should take
the _2x.png

2.
but i have no idea how to write such a binding. 


The Apple Doc describes three ways:

way 1 (bad one without JS enabled)

function loadImages() {
var header = document.querySelector('header');
if(window.devicePixelRatio >= 2) {
header.style.background = 'url(images/header_2x.jpg)';
}
else {
header.style.background = 'url(images/header.jpg)';
}
}

way 2 with media queries

header {
background-image: url(images/header.jpg);
background-size: cover;
height: 150px;
width: 800px;
}
/* ... more 1x CSS rules ... */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
header {
background-image: url(images/header_2x.jpg);
}
/* ... more 2x CSS rules ... */
}

way 3 with image sets

header {
background: -webkit-image-set( url(images/header.jpg)1x,
   url(images/header_2x.jpg) 2x);
height: 150px; /* height in CSS pixels */
width: 800px; /* width in CSS pixels */
}



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/macbook-retina-support-tp5715342p5715428.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: images dont resolve anymore

2012-08-14 Thread sommeralex
created an asset and solved it with toClientURL()

thx!



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/images-dont-resolve-anymore-tp5715400p5715423.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: images dont resolve anymore

2012-08-14 Thread sommeralex
it is also not working with the slash:

writer.element("image", 
"src", "/img/icon/money.png",
"title", text,
"id", id
);

the produced url is:
http://www.airwriting.com/img/icon/help.png





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/images-dont-resolve-anymore-tp5715400p5715421.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



images dont resolve anymore

2012-08-14 Thread sommeralex
i have tooltip images which dont show up. 

see:
http://www.airwriting.com/group/show/30

the tooltip is a component, which renders via the writer:

writer.element("image", 
"src", "img/icon/help.png}",
"title", text,
"id", id
);

it worked with the old tapestry, 2.6, but not with the new one. The previous
issue was solved with putting the praefix context e.g
src="${context:/img/icon/money.png}" to my image, but this does not work if
i am trying it like this:

writer.element("image", 
"src", "${context:/img/icon/help.png}",
"title", text,
"id", id
);

any ideas how?

the same thing is with my custom slider component, the background url (the
slider image) is not shown in the browser. 

TML:

http://tapestry.apache.org/schema/tapestry_5_3.xsd";
id="d_slider"
style=" background: url('/img/icon/slider/slider.png') repeat-x scroll 
0 0
transparent; 
position:relative; 
width:214px; 
height:42px;">










--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/images-dont-resolve-anymore-tp5715400.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: macbook retina support

2012-08-13 Thread sommeralex
and where is the documentation to write custom bindings? :-)

2012/8/13 Lance Java [via Tapestry] <
ml-node+s1045711n5715343...@n5.nabble.com>

> You could write your own custom binding prefix.
>
> Eg src="${retina:/foo/bar.png}"
>
> See here for custom binding prefix examples
> wiki.apache.org/tapestry/Tapestry5HowTos
>
> On Monday, 13 August 2012, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715343&i=0>>
> wrote:
>
> > Hello!
> >
> > The apple doc describe 3 ways for supporting retina images. My question,
> > before i start to replace everything with javascript or css, is, if
> there
> > will be an update of tapestry supporting the automatic retina with this
> > syntax: src="${context:/img/img.png}
> >
> > because if not, i have to use javascript..
> >
> >
> https://developer.apple.com/library/safari/#documentation/NetworkingInternet/Conceptual/SafariImageDeliveryBestPractices/ServingImagestoRetinaDisplays/ServingImagestoRetinaDisplays.html#//apple_ref/doc/uid/TP40012449-CH3-SW1
> ">
> https://developer.apple.com/library/safari/#documentation/NetworkingInternet/Conceptual/SafariImageDeliveryBestPractices/ServingImagestoRetinaDisplays/ServingImagestoRetinaDisplays.html#//apple_ref/doc/uid/TP40012449-CH3-SW1
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/macbook-retina-support-tp5715342.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5715343&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5715343&i=2>
> >
> >
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/macbook-retina-support-tp5715342p5715343.html
>  To unsubscribe from macbook retina support, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715342&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTM0MnwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/macbook-retina-support-tp5715342p5715344.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

macbook retina support

2012-08-13 Thread sommeralex
Hello!

The apple doc describe 3 ways for supporting retina images. My question,
before i start to replace everything with javascript or css, is, if there
will be an update of tapestry supporting the automatic retina with this
syntax: src="${context:/img/img.png}

because if not, i have to use javascript..

https://developer.apple.com/library/safari/#documentation/NetworkingInternet/Conceptual/SafariImageDeliveryBestPractices/ServingImagestoRetinaDisplays/ServingImagestoRetinaDisplays.html#//apple_ref/doc/uid/TP40012449-CH3-SW1



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/macbook-retina-support-tp5715342.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 api and documentation

2012-08-13 Thread sommeralex
Hi Thiago,

Thank you for your help (again). I know how to use the radio/radiogroup
component in tapestry - I'm am lucky. But i would never know how to use it
just with the api docu link provided. Using a radio/radiogroup element
should be done in few minutes. (and IS done in few minutes also with
tapestry if you know how to do it)

I see myself "as a mobile developer" - and all the server stuff is done
because I have to for my mobile clients. Writing the http services for my
clients / among others things / is super-easy and comfortable with tapestry
- but again: only after some googling and browsing.

What I want to say: tapestry has much potential, is a good choice for java
developers and could be a good choice also for NON experts in server
programming, BUT it has to provide the basics in the most basic way
possible. All beginnings are difficult - and this is what i think what
tapestry-experts easily forget. In my opinion, tapestry is not for
beginners - but it could be, too!

instead of providing an update with a minor performance gain, the
documentation should be simplified and extended with more examples. Hence,
I am missing "modern/social" components like a simple working OAUTH plugin
e.g integrated with tapestry for e.g facebook.

Maybe i should start a blog for tapestry beginners :-)

alex

2012/8/13 Thiago H de Paula Figueiredo [via Tapestry] <
ml-node+s1045711n5715328...@n5.nabble.com>

> On Sun, 12 Aug 2012 08:02:20 -0300, sommeralex
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715328&i=0>>
> wrote:
>
> > Is it true, that the tapestry api and documentation lacks in examples
> and
> > actuality, or do I read the documentation in a wrong way?
>
> That's something we can always improve. :)
>
> >
> > basic example, radio group:
> >
> http://tapestry.apache.org/5.3.4/apidocs/org/apache/tapestry5/corelib/components/Radio.html
> >
> > 1.
> > there is no example on how to make an option field selected as default.
>
> The solution for that is in RadioGroup, not Radio. Just make sure the
> property you pass to its value parameter has the value you want.
>
> >
> > 2.
> > there is no example on how to determine which option IS selected, when
> > submitting the form.
>
> The solution for that is in RadioGroup, not Radio. Just read the you pass
>
> to its value parameter.
>
> --
> Thiago H. de Paula Figueiredo
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715328&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715328&i=2>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/tapestry-api-and-documentation-tp5715292p5715328.html
>  To unsubscribe from tapestry api and documentation, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715292&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTI5MnwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-api-and-documentation-tp5715292p5715336.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

tapestry api and documentation

2012-08-12 Thread sommeralex
Is it true, that the tapestry api and documentation lacks in examples and
actuality, or do I read the documentation in a wrong way?

basic example, radio group:
http://tapestry.apache.org/5.3.4/apidocs/org/apache/tapestry5/corelib/components/Radio.html

1.
there is no example on how to make an option field selected as default. 

2.
there is no example on how to determine which option IS selected, when
submitting the form.

if there are missing examples on BASIC functions, how can someone understand
more complex topics in tapestry? i know that there are many examples, and
that there is an example "somewhere" also with the radiogroup. but, from a
new-be perspective, basic examples should be able to be implemented very
quickly without googling, and browsing the examples or even be forced to
read a tapestry book.  

so please dear tapestry developers, give a focus also to the documentation
for the basic examples in the future. 

alex



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/tapestry-api-and-documentation-tp5715292.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: image link problem with different domains linking to deployment domain

2012-08-06 Thread sommeralex
thank you! the relative path notation could solve my problem. img/blabla/
was not working anymore, but ./img/blabla did the job in my CSS.

another learning is to disable browser cache if i am testing my website :-)

2012/8/6 Thiago H de Paula Figueiredo [via Tapestry] <
ml-node+s1045711n571508...@n5.nabble.com>

> On Sat, 04 Aug 2012 16:30:39 -0300, sommeralex
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715089&i=0>>
> wrote:
>
> > i tried
> > background:#FF url("${context:img/layout/bg.jpg}") repeat-x;
>
> Tapestry only expands ${} referenceschange in .tml files.
>
> --
> Thiago H. de Paula Figueiredo
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715089&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715089&i=2>
>
>
>
> --
>   If you reply to this email, your message will be added to the
> discussion below:
>
> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715089.html
>  To unsubscribe from image link problem with different domains linking to
> deployment domain, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715090.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
thank you!

url(../img/layout/bg.jpg)  works, but i am wondering
why url(/img/layout/bg.jpg) has worked before.

2012/8/4 bobharner [via Tapestry] 

> url(...) references in CSS files are relative to the location of the
> CSS file itself, so you can usually make those work by using relative
> notations like url(../img/layout/bg.jpg) or
> url(../../img/layout/bg.jpg) depending on where your CSS file is.
>
> On Sat, Aug 4, 2012 at 3:30 PM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715070&i=0>>
> wrote:
>
> > my background is defined as CSS.
> >
> > how can i reference to "context"
> >
> > body {
> >
> > background:#FF url(/img/layout/bg.jpg) repeat-x;
> >
> > font: 13px "Trebuchet MS", Arial, Helvetica, sans-serif;
> >
> > color: #33;
> >
> > }
> >
> >
> > i tried
> >
> >
> > background:#FF url("${context:img/layout/bg.jpg}") repeat-x;
> >
> >
> > but this did not work.
> >
> >
> > 2012/8/4 Alexander Sommer <[hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5715070&i=1>>
>
> >
> >> thanks, i solved it with
> >>
> >>  >> ="lounge_cloud_icon">
> >>
> >> 2012/8/4 Alexander Sommer <[hidden 
> >> email]<http://user/SendEmail.jtp?type=node&node=5715070&i=2>>
>
> >>
> >>> my .tml link
> >>>
> >>> 
> >>> 
> >>>
> >>> 2012/8/4 Alexander Sommer <[hidden 
> >>> email]<http://user/SendEmail.jtp?type=node&node=5715070&i=3>>
>
> >>>
> >>>> ok, after deleting the browser cache,
> >>>> http://www.airwriting.com/img/icon/write_cloud_130x100.png also
> doesn't
> >>>> work any more.
> >>>>
> >>>> residing in:
> >>>>
> >>>>
> http://188.40.34.137/opt/tomcat-airwriting/webapps/ROOT/img/icon/write_cloud_130x100.png
> >>>>
> >>>>
> >>>> 2012/8/4 Alexander Sommer <[hidden 
> >>>> email]<http://user/SendEmail.jtp?type=node&node=5715070&i=4>>
>
> >>>>
> >>>>> e.g the write_cloud_icon references to
> >>>>> http://www.airwriting.com/img/icon/write_cloud_130x100.png and
> >>>>> x exists on my server.
> >>>>>
> >>>>> on the other hand, the logo is working.
> >>>>>
> >>>>>
> >>>>> 2012/8/4 Alexander Sommer <[hidden 
> >>>>> email]<http://user/SendEmail.jtp?type=node&node=5715070&i=5>>
>
> >>>>>
> >>>>>> i was now clearing the browser cache. good, the links are broken
> also
> >>>>>> on .com
> >>>>>>
> >>>>>> but i have no idea, why..
> >>>>>>
> >>>>>>
> >>>>>> 2012/8/4 Alexander Sommer <[hidden 
> >>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715070&i=6>>
>
> >>>>>>
> >>>>>>> ah, ok.
> >>>>>>>
> >>>>>>> forward: i have just a (static, hidden) domain forward set for the
> >>>>>>> non .com domains.
> >>>>>>>
> >>>>>>> if even .com has no image links, then it is very wired. because
> here
> >>>>>>> (austria, vienna) i see the images as it should be but only on
> .com
> >>>>>>>
> >>>>>>> hm...
> >>>>>>>
> >>>>>>> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
> >>>>>>> [hidden email]<http://user/SendEmail.jtp?type=node&node=5715070&i=7>>
>
> >>>>>>>
> >>>>>>>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
> >>>>>>>> <[hidden email]<
> http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
> >>>>>>>> wrote:
> >>>>>>>>
> >>>>>>>> > Hello!
> >>>>>>>>
> >>>>>>>> Hi!
> >>>>>>>>
> >>>>>>>> For me, here in Brazil, the same files missing in the .com and
> .net
> >>>&

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
my background is defined as CSS.

how can i reference to "context"

body {

background:#FF url(/img/layout/bg.jpg) repeat-x;

font: 13px "Trebuchet MS", Arial, Helvetica, sans-serif;

color: #33;

}


i tried


background:#FF url("${context:img/layout/bg.jpg}") repeat-x;


but this did not work.


2012/8/4 Alexander Sommer 

> thanks, i solved it with
>
>  ="lounge_cloud_icon">
>
> 2012/8/4 Alexander Sommer 
>
>> my .tml link
>>
>> 
>> 
>>
>> 2012/8/4 Alexander Sommer 
>>
>>> ok, after deleting the browser cache,
>>> http://www.airwriting.com/img/icon/write_cloud_130x100.png also doesn't
>>> work any more.
>>>
>>> residing in:
>>>
>>> http://188.40.34.137/opt/tomcat-airwriting/webapps/ROOT/img/icon/write_cloud_130x100.png
>>>
>>>
>>> 2012/8/4 Alexander Sommer 
>>>
>>>> e.g the write_cloud_icon references to
>>>> http://www.airwriting.com/img/icon/write_cloud_130x100.png and
>>>> x exists on my server.
>>>>
>>>> on the other hand, the logo is working.
>>>>
>>>>
>>>> 2012/8/4 Alexander Sommer 
>>>>
>>>>> i was now clearing the browser cache. good, the links are broken also
>>>>> on .com
>>>>>
>>>>> but i have no idea, why..
>>>>>
>>>>>
>>>>> 2012/8/4 Alexander Sommer 
>>>>>
>>>>>> ah, ok.
>>>>>>
>>>>>> forward: i have just a (static, hidden) domain forward set for the
>>>>>> non .com domains.
>>>>>>
>>>>>> if even .com has no image links, then it is very wired. because here
>>>>>> (austria, vienna) i see the images as it should be but only on .com
>>>>>>
>>>>>> hm...
>>>>>>
>>>>>> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
>>>>>> ml-node+s1045711n5715062...@n5.nabble.com>
>>>>>>
>>>>>>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
>>>>>>> <[hidden email]<http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
>>>>>>> wrote:
>>>>>>>
>>>>>>> > Hello!
>>>>>>>
>>>>>>> Hi!
>>>>>>>
>>>>>>> For me, here in Brazil, the same files missing in the .com and .net
>>>>>>>
>>>>>>> versions. And what do you mean by forward?
>>>>>>>
>>>>>>> >
>>>>>>> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i
>>>>>>> have
>>>>>>> > asset
>>>>>>> > errors. My app is deployed on domain A (where everything works)
>>>>>>> but on
>>>>>>> > domain B, C, D (which just forward to domain A) most (?!) image
>>>>>>> links are
>>>>>>> > broken. e.g the logo works, but not the other images.
>>>>>>> >
>>>>>>> > living example: (without points)
>>>>>>> >
>>>>>>> > www.a.i.r.w..r.i..t...in...g.com
>>>>>>> >
>>>>>>> > not working:
>>>>>>> >
>>>>>>> > .net
>>>>>>> > .de
>>>>>>> > .at
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> >
>>>>>>> > --
>>>>>>> > View this message in context:
>>>>>>> >
>>>>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
>>>>>>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>>>> >
>>>>>>> >
>>>>>>> -
>>>>>>> > To unsubscribe, e-mail: [hidden 
>>>>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
>>>>>>> > For additional commands, e-mail: [hidden 
>>>>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
>>>>>>> >
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thiago H. de Paula Figueiredo
>>>>>>>
>>>>>>> -
>>>>>>>
>>>>>>> To unsubscribe, e-mail: [hidden 
>>>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
>>>>>>> For additional commands, e-mail: [hidden 
>>>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>  If you reply to this email, your message will be added to the
>>>>>>> discussion below:
>>>>>>>
>>>>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>>>>>>>  To unsubscribe from image link problem with different domains
>>>>>>> linking to deployment domain, click 
>>>>>>> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
>>>>>>> .
>>>>>>> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715069.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
thanks, i solved it with



2012/8/4 Alexander Sommer 

> my .tml link
>
> 
> 
>
> 2012/8/4 Alexander Sommer 
>
>> ok, after deleting the browser cache,
>> http://www.airwriting.com/img/icon/write_cloud_130x100.png also doesn't
>> work any more.
>>
>> residing in:
>>
>> http://188.40.34.137/opt/tomcat-airwriting/webapps/ROOT/img/icon/write_cloud_130x100.png
>>
>>
>> 2012/8/4 Alexander Sommer 
>>
>>> e.g the write_cloud_icon references to
>>> http://www.airwriting.com/img/icon/write_cloud_130x100.png and x exists
>>> on my server.
>>>
>>> on the other hand, the logo is working.
>>>
>>>
>>> 2012/8/4 Alexander Sommer 
>>>
>>>> i was now clearing the browser cache. good, the links are broken also
>>>> on .com
>>>>
>>>> but i have no idea, why..
>>>>
>>>>
>>>> 2012/8/4 Alexander Sommer 
>>>>
>>>>> ah, ok.
>>>>>
>>>>> forward: i have just a (static, hidden) domain forward set for the non
>>>>> .com domains.
>>>>>
>>>>> if even .com has no image links, then it is very wired. because here
>>>>> (austria, vienna) i see the images as it should be but only on .com
>>>>>
>>>>> hm...
>>>>>
>>>>> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
>>>>> ml-node+s1045711n5715062...@n5.nabble.com>
>>>>>
>>>>>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
>>>>>> <[hidden email]<http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
>>>>>> wrote:
>>>>>>
>>>>>> > Hello!
>>>>>>
>>>>>> Hi!
>>>>>>
>>>>>> For me, here in Brazil, the same files missing in the .com and .net
>>>>>> versions. And what do you mean by forward?
>>>>>>
>>>>>> >
>>>>>> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i
>>>>>> have
>>>>>> > asset
>>>>>> > errors. My app is deployed on domain A (where everything works) but
>>>>>> on
>>>>>> > domain B, C, D (which just forward to domain A) most (?!) image
>>>>>> links are
>>>>>> > broken. e.g the logo works, but not the other images.
>>>>>> >
>>>>>> > living example: (without points)
>>>>>> >
>>>>>> > www.a.i.r.w..r.i..t...in...g.com
>>>>>> >
>>>>>> > not working:
>>>>>> >
>>>>>> > .net
>>>>>> > .de
>>>>>> > .at
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> > View this message in context:
>>>>>> >
>>>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
>>>>>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>>> >
>>>>>> >
>>>>>> -
>>>>>> > To unsubscribe, e-mail: [hidden 
>>>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
>>>>>> > For additional commands, e-mail: [hidden 
>>>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
>>>>>> >
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thiago H. de Paula Figueiredo
>>>>>>
>>>>>> -
>>>>>> To unsubscribe, e-mail: [hidden 
>>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
>>>>>> For additional commands, e-mail: [hidden 
>>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>  If you reply to this email, your message will be added to the
>>>>>> discussion below:
>>>>>>
>>>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>>>>>>  To unsubscribe from image link problem with different domains
>>>>>> linking to deployment domain, click 
>>>>>> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
>>>>>> .
>>>>>> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715068.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
my .tml link



2012/8/4 Alexander Sommer 

> ok, after deleting the browser cache,
> http://www.airwriting.com/img/icon/write_cloud_130x100.png also doesn't
> work any more.
>
> residing in:
>
> http://188.40.34.137/opt/tomcat-airwriting/webapps/ROOT/img/icon/write_cloud_130x100.png
>
>
> 2012/8/4 Alexander Sommer 
>
>> e.g the write_cloud_icon references to
>> http://www.airwriting.com/img/icon/write_cloud_130x100.png and x exists
>> on my server.
>>
>> on the other hand, the logo is working.
>>
>>
>> 2012/8/4 Alexander Sommer 
>>
>>> i was now clearing the browser cache. good, the links are broken also on
>>> .com
>>>
>>> but i have no idea, why..
>>>
>>>
>>> 2012/8/4 Alexander Sommer 
>>>
>>>> ah, ok.
>>>>
>>>> forward: i have just a (static, hidden) domain forward set for the non
>>>> .com domains.
>>>>
>>>> if even .com has no image links, then it is very wired. because here
>>>> (austria, vienna) i see the images as it should be but only on .com
>>>>
>>>> hm...
>>>>
>>>> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
>>>> ml-node+s1045711n5715062...@n5.nabble.com>
>>>>
>>>>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
>>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
>>>>> wrote:
>>>>>
>>>>> > Hello!
>>>>>
>>>>> Hi!
>>>>>
>>>>> For me, here in Brazil, the same files missing in the .com and .net
>>>>> versions. And what do you mean by forward?
>>>>>
>>>>> >
>>>>> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i have
>>>>>
>>>>> > asset
>>>>> > errors. My app is deployed on domain A (where everything works) but
>>>>> on
>>>>> > domain B, C, D (which just forward to domain A) most (?!) image
>>>>> links are
>>>>> > broken. e.g the logo works, but not the other images.
>>>>> >
>>>>> > living example: (without points)
>>>>> >
>>>>> > www.a.i.r.w..r.i..t...in...g.com
>>>>> >
>>>>> > not working:
>>>>> >
>>>>> > .net
>>>>> > .de
>>>>> > .at
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> > View this message in context:
>>>>> >
>>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
>>>>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>>> >
>>>>> >
>>>>> -
>>>>> > To unsubscribe, e-mail: [hidden 
>>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
>>>>> > For additional commands, e-mail: [hidden 
>>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
>>>>> >
>>>>>
>>>>>
>>>>> --
>>>>> Thiago H. de Paula Figueiredo
>>>>>
>>>>> -
>>>>> To unsubscribe, e-mail: [hidden 
>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
>>>>> For additional commands, e-mail: [hidden 
>>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>  If you reply to this email, your message will be added to the
>>>>> discussion below:
>>>>>
>>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>>>>>  To unsubscribe from image link problem with different domains linking
>>>>> to deployment domain, click 
>>>>> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
>>>>> .
>>>>> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>>
>>>>
>>>>
>>>
>>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715067.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
ok, after deleting the browser cache,
http://www.airwriting.com/img/icon/write_cloud_130x100.png also doesn't
work any more.

residing in:
http://188.40.34.137/opt/tomcat-airwriting/webapps/ROOT/img/icon/write_cloud_130x100.png


2012/8/4 Alexander Sommer 

> e.g the write_cloud_icon references to
> http://www.airwriting.com/img/icon/write_cloud_130x100.png and x exists
> on my server.
>
> on the other hand, the logo is working.
>
>
> 2012/8/4 Alexander Sommer 
>
>> i was now clearing the browser cache. good, the links are broken also on
>> .com
>>
>> but i have no idea, why..
>>
>>
>> 2012/8/4 Alexander Sommer 
>>
>>> ah, ok.
>>>
>>> forward: i have just a (static, hidden) domain forward set for the non
>>> .com domains.
>>>
>>> if even .com has no image links, then it is very wired. because here
>>> (austria, vienna) i see the images as it should be but only on .com
>>>
>>> hm...
>>>
>>> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
>>> ml-node+s1045711n5715062...@n5.nabble.com>
>>>
>>>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
>>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
>>>> wrote:
>>>>
>>>> > Hello!
>>>>
>>>> Hi!
>>>>
>>>> For me, here in Brazil, the same files missing in the .com and .net
>>>> versions. And what do you mean by forward?
>>>>
>>>> >
>>>> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i have
>>>>
>>>> > asset
>>>> > errors. My app is deployed on domain A (where everything works) but
>>>> on
>>>> > domain B, C, D (which just forward to domain A) most (?!) image links
>>>> are
>>>> > broken. e.g the logo works, but not the other images.
>>>> >
>>>> > living example: (without points)
>>>> >
>>>> > www.a.i.r.w..r.i..t...in...g.com
>>>> >
>>>> > not working:
>>>> >
>>>> > .net
>>>> > .de
>>>> > .at
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> > View this message in context:
>>>> >
>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
>>>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>>> >
>>>> > -
>>>> > To unsubscribe, e-mail: [hidden 
>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
>>>> > For additional commands, e-mail: [hidden 
>>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
>>>> >
>>>>
>>>>
>>>> --
>>>> Thiago H. de Paula Figueiredo
>>>>
>>>> -
>>>> To unsubscribe, e-mail: [hidden 
>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
>>>> For additional commands, e-mail: [hidden 
>>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>>>>
>>>>
>>>>
>>>> --
>>>>  If you reply to this email, your message will be added to the
>>>> discussion below:
>>>>
>>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>>>>  To unsubscribe from image link problem with different domains linking
>>>> to deployment domain, click 
>>>> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
>>>> .
>>>> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>>
>>>
>>>
>>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715066.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
e.g the write_cloud_icon references to
http://www.airwriting.com/img/icon/write_cloud_130x100.png and
http://www.airwriting.com/img/icon/write_cloud_130x100.png exists on my
server.

on the other hand, the logo is working.

2012/8/4 Alexander Sommer 

> i was now clearing the browser cache. good, the links are broken also on
> .com
>
> but i have no idea, why..
>
>
> 2012/8/4 Alexander Sommer 
>
>> ah, ok.
>>
>> forward: i have just a (static, hidden) domain forward set for the non
>> .com domains.
>>
>> if even .com has no image links, then it is very wired. because here
>> (austria, vienna) i see the images as it should be but only on .com
>>
>> hm...
>>
>> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
>> ml-node+s1045711n5715062...@n5.nabble.com>
>>
>>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
>>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
>>> wrote:
>>>
>>> > Hello!
>>>
>>> Hi!
>>>
>>> For me, here in Brazil, the same files missing in the .com and .net
>>> versions. And what do you mean by forward?
>>>
>>> >
>>> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i have
>>> > asset
>>> > errors. My app is deployed on domain A (where everything works) but on
>>> > domain B, C, D (which just forward to domain A) most (?!) image links
>>> are
>>> > broken. e.g the logo works, but not the other images.
>>> >
>>> > living example: (without points)
>>> >
>>> > www.a.i.r.w..r.i..t...in...g.com
>>> >
>>> > not working:
>>> >
>>> > .net
>>> > .de
>>> > .at
>>> >
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> > View this message in context:
>>> >
>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
>>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>>> >
>>> > -
>>> > To unsubscribe, e-mail: [hidden 
>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
>>> > For additional commands, e-mail: [hidden 
>>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
>>> >
>>>
>>>
>>> --
>>> Thiago H. de Paula Figueiredo
>>>
>>> -
>>> To unsubscribe, e-mail: [hidden 
>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
>>> For additional commands, e-mail: [hidden 
>>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>>>
>>>
>>>
>>> --
>>>  If you reply to this email, your message will be added to the
>>> discussion below:
>>>
>>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>>>  To unsubscribe from image link problem with different domains linking
>>> to deployment domain, click 
>>> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
>>> .
>>> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>>
>>
>>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715065.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
i was now clearing the browser cache. good, the links are broken also on
.com

but i have no idea, why..

2012/8/4 Alexander Sommer 

> ah, ok.
>
> forward: i have just a (static, hidden) domain forward set for the non
> .com domains.
>
> if even .com has no image links, then it is very wired. because here
> (austria, vienna) i see the images as it should be but only on .com
>
> hm...
>
> 2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
> ml-node+s1045711n5715062...@n5.nabble.com>
>
>  On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
>> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
>> wrote:
>>
>> > Hello!
>>
>> Hi!
>>
>> For me, here in Brazil, the same files missing in the .com and .net
>> versions. And what do you mean by forward?
>>
>> >
>> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i have
>> > asset
>> > errors. My app is deployed on domain A (where everything works) but on
>> > domain B, C, D (which just forward to domain A) most (?!) image links
>> are
>> > broken. e.g the logo works, but not the other images.
>> >
>> > living example: (without points)
>> >
>> > www.a.i.r.w..r.i..t...in...g.com
>> >
>> > not working:
>> >
>> > .net
>> > .de
>> > .at
>> >
>> >
>> >
>> >
>> >
>> > --
>> > View this message in context:
>> >
>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
>> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>> >
>> > -
>> > To unsubscribe, e-mail: [hidden 
>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
>> > For additional commands, e-mail: [hidden 
>> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
>> >
>>
>>
>> --
>> Thiago H. de Paula Figueiredo
>>
>> -
>> To unsubscribe, e-mail: [hidden 
>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
>> For additional commands, e-mail: [hidden 
>> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>>
>>
>>
>> --
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>>  To unsubscribe from image link problem with different domains linking to
>> deployment domain, click 
>> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
>> .
>> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715064.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: image link problem with different domains linking to deployment domain

2012-08-04 Thread sommeralex
ah, ok.

forward: i have just a (static, hidden) domain forward set for the non .com
domains.

if even .com has no image links, then it is very wired. because here
(austria, vienna) i see the images as it should be but only on .com

hm...

2012/8/4 Thiago H de Paula Figueiredo [via Tapestry] <
ml-node+s1045711n5715062...@n5.nabble.com>

> On Sat, 04 Aug 2012 15:46:32 -0300, sommeralex
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5715062&i=0>>
> wrote:
>
> > Hello!
>
> Hi!
>
> For me, here in Brazil, the same files missing in the .com and .net
> versions. And what do you mean by forward?
>
> >
> > I updated from tapestry 5.2.6 to 5.3.4, but now it seems that i have
> > asset
> > errors. My app is deployed on domain A (where everything works) but on
> > domain B, C, D (which just forward to domain A) most (?!) image links
> are
> > broken. e.g the logo works, but not the other images.
> >
> > living example: (without points)
> >
> > www.a.i.r.w..r.i..t...in...g.com
> >
> > not working:
> >
> > .net
> > .de
> > .at
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=1>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5715062&i=2>
> >
>
>
> --
> Thiago H. de Paula Figueiredo
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=3>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5715062&i=4>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715062.html
>  To unsubscribe from image link problem with different domains linking to
> deployment domain, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5715061&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNTA2MXwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/image-link-problem-with-different-domains-linking-to-deployment-domain-tp5715061p5715063.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Tapestry 5 Book EAP Launched

2012-07-31 Thread sommeralex
so what is the deal now? if i a buy the book today, can i read a draft today,
or do we have to wait more 31 days? Because then i would just wait for the
final pdf. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-Book-EAP-Launched-tp5714877p5714915.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: scheduled services stops - @Scheduled(fixedDelay=1800000)

2012-07-31 Thread sommeralex
i am no using the chron job. which works.. thx.



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/scheduled-services-stops-Scheduled-fixedDelay-180-tp5714882p5714914.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



scheduled services stops - @Scheduled(fixedDelay=1800000)

2012-07-30 Thread sommeralex
hi!

I have defined a schedule job within my service class, which seems to STOP
after some calls. 

@Scheduled(fixedDelay=180) // 30min 180
public void deleteOutdatedWeatherEntries() {
System.out.println("clean  cache:" + new Date());
logger.info("CLEAN-UP TASK: Delete outdated entries.");
myDAO.deleteEntries();
}

The console prints every 30min the logger info & System.out.print - but,
after some time, it stops. there is no output anymore and the DB is not
deleted anymore. 

I know that this is a spring issue, but maybe someone has an answer.
instead, i could try the same with @Startup public static void scheduleJobs.

But anyway, i wonder why the service stops.. 



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/scheduled-services-stops-Scheduled-fixedDelay-180-tp5714882.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: Test if production or test mode..

2012-07-28 Thread sommeralex
thank you very much, it works!

2012/7/28 Taha Hafeez [via Tapestry] <
ml-node+s1045711n5714850...@n5.nabble.com>

> With @Symbol you must use @Inject too
>
> @Proeprty
> @Inject
> @Symbol(SymbolConstants.PRODUCTION_MODE)
> private boolean productionMode
>
> BTW you can also use :-
>
> 
>${symbol:tapestry.production-mode}
> 
>
> regards
> Taha
>
>
> On Jul 28, 2012, at 2:19 PM, sommeralex wrote:
>
> > Thank you all for your answers.
> >
> > What I now did is just this in one of my pages:
> >
> > JAVA
> >
> > @Property
> > @Symbol("tapestry.production-mode")
> > private boolean productionMode;
> >
> > TML
> >
> > 
> >
> > productionMode!
> >
> > 
> >
> >
> > My FrontendModule
> >
> > public static void
> contributeApplicationDefaults(MappedConfiguration > String> configuration) {
> >
> > configuration.add("tapestry.production-mode", "true");
> >
> > }
> >
> > The String "productionMode!" is never printed. Using Tapestry 5.3.1.
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714849.html
>
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5714850&i=0>
> > For additional commands, e-mail: [hidden 
> > email]<http://user/SendEmail.jtp?type=node&node=5714850&i=1>
> >
>
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5714850&i=2>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5714850&i=3>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714850.html
>  To unsubscribe from Test if production or test mode.., click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5714658&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxNDY1OHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714851.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: Test if production or test mode..

2012-07-28 Thread sommeralex
Thank you all for your answers. 

What I now did is just this in one of my pages:

JAVA

@Property   
@Symbol("tapestry.production-mode")
private boolean productionMode;

TML



productionMode!




My FrontendModule

public static void contributeApplicationDefaults(MappedConfiguration configuration) {

configuration.add("tapestry.production-mode", "true");

}

The String "productionMode!" is never printed. Using Tapestry 5.3.1.





--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658p5714849.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



Test if production or test mode..

2012-07-21 Thread sommeralex
@Value("${tapestry.production-mode}")
@Property
private boolean productionMode;

this way sounds much easier than the crpytic form in the constructor:

public class MyService implements MyServiceInterface
{
  public MyService(@Value("${tapestry.production-mode}") boolean
productionMode, ...)
  {
if (productionMode) {

can someone explain me why app properties can not more easiliy requested?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Test-if-production-or-test-mode-tp5714658.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: embedding google maps javascript into a tapestry page

2012-07-05 Thread sommeralex
thx, i will try that!

2012/7/5 Lance Java [via Tapestry] 

> You can't use ${scopeRadius} in a js file. Javascript files are static and
> can be cached in the browser. What you can do is construct a JSONObject on
> the serverside (based on dynamic values) and initialize the client.
>
> This can be done two ways:
> 1. Create a javascript object under the "Tapestry.Initializer" namespace
> and use JavascriptSupport.addInitializerCall(String functionName,
> JSONObject parameter)
> 2. Call a javascript function via JavascriptSupport.addScript(String
> format, Object... arguments)
>
> > I will mention your name on http://www.airwriting.com/about/imprint if
> you agree on!
> Not sure I deserve a mention but I have no problem with that.
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714302.html
>  To unsubscribe from embedding google maps javascript into a tapestry
> page, click 
> here
> .
> NAML
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714304.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: embedding google maps javascript into a tapestry page

2012-07-05 Thread sommeralex
thank you AGAIN for your help. i will mention your name on
http://www.airwriting.com/about/imprint if you agree on!

i will try to solve it by myself, but, as you problably already have seen, i
am looking for someone to fix this :-)

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/embedding-google-maps-javascript-into-a-tapestry-page-tp5714286p5714301.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 Job Offer

2012-07-05 Thread sommeralex
Hi!

I need a tapestry expert who is able to fix the bugs on the following pages:

1.
http://www.airwriting.com/en/group/create
2.
http://www.airwriting.com/en/group/create
3.
http://www.airwriting.com/en/group/listlocalgroups

Bug 1: The Javascript Lib has a loading time out which forces it to stop
loading on create group
Bug 2: The Slider for a group range does not work with IE 8
Bug 3:  List Local Groups comes in my implementation without zones, but
should have one.

Optional: Currently, the map is working with google map javascript version
2, but it should be 3. 

if someone is interested, write me a mail on alexander.som...@gmail.com with
a cost estimation. thx!
alex

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-Job-Offer-tp5714300.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: two forms on one page - persist does not work.

2012-06-30 Thread sommeralex
ok, thx!

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/two-forms-on-one-page-persist-does-not-work-tp5714196p5714213.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: BreadCrumbsModule error

2012-06-25 Thread sommeralex
code solve the problem> using the latest tapestry version instead of 2.5

thx for any help

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5714065.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: BreadCrumbsModule error

2012-06-16 Thread sommeralex
no, if i comment out your code, everything works fine again.

2012/6/16 Alexander Sommer 

> so, what do you want me to do?
>
> 2012/6/16 Lance Java [via Tapestry] <
> ml-node+s1045711n5713939...@n5.nabble.com>
>
>  This is a different error to the document linker error you were
>> originally
>> complaining about. I'm guessing that if you comment out my code in your
>> appmodule, you will still have this new exception.
>>
>> Something has changed
>>
>>
>> --
>>  If you reply to this email, your message will be added to the
>> discussion below:
>>
>> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713939.html
>>  To unsubscribe from BreadCrumbsModule error, click 
>> here
>> .
>> NAML
>>
>
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713941.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-16 Thread sommeralex
so, what do you want me to do?

2012/6/16 Lance Java [via Tapestry] <
ml-node+s1045711n5713939...@n5.nabble.com>

> This is a different error to the document linker error you were originally
> complaining about. I'm guessing that if you comment out my code in your
> appmodule, you will still have this new exception.
>
> Something has changed
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713939.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here
> .
> NAML
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713940.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-15 Thread sommeralex
1.
only on the server
2.
i will check everything again, and if, upload / test again and give
feedback asap.
3.
i was testing it with 0.0.3-Snap

thx

2012/6/15 Lance Java [via Tapestry] <
ml-node+s1045711n5713916...@n5.nabble.com>

> For better or worse, this is a new exception.
> 1. Is this failure only happening on the server or does this now happen on
> localhost too?
> 2. You mentioned before that you copied the breadcrumbs code into your
> project. Did you delete all the files? I think one or two might still be
> hanging around
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713916.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here
> .
> NAML
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713917.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-14 Thread sommeralex
I will try it in the evening! thx! hope, that it will work then.

alex



2012/6/14 Lance Java [via Tapestry] <
ml-node+s1045711n5713870...@n5.nabble.com>

> As I said before, it seems like the zbreadcrumbs MarkupRendererFilter is
> running before the DocumentLinker even though it should run after.
>
> I'd like you to test a theory that there is a bug in ordered
> configuration. I originally asked you to alter the zbreadcrumbs jar but I
> have found a way to test my theory without altering the zbreadcrumbs code.
>
> Can you add the following to your AppModule and try running against the
> normal zbreadcrumbs jar?
>
> public void
> contributeMarkupRenderer(OrderedConfiguration 
> configuration,
> final Environment environment, @Path("${zbreadcrumbs-default-stylesheet}")
> final Asset defaultStylesheet) {
>MarkupRendererFilter injectDefaultStylesheet = new
> MarkupRendererFilter()
>{
>   public void renderMarkup(MarkupWriter writer, MarkupRenderer
> renderer) {
>  DocumentLinker linker =
> environment.peekRequired(DocumentLinker.class);
>
>  linker.addStylesheetLink(new
> StylesheetLink(defaultStylesheet.toClientURL()));
>
>  renderer.renderMarkup(writer);
>   }
>};
>
>configuration.override(
>   "ZBreadCrumbsDefaultStylesheet",
>   injectDefaultStylesheet,
>   "after:InjectDefaultStylesheet",
>   "after:DocumentLinker"
>);
> }
>
> Inspired by:
>
> https://bitbucket.org/zenios/tapestry-zbreadcrumbs/src/a82acf094238/src/main/java/org/oscy/tapestry/breadcrumbs/services/BreadCrumbsModule.java
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713870.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here
> .
> NAML
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713871.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-13 Thread sommeralex
ok, i will check this and send you the log asap.
thanks

2012/6/13 Thiago H de Paula Figueiredo [via Tapestry] <
ml-node+s1045711n5713833...@n5.nabble.com>

> On Wed, 13 Jun 2012 04:13:16 -0300, sommeralex
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5713833&i=0>>
> wrote:
>
> > Hi Thiago!
>
> Hi!
>
> > How can i get the log/console if my project is already deployed on the
> > remote server?
>
> Check the documentation of the servlet container (Tomcat, Jetty, JBoss,
> etc) to know where the log is.
>
> --
> Thiago H. de Paula Figueiredo
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713833&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713833&i=2>
>
>
>
> --
>   If you reply to this email, your message will be added to the
> discussion below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713833.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5713794&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxMzc5NHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713835.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-13 Thread sommeralex
Hi Thiago!

How can i get the log/console if my project is already deployed on the
remote server?

thx
alex

2012/6/12 Thiago H de Paula Figueiredo [via Tapestry] <
ml-node+s1045711n5713827...@n5.nabble.com>

> On Tue, 12 Jun 2012 18:12:25 -0300, sommeralex
> <[hidden email] <http://user/SendEmail.jtp?type=node&node=5713827&i=0>>
> wrote:
> > HTTP Status 500 -
> > --
> >
> > *type* Exception report
>
> Could you please get the stack trace from the log or console instead of
> the Tomcat error page from now on? Most of the time the Tomcat error page
>
> cuts the really important parts of the stack trace.
>
> --
> Thiago H. de Paula Figueiredo
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713827&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713827&i=2>
>
>
>
> --
>   If you reply to this email, your message will be added to the
> discussion below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713827.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5713794&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxMzc5NHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713831.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-12 Thread sommeralex
so, did the steps and 0.0.3-SNAPSHOT is created. Locally, it is running.

My maven knowledge is minimalistic.

1. why was 0.0.3-SNAPSHOT generated?
2. can i deploy my project now without having to take care about 0.0.3?



2012/6/12 Dimitris Zenios [via Tapestry] <
ml-node+s1045711n5713820...@n5.nabble.com>

> Did you do steps 1,2,3?
>
> On Tue, Jun 12, 2012 at 10:24 PM, sommeralex <[hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713820&i=0>>
> wrote:
>
> > Hi!
> >
> > If i am changing to 0.0.3-Snapshot it keeps telling:
> >
> > Missing artifact org.oscy:tapestry-zbreadcrumbs:jar:0.0.3-SNAPSHOT
> >
> >
> > --
> > View this message in context:
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713819.html
>
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713820&i=1>
> For additional commands, e-mail: [hidden 
> email]<http://user/SendEmail.jtp?type=node&node=5713820&i=2>
>
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713820.html
>  To unsubscribe from BreadCrumbsModule error, click 
> here<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5713794&code=YWxleGFuZGVyLnNvbW1lckBnbWFpbC5jb218NTcxMzc5NHwxMDUzMzQxMzM4>
> .
> NAML<http://tapestry.1045711.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713821.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

Re: BreadCrumbsModule error

2012-06-12 Thread sommeralex
i am also trying to implement my own style css, but whatever path i am
writing in as parameter, fails.

path of my CSS:
/Users/alexandersommer/git/Airwriting/modules/server-application/src/main/webapp/css/main.css

path
 configuration.add(BreadCrumbsConstants.BREADCRUMBS_DEFAULT_STYLESHEET,
"classpath:src/main/webapp/css/main.css");

Problem accessing /. Reason:

Exception constructing service 'MarkupRenderer': Error invoking
service contribution method
org.oscy.tapestry.breadcrumbs.services.BreadCrumbsModule.contributeMarkupRenderer(OrderedConfiguration,
Environment, Asset): Unable to locate asset
'classpath:src/main/webapp/css/main.css' (the file does not exist).

Caused by:

java.lang.RuntimeException: Exception constructing service
'MarkupRenderer': Error invoking service contribution method
org.oscy.tapestry.breadcrumbs.services.BreadCrumbsModule.contributeMarkupRenderer(OrderedConfiguration,
Environment, Asset): Unable to locate asset
'classpath:src/main/webapp/css/main.css' (the file does not exist


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BreadCrumbsModule-error-tp5713794p5713816.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

  1   2   >