Re: Tapestry TreeGrid

2012-02-15 Thread George Christman
Hi Lance, I'd like to share my progress with you. I think it will work once
we get the hibernate sql query corrected. If you wouldn't mind taking a
brief look at my classes to be sure I implemented everything correctly, it
would be greatly appreciated. I could always get a little assistance from
the hibernate guys too if we can't figure out that query. I seen a ? in the
question stringbuilder method. Is that a place holder or is there some kind
of logic behind it. Once again thanks,

Cheers,
George

@Entity
public class Category extends BaseEntity {

private String label;

@OneToMany(mappedBy = "parentCategoryId")
private List children;

@ManyToOne
@JoinColumn(name = "parent_id")
private Category parentCategoryId;

//Getters Setters





public class CategoryNode {

private Category category;
private boolean isLeaf;
private boolean hasChildren;

//Getters Setters





public class HibernateCategoryDao implements CategoryDao {

private final Session session;

public HibernateCategoryDao(Session session) {
this.session = session;
}

// this will be called by ValueEncoder.toValue(id)
public CategoryNode findById(String id) {
return findByCriterion(Restrictions.eq("categoryId",
id)).iterator().next();
}

// this will be called by TreeModelAdapter.getChildren(CategoryNode
node)
public List getChildren(CategoryNode node) {
return findByCriterion(Restrictions.eq("parentCategoryId",
node.getCategory()));
}

// this will be called by your page
public List findRoots() {
return findByCriterion(Restrictions.isNull("parentCategoryId"));
}

@SuppressWarnings("unchecked")
protected List findByCriterion(Criterion criterion) {
List cats =
session.createCriteria(Category.class).add(criterion).list();
Map childNodes = new LinkedHashMap();
for (Category cat : cats) {
CategoryNode childNode = new CategoryNode();
childNode.setCategory(cat);
childNodes.put(cat.getId(), childNode);
}
StringBuilder questions = new StringBuilder();
for (int i = 0; i < childNodes.size(); ++i) {
if (i != 0) {
questions.append(", ");
}
questions.append("?");
}


Query query = session.createSQLQuery(
"select c1.id, count(c2.*) "
+ "from Category c1 "
+ "left join Category c2 on c2.parentCategoryId = c1.id "
+ "where c1.id in (" + questions + ") "
+ "group by c1.id");

int i = 0;

for (Iterator it =
childNodes.values().iterator(); i < childNodes.size(); ++i) {
query.setLong(i + 1,
it.next().getCategory().getId());
}

for (Iterator it = query.iterate(); it.hasNext();) {
Object[] result = it.next();
Integer childId = (Integer) result[0];
Integer grandChildCount = (Integer) result[1];
CategoryNode childNode = childNodes.get(childId);
childNode.setHasChildren(grandChildCount != 0);
childNode.setIsLeaf(grandChildCount == 0);
}

return new ArrayList(childNodes.values());
}

}



public interface CategoryDao {

public CategoryNode findById(String id);

public List getChildren(CategoryNode node);

public List findRoots();
}




public class CategoryTreeModelAdapter implements
TreeModelAdapter {

private HibernateCategoryDao hibernateCategoryDao;

public CategoryTreeModelAdapter(HibernateCategoryDao
hibernateCategoryDao) {
this.hibernateCategoryDao = hibernateCategoryDao;
}

public List getChildren(CategoryNode node) {
return hibernateCategoryDao.getChildren(node);
}

public boolean isLeaf(CategoryNode node) {
return node.isLeaf();
}

public boolean hasChildren(CategoryNode node) {
return node.hasChildren();
}

public String getLabel(CategoryNode node) {
return node.getCategory().getLabel();
}
}



public class Tree {

@Inject
private Session session;

private HibernateCategoryDao  hibernateCategoryDao;

void setupRender() {
hibernateCategoryDao = new HibernateCategoryDao(session);
}

public TreeModel getModel() {
return getTreeModel();
}

private TreeModel treeModel;

public TreeSelectionModel getSelectModel(){
return new DefaultTreeSelectionModel();
}

public TreeModel getTreeModel() {
if (treeModel == null) {
ValueEncoder encoder = new
ValueEncoder() {

@Override
public String toClient(CategoryNode node) {
return node.getCategory().getId().toString();
}

@Override
public CategoryNode toValue(String node) {
return hibernateC

Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Gavin Lei
Yeah, i downloaded Eclipse classic (eclipse-SDK-3.7.1-win32),
eclipse-java-indigo-SR1-win32 and eclipse-jee-indigo-SR1-win32 today,
confirmed that both Eclipse Java and JEE have XML editor installed
already. So we can call Eclipse Java as a minimum.

Thank you for your remind, Thiago.

If user is using Eclipse classic, there are two ways to go:
1. Download and install XML editor manually first
2. Add XML editor update center site into Eclipse's "Available
Software Site", and check "Contact all update sites during install to
find required software" during TapestryTools' install process, Eclipse
will install dependencies automatically.

2012/2/15 Thiago H. de Paula Figueiredo :
> On Wed, 15 Feb 2012 04:29:38 -0200, Dmitry Gusev 
> wrote:
>
>> Looks good to me.
>> And I also think that its not worth it to support Eclipse Classic for
>> TapestryTools.
>
>
> Eclipse Classic is based on Eclipse 3.3. Too old.
> Notice the xml_ui plugin in Eclipse for Java Developers 3.7:
> http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1.
> It does ship with an XML editor. Please don't base your editor in Eclipse
> for JEE.
>
> By the way, please don't post the same message in two different mailing
> lists.
>
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and
> instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>



-- 
-
Best Regards
Gavin Lei (雷银)
Email: gavingui2...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: JQuery UI Datepicker configuration

2012-02-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Feb 2012 20:43:42 -0200, zeewolf   
wrote:


Yep, the project at work is Tapestry 4 based. I've only worked with  
Wicket and JSPs in the past, so I'm still getting my head around  
Tapestry.


Ah, ok. :) Tapestry, specially version 4, has many similarities with  
Wicket.


It should be easy enough to do this, I'm just unsure of how to go about  
it,

the old school approach would be to use a JSP scriptlet to create a date
object and assign the millisec result to a javascript int and the rest  
would be a piece of cake.


Scriptlets suck. Code should be in Java classes than just get the value  
from the page or component class and write it to HTML using @Insert  
(http://tapestry.apache.org/tapestry4.1/components/Insert.html).


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: JQuery UI Datepicker configuration

2012-02-15 Thread zeewolf
>May I ask why Tapestry 4 if you're new to Tapestry? Old project  
>maintenance?

Yep, the project at work is Tapestry 4 based. I've only worked with Wicket
and JSPs in the past, so I'm still getting my head around Tapestry. It
should be easy enough to do this, I'm just unsure of how to go about it,
the old school approach would be to use a JSP scriptlet to create a date
object and assign the millisec result to a javascript int and the rest would
be a piece of cake.

Obviously in the HTML body, you've got blah,
but I need something similar or tidier for the script that uses the jquery
date picker. 



> Basically, I've got the following script:

Post directly to the mailing list. Nabble ends up eating stuff. Your  
script was. 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/JQuery-UI-Datepicker-configuration-tp5487304p5487691.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: Does unit testing of Tapestry pages make http calls?

2012-02-15 Thread Julien Martin
Hi Thiago!
I see. I was asking because I noticed that when running tests as documented
by the link below, the console output seems to indicate that the test are
in-container tests.
Regards,
J.

Le 15 février 2012 23:10, Thiago H. de Paula Figueiredo
a écrit :

> On Wed, 15 Feb 2012 18:43:16 -0200, Julien Martin 
> wrote:
>
>  Hello,
>>
>
> Hi!
>
>
>  I am still trying to resolve my unit testing problems.
>> In order to make some progress, I would need to know whether page unit
>> testing (see
>> http://tapestry.apache.org/**unit-testing-pages-or-**components.html)
>> makes
>> http calls.
>>
>
> I'm not sure, but using some logic, I'd say the answer is no. If it did
> HTTP calls, it wouldn't be unit testing, being integration testing instead.
>
> --
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
> and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br
>


Re: Does unit testing of Tapestry pages make http calls?

2012-02-15 Thread Thiago H. de Paula Figueiredo

On Wed, 15 Feb 2012 18:43:16 -0200, Julien Martin  wrote:


Hello,


Hi!


I am still trying to resolve my unit testing problems.
In order to make some progress, I would need to know whether page unit
testing (see
http://tapestry.apache.org/unit-testing-pages-or-components.html) makes
http calls.


I'm not sure, but using some logic, I'd say the answer is no. If it did  
HTTP calls, it wouldn't be unit testing, being integration testing instead.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: JQuery UI Datepicker configuration

2012-02-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Feb 2012 18:23:01 -0200, zeewolf   
wrote:



Hello,


Hi!


I was wondering if anyone could tell me how to configure a piece of
Javascript via Tapestry 4 (I'm quite new to Tapestry).


May I ask why Tapestry 4 if you're new to Tapestry? Old project  
maintenance?



Basically, I've got the following script:


Post directly to the mailing list. Nabble ends up eating stuff. Your  
script was.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Server Side Validation with ajax form loop

2012-02-15 Thread George Christman
David have you figured out how to get around this issue? I'm using clientside
validation to over come it for the short term, but it would be nice to get
server side working properly.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Server-Side-Validation-with-ajax-form-loop-tp5120576p5487493.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



JQuery UI Datepicker configuration

2012-02-15 Thread zeewolf
Hello,

I was wondering if anyone could tell me how to configure a piece of
Javascript via Tapestry 4 (I'm quite new to Tapestry).

Basically, I've got the following script:




And I need to set the datepicker's default date to the date of the server
machine's date.  I've got a good idea of how to convert a Java date to a
Javascript date by getting the milliseconds, it's just the area around
setting the value in tapestry that I'm struggling with. Any ideas?




--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/JQuery-UI-Datepicker-configuration-tp5487304p5487304.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



Does unit testing of Tapestry pages make http calls?

2012-02-15 Thread Julien Martin
Hello,

I am still trying to resolve my unit testing problems.

In order to make some progress, I would need to know whether page unit
testing (see
http://tapestry.apache.org/unit-testing-pages-or-components.html) makes
http calls.

Can anyone please let me know?

Regards,

Julien.


Re: Perform tasks when starting the application

2012-02-15 Thread iberck
Thank you for your response 

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Perform-tasks-when-starting-the-application-tp5487106p5487265.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: Perform tasks when starting the application

2012-02-15 Thread Dusko Jovanovski
Annotate your method with @Startup and it will be executed when starting
the application.
Reference:
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/ioc/annotations/Startup.html


On Wed, Feb 15, 2012 at 8:22 PM, iberck  wrote:

> I need to perform certain tasks when starting the application, which is the
> service that I have to contribute in AppModule to do it?
>
> Thanks in advance
>
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Perform-tasks-when-starting-the-application-tp5487106p5487106.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
>
>


Perform tasks when starting the application

2012-02-15 Thread iberck
I need to perform certain tasks when starting the application, which is the
service that I have to contribute in AppModule to do it?

Thanks in advance


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Perform-tasks-when-starting-the-application-tp5487106p5487106.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: Issue with my T5 unit tests

2012-02-15 Thread Julien Martin
Hello Christian and thanks for replying,

Notice that I overwrite the map entry in the test method:
*fieldValues.put("acceptsConditions", "**false**");*
So the problem is definitely somewhere else.

Regarding, my use of the @persist annotation: you're right. Thanks.

Regards,

Julien.
*
*
Le 15 février 2012 18:53, derkoe  a
écrit :

>
> Julien Martin wrote
> >
> > Hello,
> >
>
> Hi!
>
>
> Julien Martin wrote
> >
> > I am trying to make sure that if a user has not accepted the terms and
> > conditions, then they cannot register.
> >
> > However my "*testFailsIfConditionsNotAccepted*" always fails and logging
> > info indicates that the checkbox is always checked despite the test
> > setting
> > the value of the boolean to false.
> >
> > This behavior is not exhibited when I run my app and when I test my forms
> > manually...
> >
> > Can anyone please help?
> >
>
> Maybe that's because you set the acceptsConditions to true in the test:
> fieldValues.put("acceptsConditions", "true");*
>
> And one comment: childminderAccount does not have to be @Persist - you
> reset
> it to a new instance anyway every time in setupRender
>
>
> Julien Martin wrote
> >
> > Regards,
> > J.
> >
>
> Chris
>
> --
> View this message in context:
> http://tapestry.1045711.n5.nabble.com/Issue-with-my-T5-unit-tests-tp5486297p5486842.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: Get Server Name in AppModule

2012-02-15 Thread iberck
Thank you for your time and your responses :)


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Get-Server-Name-in-AppModule-tp5483475p5486944.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: Issue with my T5 unit tests

2012-02-15 Thread derkoe

Julien Martin wrote
> 
> Hello,
> 

Hi!


Julien Martin wrote
> 
> I am trying to make sure that if a user has not accepted the terms and
> conditions, then they cannot register.
> 
> However my "*testFailsIfConditionsNotAccepted*" always fails and logging
> info indicates that the checkbox is always checked despite the test
> setting
> the value of the boolean to false.
> 
> This behavior is not exhibited when I run my app and when I test my forms
> manually...
> 
> Can anyone please help?
> 

Maybe that's because you set the acceptsConditions to true in the test:
fieldValues.put("acceptsConditions", "true");* 

And one comment: childminderAccount does not have to be @Persist - you reset
it to a new instance anyway every time in setupRender 


Julien Martin wrote
> 
> Regards,
> J.
> 

Chris

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Issue-with-my-T5-unit-tests-tp5486297p5486842.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



Howto render a block and put it into a JSON reply?

2012-02-15 Thread Christian Riedel
Hi there,

I'm trying to improve the tapestry5-jquery DataTable component, which is able 
to respond paged results in JSON. Unfortunately the component is a bit limited 
in terms of what can be returned. I want to add support for the Grid-style 
p:propertyCell block-parameter-notation. 
I'm looking for the most elegant way to do it. Currently I'm trying it with 
faked zone updates (ajaxResponseRenderer.addRender) and a filter 
(ajaxResponseRenderer.addFilter) that should modify the JSON reply object. It 
feels very clumsy and I thought if someone on the list could point me to a more 
elegant solution.

More Abstract:
We've got
- an Ajax callback: void onData() { ... }
- PropertyOverrides, having block parameters
- a working data source that is able to fetch data by the current page

We need
- loop over all rows of the current page and
- render each cell's content or its override into a row-json-array and
- put each row-json-array into a data json-array

Is there another way than using ajaxResponseRenderer.addRender / addFilter?

Cheers
Christian
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Illegal field modifiers in org/chenillekit/tapestry/core/base/EventMixin

2012-02-15 Thread Oliver Pelz
ok seems like a chenillekit related thing, added a ticket in chenillekit bug
page:

http://jira.codehaus.org/browse/CHEN-53

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Illegal-field-modifiers-in-org-chenillekit-tapestry-core-base-EventMixin-tp5148519p5486707.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



Sortable Mixin and possible patch to Grid

2012-02-15 Thread Barry Books
I was working in a mixin that adds jQeury sortable behavior to any
component. I have it working but my solution for the Grid component is
inelegant at best. The problem is sortable returns a sorted list of ids
from the sortable html elements. In the case of Grid that's the 
elements. Currently there is no easy way to get an id on these elements so
I did this

 

to add the id I want to the rowClass, then this

public void visit(Element e) {
   if (
e.getName().equals(elementName)) {
   element = e;
   }
   if ( e.getName().equals("tr"))  {
   String c =
e.getAttribute("class");
   if ( c != null ) {

 e.forceAttributes("id",c.split(" ")[0]);
   }
   }

   }

which copies it from the class to the id. While this works I would not call
it a good solution.

So is there any interest in a patch to Grid so you can set the tr element
id. I'm thinking it works just like the rowClass parameter but would be
called rowId. Then the tml would simply be



Barry


Re: Illegal field modifiers in org/chenillekit/tapestry/core/base/EventMixin

2012-02-15 Thread Oliver Pelz
getting the same error and don't know how to handle it.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Illegal-field-modifiers-in-org-chenillekit-tapestry-core-base-EventMixin-tp5148519p5486253.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



[T5.3] Contributing a Service Override using addInstance()

2012-02-15 Thread Blower, Andy
I've read the section below about contributing a service override. This method 
is exactly what I need to resolve an issue I'm having getting a conditional 
override implemented, but it doesn't appear to work if the service 
implementations' constructor has any other T5 service dependencies in the 
signature. (T5 complains that ServiceOverride depends on itself.

Is this true, because that doesn't seem to be what's implied below by "handle 
dependency resolution", and makes addInstance of limited usefulness. I'm hoping 
I'm just missing something here.



>From http://tapestry.apache.org/ioc-cookbook-overriding-ioc-services.html :

"In this case, it is very easy to supply your own alternate implementation of a 
service.
AppModule.java (partial)

  @Contribute(ServiceOverride.class)

  public static void 
setupApplicationServiceOverrides(MappedConfiguration 
configuration)

  {

configuration.addInstance(SomeServiceType.class, 
SomeServiceTypeOverrideImpl.class);

  }

The name of the method is not important, as long as the 
@Contribute
 annotation is present on the method.

In this example, we are using addInstance() which will instantiate the 
indicated class and handle dependency resolution. (Be careful with this, 
because in some cases, resolving dependencies of the override class can require 
checking against the ServiceOverrides service, and you'll get a runtime 
exception about ServiceOverrides requiring itself!)"



Tapestry 5.1 - setting default locale

2012-02-15 Thread Javix
I can't figure out how to set (force) the default locale value. here is what
I added to my service module:
[code]
{
...
configuration.add(SymbolConstants.SUPPORTED_LOCALES, "en,de,fr");
...
public void
contributeComponentRequestHandler(OrderedConfiguration
configuration) {
configuration.addInstance("my_locale", LocaleRequestFilter.class);
}
..
}
[/code]
ComponentRequestFilter  implementation:
[code]
public class LocaleRequestFilter implements ComponentRequestFilter {

private final RequestGlobals request;
private final LocalizationSetter ls;

public LocaleRequestFilter(RequestGlobals request, LocalizationSetter
ls) {
this.request = request;
this.ls = ls;
}

public void handleComponentEvent(ComponentEventRequestParameters
parameters, ComponentRequestHandler handler) throws IOException {
restoreSession();
handler.handleComponentEvent(parameters);
}

public void handlePageRender(PageRenderRequestParameters parameters,
ComponentRequestHandler handler) throws IOException {
restoreSession();
handler.handlePageRender(parameters);
}

private void restoreSession() {
if (request.getRequest().getSession(true).getAttribute("_locale") != 
null)
{
System.out.println("CHECKED : IS NOT NULL: " + (String)
request.getRequest().getSession(true).getAttribute("_locale"));
ls.setNonPeristentLocaleFromLocaleName((String)
request.getRequest().getSession(true).getAttribute("_locale"));
}
else {
request.getRequest().getSession(true).setAttribute("_locale", "pl");
ls.setNonPeristentLocaleFromLocaleName((String)
request.getRequest().getSession(true).getAttribute("_locale"));
}
}
}
In the view there are 3 links-images to switch locales:
[code]
 ${asset:context:static/img/flag_en.gif}

 
${asset:context:static/img/flag_fr.gif}

 
${asset:context:static/img/flag_de.gif}

[/code]
In the corresponding Java class I implemented the actions:
[code]
 void onActionFromFr() {
request.getRequest().getSession(true).setAttribute("_locale", "fr");
}

void onActionFromDe() {
request.getRequest().getSession(true).setAttribute("_locale", "pl");
} 
void onActionFromEn() {
request.getRequest().getSession(true).setAttribute("_locale", "en");
}
[/code]
It worked fine until I deleted the images without locale suffixes (for ex.
some_image.png) and left only the localized ones (like my_image_de.png,
my_image.fr.png and my_image_en.png). And now The application can't start up
because everywhere in views I referenced the images like that:
[code]
${asset:context:static/img/my_image.png} 
[/code]
I think that as the locale is not set yet, Tapestry can't figure out which
image to load.
that's why I'm looking for how to set the default locale at start up.
thank you in advance.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-5-1-setting-default-locale-tp5485979p5485979.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: T5: localized message by property value

2012-02-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Feb 2012 10:18:57 -0200, Dmitriy Vsekhvalnov  
 wrote:



Sure, i knew that :) that's so much pain to repeat again and again,
i was hoping for expansions support, which seems so natural, right? ;)


You can always add your own bindings to Tapestry. ;)

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: How to restrict users only to enter numeric values in text field

2012-02-15 Thread karthi
Anyone help me to resolve this

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-restrict-users-only-to-enter-numeric-values-in-text-field-tp5472151p5485830.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: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Feb 2012 04:29:38 -0200, Dmitry Gusev   
wrote:



Looks good to me.
And I also think that its not worth it to support Eclipse Classic for
TapestryTools.


Eclipse Classic is based on Eclipse 3.3. Too old.
Notice the xml_ui plugin in Eclipse for Java Developers 3.7:  
http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigosr1.  
It does ship with an XML editor. Please don't base your editor in Eclipse  
for JEE.


By the way, please don't post the same message in two different mailing  
lists.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Can Tapestry-** run without log4j?

2012-02-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Feb 2012 08:09:56 -0200, Chris Mylonas   
wrote:



Hi List,


Hi!

Does anyone know if tapestry happily use JUL (java.util.logging) if  
log4j is taken out by using SLF4J?


That's exactly why SLF4J is uses in Tapestry: you can use any logging  
framework.


I noticed the Tap-IoC module may have a problem -  
http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1

Could this be a problem?


No. It's just there because most people use Log4J and to have something  
that works out-of-the-box.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Thiago H. de Paula Figueiredo
On Wed, 15 Feb 2012 04:14:34 -0200, Gavin Lei   
wrote:



Hi All,


Hi!


As Eclipse classic does not include XML editor, it will require
Eclipse for JEE developers as a minimum.


I don't think this is correct. As far as I can remember, since 3.5 or 3.6  
the smallest Eclipse for Java does ship with an XML editor. I never use  
the Eclipse for JEE and I do have an XML editor here.


--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor

Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Can Tapestry-** run without log4j?

2012-02-15 Thread Chris Mylonas
That came in handy!!  I reverted the 62 changes I already made.  Now just 
classloader issues and switching from eclipselink to hibernate to go, fun fun 
fun!

For anyone needing slf4j/log4j in jboss 7.1 (and maybe 7.0), you need a 
Dependencies: org.apache.log4j in the MANIFEST.MF of the ear file.
To generate that in maven use the configuration->archive->manifestEntries 
element taking value format as per below in your EAR's pom.xml

 
org.apache.maven.plugins
maven-ear-plugin



org.apache.log4j


   Java EE Application
   

org.opencsta
fullcti


org.opencsta
EventViewer

   

 

Refer to the part they mention logging on this page 
https://docs.jboss.org/author/display/AS7/How+do+I+migrate+my+application+from+AS5+or+AS6+to+AS7#HowdoImigratemyapplicationfromAS5orAS6toAS7-JBossLogging
 for further clarification.

Tah,
Chris





On 15/02/2012, at 9:35 PM, Dmitry Gusev wrote:

> :)
> 
> You can also find this useful:
> http://www.slf4j.org/legacy.html#log4j-over-slf4j
> 
> 
> On Wed, Feb 15, 2012 at 14:29, Chris Mylonas  wrote:
> 
>> Thanks Dmitry - I'll keep going then!!
>> :D
>> 
>> 
>> On 15/02/2012, at 9:17 PM, Dmitry Gusev wrote:
>> 
>>> I'm successfully running Tap5 application with slf4j/JUL on GAE, so
>> there's
>>> no log4j at all.
>>> 
>>> On Wed, Feb 15, 2012 at 14:09, Chris Mylonas  wrote:
>>> 
 Hi List,
 
 Does anyone know if tapestry happily use JUL (java.util.logging) if
>> log4j
 is taken out by using SLF4J?
 I noticed the Tap-IoC module may have a problem -
 
>> http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
 Could this be a problem?
 
 I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with
 logging in my EJBs because I stuck with the good old log4j Loggers from
 yesteyear..
 And I'd be happy to just run with slf4j+JUL and abandon log4j.
 
 Cheers
 Chris
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org
 
 
>>> 
>>> 
>>> --
>>> Dmitry Gusev
>>> 
>>> AnjLab Team
>>> http://anjlab.com
>> 
>> 
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> -- 
> Dmitry Gusev
> 
> AnjLab Team
> http://anjlab.com



Re: Tapestry TreeGrid

2012-02-15 Thread Lance Java
This should help (not tested)

public class HibernateCategoryDao implements CategoryDao {
// this will be called by ValueEncoder.toValue(categoryId)
public CategoryNode findById(Long categoryId) {
return findByCriterion(Restrictions.eq("categoryId",
categoryId)).iterator().next();
}

// this will be called by TreeModelAdapter.getChildren(CategoryNode
node)
public List getChildren(CategoryNode node) {
return findByCriterion(Restrictions.eq("parentCategoryId",
node.getCategory()));
}

// this will be called by your page
public List findRoots() {
return
findByCriterion(Restrictions.isNull("parentCategoryId"));
}

@SuppressWarnings("unchecked")
protected List findByCriterion(Criterion criterion) {
Session session = getSession();
List cats =
session.createCriteria(Category.class).add(criterion).list();
Map childNodes = new
LinkedHashMap();
for (Category cat : cats) {
CategoryNode childNode = new CategoryNode();
childNode.setCategory(cat);
childNodes.put(cat.getCategoryId(), childNode);
}
StringBuilder questions = new StringBuilder();
for (int i = 0; i < childNodes.size(); ++ i) {
if (i != 0) {
questions.append(", ");
}
questions.append("?");
}
Query query = session.createSQLQuery(
"select c1.categoryId, count(c2.*) " +
"from Category c1 " +
"left join Category c2 on c2.parentCategoryId =
c1.categoryId " +
"where c1.categoryId in (" + questions + ") " +
"group by c1.categoryId"
);
int i = 0;
for (Iterator it =
childNodes.values().iterator(); i < childNodes.size(); ++ i) {
query.setLong(i + 1,
it.next().getCategory().getCategoryId());
}

for (Iterator it = query.iterate(); it.hasNext();
) {
Object[] result = it.next();
Long childId = (Long) result[0];
Integer grandChildCount = (Integer) result[1];
CategoryNode childNode = childNodes.get(childId);
childNode.setHasChildren(grandChildCount != 0);
childNode.setLeaf(grandChildCount == 0);
}

return new ArrayList(childNodes.values());
}
}

On Wednesday, 15 February 2012, George Christman 
wrote:
> Hi Lance, I think I made some excellent progress tonight, however I seem
to
> be stuck at the Value Encoder and DAO. I apologize if these questions seem
> simple. I specialize in UI, so this component tends to present a big
> challenge for me.
>
> I've implemented everything you outlined without issue.
>
> Below is my page class containing the value encoder. I'm having a
difficult
> time getting the root nodes as well as the toValue node from the
> CategoryNode. Do you think you could take a quick look at my code snippet
> and offer a suggestion?
>
>@Inject
>private Session session;
>
>private TreeModel selectModel;
>
>@InjectComponent
>private Tree tree;
>
>public TreeModel getTreeModel() {
>
>if (selectModel == null) {
>
>ValueEncoder encoder = new
> ValueEncoder() {
>
>@Override
>public String toClient(CategoryNode node) {
>return node.getCategory().getId().toString();
>}
>
>@Override
>public CategoryNode toValue(String nodeId) {
>return;
>}
>};
> //Haven't figured out how to obtain rootNodes.
>selectModel = new DefaultTreeModel(encoder, new
> CategoryTreeModelAdapter(session), rootNodes);
>}
>
>return selectModel;
>}
>
> Cheers,
> George
>
> --
> View this message in context:
http://tapestry.1045711.n5.nabble.com/Tapestry-TreeGrid-tp5462126p5484903.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: Can Tapestry-** run without log4j?

2012-02-15 Thread Chris Mylonas
Hey Dmitry,

I just had a look at your work/team pages and came across your blog.  I 
remember seeing your your face on the web page to a blog I found very very 
helpful.
Your head at the top of the page is unforgettable because you look like a dude 
I grew up with 20+ years ago lol

Thanks for your help once again :)
Have a good day
CM


On 15/02/2012, at 9:17 PM, Dmitry Gusev wrote:

> I'm successfully running Tap5 application with slf4j/JUL on GAE, so there's
> no log4j at all.
> 
> On Wed, Feb 15, 2012 at 14:09, Chris Mylonas  wrote:
> 
>> Hi List,
>> 
>> Does anyone know if tapestry happily use JUL (java.util.logging) if log4j
>> is taken out by using SLF4J?
>> I noticed the Tap-IoC module may have a problem -
>> http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
>> Could this be a problem?
>> 
>> I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with
>> logging in my EJBs because I stuck with the good old log4j Loggers from
>> yesteyear..
>> And I'd be happy to just run with slf4j+JUL and abandon log4j.
>> 
>> Cheers
>> Chris
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> -- 
> Dmitry Gusev
> 
> AnjLab Team
> http://anjlab.com


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Giulio Micali
2012/2/15 Gavin Lei 

> Hi Giulio,
>
> I am finding solution to support Tapestry custom components besides
> standard components in XML editor, and i believe we can do it.
>
> But for the css and html things, no, we will not add html/css schemas
> support in XML editor, it is complex and unnecessary. As i mentioned,
> we will concentrate on simple and useful stuff first to confirm a
> minimal feature set that works perfect. If users want to edit html/css
> or jsp elements in *.tml editor, we have a future option feature, we
> plan supply Tapestry components' auto-complete feature in WTP jsp
> editor.
>

Got it, thanks.

Cheers,
Giulio


Re: Can Tapestry-** run without log4j?

2012-02-15 Thread Dmitry Gusev
:)

You can also find this useful:
http://www.slf4j.org/legacy.html#log4j-over-slf4j


On Wed, Feb 15, 2012 at 14:29, Chris Mylonas  wrote:

> Thanks Dmitry - I'll keep going then!!
> :D
>
>
> On 15/02/2012, at 9:17 PM, Dmitry Gusev wrote:
>
> > I'm successfully running Tap5 application with slf4j/JUL on GAE, so
> there's
> > no log4j at all.
> >
> > On Wed, Feb 15, 2012 at 14:09, Chris Mylonas  wrote:
> >
> >> Hi List,
> >>
> >> Does anyone know if tapestry happily use JUL (java.util.logging) if
> log4j
> >> is taken out by using SLF4J?
> >> I noticed the Tap-IoC module may have a problem -
> >>
> http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
> >> Could this be a problem?
> >>
> >> I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with
> >> logging in my EJBs because I stuck with the good old log4j Loggers from
> >> yesteyear..
> >> And I'd be happy to just run with slf4j+JUL and abandon log4j.
> >>
> >> Cheers
> >> Chris
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
> >
> >
> > --
> > Dmitry Gusev
> >
> > AnjLab Team
> > http://anjlab.com
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


Re: Can Tapestry-** run without log4j?

2012-02-15 Thread Chris Mylonas
Thanks Dmitry - I'll keep going then!!
:D


On 15/02/2012, at 9:17 PM, Dmitry Gusev wrote:

> I'm successfully running Tap5 application with slf4j/JUL on GAE, so there's
> no log4j at all.
> 
> On Wed, Feb 15, 2012 at 14:09, Chris Mylonas  wrote:
> 
>> Hi List,
>> 
>> Does anyone know if tapestry happily use JUL (java.util.logging) if log4j
>> is taken out by using SLF4J?
>> I noticed the Tap-IoC module may have a problem -
>> http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
>> Could this be a problem?
>> 
>> I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with
>> logging in my EJBs because I stuck with the good old log4j Loggers from
>> yesteyear..
>> And I'd be happy to just run with slf4j+JUL and abandon log4j.
>> 
>> Cheers
>> Chris
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>> 
>> 
> 
> 
> -- 
> Dmitry Gusev
> 
> AnjLab Team
> http://anjlab.com


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Can Tapestry-** run without log4j?

2012-02-15 Thread Dmitry Gusev
I'm successfully running Tap5 application with slf4j/JUL on GAE, so there's
no log4j at all.

On Wed, Feb 15, 2012 at 14:09, Chris Mylonas  wrote:

> Hi List,
>
> Does anyone know if tapestry happily use JUL (java.util.logging) if log4j
> is taken out by using SLF4J?
> I noticed the Tap-IoC module may have a problem -
> http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
> Could this be a problem?
>
> I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with
> logging in my EJBs because I stuck with the good old log4j Loggers from
> yesteyear..
> And I'd be happy to just run with slf4j+JUL and abandon log4j.
>
> Cheers
> Chris
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


Can Tapestry-** run without log4j?

2012-02-15 Thread Chris Mylonas
Hi List,

Does anyone know if tapestry happily use JUL (java.util.logging) if log4j is 
taken out by using SLF4J?
I noticed the Tap-IoC module may have a problem - 
http://mvnrepository.com/artifact/org.apache.tapestry/tapestry-ioc/5.3.1
Could this be a problem?

I seem to be hitting problems with JBoss 7 (and glassfish 3.1.1) with logging 
in my EJBs because I stuck with the good old log4j Loggers from yesteyear..
And I'd be happy to just run with slf4j+JUL and abandon log4j.

Cheers
Chris
-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Gavin Lei
Hi Giulio,

I am finding solution to support Tapestry custom components besides
standard components in XML editor, and i believe we can do it.

But for the css and html things, no, we will not add html/css schemas
support in XML editor, it is complex and unnecessary. As i mentioned,
we will concentrate on simple and useful stuff first to confirm a
minimal feature set that works perfect. If users want to edit html/css
or jsp elements in *.tml editor, we have a future option feature, we
plan supply Tapestry components' auto-complete feature in WTP jsp
editor.

2012/2/15 Giulio Micali :
> Well, the eclipse classic is faster for sure, but i think we are all used
> to the eclipse JEE slowness :)
>
> I know nothing about eclipse development but...if you use the XML editor as
> base, in a common page I think you will have the schema only for standard
> tapestry components...am I right ?
>
> Example:
> http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";>
> ...
> 
> so you have the xmlns for tapestry, but what about html/css ?
> or you can insert html and css schemas as auto-included like the jsp editor?
>
> Cheers,
> Giulio



-- 
-
Best Regards
Gavin Lei (雷银)
Email: gavingui2...@gmail.com

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Need feedback for Eclipse WTP based Tapestry 5 visual editor

2012-02-15 Thread Giulio Micali
Well, the eclipse classic is faster for sure, but i think we are all used
to the eclipse JEE slowness :)

I know nothing about eclipse development but...if you use the XML editor as
base, in a common page I think you will have the schema only for standard
tapestry components...am I right ?

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

so you have the xmlns for tapestry, but what about html/css ?
or you can insert html and css schemas as auto-included like the jsp editor?

Cheers,
Giulio


Re: Current Bean in Environment

2012-02-15 Thread Mihail Slobodyanuk
Thanks! It's good resolve.

2012/2/14 Alejandro Scandroli 

> I do something similar using a mixin.
> Take a look at Tynamos's BeanModelAdvisor [1]
>
> TynamoBeanContext.getObject always returns the current iterated item
> based on the container's iterator property name (in this case: "row").
>
> I hope it helps.
> Alejandro.
>
> [1]
> http://svn.codehaus.org/tynamo/trunk/tapestry-model/tapestry-model-core/src/main/java/org/tynamo/mixins/BeanModelAdvisor.java
>
>
> 2012/2/13 Михаил Слободянюк :
> > 2012/2/13 derkoe 
> >
> >> A workaround could be to create your own context and push the object to
> the
> >> Environment in BeginRender of your enclosing component.
> >> Or you could use the BeanValidationContext but then you have to add your
> >> object as validate to the Form.
> >>
> >
> > In the case if Grid Context must be reassigned by each row. It possible
> > push in context on getObject() getter, but not possible pop after row has
> > been already processed.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Get Server Name in AppModule

2012-02-15 Thread Markus Grell
> As was already mentioned, you don't have any requests on application
> start, so you can't get the request URI.
>
> And request URI (the host part of it) may be different even on the same
> application instance.
>
> You can try to get local host name like this:
>
>
> InetAddress.getLocalHost().getHostName();

Unfortunately, on a system hosting maybe hundred virtual hosts,
getHostName() is most likely something completely different than the host
part of your URL.

Markus



-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Get Server Name in AppModule

2012-02-15 Thread Giulio Micali
2012/2/15 Dmitry Gusev 

>
> BTW, why do you need this?
>
> A common use-case is the adoption of the "sticky" load balancing feature,
when your code use a non-clustered resource on 2-N balanced servers.
in these kind of situations, you usually need to know on which server you
are running an asynchronous job, or from which server you performed the
last pessimistic locking on a database row, a file in the /tmp directory,
ecc...


Re: Get Server Name in AppModule

2012-02-15 Thread Dmitry Gusev
As was already mentioned, you don't have any requests on application start,
so you can't get the request URI.

And request URI (the host part of it) may be different even on the same
application instance.

You can try to get local host name like this:

InetAddress.getLocalHost().getHostName();


Or lookup java.lang.System properties and see if you can get something in
there.

BTW, why do you need this?

On Wed, Feb 15, 2012 at 11:47, Markus Grell  wrote:

> >> Like Kalle said.
> >>
> >>
> >>
> >> For example, if you use WebLogic, inside the launch script you will
> >> find:
> >> java  -DserverName=Server_1
> >>
> >> Almost all appServers starts through a script (on unix systems), you
> >> should add it to each instance(in a cluster, i mean) if it is missing.
> >
> >
> > I'm wondering if he is really talking about the application server name
> > or about something that can be found in
> >
> > HttpServletRequest request
> > request.getRequestURI()
>
> Sorry, should have been
> request.getRequestURL()
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com


[ANNOUNCEMENT] tapestry-security 0.4.2 and tynamo-federatedaccounts 0.1.0 released

2012-02-15 Thread Kalle Korhonen
This time we are serving you with a joint announcement of two
libraries feeding off of each other...

Just like that, we released tapestry-security 0.4.2. Nothing major,
just one pesky little bug that we managed to miss on the last
go-around:
[TYNAMO-120] - FallbackURL is no longer honored
You should upgrade. Check out
http://tynamo.org/tapestry-security+guide for more info.

-- and... ---

tapestry-federatedaccounts 0.1.0 released! Really.
At long last, we've gotten off our collective lazy ass and worked
harder than ever for free to bring you tapesty-federatedaccounts
0.1.0, with twitter as the new authentication provider. Some jokesters
might question why it took so long since we are just using the
super-great twitter4j library, which is almost as good as RestFB that
we use for Facebook integration. We are first to admit that twitter4j
takes all the pain away from Oauth 1.0a's obnoxious request signing
business, so we decided to spend our time refactoring the code to
support the Oauth 1.0a/Oauth 2.0 call flows with the same base
classes, as well as modularizing the whole implementation because one
size just doesn't fit all. Now of course, you my dear don't even have
to know any of the these details but just check out
http://tynamo.org/tynamo-federatedaccounts+guide and open the gates
for all of the Facebook and Twitter users to flock to your website :P

Release notes:
New Feature

[TYNAMO-92] - Twitter realm for federatedaccounts

-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org